/* Review Scout static site — no frameworks, no CDN, local Pretendard only. */

@font-face {
  font-family: "Pretendard";
  src: url("assets/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f8f5ee;
  --paper-deep: #f1ecdf;
  --ink: #132534;
  --ink-soft: #46586a;
  --amber: #ed8b00;
  --amber-soft: rgba(237, 139, 0, 0.12);
  --line: #ddd5c2;
  --card: #fffdf7;
  --radius: 10px;
  --font: "Pretendard", -apple-system, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Landing anchors must not hide section tops behind the sticky header. */
#features, #preview, #get-started, #contact { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 64px);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a5b00;
}

.accent { color: #b96600; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
/* Intrinsic min-width must stay below 320px viewports (no overflow hiding). */
.site-header, .header-inner, .hero, .hero-copy,
.section, .demo-frame-shell, .demo-frame-bar { min-width: 0; }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  padding: 8px 0;
}
.brand img { border-radius: 8px; }

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pill-preview {
  background: var(--amber-soft);
  color: #9a5b00;
  border: 1px solid rgba(237, 139, 0, 0.35);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}
.site-nav > * { min-width: 0; }
.desktop-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}
.mobile-nav-menu { display: none; }
.site-nav a {
  width: auto;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 12px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--ink); background: var(--paper-deep); }
.site-nav .nav-contact { color: #9a5b00; }
.site-nav .nav-contact:hover { color: #b56a00; }

/* ---------- Language switcher (native details/summary, works without JS) ---------- */

.lang-switch { position: relative; }
.lang-switch > summary {
  width: auto;
  min-width: 0;
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 12px 12px;
  min-height: 44px;
  border-radius: 8px;
  white-space: nowrap;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::after {
  content: "";
  width: 0; height: 0;
  border-inline: 4px solid transparent;
  border-top: 5px solid currentColor;
  flex: none;
}
.lang-switch > summary:hover { color: var(--ink); background: var(--paper-deep); }
.lang-switch-label { display: none; } /* hidden localized label ("Language:") inside summary */
.lang-switch-current { color: var(--ink); }
.lang-menu {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: auto;
  z-index: 60;
  min-width: min(170px, calc(100vw - 40px));
  max-width: min(260px, calc(100vw - 40px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px -28px rgba(19, 37, 52, 0.35);
}
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 8px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.lang-menu a:hover { color: var(--ink); background: var(--paper-deep); }
.lang-menu a[aria-current="true"] { color: #9a5b00; background: var(--amber-soft); }
.lang-menu a[aria-current="true"]::after {
  content: "✓";
  font-weight: 800;
}

/* ---------- Hero ---------- */

.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }

/* Text-led hero: fluid width with readable line length cap for prose. */
.hero-text .hero-copy {
  width: 100%;
}

.hero-headline {
  margin: 0 0 22px;
  font-size: clamp(32px, min(6.4vw, 7.6vh + 8px), 80px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.lede {
  margin: 0 0 14px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 65ch;
}
.hero-note {
  margin: 0 0 30px;
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 65ch;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #d67d00; color: var(--ink); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink); background: var(--card); }

.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.trust-strip li { display: flex; align-items: center; gap: 10px; }
.trust-strip li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--paper-deep); border-block: 1px solid var(--line); }

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-lede {
  margin: 0 0 clamp(36px, 5vw, 60px);
  max-width: 65ch;
  font-size: 18px;
  color: var(--ink-soft);
}

/* Feature list — responsive grid layout supporting 2 columns on wide viewports */

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  column-gap: clamp(24px, 4vw, 56px);
}
.feature-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 36px);
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}
.feature-num {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.feature-item h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.feature-item p { margin: 0; color: var(--ink-soft); }

.translation-note {
  max-width: 65ch;
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--amber);
  font-size: 14.5px;
  color: var(--ink-soft);
}
.translation-note + .translation-note { margin-top: 14px; }

/* ---------- Real workspace demo frame ---------- */

.demo-frame-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px -28px rgba(19, 37, 52, 0.35);
  overflow: hidden;
}
.demo-frame-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 16px;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}
.demo-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid rgba(237, 139, 0, 0.35);
  color: #9a5b00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}
.demo-open-link { min-height: 44px; font-size: 14px; padding: 8px 18px; }
/* Viewport-aware usable height (no fixed 850/950): frame plus its bar and
 * footnote fit within the visible window so dialog controls stay reachable
 * by normal clicking. site.js refines this with measured chrome heights. */
.demo-frame {
  display: block;
  width: 100%;
  min-width: 0;
  height: clamp(560px, calc(100vh - 220px), 950px);
  border: 0;
  background: #fafbfc;
}
.demo-footnote {
  margin: 0;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

/* ---------- Contact ---------- */

.contact-card {
  max-width: 760px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
}
.contact-card h2 { margin-top: 0; }
.contact-line {
  font-size: 18px;
  font-weight: 700;
  margin: 22px 0 10px;
}
.contact-label { color: var(--ink-soft); font-weight: 600; }
.fine-print { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  padding: clamp(20px, 3vh, 28px) 0;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-brand-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  min-width: 0;
}
.footer-brand {
  margin: 0;
  font-weight: 800;
  font-size: 16px;
}
.footer-status {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  max-width: 65ch;
}
.footer-copy-creator {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  min-width: 0;
}
.footer-nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-nav a:hover {
  color: var(--amber);
}
.footer-contact-block {
  min-width: 0;
}
.footer-contact {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- Progressive reveal ---------- */

.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { flex-wrap: nowrap; padding-block: 10px; gap: 8px 12px; }
  .site-nav {
    margin-left: auto;
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 0;
    padding-bottom: 0;
  }
  .desktop-nav-links { display: none; }
  .mobile-nav-menu {
    display: block;
    position: relative;
  }
  .mobile-nav-menu > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--card);
    cursor: pointer;
  }
  .mobile-nav-menu > summary::-webkit-details-marker { display: none; }
  .mobile-nav-menu > summary:hover { background: var(--paper-deep); }
  .mobile-nav-menu > summary svg { width: 22px; height: 22px; }
  .mobile-nav-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    display: grid;
    gap: 2px;
    width: min(240px, calc(100vw - 32px));
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 44px -24px rgba(19, 37, 52, 0.45);
  }
  .mobile-nav-panel > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 15px;
    font-weight: 650;
  }
  .mobile-nav-panel > a:hover { color: var(--ink); background: var(--paper-deep); }
  .mobile-nav-panel .nav-contact { color: #9a5b00; }
  .mobile-nav-panel .lang-switch { margin-bottom: 2px; }
  .mobile-nav-panel .lang-switch > summary {
    width: 100%;
    justify-content: space-between;
    font-size: 15px;
    padding: 10px 12px;
  }
  .mobile-nav-panel .lang-menu {
    position: static;
    min-width: 0;
    max-width: none;
    margin: 2px 0 4px;
    box-shadow: none;
  }
  .mobile-nav-panel .lang-menu a { font-size: 14px; }
  /* Mobile header must never cover the live demo below it. */
  .site-header { position: static; }
  /* The preview badge is useful on desktop but forces the wordmark to wrap
     into a second row on narrow Japanese/German headers. The menu already
     exposes the page context, so hide the non-actionable badge on phones. */
  .pill-preview { display: none; }
  .feature-item { grid-template-columns: 1fr; gap: 6px; }
  .feature-num { font-size: 22px; }
}

/* Long-word safety (German compounds) — break rather than clip. */
h1, h2, h3, p, li, figcaption, .btn, .pill, .section-lede, .lede {
  overflow-wrap: anywhere;
}

@media (max-width: 400px) {
  .hero-headline { font-size: clamp(32px, 9vw, 42px); }
  .cta-row .btn { flex: 1 1 auto; padding-inline: 14px; }
  .trust-strip { gap: 6px 16px; }
}

@media (max-width: 360px) {
  .pill-preview { display: none; }
  .brand { gap: 8px; font-size: 18px; }
  .header-inner { gap: 8px; }
}

/* Korean hero headline: prevent mid-word line breaks under the 80px display font */
html[lang="ko"] .hero-headline {
  word-break: keep-all;
  overflow-wrap: normal;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.2;
}

/* Korean copy should wrap between words on narrow screens. The generic
 * long-word guard above is useful for German/URLs, but `anywhere` makes
 * Korean syllables split in the middle of a phrase (for example `있는`),
 * which reads like a layout defect. Keep the Korean rhythm while still
 * allowing an unusually long token to break when it truly cannot fit. */
html[lang="ko"] :where(h1, h2, h3, p, li, figcaption, .btn, .pill, .section-lede, .lede) {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Get started section */
.start-steps {
  list-style: none;
  margin: 0 0 clamp(36px, 5vw, 56px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.start-step-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding-top: 24px;
}
.start-step-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.start-step-item h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.start-step-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  max-width: 65ch;
}
.start-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.start-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.start-card-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  background: var(--amber-soft);
  color: #9a5b00;
  border: 1px solid rgba(237, 139, 0, 0.35);
}
.start-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.start-card p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  max-width: 65ch;
  flex: 1 0 auto;
}
.start-card-action {
  margin-top: auto;
}

/* Legal and prose readability */
.prose p, .legal p, .legal ul {
  max-width: 65ch;
}
.legal-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.legal-updated {
  margin: 0 0 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.back-row {
  margin-top: 40px;
}

/* Policy pages: a readable document with a separate navigation rail. */
.legal-main{max-width:1160px;margin:0 auto;padding:64px 32px 96px}
.legal-hero{max-width:850px;padding-bottom:36px}
.legal-hero .kicker{margin:0 0 16px}
.legal-hero .legal-title{font-size:clamp(30px,4vw,48px);line-height:1.2;letter-spacing:-.035em;text-wrap:balance}
.legal-hero .lede{max-width:68ch;margin:20px 0;color:var(--ink-soft);font-size:18px;line-height:1.8;word-break:keep-all;overflow-wrap:break-word}
.legal-hero .legal-updated{display:inline-block;margin:0 0 24px;padding:6px 12px;border:1px solid var(--line);border-radius:6px;font-size:12px;letter-spacing:.02em;color:var(--ink-soft);background:var(--card)}
.legal-related{display:flex;flex-wrap:wrap;gap:8px 24px;padding-top:22px;border-top:1px solid var(--line);font-size:14px;font-weight:650}
.legal-related a{text-decoration:none;padding:5px 0;color:var(--ink-soft);text-underline-offset:7px}
.legal-related a[aria-current=page]{color:#975000;text-decoration:underline;text-decoration-thickness:2px}
.legal-related a:hover{color:var(--ink);text-decoration:underline}
.legal-layout{display:grid;grid-template-columns:232px minmax(0,1fr);gap:36px;align-items:start}
.legal-sidebar{position:sticky;top:100px;min-width:0}
.legal-toc-title{margin:0 0 16px;font-size:12px;color:var(--ink-soft);font-weight:750;letter-spacing:.04em}
.legal-toc{display:grid;gap:4px;border-left:2px solid var(--line);padding-left:16px}
.legal-toc a{display:block;font-size:14px;line-height:1.6;padding:7px 0;text-decoration:none;color:var(--ink-soft);overflow-wrap:break-word;word-break:keep-all}
.legal-toc a:hover{color:#975000;text-decoration:underline;text-underline-offset:4px}
.legal-help{margin-top:30px;padding:18px 16px;background:#f0eadc;border:1px solid #e4dac6;border-radius:10px;display:grid;gap:9px}
.legal-help .kicker{margin:0;font-size:11px}
.legal-help a{font-size:13px;font-weight:650;text-decoration:none;overflow-wrap:anywhere}
.legal-help a:hover{text-decoration:underline;text-underline-offset:4px}
.legal-help .legal-support-link{font-size:12px;font-weight:500;color:var(--ink-soft)}
.legal-sheet{min-width:0;background:#fffdf9;border:1px solid #e4ddcf;border-radius:16px;padding:8px 38px 0;box-shadow:0 8px 30px #13253404}
.legal-section{padding:30px 0;scroll-margin-top:96px}
.legal-section+.legal-section{border-top:1px solid #e9e3d7}
.legal-section h2{font-size:20px;line-height:1.5;margin:0 0 16px;letter-spacing:-.02em;word-break:keep-all;overflow-wrap:break-word}
.legal-section p,.legal-section ul{font-size:15px;line-height:1.95;color:var(--ink-soft);word-break:keep-all;overflow-wrap:break-word;margin:12px 0 0;max-width:72ch}
.legal-section p:first-of-type{margin-top:0}
.legal-section strong{color:var(--ink);font-weight:650}
.legal-section ul{padding:16px 20px 16px 36px;border-radius:8px;background:#f5f2eb}
.legal-section li+li{margin-top:12px}
.legal-section a{color:#985200;text-underline-offset:4px}
.legal-end{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:24px 0 30px;border-top:1px solid var(--line);font-size:13px;color:var(--ink-soft)}
.legal-end .btn{font-size:13px;padding:10px 16px}
@media(max-width:800px){
 .legal-main{padding:36px 20px 64px}
 .legal-layout{grid-template-columns:1fr;gap:24px}
 .legal-sidebar{position:static}
 .legal-toc{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 18px}
 .legal-toc-title{grid-column:1/-1;margin-bottom:8px}
 .legal-help{margin-top:20px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}
 .legal-sheet{padding:0 24px}
 .legal-page .site-nav>a{display:none}
 .legal-page .header-inner{gap:12px}
 .legal-hero .lede{font-size:16px}
}
@media(max-width:420px){
 .legal-main{padding-inline:16px}
 .legal-hero .legal-title{font-size:30px}
 .legal-toc{grid-template-columns:1fr}
 .legal-toc a{padding:5px 0}
 .legal-sheet{padding:0 20px;border-radius:12px}
 .legal-section{padding:24px 0}
 .legal-section h2{font-size:18px}
 .legal-section p,.legal-section ul{font-size:14px;line-height:1.9}
 .legal-page .pill-preview{display:none}
}

/* Fluid demo iframe */
.demo-frame-shell {
  width: 100%;
}

/* Viewport 320px guard */
@media (max-width: 360px) {
  .footer-nav a {
    padding: 6px 2px;
    font-size: 13.5px;
  }
  .start-step-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }
}

@media (min-width: 1100px) {
  .wrap.hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(32px, 4vw, 80px);
    row-gap: 1.25rem;
    align-items: start;
  }

  .wrap.hero-copy > .kicker {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0;
  }

  .wrap.hero-copy > .hero-headline {
    grid-column: 1;
    grid-row: 2 / span 3;
    margin: 0;
  }

  .wrap.hero-copy > .lede {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    align-self: start;
  }

  .wrap.hero-copy > .hero-note {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
  }

  .wrap.hero-copy > .cta-row {
    grid-column: 2;
    grid-row: 4;
    margin-top: 0.5rem;
    margin-bottom: 0;
  }

  .wrap.hero-copy > .trust-strip {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
  }
}

/* ---------- Pricing section ---------- */

.pricing-section {
  scroll-margin-top: 84px;
  position: relative;
}

.pricing-header {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.pricing-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid rgba(237, 139, 0, 0.35);
  color: #9a5b00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.pricing-lede {
  margin-bottom: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  box-sizing: border-box;
}

.pricing-card-pro {
  border-color: var(--amber);
  box-shadow: 0 8px 28px -14px rgba(237, 139, 0, 0.3);
  position: relative;
}

.pricing-card-header {
  margin-bottom: 20px;
}

.pricing-card-tag-row {
  min-height: 24px;
  margin-bottom: 8px;
}

.pricing-pro-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid rgba(237, 139, 0, 0.35);
  color: #9a5b00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pricing-card-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pricing-cost-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.pricing-currency-prefix {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}

.pricing-amount {
  font-size: clamp(28px, 2.1rem, 36px);
  line-height: 1.1;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pricing-period {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-left: 2px;
}

.pricing-cadence {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #875000;
}

.pricing-offer-box {
  background: var(--paper-deep);
  border-left: 3px solid var(--amber);
  padding: 8px 12px;
  margin: 0 0 10px;
  border-radius: 0 4px 4px 0;
}

.pricing-offer-headline {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.pricing-offer-detail {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.pricing-tax-note {
  margin: 0 0 12px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.pricing-card-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.pricing-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 0 auto;
}

.pricing-features li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.pricing-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.pricing-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  box-sizing: border-box;
}

.pricing-btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.pricing-status-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  text-align: center;
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 360px) {
  .pricing-card {
    padding: 18px 14px;
  }
  .pricing-amount {
    font-size: 26px;
  }
  .pricing-offer-box {
    padding: 6px 8px;
  }
}

/* Keep localized phrases readable and align the plan headings and actions. */
.pricing-section { word-break: keep-all; overflow-wrap: anywhere; }
.pricing-card { position: relative; }
.pricing-card-tag-row { position: absolute; top: 16px; right: 16px; min-height: 0; margin: 0; }
.pricing-card-footer { min-height: 76px; justify-content: flex-start; }

#amazon-preview {
  scroll-margin-top: 84px;
}

.amazon-preview-frame-shell {
  width: 100%;
  box-sizing: border-box;
}

.amazon-preview-iframe {
  width: 100%;
  height: 680px;
  border: none;
  display: block;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .amazon-preview-iframe {
    height: 740px;
  }
}
.reorder-callout{border:1px solid #ead8bd;border-radius:18px;background:linear-gradient(145deg,#fffaf1,#fff);padding:clamp(24px,4vw,48px);box-shadow:0 12px 38px rgba(73,45,15,.08)}
.reorder-callout h2{max-width:760px}.reorder-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0;padding:0;list-style:none;counter-reset:reorder}.reorder-steps li{counter-increment:reorder;display:grid;gap:7px;padding:16px;border:1px solid #eddcc6;border-radius:12px;background:#fff}.reorder-steps li::before{content:counter(reorder);display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#fff0d5;color:#70420a;font-weight:800}.reorder-steps span{color:var(--muted);line-height:1.6}.reorder-callout .btn{margin-top:4px}@media(max-width:760px){.reorder-steps{grid-template-columns:1fr}}
