/* Form347: shared styles for the landing page, the app and legal pages. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('/fonts/manrope-latin.woff2') format('woff2'); }

:root {
  --ink: #14223b;
  --ink-2: #3b4a63;
  --muted: #5d6b80;
  --paper: #fbf8f3;
  --card: #ffffff;
  --line: #e6dfd3;
  --line-2: #d7cdbd;
  --accent: #b8501b;
  --accent-ink: #ffffff;
  --accent-hover: #9c4113;
  --accent-soft: #fbe5d4;
  --form: #f6c9a7;
  --ok: #17704a;
  --ok-soft: #e1f3e9;
  --warn: #8a5300;
  --warn-soft: #fdf0d9;
  --err: #b42318;
  --err-soft: #fde5e2;
  --focus: 0 0 0 3px rgba(184, 80, 27, 0.35);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 34, 59, 0.06), 0 8px 24px rgba(20, 34, 59, 0.06);
  --font: 'Inter', 'Noto Sans', sans-serif;
  --display: 'Manrope', 'Inter', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #eef1f6; --ink-2: #cbd3df; --muted: #9aa6b8; --paper: #10161f; --card: #171f2b; --line: #263142; --line-2: #33405a;
    --accent: #f08a4b; --accent-ink: #1b0f06; --accent-hover: #ff9f66; --accent-soft: #3a2416; --form: #5a3a25;
    --ok: #5fd39a; --ok-soft: #12352a; --warn: #f2b955; --warn-soft: #3a2c12; --err: #ff8a7d; --err-soft: #3d1a17; color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --ink: #eef1f6; --ink-2: #cbd3df; --muted: #9aa6b8; --paper: #10161f; --card: #171f2b; --line: #263142; --line-2: #33405a;
  --accent: #f08a4b; --accent-ink: #1b0f06; --accent-hover: #ff9f66; --accent-soft: #3a2416; --form: #5a3a25;
  --ok: #5fd39a; --ok-soft: #12352a; --warn: #f2b955; --warn-soft: #3a2c12; --err: #ff8a7d; --err-soft: #3d1a17; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--display); line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* header + footer */
.top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.2rem/1 var(--display); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span b { color: var(--accent); }
.nav { display: flex; gap: 18px; align-items: center; font-size: 0.95rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--accent); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }
.foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 32px 0 48px; font-size: 0.9rem; color: var(--muted); }
.foot .wrap { display: grid; gap: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--ink-2); }

/* buttons */
.btn { --b: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--b); background: var(--b); color: var(--accent-ink); font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* landing */
.hero { padding: 56px 0 24px; }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.hero .grid > * { min-width: 0; }
figure { margin: 0; }
.eyebrow { max-width: 100%; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 10px 0 0; list-style: none; font-size: 0.92rem; color: var(--ink-2); }
.trust li::before { content: '\2713'; color: var(--ok); font-weight: 800; margin-right: 6px; }
.shot { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.shot figcaption { padding: 10px 14px; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); }
section.band { padding: 56px 0; }
section.band.alt { background: var(--card); border-block: 1px solid var(--line); }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cols-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .cols-3, .cols-2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 2px; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 800 0.95rem/1 var(--display); margin-bottom: 10px; }
.facts { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.facts th, .facts td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { background: color-mix(in srgb, var(--form) 45%, var(--card)); font-weight: 700; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.price { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } }
.price .card.best { border-color: var(--accent); box-shadow: var(--shadow); }
.price .amount { font: 800 2.2rem/1 var(--display); margin: 8px 0 4px; }
.price ul { padding-left: 1.1em; margin: 12px 0 0; color: var(--ink-2); }
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: '+'; color: var(--accent); font-weight: 800; }
details.faq[open] summary::after { content: '\2212'; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); }
.src { font-size: 0.82rem; color: var(--muted); }
.src a { color: var(--muted); }
.note { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 8px; color: var(--ink); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }

/* gallery */
.gallery { position: relative; }
.gallery .stage { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); aspect-ratio: 16 / 10.4; }
.gallery .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s ease; display: flex; flex-direction: column; }
.gallery .slide.on { opacity: 1; z-index: 1; }
.gallery .slide button { all: unset; cursor: zoom-in; flex: 1; min-height: 0; display: block; }
.gallery .slide img { width: 100%; height: 100%; object-fit: contain; object-position: top center; background: var(--card); }
.gallery .cap { padding: 8px 14px; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--card); }
.gallery .arrow { position: absolute; top: 42%; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow); }
.gallery .arrow.prev { left: 10px; }
.gallery .arrow.next { right: 10px; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery .thumbs button { flex: 0 0 auto; width: 86px; height: 56px; padding: 0; border-radius: 8px; border: 2px solid transparent; overflow: hidden; background: var(--card); cursor: pointer; opacity: 0.7; }
.gallery .thumbs button.on { border-color: var(--accent); opacity: 1; }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 12, 20, 0.88); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.on { display: flex; }
.lightbox img { max-width: min(1400px, 100%); max-height: 88vh; border-radius: 10px; background: #fff; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #14223b; font-size: 1.3rem; cursor: pointer; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; }
.lightbox .lb-prev { left: 16px; right: auto; }
.lightbox .lb-next { right: 16px; }
.nav a.btn, .nav a.btn:hover { color: var(--accent-ink); }
/* Hero: copy first, then the gallery at full width so the real form stays readable (rule 55: text >= 14 px). */
.hero .grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.hero .grid > div:first-child { max-width: 860px; }
.hero h1 { max-width: 20ch; }
