/* TheThinkPDF - "clear desk, bright workspace".
   A pale blue-grey canvas, white working surfaces, one electric blue accent.
   Shape rule: cards 18px, buttons and inputs 12px, chips fully rounded.
   Display: Lexend. Body: Figtree. Mono (keywords, file names): JetBrains Mono. */

:root {
  --bg: #ffffff;
  --bg-tint: #f5f8fd;
  --surface: #ffffff;
  --surface-2: #f9fbfe;
  --text: #121a2c;
  --muted: #56617a;
  --border: #dde4ef;
  --border-strong: #c7d2e4;
  --accent: #1f6feb;
  --accent-ink: #ffffff;
  --accent-hover: #1a5fd0;
  --accent-soft: #e7efff;
  --accent-line: #b9cdf6;
  --danger: #c93a2f;
  --success: #17804a;
  --shadow: 0 24px 48px -28px rgba(30, 62, 130, 0.35), 0 2px 6px rgba(30, 62, 130, 0.05);
  --shadow-sm: 0 8px 20px -14px rgba(30, 62, 130, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 68px;
  --font-display: 'Lexend', 'Figtree', sans-serif;
  --font-body: 'Figtree', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --hero-grad: radial-gradient(900px 480px at 85% 10%, #dfe8fb 0%, rgba(223, 232, 251, 0) 70%),
    radial-gradient(700px 420px at 5% 90%, #e8eefb 0%, rgba(232, 238, 251, 0) 70%), var(--bg);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { overflow-x: clip; } /* clip, not hidden: hidden on body breaks the sticky header */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(780px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--bg-tint); }
.section--surface { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { margin-bottom: 2.6rem; }
.section-head > p { color: var(--muted); font-size: 1.1rem; }
.section-head.center { text-align: center; }
.section-head.narrow { width: min(720px, 100%); }
.section-head.center.narrow { margin-inline: auto; }
.lede { color: var(--muted); font-size: 1.15rem; }
.label {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.label svg { width: 16px; height: 16px; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 1000; background: var(--surface); padding: 0.6rem 1rem; border-radius: var(--radius-sm); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font: 600 1rem/1 var(--font-body); white-space: nowrap;
  padding: 0.95rem 1.5rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 22px -12px rgba(31, 111, 235, 0.75); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.7rem 1.1rem; font-size: 0.95rem; }
.btn-lg { padding: 1.05rem 1.75rem; font-size: 1.05rem; }

/* ── Header / nav ─────────────────────────────────────────────────────── */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.site-header {
  direction: ltr;
  position: sticky; top: 0; z-index: 900;
  height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; }
.site-nav-desktop { display: flex; align-items: center; gap: 0.3rem; }
.site-nav-desktop a:not(.btn) {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.98rem;
  padding: 0.5rem 0.8rem; border-radius: 10px;
}
.site-nav-desktop a:not(.btn):hover { background: var(--bg-tint); }
.site-nav-desktop a.is-active { color: var(--accent); }
.site-nav-desktop .btn { margin-left: 0.6rem; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: var(--surface); }
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.site-nav { display: none; }

@media (max-width: 860px) {
  .site-nav-desktop { display: none; }
  .nav-burger { display: inline-flex; }
  .site-nav {
    display: block;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    z-index: 800;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.8rem 0 1.4rem;
    transform: translateY(-110%); visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
  }
  .site-nav .container { display: flex; flex-direction: column; }
  .site-nav a:not(.btn) { padding: 0.6rem 0; color: var(--text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--border); }
  .site-nav .btn { width: 100%; justify-content: center; margin-top: 1rem; }
  .nav-toggle:checked ~ .site-nav { transform: translateY(0); visibility: visible; }
  .nav-toggle:checked ~ .site-header .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .site-header .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .site-header .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Home hero: copy left, dropzone right ─────────────────────────────── */
.hero { background: var(--hero-grad); padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-brand { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--accent); letter-spacing: 0; margin-bottom: 1rem; }
.hero h1 .hero-title { display: block; }
.hero-copy > p { color: var(--muted); font-size: 1.2rem; }
.hero-points { list-style: none; padding: 1.1rem 1.3rem; margin: 1.8rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1.4rem; background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--border); border-radius: var(--radius); }
.hero-points li { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 500; font-size: 0.98rem; }
.hero-points svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.hero-links { margin-top: 1.4rem; }
.hero-links a { font-weight: 600; }

.dropzone {
  display: block; text-decoration: none; color: var(--text);
  background: var(--surface);
  border: 2px dashed var(--accent-line);
  border-radius: 24px;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.dropzone:hover { border-color: var(--accent); transform: translateY(-3px); }
.dz-icon, .dz-title, .dz-sub { display: block; }
.dz-icon { width: 76px; height: 76px; margin: 0 auto 1.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.dz-icon svg { width: 36px; height: 36px; }
.dz-title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 0.4rem; }
.dz-sub { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.4rem; }
.dropzone .btn { width: min(100%, 320px); }
.dz-files { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.dz-files span { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.75rem; }
html.js .dz-files span { opacity: 0; transform: translateY(6px); animation: chip-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: calc(0.35s + var(--i, 0) * 70ms); }
@keyframes chip-in { to { opacity: 1; transform: none; } }

/* ── Showcase: asymmetric bento of product views ──────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(470px, auto); gap: 1.25rem; }
.shot { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.shot--wide { grid-column: span 2; }
.shot figure { margin: 0; background: var(--bg-tint); flex: 1; min-height: 0; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.shot:not(.shot--wide) img { object-position: top center; }
.shot:hover img { transform: scale(1.02); }
.shot-body { padding: 1.3rem 1.4rem 1.4rem; }
.shot-body h3 { margin-bottom: 0.35rem; }
.shot-body p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ── Why us: headline column + checklist ──────────────────────────────── */
.why-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.why-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin: 0; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.2rem; }
.why-list li { padding-top: 1.1rem; border-top: 2px solid var(--border); }
.why-list li:nth-child(1), .why-list li:nth-child(2) { border-top-color: var(--accent); }
.why-list h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.why-list p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ── Features: 2+1 / 1+2 / 1+2 rhythm ─────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem; }
.feature--wide { grid-column: span 2; }
.feature--accent { background: var(--accent-soft); border-color: var(--accent-line); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 1.1rem; }
.feature--accent .feature-icon { background: var(--accent); color: var(--accent-ink); }
.feature-icon svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); margin: 0; }

/* ── Tool shelf: pill cloud ───────────────────────────────────────────── */
.tool-shelf { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.tool-shelf span { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.98rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0.6rem 1.05rem; }
.tool-shelf svg { width: 17px; height: 17px; color: var(--accent); }

/* ── FAQ: aside + accordion ───────────────────────────────────────────── */
.faq-layout { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-aside h2 { margin-bottom: 0.8rem; }
.faq-aside > p { color: var(--muted); }
.faq-help { margin-top: 1.6rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.faq-help h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.faq-help p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0.9rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color 0.2s ease; }
.faq-item[open] { border-color: var(--accent-line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 600; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft) no-repeat center / 12px 12px; background-image: linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent)); background-size: 12px 2px, 2px 12px; transition: transform 0.25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ── Closing CTA band ─────────────────────────────────────────────────── */
.cta-band { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: clamp(2.2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; box-shadow: var(--shadow-sm); }
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band p { color: var(--muted); margin: 0; }

/* ── Inner page hero ──────────────────────────────────────────────────── */
.page-hero { background: var(--hero-grad); padding: clamp(3rem, 6vw, 4.8rem) 0 clamp(2.4rem, 5vw, 3.6rem); border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--muted); font-size: 1.15rem; margin: 0; }
.page-hero-copy { width: min(760px, 100%); }
.legals-hero { padding-bottom: 2rem; }

/* ── About ────────────────────────────────────────────────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.value { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; }
.value:nth-child(2) { transform: translateY(1.5rem); }
.value-tag { align-self: flex-start; font-size: 0.82rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 0.25rem 0.75rem; margin-bottom: 1.1rem; }
.value p { color: var(--muted); margin: 0; }
.vision { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.vision-copy p { color: var(--muted); }
.vision-figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem 1.6rem 1.6rem; }
.step-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 1rem; }
.step-icon svg { width: 22px; height: 22px; }
.step p { color: var(--muted); margin: 0; }
.steps--connected .step:not(:last-child)::after { content: ''; position: absolute; top: 2.75rem; right: -1.25rem; width: 1.25rem; border-top: 2px dashed var(--accent-line); }

.pricing-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.pricing-grid { display: grid; gap: 1.25rem; }
.pricing-card { background: var(--surface); border: 2px solid var(--accent); border-radius: 24px; padding: 2rem; box-shadow: var(--shadow); }
.plan-label { display: inline-block; font-size: 0.82rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 0.25rem 0.75rem; margin-bottom: 1rem; }
.pricing-card h3 { font-size: 1.35rem; margin-bottom: 1.2rem; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.price-val { font-family: var(--font-display); font-size: 2.8rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin: 0; }
.price-freq { color: var(--muted); font-weight: 600; font-size: 1.05rem; margin: 0; }
.price-trial { font-size: 0.97rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.85rem 1rem; margin: 1rem 0 1.4rem; }
.pricing-card .btn { width: 100%; }
.plan-includes { list-style: none; padding: 1.4rem 0 0; margin: 1.5rem 0 0; border-top: 1px solid var(--border); display: grid; gap: 0.6rem; }
.plan-includes li { display: flex; gap: 0.55rem; font-size: 0.97rem; }
.plan-includes svg { flex: none; width: 19px; height: 19px; color: var(--accent); margin-top: 3px; }
.pricing-note { color: var(--muted); font-size: 0.95rem; margin-top: 1.2rem; }

/* ── Unsubscribe / refund ─────────────────────────────────────────────── */
.optout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; align-items: stretch; }
.optout-box { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.optout-line { font-size: 1.15rem; margin: 0 0 1.4rem; }
.optout-channel { display: inline-block; font-family: var(--font-mono); font-weight: 500; font-size: 1.02rem; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 10px; padding: 0.25rem 0.6rem; text-decoration: none; word-break: break-all; }
.optout-notes { display: grid; gap: 0.9rem; list-style: none; padding: 0; margin: 0; }
.optout-notes li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.15rem; }
.optout-notes strong { display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: 0.2rem; }
.optout-notes span { color: var(--muted); font-size: 0.96rem; }
.optout-flow { margin-top: 1.25rem; }
.refund-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; counter-reset: rf; }
.refund-grid li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.15rem 1.2rem 1.15rem 3.3rem; position: relative; color: var(--text); font-size: 0.98rem; counter-increment: rf; }
.refund-grid li::before { content: counter(rf); position: absolute; left: 1.1rem; top: 1.05rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font: 600 0.8rem var(--font-display); color: var(--accent); background: var(--accent-soft); }

/* ── Contact ──────────────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.care-block h2 { font-size: 1.7rem; }
.care-block > p { color: var(--muted); }
.care-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; margin-top: 1rem; }
.care-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.care-card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.4rem; }
.care-email a { font-family: var(--font-mono); font-size: 1rem; font-weight: 500; word-break: break-all; }
.contact-form, .form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.3rem); box-shadow: var(--shadow-sm); }
.contact-form > p { color: var(--muted); }
.form-card.narrow { width: min(520px, 100%); margin-inline: auto; }

/* Form CSS (pages/contact.md) */
.form-group { margin-bottom: 1.1rem; }
.contact-form h3, .form-card h3 { margin-bottom: 1.5rem; }
.contact-form h3 + p { margin-top: -1rem; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.signin-card button, .form-card button { margin-top: 0.5rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.form-group input, .form-group textarea {
  width: 100%; font: 500 1rem var(--font-body); color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 0.85rem 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group textarea { resize: vertical; min-height: 150px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.error-msg, .errorMsg { display: none; color: var(--danger); font-size: 0.85rem; font-weight: 500; margin-top: 0.35rem; }
.form-success, .successMsg { display: none; color: var(--success); font-weight: 600; margin-top: 1rem; }
.form-disclaimer { color: var(--muted); font-size: 0.85rem; margin-top: 1rem; }

/* ── 404 ──────────────────────────────────────────────────────────────── */
.not-found { background: var(--hero-grad); padding: clamp(4rem, 10vw, 8rem) 0; text-align: center; min-height: 60dvh; }
.big-num { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 9rem); font-weight: 600; letter-spacing: -0.05em; color: var(--accent); line-height: 1; margin-bottom: 1rem; }
.not-found p { color: var(--muted); }

/* ── Legal Pages CSS (pages/legal.md) ─────────────────────────────────── */
.legals-wrap { padding: 3.5rem 0; }
.legals { padding-top: 1rem; padding-bottom: 5rem; }
.legals .container { width: min(840px, 92vw); margin-inline: auto; }
.legals h1 { display: none; }
.legals h6 {
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); margin: 2rem 0 0.5rem;
  font-family: var(--font-display);
}
.legals p { margin-bottom: 0.85rem; line-height: 1.75; }
.legals ul { margin: 0.5rem 0 1rem; padding-inline-start: 1.2rem; }
.legals li { margin-bottom: 0.4rem; line-height: 1.7; }
.legals a { word-break: break-word; }
.legals table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.legals th, .legals td { border: 1px solid var(--border); padding: 0.6rem; text-align: left; vertical-align: top; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 4rem 0 2rem; font-size: 0.97rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.8rem; }
.footer-brand img { width: 30px; height: 30px; }
.site-footer p { color: var(--muted); margin-bottom: 0.5rem; }
.footer-entity { margin-top: 1.2rem; }
.site-footer h4 { font-family: var(--font-display); font-size: 0.98rem; margin-bottom: 0.9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-links a, .site-footer p a { color: var(--text); text-decoration: none; }
.footer-links a:hover, .site-footer p a:hover { color: var(--accent); }
.lang-switcher { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.lang-switcher a { font-weight: 600; font-size: 0.85rem; text-decoration: none; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.75rem; }
.lang-switcher a.is-current { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.footer-bottom { margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }

/* ── Reveal (hidden only under html.js) ───────────────────────────────── */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .dz-files span { opacity: 1; transform: none; transition: none; animation: none; }
  .dropzone, .shot img, .btn { transition: none; }
  .dropzone:hover, .shot:hover img { transform: none; }
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-grid, .why-grid, .faq-layout, .vision, .pricing-wrap, .contact-layout, .optout, .cta-band { grid-template-columns: 1fr; }
  .why-grid .section-head { position: static; }
  .bento, .features-grid, .values-grid, .steps, .refund-grid { grid-template-columns: 1fr 1fr; }
  .shot--wide, .feature--wide { grid-column: 1 / -1; }
  .value:nth-child(2) { transform: none; }
  .steps--connected .step::after { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container, .container-narrow { width: calc(100% - 2rem); }
  .bento, .features-grid, .values-grid, .steps, .refund-grid, .why-list, .hero-points { grid-template-columns: 1fr; }
  .bento { grid-auto-rows: auto; }
  .shot figure { flex: none; aspect-ratio: 4 / 3; }
  .footer-top { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
  .cta-band { text-align: left; }
}
