/* SnapSheet landing — brand tokens from 05_brand_and_design_system */
:root {
  --emerald: #059669;
  --emerald-ink: #047857; /* AA with white text */
  --deep: #064e3b;
  --lime: #a3e635;
  --mist: #ecfdf5;
  --paper: #ffffff;
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Noto Sans Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--emerald-ink); text-underline-offset: 3px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--lime); color: var(--deep); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

/* ───────── Hero (the one bold place) ───────── */
.hero { background: var(--deep); color: #fff; padding: 1.25rem 0 4.5rem; overflow: hidden; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 3.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; }
.brand:hover { color: #fff; }
.brand svg { width: 34px; height: 34px; }
.nav__links { display: flex; align-items: center; gap: 1.25rem; font-size: .95rem; }
.nav__links a { color: #d1fae5; text-decoration: none; }
.nav__links a:hover { color: #fff; text-decoration: underline; }
.lang { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .2rem .8rem; }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; }
.hero__lede { margin-top: 1.4rem; font-size: 1.2rem; color: #d1fae5; max-width: 34rem; }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem 1.1rem; align-items: center; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: .7rem 1.3rem; border-radius: 12px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.btn--lime { background: var(--lime); color: var(--deep); }
.btn--lime:hover { background: #bef264; color: var(--deep); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.soon { margin-top: 1rem; font-size: .95rem; color: #a7f3d0; }

/* Stage: receipt → beam → sheet row */
.stage { position: relative; display: grid; gap: 2.2rem; justify-items: start; padding-bottom: .5rem; }
.receipt {
  position: relative; width: 218px; margin-left: 6%;
  background: #fff; color: var(--ink);
  font-family: var(--mono); font-size: .8rem; line-height: 1.55;
  padding: 1.1rem 1.1rem 1.3rem; transform: rotate(-2deg);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.receipt::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8'%3E%3Cpath d='M0 0h16L8 8z' fill='%23fff'/%3E%3C/svg%3E") repeat-x;
}
.receipt__shop { text-align: center; font-weight: 700; }
.receipt__meta { text-align: center; color: var(--muted); font-size: .72rem; margin-bottom: .6rem; }
.receipt__line { display: flex; justify-content: space-between; gap: .5rem; }
.receipt__total { display: flex; justify-content: space-between; margin-top: .55rem; padding-top: .45rem; border-top: 1px dashed #94a3b8; font-weight: 700; }
.beam {
  position: absolute; left: -14px; right: -14px; top: 100%; height: 3px;
  background: var(--lime); border-radius: 2px;
  box-shadow: 0 0 14px 3px rgba(163,230,53,.75), 0 -26px 26px -6px rgba(163,230,53,.28);
  opacity: 0;
}

.sheet { width: 100%; background: #fff; color: var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.22); font-size: .86rem; }
.sheet__bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem .8rem; background: var(--mist); color: var(--deep); font-weight: 600; font-size: .8rem; }
.sheet__grid { display: grid; grid-template-columns: 2.2rem 1fr 1.5fr 1fr .9fr; }
.sheet__grid--contacts { grid-template-columns: 2.2rem 1fr 1fr 1.9fr; }
.sheet__grid > div { padding: .42rem .6rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet__grid > div:nth-child(5n+1) { border-left: 0; }
.sheet__grid--contacts > div:nth-child(5n+1) { border-left: 1px solid var(--line); }
.sheet__grid--contacts > div:nth-child(4n+1) { border-left: 0; }
.sheet__grid .col { background: var(--bg); color: var(--muted); font-size: .72rem; text-align: center; border-top: 0; }
.sheet__grid .th { background: var(--bg); font-weight: 700; }
.sheet__grid .rn { background: var(--bg); color: var(--muted); font-size: .72rem; text-align: center; }
.sheet__grid .num { text-align: right; }
.new { background: #f7fee7; }
.toast {
  position: absolute; right: 0; bottom: -1.7rem; background: var(--lime); color: var(--deep);
  font-weight: 700; font-size: .85rem; padding: .35rem .8rem; border-radius: 999px;
}
.sheet-wrap { position: relative; width: 100%; padding-bottom: 1.9rem; }
.replay { position: absolute; left: 0; bottom: -.4rem; background: none; border: 0; color: #a7f3d0; font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: .3rem 0; }
.replay:hover { color: #fff; }

/* One orchestrated moment; static final state when reduced motion is requested */
@media (prefers-reduced-motion: no-preference) {
  .play .beam { animation: sweep 1.7s .5s cubic-bezier(.45,.05,.4,1) both; }
  .play .new { animation: reveal .45s both, flash 2.4s both; }
  .play .new.c0 { animation-delay: 2.2s, 2.2s; }
  .play .new.c1 { animation-delay: 2.3s, 2.2s; }
  .play .new.c2 { animation-delay: 2.45s, 2.2s; }
  .play .new.c3 { animation-delay: 2.6s, 2.2s; }
  .play .new.c4 { animation-delay: 2.75s, 2.2s; }
  .play .toast { animation: pop .4s 3.1s both; }
}
@keyframes sweep { 0% { top: 0; opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes flash { from { background: var(--lime); } to { background: #f7fee7; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ───────── Sections ───────── */
.section { padding: 5rem 0; }
.section--tint { background: var(--bg); }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; max-width: 30ch; }
.section__lede { margin-top: 1rem; color: var(--muted); max-width: 40rem; }

.steps { margin: 2.8rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { border-top: 3px solid var(--emerald); padding-top: 1rem; }
.steps b { display: block; font-size: 1.15rem; margin-bottom: .35rem; }
.steps span { color: var(--muted); }
.steps .n { display: inline-block; font-variant-numeric: tabular-nums; color: var(--emerald-ink); font-weight: 800; margin-bottom: .3rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3.5rem; align-items: center; }
.facts { margin: 1.8rem 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.facts li { padding-left: 1.4rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: .6rem; height: .6rem; background: var(--emerald); border-radius: 2px; }
.sheet--flat { box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(15,23,42,.08); border: 1px solid var(--line); }

.reads { margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.reads dt { font-weight: 800; font-size: 1.15rem; }
.reads dd { margin: .3rem 0 0; color: var(--muted); }

.price { margin-top: 2.5rem; width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.price th, .price td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.price thead th { background: var(--mist); color: var(--deep); font-size: .95rem; }
.price tbody th { font-weight: 800; }
.price td.amt { font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.price tr.best th, .price tr.best td { background: #f7fee7; }
.price small { display: block; color: var(--muted); font-weight: 400; font-size: .88rem; margin-top: .15rem; }
.price tr:last-child th, .price tr:last-child td { border-bottom: 0; }
.fine { margin-top: 1rem; font-size: .92rem; color: var(--muted); max-width: 46rem; }

.faq { margin-top: 2.2rem; max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.15rem 2rem 1.15rem 0; font-weight: 700; font-size: 1.1rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 1rem; font-size: 1.5rem; color: var(--emerald-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 1.3rem; color: #334155; max-width: 46rem; }

.cta { background: var(--deep); color: #fff; padding: 4rem 0; }
.cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); max-width: 26ch; }
.cta p { margin-top: .8rem; color: #d1fae5; }
.footer { padding: 2.2rem 0 3rem; font-size: .9rem; color: var(--muted); }
.footer p + p { margin-top: .5rem; }

@media (max-width: 880px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: 2.6rem; }
  .steps, .reads { grid-template-columns: 1fr; gap: 1.6rem; }
  .section { padding: 3.6rem 0; }
  .nav { padding-bottom: 2.4rem; }
  .nav__links a:not(.lang) { display: none; }
  .price th, .price td { padding: .8rem .7rem; }
  .price td.amt { font-size: 1.05rem; }
}
@media (max-width: 520px) {
  .receipt { margin-left: 0; }
  .sheet { font-size: .78rem; }
  .sheet__grid > div { padding: .38rem .4rem; }
}

/* legal pages */
.legal__bar { border-bottom: 1px solid var(--line); }
.legal__bar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.legal__bar .brand { color: var(--deep); }
.legal__main { max-width: 46rem; padding: 3rem 0 2rem; }
.legal__main h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; }
.legal__main h2 { font-size: 1.15rem; margin-top: 2rem; }
.legal__main p { margin-top: .6rem; line-height: 1.7; }
.legal__intro { margin-top: 1.4rem !important; }
.footer a { color: inherit; }
.legal__langs { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: flex-end; }
