/* Public site: home, product pages, guides. */

.site { background: var(--bg); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.site-header { position: sticky; top: env(safe-area-inset-top); z-index: 40; background: rgba(243, 245, 249, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.site-nav { display: flex; gap: 22px; font-weight: 600; font-size: 16px; }
.site-nav a { color: var(--text); }
.site-nav a:hover { color: var(--primary); }
.site-header .actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.site-header .signin { font-weight: 600; color: var(--text); }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .site-nav, .site-header .signin { display: none; }
  .nav-toggle { display: block; }
  .site-header .actions .btn { display: none; }
}
.nav-toggle > summary { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.nav-toggle .menu-panel { position: fixed; top: calc(68px + env(safe-area-inset-top)); left: 12px; right: 12px; }

.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -0.03em; }
.hero .lead { margin-top: 18px; font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.hero-cta .note { font-size: 15px; color: var(--subtle); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } .hero { padding-top: 32px; } }

/* The Léa card from the welcome mockup */
.showcase { position: relative; height: 410px; max-width: 420px; margin: 0 auto; width: 100%; }
.showcase .halo { position: absolute; left: 50%; top: 40px; width: 330px; height: 330px; margin-left: -165px; border-radius: 50%; background: var(--primary-soft); }
.showcase .phone { position: absolute; left: 50%; top: 52px; width: 186px; margin-left: -93px; padding: 24px 16px; border-radius: 32px; background: var(--surface); border: 1px solid #DCE1EB; box-shadow: 0 16px 36px rgba(19, 25, 43, 0.12); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.showcase .phone dl { width: 100%; margin: 8px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 6px; font-size: 12px; color: var(--muted); }
.showcase .phone dd { margin: 0; font-weight: 700; color: var(--text); text-align: right; }
.showcase .chip { position: absolute; display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 6px 16px rgba(19, 25, 43, 0.08); font-size: 14px; font-weight: 600; white-space: nowrap; }
.showcase .chip.c1 { left: 0; top: 4px; color: var(--green); border-color: #CDEBD9; }
.showcase .chip.c2 { right: 0; top: 298px; color: var(--orange); border-color: #F6D3B8; }
.showcase .chip.c3 { left: 10px; top: 354px; background: var(--night); color: #FFFFFF; border-color: var(--night); }

.band { padding: 64px 0; }
.band-white { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.02em; }
.band .intro { margin-top: 12px; max-width: 40em; color: var(--muted); font-size: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.feature { padding: 22px; }
.feature h3 { margin-top: 14px; font-size: 20px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.how { counter-reset: how; }
.how .feature h3::before { counter-increment: how; content: counter(how) ". "; color: var(--primary); }

.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--subtle); }
.compare td:first-child { font-weight: 600; }
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: var(--red); font-weight: 700; }
.compare tr.ours td { background: var(--primary-tint); }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.price-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.price-card.featured { border: 2px solid var(--primary); }
.price-card .amount { font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price-card .amount small { font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--subtle); letter-spacing: 0; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li .icon { color: var(--green); margin-top: 4px; }
.price-card .btn { margin-top: auto; }

.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 24px; padding: 0; list-style: none; }
.limits li { display: flex; gap: 10px; align-items: flex-start; }
.limits .icon { color: var(--red); margin-top: 4px; }
@media (max-width: 760px) { .limits { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); }

.cta-band { padding: 56px 0; background: var(--primary); color: #FFFFFF; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 36px); }
.cta-band p { margin-top: 10px; color: #D9DCFB; font-size: 18px; }
.cta-band .btn { margin-top: 24px; background: #FFFFFF; color: var(--primary-dark); }

.site-footer { padding: 48px 0 40px; font-size: 15px; color: var(--muted); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.site-footer h3 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--subtle); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--primary); }
.site-footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; color: var(--subtle); }
@media (max-width: 960px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* Guides */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 28px 0 0; list-style: none; font-size: 14px; color: var(--subtle); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: var(--subtle); }
@media (max-width: 640px) { .breadcrumbs li[aria-current] { display: none; } }
.article-head { margin-top: 18px; }
.article-head h1 { font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -0.025em; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 14px; color: var(--subtle); }
.byline a { color: var(--subtle); text-decoration: underline; text-underline-offset: 2px; }
.short-answer { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--border); font-size: 18px; }
.short-answer strong { color: var(--primary-dark); }
.draft-banner { margin-top: 20px; padding: 10px 14px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); font-size: 14px; font-weight: 600; }

.prose { margin-top: 28px; font-size: 18px; line-height: 1.65; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 44px; font-size: 26px; }
.prose h3 { margin-top: 28px; font-size: 20px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose blockquote { margin: 16px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--primary-tint); color: var(--text); }
.prose code { font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: #E9ECF3; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.prose img { max-width: 100%; height: auto; border-radius: 16px; }
.video { margin: 28px auto 0; max-width: 340px; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 20px; background: var(--primary); }
.video figcaption { margin-top: 10px; font-size: 15px; line-height: 1.4; color: var(--subtle); text-align: center; }
.video details { margin-top: 6px; font-size: 15px; color: var(--subtle); text-align: center; }
.video details[open] { text-align: left; }
.video summary { cursor: pointer; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: #F6F7FA; font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }

.offer-box { margin-top: 32px; padding: 22px; border-radius: var(--radius-card); background: var(--primary); color: #FFFFFF; }
.offer-box p { color: #E3E5FD; margin-top: 8px; }
.offer-box .btn { margin-top: 16px; background: #FFFFFF; color: var(--primary-dark); }

.toc { margin-top: 24px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); font-size: 15px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.related { margin-top: 44px; }
.related ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.related a { display: block; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; color: var(--text); }
.related a:hover { border-color: var(--primary); color: var(--primary-dark); }
.sources { margin-top: 36px; font-size: 14px; color: var(--subtle); }
.sources ul { padding-left: 18px; margin: 8px 0 0; }
.sources a { color: var(--subtle); text-decoration: underline; }

/* Free tools inside a guide (content/tools): the filter test and the screen plan. */
.prose .tool { margin-top: 28px; font-size: 17px; line-height: 1.5; }
.prose .tool-title { margin-top: 0; font-size: 22px; }
.prose .tool-verdict { margin-top: 16px; display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.25; }
.prose .tool-rows { margin-top: 12px; padding: 0; }
.prose .tool-rows .badge { white-space: nowrap; }
.prose .tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.prose .tool-form { margin-top: 16px; }
.prose .tool-times { display: flex; flex-wrap: wrap; gap: 16px; }
.prose .tool-check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.prose .tool-check input { width: 20px; height: 20px; accent-color: var(--primary); }
.prose .tool-form:has(input[data-school="false"]:checked) .tool-check { display: none; }
.prose .tool-verdict:focus { outline: none; }
.prose .plan-week th[scope="row"] { width: 7.5em; background: transparent; }
.prose .plan-week td div + div { margin-top: 4px; }
.prose .tool-cta { margin-top: 24px; padding: 20px; border-radius: var(--radius-card); background: var(--primary-tint); }
.prose .tool-cta .btn { margin-top: 12px; text-decoration: none; }
.prose .embed-code { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; font-size: 13px; line-height: 1.5; }
.prose .embed-code code { padding: 0; background: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.prose .embed-code .btn { align-self: flex-start; }

/* The filter test in another site's iframe (embeds/filter_test). */
.site.embed { background: transparent; }
.embed .prose { margin: 0; padding: 4px; }
.embed .prose .tool { margin: 0; padding: 20px; }
.embed .prose .tool-title { font-size: 20px; line-height: 1.25; }
.embed .prose .tool-verdict { font-size: 19px; }
.embed .prose .tool-rows .list-row { padding-top: 10px; padding-bottom: 10px; }
.embed .prose .tool-actions { flex-wrap: nowrap; margin-top: 16px; }
.embed .prose .tool-actions .btn { flex: 1; padding-left: 12px; padding-right: 12px; font-size: 15px; }
.embed-credit { margin: 16px 0 0; font-size: 14px; text-align: center; }
.embed-credit a { color: var(--subtle); }

@media print {
  .site-header, .site-footer, .cta-band, .no-print { display: none !important; }
  .site { background: #FFFFFF; }
  /* A page with a screen plan prints the plan alone, under its title. */
  .wrap-narrow:has(.tool-plan) > :not(.article-head):not(.prose), .wrap-narrow:has(.tool-plan) .article-head > :not(h1) { display: none; }
  .prose:has(.tool-plan) > :not(.tool-plan) { display: none; }
  .prose .tool-plan { font-size: 13pt; }
  .table-scroll { overflow: visible; border-color: #999999; }
}

/* Advertising consent (layouts/_consent): Refuser and Accepter look the same. */
.consent {
  position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto;
  padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow);
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 19px; margin: 0 0 8px; }
.consent p { margin: 0; font-size: 15px; color: var(--muted); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.site-footer button.link { padding: 0; border: 0; background: none; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.site-footer button.link:hover { color: var(--primary); }
