/* Newfound Digital Store — site.css
   Layout: a compliance-forward storefront. A seller strip sits above every page, the header stays quiet,
   each product page is built around one price block, and the footer carries the full legal notice. */

:root {
  color-scheme: light;
  --bg: #F3F6F6;
  --surface: #FFFFFF;
  --surface-2: #E7EEEE;
  --fg: #10232B;
  --muted: #566971;
  --line: #D3DCDE;
  --accent: #0E6F73;
  --accent-ink: #0A5558;
  --accent-soft: #DBEDED;
  --on-accent: #FFFFFF;
  --good: #2E7D4F;
  --warn: #8F5E12;
  --warn-soft: #FBEFD6;
  --critical: #B3261E;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 6px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E181B; --surface: #152227; --surface-2: #1B2B31; --fg: #E6EDEF; --muted: #9DAEB5; --line: #283B41;
    --accent: #63C6CA; --accent-ink: #8FDADD; --accent-soft: #163538; --on-accent: #06191B;
    --good: #6CC08B; --warn: #E3AD5E; --warn-soft: #3A2E15; --critical: #F28B82;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E181B; --surface: #152227; --surface-2: #1B2B31; --fg: #E6EDEF; --muted: #9DAEB5; --line: #283B41;
  --accent: #63C6CA; --accent-ink: #8FDADD; --accent-soft: #163538; --on-accent: #06191B;
  --good: #6CC08B; --warn: #E3AD5E; --warn-soft: #3A2E15; --critical: #F28B82;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.55 var(--body);
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.eyebrow { font: 500 .75rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.lede { font-size: 1.125rem; max-width: 60ch; }
.fineprint { font-size: .875rem; color: var(--muted); max-width: 64ch; }
.fill { background: var(--warn-soft); border-bottom: 1px dashed var(--warn); padding: 0 .15em; border-radius: 2px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding-block: 3rem; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
main { min-height: 50vh; }

/* ---- Chrome ---- */
.preview-banner { background: var(--warn-soft); color: var(--warn); font: 500 .8rem/1.4 var(--mono); text-align: center; padding-block: .35rem; border-bottom: 1px solid var(--line); }
.seller-strip { background: var(--fg); color: var(--bg); font: 500 .75rem/1.4 var(--mono); letter-spacing: .02em; }
.seller-strip .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; flex-wrap: wrap; }
.seller-strip a { color: inherit; }
.header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 1.25rem; padding-block: .85rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--fg); font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.brand .tld { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; margin-left: auto; }
.nav a { color: var(--fg); text-decoration: none; padding: .45rem .7rem; border-radius: var(--radius); font-weight: 500; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
.header-tools { display: flex; align-items: center; gap: .5rem; }
.pill { font: 500 .78rem/1 var(--mono); padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

.footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 3rem; }
.footer .wrap { padding-block: 2.5rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h4 { margin-bottom: .6rem; font-family: var(--body); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4rem; }
.footer-grid a { color: var(--fg); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-co p { font-size: .9rem; margin-bottom: .75rem; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; color: var(--muted); }
.footer-legal p { max-width: 90ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.schemes { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.scheme { font: 600 .7rem/1 var(--mono); letter-spacing: .04em; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 3px; color: var(--fg); background: var(--surface); }
.linklike { background: none; border: 0; padding: 0; color: var(--accent-ink); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-co { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Buttons & badges ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: var(--radius); font: 600 .95rem/1.2 var(--body); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--muted); color: var(--fg); }
.btn-danger { background: var(--surface); color: var(--critical); border-color: var(--line); }
.btn-lg { padding: .9rem 1.4rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.badge { display: inline-block; font: 500 .72rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: .3rem .5rem; border-radius: 3px; background: var(--surface-2); color: var(--muted); }
.badge-good { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-accent { background: var(--accent-soft); color: var(--accent-ink); }

/* ---- Cards & grids ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; min-width: 0; }
.card h3 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.feature-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.feature-list li { padding-left: 1.4rem; position: relative; margin-bottom: .5rem; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 0 0 1rem; }
.dl dt { color: var(--muted); font-size: .9rem; }
.dl dd { margin: 0; min-width: 0; }
@media (max-width: 480px) { .dl { grid-template-columns: 1fr; gap: .1rem 0; } .dl dd { margin-bottom: .6rem; } }

/* ---- Hero ---- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-block: 3.5rem 3rem; display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 2rem; } }
.hero h1 { margin-bottom: .75rem; }
.receipt { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; font-size: .92rem; max-width: 420px; margin-inline: auto; width: 100%; }
.receipt-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.receipt-row:last-child { border-bottom: 0; }
.receipt .descriptor { font: 600 1.05rem/1.2 var(--mono); letter-spacing: .04em; }
.receipt .total { font-weight: 600; }

/* ---- Pricing ---- */
.price { font-family: var(--display); font-weight: 700; font-size: 2rem; letter-spacing: -0.02em; line-height: 1; }
.price small { font: 500 .9rem var(--body); color: var(--muted); letter-spacing: 0; }
.plan-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); padding: 3px; background: var(--surface-2); gap: 3px; }
.plan-switch button { background: transparent; border: 0; padding: .5rem .9rem; border-radius: 4px; font: 600 .9rem var(--body); color: var(--muted); cursor: pointer; }
.plan-switch button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.price-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.price-block .renewal { font-size: .9rem; color: var(--muted); margin: .75rem 0 1.25rem; }
.product-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 1rem; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.table-wrap .btn { padding: .45rem .8rem; font-size: .85rem; }

/* ---- Destinations ---- */
.dest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dest-grid { grid-template-columns: 1fr; } }
.dest { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; text-decoration: none; color: var(--fg); }
.dest:hover { border-color: var(--accent); color: var(--fg); }
.dest .region { display: block; font-size: .8rem; color: var(--muted); }
.dest .from { font-family: var(--mono); font-size: .9rem; white-space: nowrap; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .4rem .85rem; font: 500 .85rem var(--body); cursor: pointer; color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 3.4rem; position: relative; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1.1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 .85rem/1.6rem var(--display); text-align: center; }
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---- Notices ---- */
.notice { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface); border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .95rem; margin: 0 0 1.25rem; }
.notice-warn { border-left-color: var(--warn); background: var(--warn-soft); }
.notice-good { border-left-color: var(--good); }
.notice p:last-child { margin: 0; }

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; min-width: 0; }
.field label { font-weight: 500; font-size: .95rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .65rem .8rem; min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 7rem; resize: vertical; }
.check { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .85rem; font-size: .95rem; }
.check input { margin-top: .3rem; flex: none; width: 1rem; height: 1rem; accent-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
legend { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: .9rem; padding: 0; }
.hosted-fields { border: 1px dashed var(--line); border-radius: var(--radius); padding: 1rem; background: var(--bg); }
.hosted-fields .eyebrow { margin-bottom: .5rem; }
.checkout-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .checkout-layout { grid-template-columns: 1fr; } .checkout-layout .sticky { position: static; order: -1; } }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.summary-line:last-of-type { border-bottom: 0; font-weight: 600; font-size: 1.05rem; }
.summary-line .muted { font-size: .85rem; }

/* ---- Account ---- */
.status-line { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .75rem; }
.qr { width: 132px; height: 132px; border: 1px solid var(--line); border-radius: 4px; background: repeating-conic-gradient(var(--fg) 0 25%, var(--surface) 0 50%) 0 0 / 12px 12px; opacity: .85; flex: none; }
.media { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; }

/* ---- FAQ ---- */
details { border-top: 1px solid var(--line); padding: .9rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-family: var(--mono); }
details[open] summary::after { content: "–"; }
details p { margin: .75rem 0 0; color: var(--muted); max-width: 70ch; }

/* ---- Legal prose ---- */
.legal { max-width: 74ch; }
.legal h1 { margin-bottom: .25rem; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.legal p, .legal li { font-size: .97rem; }
.legal .table-wrap { margin: 1rem 0 1.5rem; }
.legal-nav { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 2rem; }
.legal-nav a { font-size: .85rem; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .75rem; color: var(--fg); background: var(--surface); }
.legal-nav a[aria-current="page"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.page-head { padding-block: 2.5rem 1.5rem; }
.page-head h1 { margin-bottom: .35rem; }

/* ---- Modal & toast ---- */
.modal[hidden] { display: none; }
[hidden] { display: none !important; }
.modal { position: fixed; inset: 0; background: rgba(8, 20, 24, .55); display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-left, 0px)); z-index: 50; }
.modal-box { background: var(--surface); color: var(--fg); border-radius: 8px; border: 1px solid var(--line); max-width: 480px; width: 100%; padding: 1.5rem; max-height: 90vh; overflow: auto; }
.modal-box h3 { margin-top: 0; }
.toggle-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); }
.toggle-row:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.toggle-row .small { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: .7rem 1.1rem; border-radius: var(--radius); font-size: .9rem; z-index: 60; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- currency select, session pill, auth page ---- */
.pill-select { font: 500 .78rem/1 var(--mono); padding: .4rem 1.6rem .4rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23566971' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .55rem center; appearance: none; -webkit-appearance: none; cursor: pointer; width: auto; }
.session-pill { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); display: inline-flex; gap: .35rem; align-items: center; }
.session-pill .linklike { color: var(--accent-ink); text-decoration: none; font-size: .9rem; }
.auth-card { text-align: center; padding: 2.5rem 2rem; }
.auth-card h1 { margin: 1rem 0 .5rem; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); margin: 0 auto; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
