/* Pages: pricing, how it works, FAQ, legal, 404 and 500. Read DESIGN.md first.
   Only tokens and base components; everything is scoped to a page class or a pg-/face- name,
   so base and component styles stay untouched. */

/* ================================================================ shared */
.pg-hero { padding-block: clamp(40px, 7vw, 88px) clamp(44px, 6vw, 80px); }
.pg-hero h1 { margin-top: 18px; }
.pg-hero .lead { margin-top: 16px; }
.pg-hero .proof-row { margin-bottom: 22px; }
.pg-hero .chips { margin-top: 24px; }
.pg-hero-center { text-align: center; }
.pg-hero-center .pg-hero-inner { max-width: 780px; margin-inline: auto; }
.pg-hero-center .namebox, .pg-hero-center .lead { margin-inline: auto; }
.pg-hero-center .chips, .pg-hero-center .proof-row { justify-content: center; }
.pg-hero-center .pricing-cards-wrap { text-align: left; }
.pg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; }
.pg-actions + .guarantee-line { margin-top: 14px; }
@media (max-width: 559px) {
  .pg-actions .btn:not(.link-quiet) { width: 100%; }
  .pg-actions { justify-content: center; }
  .pg-actions + .guarantee-line { justify-content: center; }
}

/* small step label above a heading ("Step 1", "In every report") */
.pg-kicker { display: block; font: 750 var(--fs-label)/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); }

/* ---------------------------------------------------------------- face figures
   A real AI-generated photo on the studio card, with real lines from static/data/faces/*.json drawn
   by the inline script on each page. Without JS the photo shows on its own. */
.face-fig { aspect-ratio: 4 / 5; margin: 0; }
.face-fig .face-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.face-svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; pointer-events: none; z-index: 1; }
.face-tags { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.face-pill { position: absolute; left: 0; top: 0; }
.face-pill.pill-val { padding: 5px 9px; gap: 0; }
.face-pill .pg-pill-ic { width: 12px; height: 12px; flex: none; color: var(--teal-700); }
.face-fig.is-sm .face-pill { font-size: .62rem; padding: 4px 8px; gap: 6px; }
.face-fig.is-sm .face-pill .dot { width: 5px; height: 5px; }
.face-fig.is-sm .face-pill .pill-sep { height: 10px; }
.face-fig .face-frame { position: absolute; z-index: 1; --sc-size: 24px; --sc-inset: 0px; pointer-events: none; }
.face-fig > .namebox, .face-fig > .glass-tag { z-index: 3; }
.face-fig::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(14, 35, 41, .06); }
@keyframes pg-fade { from { opacity: 0; } to { opacity: 1; } }

.face-card { display: grid; gap: 12px; align-content: start; min-width: 0; }
.face-card .readout { border: 1px solid var(--line-2); box-shadow: var(--shadow-soft); background: #fff; }
.face-card .readout.is-pending { display: none; }
.js .face-card .readout.is-pending { display: block; visibility: hidden; }
.face-cap { margin-top: 12px; font-size: var(--fs-caption); color: var(--muted); line-height: 1.45; }

/* icon list rows: icon tile + title + one line */
.pg-ilist { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.pg-ilist li { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.pg-ilist h3 { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.pg-ilist p { margin-top: 4px; font-size: .94rem; color: var(--muted); line-height: 1.55; }
.bg-mist .pg-ilist .icon-tile { background: #fff; box-shadow: var(--shadow-xs); }

/* ================================================================ pricing */
.page-pricing .pricing-cards-wrap { margin-top: clamp(32px, 5vw, 52px); }

.pay-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: pay; }
.pay-step { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-soft); }
.pay-step .icon-tile { margin-bottom: 8px; }
.pay-step h3 { font-size: 1.12rem; }
.pay-step p { color: var(--muted); font-size: .94rem; line-height: 1.55; }
.pay-step .badge { justify-self: start; margin-top: 6px; }
@media (max-width: 819px) {
  .pay-step { grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; padding: 18px; }
  .pay-step .icon-tile { grid-row: 1 / span 4; margin-bottom: 0; }
}
@media (min-width: 820px) {
  .pay-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .pay-step { padding: 26px; }
  .pay-step:not(:last-child)::after {
    content: ""; position: absolute; top: 44px; right: -14px; width: 10px; height: 10px; z-index: 1;
    border-top: 1.5px solid var(--line-strong); border-right: 1.5px solid var(--line-strong); transform: rotate(45deg);
  }
}

/* compare table: fits at 360 px without sideways scrolling */
.compare-wrap { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); overflow: hidden; }
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .9rem; }
.compare-table .col-feature { width: 40%; }
.compare-table th, .compare-table td { padding: 14px 8px; text-align: center; vertical-align: middle; border-top: 1px solid var(--line-2); }
.compare-table thead th, .compare-table thead td { border-top: 0; padding-top: 22px; padding-bottom: 16px; vertical-align: bottom; }
.compare-table tbody th { text-align: left; padding-left: 18px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.compare-table .is-popular { background: var(--teal-50); }
.compare-flag { display: block; width: fit-content; margin: 0 auto 8px; padding: 4px 8px; border-radius: var(--r-xs); background: var(--teal-700); color: #fff; font: 800 .6rem/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.compare-name { display: block; font-weight: 700; color: var(--ink); font-size: .98rem; letter-spacing: -.01em; }
.compare-price { display: block; margin-top: 4px; font-weight: 600; color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.cmp-num { font-size: 1.05rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cmp-yes, .cmp-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.cmp-yes { background: var(--teal-50); color: var(--teal-700); }
.is-popular .cmp-yes { background: #fff; }
.cmp-yes .icon { width: 15px; height: 15px; }
.cmp-no { color: var(--faint); }
.cmp-no::before { content: ""; width: 12px; height: 1.5px; border-radius: 2px; background: currentColor; }
.cmp-row-price td { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.compare-foot { display: grid; justify-items: center; gap: 18px; margin-top: 28px; text-align: center; }
.compare-foot p { max-width: 60ch; }
.compare-foot .guarantee-line { margin-top: -6px; }
@media (max-width: 559px) {
  .compare-table { font-size: .8rem; }
  .compare-table th, .compare-table td { padding: 12px 4px; }
  .compare-table tbody th { padding-left: 12px; }
  .compare-name { font-size: .86rem; }
  .compare-price { font-size: .74rem; }
  .compare-table .col-feature { width: 38%; }
  .compare-table thead th.is-popular { padding-inline: 2px; }
  .compare-flag { font-size: .62rem; padding: 3px 6px; letter-spacing: .04em; }
}

.inside-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
.inside-grid .face-card { max-width: 440px; width: 100%; margin-inline: auto; }
.inside-list { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .inside-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; } }
@media (min-width: 980px) {
  .inside-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .inside-grid .face-card { position: sticky; top: calc(var(--header-h) + 24px); }
}

.page-pricing .pricing-faq .fq { margin-top: 8px; }
.pricing-faq-more { margin-top: 24px; text-align: center; font-size: .94rem; }

/* ================================================================ how it works */
.hw-hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 980px) { .hw-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hw-spec { padding: 8px 22px 12px; }
.hw-spec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 12px; border-bottom: 1px solid var(--line-2); }
.hw-spec dl { margin: 0; }
.hw-spec dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; }
.hw-spec dl > div + div { border-top: 1px solid var(--line-2); }
.hw-spec dt { color: var(--muted); font-size: .92rem; }
.hw-spec dd { margin: 0; font-weight: 700; font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }

.hw-toc { margin-top: clamp(36px, 5vw, 56px); }
.hw-toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hw-toc a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .8); border: 1px solid rgba(14, 35, 41, .08); text-decoration: none;
  font-weight: 600; font-size: .88rem; color: var(--ink); transition: border-color var(--t-fast), background var(--t-fast);
}
.hw-toc a:hover { border-color: var(--teal); background: #fff; }
.hw-toc b { font-weight: 700; font-size: .78rem; color: var(--teal-700); font-variant-numeric: tabular-nums; }
@media (min-width: 720px) { .hw-toc ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.hw-step { padding-block: var(--section-y); }
.hw-step-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) {
  .hw-step-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hw-step-grid.is-flip .hw-step-visual { order: -1; }
  .hw-step-grid.is-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.hw-step-copy h2 { margin-top: 16px; }
.hw-step-copy .lead { margin-top: 14px; }
.hw-step-copy > p:not(.lead) { margin-top: 14px; max-width: 60ch; }
.hw-step-copy .ticks { margin-top: 24px; }
.hw-step-copy .ticks li { font-weight: 450; color: var(--ink-2); line-height: 1.5; }
.hw-step-copy .ticks strong { color: var(--ink); font-weight: 650; }
.hw-step-copy .ticks svg { color: var(--teal); }
.hw-step-visual { margin: 0; min-width: 0; }
.hw-step-visual > .face-fig { max-width: 480px; margin-inline: auto; }
.hw-step-visual .face-cap { max-width: 480px; margin-inline: auto; text-align: center; }
.hw-step-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.hw-step-head h2 { margin-top: 16px; }
.hw-step-head .lead { margin-top: 14px; }

.hw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; padding: 0; }

/* step 1: photo guide */
.guide-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-photo { display: grid; gap: 10px; align-content: start; margin: 0; min-width: 0; }
.guide-photo .face-fig { --r-xl: 20px; }
.guide-photo figcaption { display: grid; gap: 2px; padding-inline: 2px; }
.guide-photo figcaption b { color: var(--ink); font-size: .95rem; letter-spacing: -.01em; }
.guide-photo figcaption span { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.guide-photo .face-fig .face-pill { font-size: .6rem; padding: 4px 8px; gap: 5px; }
.avoid { margin-top: 18px; padding: 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); }
.avoid > .label { display: block; margin-bottom: 14px; }
.avoid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.avoid li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.avoid-x { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--muted); }
.avoid-x .icon { width: 14px; height: 14px; }
.avoid b { display: block; color: var(--ink); font-size: .92rem; letter-spacing: -.01em; }
.avoid li span:not(.avoid-x) { display: block; color: var(--muted); font-size: .84rem; line-height: 1.45; }
@media (min-width: 640px) {
  .guide-photos { gap: 16px; }
  .avoid ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
}

/* legends under a visual */
.hw-legend { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; color: var(--ink-2); }
.hw-legend li { display: flex; align-items: center; gap: 12px; }
.lg-line, .lg-ref, .lg-guide { flex: none; width: 28px; height: 0; border-top: 2px solid var(--teal); border-radius: 2px; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px var(--line); }
.lg-guide { border-top: 1.5px solid var(--muted); box-shadow: none; }
.lg-ref { border-top: 1.5px dashed var(--muted); box-shadow: none; }
.lg-dot { flex: none; width: 12px; height: 12px; margin-inline: 8px; border-radius: 50%; background: var(--teal); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line), 0 0 8px rgba(0, 162, 173, .5); }
.lg-dot.is-est { background: #fff; border: 1.5px dashed var(--muted); box-shadow: none; }

/* step 5: three real measurements, then the nine areas */
.mx-examples { display: grid; gap: 28px; margin-bottom: clamp(40px, 6vw, 64px); }
.mx-examples .face-card { grid-template-rows: auto 1fr; }
.mx-examples .face-fig { aspect-ratio: 1 / 1; }
@media (min-width: 760px) { .mx-examples { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .mx-examples .face-fig { aspect-ratio: 4 / 5; } }
.mx-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .mx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .mx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.mx-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-xs); min-width: 0; }
.mx-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.mx-num { font-weight: 700; font-size: .78rem; color: var(--teal-700); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.mx-card p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.mx-ex { list-style: none; margin: auto 0 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mx-ex li { padding: 5px 9px; border-radius: var(--r-pill); background: var(--mist-2); border: 1px solid var(--line-2); font-size: .76rem; font-weight: 600; color: var(--ink-2); }
.mx-note { margin-top: 24px; text-align: center; font-size: .92rem; }

/* step 6: scoring */
.score-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; justify-items: stretch; }
.sf-step { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-soft); min-width: 0; }
.sf-name { font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.sf-range { width: 100%; }
.sf-score { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.9rem; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.sf-score small { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: -6px; }
.sf-arrow { display: grid; place-items: center; color: var(--teal); }
.sf-arrow .icon { transform: rotate(90deg); }
@media (min-width: 860px) {
  .score-flow { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1.2fr) 36px minmax(0, 1fr); align-items: stretch; }
  .sf-arrow .icon { transform: none; }
}
/* score-word legend: chip column, then what earns it. 1 column on phones, 2 on tablets, 3 x 2 on desktop. */
.label-scale { display: grid; grid-template-columns: minmax(0, max-content); justify-content: center; gap: 10px 36px; margin: 28px 0 0; padding: 0; list-style: none; }
.label-scale li { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); align-items: center; gap: 8px; font-size: .86rem; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums; }
.label-scale .rating { justify-self: start; }
@media (min-width: 640px) { .label-scale { grid-template-columns: repeat(2, minmax(0, max-content)); } }
@media (min-width: 1040px) { .label-scale { grid-template-columns: repeat(3, minmax(0, max-content)); } }

.pillar-flow { margin-top: clamp(40px, 6vw, 64px); }
.pillar-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .pillar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.pillar-card { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-xs); }
.pillar-card h3 { font-size: 1.08rem; }
.pillar-card p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.pillar-src { font: 700 var(--fs-label)/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); font-variant-numeric: tabular-nums; }
.pillar-join { position: relative; height: 36px; }
.pillar-join::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; background: linear-gradient(var(--line-strong), var(--teal)); }
.pillar-join::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(0, 162, 173, .15); }
.overall-card { display: grid; gap: 8px; max-width: 640px; margin-inline: auto; padding: 24px; text-align: center; justify-items: center; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--teal-100); box-shadow: var(--shadow-card); }
.overall-card p { color: var(--muted); max-width: 54ch; }
.heritage-note { display: flex; gap: 16px; align-items: flex-start; max-width: 860px; margin: clamp(36px, 5vw, 56px) auto 0; padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); border-left: 3px solid var(--teal); }
.heritage-note h3 { font-size: 1.05rem; }
.heritage-note p { margin-top: 6px; color: var(--ink-2); font-size: .94rem; line-height: 1.6; }

/* step 7: limits */
.limit-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .limit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .limit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.limit-card { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-xs); }
.limit-card .icon-tile { margin-bottom: 6px; }
.limit-card h3 { font-size: 1.05rem; }
.limit-card p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.limit-card.is-key { background: var(--teal-50); border-color: var(--teal-100); }
.limit-card.is-key .icon-tile { background: #fff; }
.limit-card.is-key p { color: var(--ink-2); }

/* step 8: privacy */
.privacy-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; } }
@media (min-width: 1040px) { .privacy-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.privacy-links { margin-top: 32px; font-size: .94rem; color: var(--muted); }

/* ================================================================ FAQ */
.faq-search { position: relative; max-width: 560px; margin: 28px auto 0; }
.faq-search .input { min-height: 56px; padding-left: 50px; border-radius: var(--r-pill); box-shadow: var(--shadow-soft); }
.faq-search-ic { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--muted); pointer-events: none; }
.faq-search .input::-webkit-search-cancel-button { cursor: pointer; }
.faq-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.faq-filter {
  min-height: 38px; padding: 0 16px; border-radius: var(--r-pill); cursor: pointer;
  background: rgba(255, 255, 255, .85); border: 1px solid rgba(14, 35, 41, .1); color: var(--ink-2);
  font: 600 .86rem/1 var(--font-sans); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.faq-filter:hover { border-color: var(--teal); color: var(--ink); }
.faq-filter[aria-pressed="true"] { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.faq-body { padding-block: clamp(40px, 6vw, 72px); }
.faq-col { max-width: calc(820px + 2 * var(--gutter)); }
.faq-group + .faq-group { margin-top: clamp(36px, 5vw, 52px); }
.faq-group-title { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 10px; scroll-margin-top: calc(var(--header-h) + 20px); }
.faq-count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: var(--r-pill); background: var(--teal-50); color: var(--teal-700); font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.faq-items { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 64px; padding: 16px 4px; border-radius: var(--r-sm); color: var(--ink);
  font-weight: 650; font-size: 1.02rem; line-height: 1.4; letter-spacing: -.01em; transition: color var(--t-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary:hover { color: var(--teal-800); }
.faq-toggle { flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--mist); color: var(--ink-2); transition: transform var(--t-base) var(--ease-out), background var(--t-base), color var(--t-base); }
.faq-item[open] .faq-toggle { transform: rotate(180deg); background: var(--teal-50); color: var(--teal-700); }
.faq-a { padding: 0 52px 22px 4px; color: var(--ink-2); max-width: 70ch; line-height: 1.65; }
.faq-a p + p { margin-top: 10px; }
@media (max-width: 559px) { .faq-a { padding-right: 4px; } .faq-item summary { font-size: .98rem; } }
.faq-empty { padding: 32px 4px; text-align: center; }
.faq-empty .muted { margin-top: 6px; }
.faq-contact-wrap { padding-bottom: var(--section-y); }
.faq-contact { display: grid; gap: 22px; padding: clamp(22px, 4vw, 36px); border-radius: var(--r-xl); background: var(--mist); border: 1px solid var(--line-2); }
.faq-contact p { margin-top: 8px; color: var(--ink-2); max-width: 52ch; }
.faq-contact p a { color: var(--teal-700); font-weight: 600; text-decoration-color: rgba(0, 162, 173, .4); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.faq-contact-cta { display: grid; justify-items: center; }
.faq-contact-cta .guarantee-line { margin-top: 10px; }
@media (min-width: 820px) {
  .faq-contact { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; }
}
@media (max-width: 819px) { .faq-contact-cta, .faq-contact-cta .btn { width: 100%; } }

/* ================================================================ legal */
.legal-hero { padding-block: clamp(36px, 6vw, 72px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line-2); }
.legal-hero h1 { margin-top: 16px; }
.legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.legal-wrap { display: grid; gap: 28px; padding-block: clamp(32px, 5vw, 64px) var(--section-y); }
@media (min-width: 980px) { .legal-wrap { grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; } }
.legal-side { display: grid; gap: 16px; align-content: start; }
@media (min-width: 980px) { .legal-side { position: sticky; top: calc(var(--header-h) + 24px); } }
.legal-nav, .legal-help { padding: 18px; border-radius: var(--r-lg); background: var(--mist-2); border: 1px solid var(--line-2); }
.legal-nav-title { display: block; margin: 0 0 10px; font: 750 var(--fs-label)/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-nav a { display: block; padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.legal-nav a:hover { color: var(--ink); background: #fff; }
.legal-nav a[aria-current="page"] { background: #fff; color: var(--teal-700); box-shadow: var(--shadow-xs); }
.legal-help p:not(.legal-nav-title) { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.legal-help a { color: var(--teal-700); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 979px) {
  .legal-side { grid-template-columns: minmax(0, 1fr); }
  .legal-help { display: none; }
  .legal-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .legal-nav a { padding: 8px 12px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: .84rem; }
  .legal-nav a[aria-current="page"] { border-color: var(--teal); }
}

.legal-prose { min-width: 0; max-width: 72ch; color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
.legal-prose section { scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-prose section + section { margin-top: 36px; }
.legal-prose h2 { font-size: clamp(1.25rem, 2.2vw, 1.45rem); letter-spacing: -.02em; line-height: 1.25; margin-bottom: 12px; }
.legal-prose p + p, .legal-prose p + ul, .legal-prose ul + p, .legal-prose p + ol, .legal-prose ol + p, .legal-prose .legal-table-wrap + p, .legal-prose p + .legal-table-wrap { margin-top: 12px; }
.legal-prose ul, .legal-prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.legal-prose li::marker { color: var(--teal); }
.legal-prose strong { color: var(--ink); font-weight: 650; }
.legal-prose a { color: var(--teal-700); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(0, 162, 173, .4); text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-prose a:hover { color: var(--teal-800); text-decoration-color: currentColor; }
.legal-prose code { font: 600 .9em var(--font-sans); background: var(--mist); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.legal-prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 44px 0 20px; }
.legal-foot { font-size: .9rem; }
.legal-fill { padding: 1px 6px; border-radius: 6px; background: var(--mist); border: 1px dashed var(--line-strong); color: var(--ink); font-weight: 600; font-size: .94em; }

.legal-summary { margin-bottom: 32px; padding: clamp(18px, 3vw, 26px); border-radius: var(--r-lg); background: var(--teal-50); border: 1px solid var(--teal-100); }
.legal-summary-title { font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: 12px; }
.legal-summary ul { gap: 8px; }
.legal-summary li { color: var(--ink); }
.legal-summary-big { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 650; line-height: 1.4; color: var(--ink); letter-spacing: -.015em; }
.legal-summary-big + p { margin-top: 10px; }
.legal-summary-strong { background: #fff; border-color: var(--teal-100); border-left: 3px solid var(--teal); box-shadow: var(--shadow-soft); }

.legal-toc { margin-bottom: 36px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: #fff; }
.legal-toc ol { padding-left: 20px; gap: 4px; columns: 1; }
.legal-toc li { padding-left: 2px; font-size: .92rem; }
.legal-toc li::marker { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .86rem; }
.legal-toc a { font-weight: 600; text-decoration: none; color: var(--ink-2); }
.legal-toc a:hover { color: var(--teal-700); text-decoration: underline; }
@media (min-width: 720px) { .legal-toc ol { display: block; columns: 2; column-gap: 32px; } .legal-toc li { margin-bottom: 4px; break-inside: avoid; } }

.legal-steps { counter-reset: lstep; list-style: none; padding-left: 0 !important; gap: 12px !important; margin-top: 14px !important; }
.legal-steps li { counter-increment: lstep; position: relative; padding: 14px 16px 14px 54px; border-radius: var(--r-md); background: var(--mist-2); border: 1px solid var(--line-2); }
.legal-steps li::before { content: counter(lstep); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-700); color: #fff; font-weight: 700; font-size: .82rem; font-variant-numeric: tabular-nums; }

.legal-table-wrap { margin-top: 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
.legal-table th { text-align: left; padding: 12px 14px; background: var(--mist-2); color: var(--ink); font-weight: 700; font-size: .82rem; letter-spacing: .01em; }
.legal-table td { padding: 12px 14px; border-top: 1px solid var(--line-2); vertical-align: top; }
.legal-table td:first-child { color: var(--ink); font-weight: 600; }
@media (max-width: 639px) {
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr + tr { border-top: 1px solid var(--line); }
  .legal-table td { border-top: 0; padding: 4px 14px; }
  .legal-table td:first-child { padding-top: 14px; }
  .legal-table td:last-child { padding-bottom: 14px; }
  .legal-table td:not(:first-child)::before { content: attr(data-label); display: block; font: 750 .62rem/1.4 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
}

/* ================================================================ 404 and 500 */
.nf { padding-block: clamp(48px, 8vw, 104px); }
.nf-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .nf-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.nf-copy h1 { margin-top: 18px; }
.nf-copy .lead { margin-top: 16px; }
.nf-links { padding: 8px; }
.nf-links .label { display: block; padding: 14px 12px 10px; }
.nf-links ul { list-style: none; margin: 0; padding: 0; }
.nf-links a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-md); text-decoration: none; color: var(--ink); transition: background var(--t-fast); }
.nf-links a:hover { background: var(--mist-2); }
.nf-links li + li a { box-shadow: 0 -1px 0 var(--line-2); }
.nf-links li + li a:hover { box-shadow: none; }
.nf-links b { display: block; font-weight: 650; font-size: .96rem; letter-spacing: -.01em; }
.nf-links small { display: block; margin-top: 2px; color: var(--muted); font-size: .84rem; }
.nf-links .nf-arrow { margin-left: auto; width: 16px; height: 16px; color: var(--muted); transition: transform var(--t-fast), color var(--t-fast); }
.nf-links a:hover .nf-arrow { transform: translateX(2px); color: var(--teal-700); }
