/* SnapSheet site — Ledger design (ui_design/04_website.md). Same tokens as the app (mobile/src/ui/theme.ts). */
@font-face { font-family: "Plex Sans"; src: url("/fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }

:root {
  --ink: #0F172A;
  --paper: #F5F7FB;
  --white: #FFFFFF;
  --accent: #1E3A8A;      /* navy: action on light; white text 10.4:1 */
  --sky: #93C5FD;       /* light blue: action on dark; ink text on it */
  --accent-soft: #E3EAF8;
  --glow: #162A52;
  --text2: #475569;
  --text3: #5B6678;
  --on-dark: #C4CDDA;
  --on-dark2: #DAE1EC;
  --line: #D9DFE8;
  --line-soft: #E6EAF1;
  --gutter: #EEF1F6;
  --sans: "Plex Sans", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --dark-bg: radial-gradient(ellipse 70% 60% at 50% 40%, var(--glow) 0%, var(--ink) 70%);
}

*, *::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.1875rem;
  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(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--sky); color: var(--ink); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

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

/* ───────── Logo (one SVG, colours by context) ───────── */
.mark { flex: none; }
.mark__c { stroke: var(--accent); }
.mark__r { fill: var(--ink); }
.mark__l { fill: var(--white); }
.mark__f { fill: var(--text3); }
.mark__b { fill: var(--accent); }
.hero .mark__c, .section--dark .mark__c, .cta .mark__c { stroke: var(--sky); }
.hero .mark__r, .section--dark .mark__r, .cta .mark__r { fill: var(--paper); }
.hero .mark__l, .section--dark .mark__l, .cta .mark__l { fill: var(--ink); }
.hero .mark__f, .section--dark .mark__f, .cta .mark__f { fill: #B9C1CD; }
.hero .mark__b, .section--dark .mark__b, .cta .mark__b { fill: var(--sky); }
.brand__s { color: var(--accent); }
.hero .brand__s { color: var(--sky); }

/* ───────── Hero (dark, same glow as the app splash and login) ───────── */
.hero { background: var(--ink); background-image: var(--dark-bg); color: var(--paper); padding: 1.25rem 0 6rem; overflow: hidden; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--paper); font-weight: 600; font-size: 1.475rem; letter-spacing: -0.02em; text-decoration: none; }
.brand:hover { color: var(--paper); }
.brand .mark { width: 40px; height: 40px; }
.nav__links { display: flex; align-items: center; gap: 1.75rem; font-size: 1.075rem; }
.nav__links a { color: var(--on-dark); text-decoration: none; }
.nav__links a:hover { color: var(--paper); text-decoration: underline; }
.lang { border: 1px solid rgba(245,247,251,.35); border-radius: 999px; padding: .25rem .9rem; color: var(--paper) !important; }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 1.5rem; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.75rem); letter-spacing: -0.03em; line-height: 1.1; }
.hero__lede { font-size: 1.325rem; line-height: 1.6; color: var(--on-dark); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .25rem; }
.soon {
  order: -1; align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .8rem; border-radius: 999px; background: rgba(147,197,253,.14); color: var(--sky); font-size: .85rem; font-weight: 600;
}
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: .7rem 1.4rem; border-radius: 14px; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 1.05rem; }
.btn--lime { background: var(--sky); color: var(--ink); }
.btn--lime:hover { background: #BFDBFE; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--paper); border: 1.5px solid rgba(245,247,251,.4); }
.btn--ghost:hover { background: rgba(245,247,251,.08); color: var(--paper); }

/* Stage: camera frame + receipt → beam → sheet row */
.stage { position: relative; display: grid; gap: 2.2rem; justify-items: center; padding-bottom: .5rem; }
.scan { position: relative; width: 300px; height: 260px; display: grid; place-items: center; }
.scan__frame { position: absolute; inset: 0; width: 100%; height: 100%; stroke: var(--sky); }
.receipt {
  position: relative; width: 196px;
  background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: .78rem; line-height: 1.6;
  padding: 1rem 1rem 1.2rem; transform: rotate(-2deg);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.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='%23F5F7FB'/%3E%3C/svg%3E") repeat-x;
}
.receipt__shop { text-align: center; font-weight: 500; font-size: .85rem; }
.receipt__meta { text-align: center; color: var(--text3); font-size: .7rem; 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 #9AA3B2; font-weight: 500; }
.beam {
  position: absolute; left: -46px; right: -46px; top: 100%; height: 4px;
  background: var(--sky); border-radius: 2px;
  box-shadow: 0 0 16px 3px rgba(147,197,253,.7), 0 -28px 28px -8px rgba(147,197,253,.3);
  opacity: 0;
}

.sheet { width: 100%; background: var(--white); color: var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 48px rgba(0,0,0,.28); font-size: .86rem; }
.sheet__bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .9rem; background: var(--accent-soft); color: var(--accent); 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: .5rem .65rem; border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); 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-soft); }
.sheet__grid--contacts > div:nth-child(4n+1) { border-left: 0; }
.sheet__grid .col { background: var(--gutter); color: var(--text3); font-family: var(--mono); font-size: .7rem; text-align: center; border-top: 0; padding: .3rem 0; }
.sheet__grid .th { background: var(--gutter); font-weight: 600; }
.sheet__grid .rn { background: var(--gutter); color: var(--text3); font-family: var(--mono); font-size: .72rem; text-align: center; }
.sheet__grid .num { text-align: right; font-family: var(--mono); }
.new { background: var(--accent-soft); font-weight: 500; }
.toast {
  position: absolute; right: .75rem; bottom: -1.4rem; background: var(--sky); color: var(--ink);
  font-weight: 600; font-size: .85rem; padding: .4rem .9rem; 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: var(--on-dark); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: .3rem 0; }
.replay:hover { color: var(--paper); }

/* 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 .scan__frame { animation: snap .5s 2.1s ease-out both; transform-origin: 50% 50%; }
  .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; }
}
.stage.paused *, .stage.offscreen * { animation-play-state: paused !important; }
@keyframes sweep { 0% { top: 0; opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes snap { 0% { transform: scale(1); } 40% { transform: scale(.96); } 100% { transform: scale(1); } }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes flash { from { background: var(--sky); } to { background: var(--accent-soft); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ───────── Sections ───────── */
.section { padding: 6.5rem 0; }
.section--paper, .section--tint { background: var(--paper); }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); background-image: var(--dark-bg); color: var(--paper); }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); max-width: 30ch; }
.section__lede { margin-top: 1.1rem; color: var(--text2); max-width: 40rem; line-height: 1.65; }

.steps { margin: 2.6rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; }
.steps__top { display: flex; justify-content: space-between; align-items: center; }
.steps .n { font-family: var(--mono); font-weight: 500; font-size: .9rem; color: var(--accent); }
.steps__icon { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }
.steps b { display: block; font-size: 1.25rem; font-weight: 600; }
.steps li > span { color: var(--text2); line-height: 1.55; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; align-items: center; }
.facts { margin: 1.8rem 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.facts li { padding-left: 2rem; position: relative; line-height: 1.55; }
.facts li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.25rem; height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A8A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.section--dark .facts { margin-top: 0; color: var(--on-dark2); gap: 1.2rem; }
.section--dark .facts li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393C5FD' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.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.6rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.reads > div { border-top: 3px solid var(--accent); padding-top: 1rem; }
.reads dt { font-weight: 600; font-size: 1.25rem; }
.reads dd { margin: .35rem 0 0; color: var(--text2); line-height: 1.55; }

.plans { margin: 2.75rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.plan { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.plan--best { border: 2px solid var(--accent); }
.plan__n { font-family: var(--mono); font-size: .7rem; color: var(--text3); }
.plan h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.plan__price { color: var(--text2); font-size: .9rem; }
.plan__price .amt { font-family: var(--mono); font-weight: 500; font-size: 2.1rem; letter-spacing: -0.02em; color: var(--ink); }
.plan__desc { color: var(--text2); font-size: 1.075rem; line-height: 1.5; }
.fine { margin-top: 1.5rem; font-size: 1.025rem; color: var(--text3); max-width: 52rem; line-height: 1.55; }

.faq { margin-top: 2rem; max-width: 55rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.25rem 2.5rem 1.25rem .25rem; font-weight: 500; font-size: 1.12rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: 20px; height: 20px; margin-top: -10px; transition: transform .2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .a { padding: 0 .25rem 1.4rem; color: var(--text2); max-width: 46rem; line-height: 1.65; }

.cta { background: var(--ink); background-image: var(--dark-bg); color: var(--paper); padding: 6rem 0; text-align: center; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.cta .mark { width: 88px; height: 88px; }
.cta h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); max-width: 26ch; }
.cta p { color: var(--on-dark); font-size: 1.225rem; }
.footer { padding: 2.25rem 0 3rem; font-size: .85rem; color: var(--text2); background: var(--paper); border-top: 1px solid var(--line); }
.footer p + p { margin-top: .5rem; }
.footer .addr { font-size: .8rem; opacity: .85; }
.footer__brand { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1rem; color: var(--ink); margin-bottom: .75rem; }
.footer__brand .mark { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .hero__grid, .split { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
  .steps, .reads { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 4rem 0; }
  .nav { padding-bottom: 2.75rem; }
  .nav__links > a:not(.lang) { display: none; }
}
@media (max-width: 520px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .scan { width: 260px; height: 226px; }
  .sheet { font-size: .78rem; }
  .sheet__grid > div { padding: .42rem .4rem; }
}


/* ───────── Use cases ───────── */
.uses { margin: 2.6rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.uses li { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; }
.uses__icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--ink); fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.uses b { font-size: 1.25rem; font-weight: 600; }
.uses li > span { color: var(--text2); line-height: 1.55; }

/* ───────── Stats demo (a phone showing the app's Statistics screen) ───────── */
.split--stats { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
.phone {
  position: relative; justify-self: center; width: 300px; aspect-ratio: 9 / 19.5; padding: 9px; border-radius: 52px;
  background: linear-gradient(145deg, #3A4256 0%, #12161F 38%, #2A3040 62%, #0B0E14 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 4px #05070B, 0 2px 0 rgba(255,255,255,.04), 0 40px 70px -20px rgba(15,23,42,.45), 0 18px 30px -12px rgba(15,23,42,.30);
}
.phone__btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #1A1F2A, #3A4256); }
.phone__btn--action { left: -3px; top: 17%; height: 26px; }
.phone__btn--volup { left: -3px; top: 25%; height: 50px; }
.phone__btn--voldown { left: -3px; top: 34%; height: 50px; }
.phone__btn--power { right: -3px; top: 27%; height: 78px; background: linear-gradient(270deg, #1A1F2A, #3A4256); }
.phone__screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: var(--paper); font-size: .8rem; display: flex; flex-direction: column; }
.phone__status { position: relative; flex: none; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0 30px; font-size: .78rem; font-weight: 600; }
.phone__island { position: absolute; left: 50%; top: 10px; width: 92px; height: 27px; margin-left: -46px; border-radius: 14px; background: #000; }
.phone__sys { display: flex; align-items: center; gap: 5px; }
.phone__sig { display: flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.phone__sig b { width: 3px; border-radius: 1px; background: var(--ink); }
.phone__sig b:nth-child(1) { height: 4px; } .phone__sig b:nth-child(2) { height: 6px; } .phone__sig b:nth-child(3) { height: 8px; } .phone__sig b:nth-child(4) { height: 10px; }
.phone__bat { position: relative; width: 22px; height: 11px; border: 1.5px solid rgba(15,23,42,.45); border-radius: 3.5px; }
.phone__bat::before { content: ""; position: absolute; inset: 1.5px; right: 5px; border-radius: 1.5px; background: var(--ink); }
.phone__bat::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(15,23,42,.45); }
.phone__body { flex: 1; min-height: 0; padding: .4rem 1rem 0; }
.phone__tabbar { flex: none; height: 66px; margin-top: auto; display: flex; align-items: center; justify-content: space-around; padding: 0 2.2rem 10px; background: var(--white); border-top: 1px solid var(--line); }
.phone__tabbar svg { width: 22px; height: 22px; fill: none; stroke: #9AA3B2; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phone__tabbar svg.is-on { stroke: var(--accent); }
.phone__scan { display: flex; width: 50px; height: 50px; margin-top: -26px; border-radius: 50%; background: var(--accent); align-items: center; justify-content: center; box-shadow: 0 0 0 5px var(--white), 0 6px 14px rgba(30,58,138,.35); }
.phone__scan svg { stroke: #FFFFFF; width: 24px; height: 24px; }
.phone__home { position: absolute; left: 50%; bottom: 7px; width: 112px; height: 4.5px; margin-left: -56px; border-radius: 3px; background: var(--ink); }
.phone .m { font-family: var(--mono); }
.phone__title { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; padding: 0 .25rem; }
.phone__tabs { margin-top: .8rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 10px; background: #E8EBF1; }
.phone__tab { text-align: center; padding: .3rem 0; border-radius: 8px; color: var(--text2); font-size: .72rem; }
.phone__tab.is-on { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,42,.12); }
.phone__period { margin: .8rem 0; text-align: center; font-size: .75rem; font-weight: 500; }
.phone__card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1rem .9rem; }
.phone__total { font-size: 1.7rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.phone__count { margin-top: .2rem; color: var(--text2); font-size: .72rem; }
.phone__days { margin: .9rem 0 .2rem; height: 56px; display: flex; align-items: flex-end; gap: 4px; border-bottom: 1px solid var(--line); }
.phone__day { flex: 1; border-radius: 3px 3px 0 0; background: #93B4E8; }
.phone__day.is-today { background: var(--accent); }
.phone__day.is-zero { background: var(--line-soft); height: 2px; }
.phone__h { margin: .9rem 0 .5rem; font-size: .7rem; font-weight: 600; color: var(--text2); }
.phone__cat + .phone__cat { margin-top: .55rem; }
.phone__catrow { display: flex; justify-content: space-between; font-size: .75rem; margin-bottom: .25rem; }
.phone__bar { height: 7px; border-radius: 4px; background: #EDF0F5; overflow: hidden; }
.phone__bar span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.w-5 { width: 5%; } .w-10 { width: 10%; } .w-15 { width: 15%; } .w-20 { width: 20%; } .w-25 { width: 25%; } .w-30 { width: 30%; } .w-35 { width: 35%; } .w-40 { width: 40%; } .w-45 { width: 45%; } .w-50 { width: 50%; } .w-55 { width: 55%; } .w-60 { width: 60%; } .w-65 { width: 65%; } .w-70 { width: 70%; } .w-75 { width: 75%; } .w-80 { width: 80%; } .w-85 { width: 85%; } .w-90 { width: 90%; } .w-95 { width: 95%; } .w-100 { width: 100%; } 
.h-5 { height: 5%; } .h-10 { height: 10%; } .h-15 { height: 15%; } .h-20 { height: 20%; } .h-25 { height: 25%; } .h-30 { height: 30%; } .h-35 { height: 35%; } .h-40 { height: 40%; } .h-45 { height: 45%; } .h-50 { height: 50%; } .h-55 { height: 55%; } .h-60 { height: 60%; } .h-65 { height: 65%; } .h-70 { height: 70%; } .h-75 { height: 75%; } .h-80 { height: 80%; } .h-85 { height: 85%; } .h-90 { height: 90%; } .h-95 { height: 95%; } .h-100 { height: 100%; } 
@media (max-width: 880px) { .uses { grid-template-columns: minmax(0, 1fr); } .split--stats { grid-template-columns: minmax(0, 1fr); } }


/* Language menu (top right) */
.langs { position: relative; }
.langs > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.langs > summary::-webkit-details-marker { display: none; }
.langs > summary::after { content: ""; width: 10px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5F7FB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain; transition: transform .15s; }
.langs[open] > summary::after { transform: rotate(180deg); }
.langs__menu { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 20; margin: 0; padding: .4rem; list-style: none; min-width: 11rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15,23,42,.22); }
.langs__menu a { display: block; padding: .55rem .8rem; border-radius: 8px; color: var(--ink) !important; text-decoration: none; font-size: .95rem; }
.langs__menu a:hover { background: var(--paper); text-decoration: none !important; }
.langs__menu a[aria-current="page"] { font-weight: 600; background: var(--accent-soft); }


/* ───────── Step cards: receipts with a torn bottom edge ───────── */
.steps { align-items: start; gap: 1.75rem; }
.steps li.slip { background: none; border: 0; border-radius: 0; padding: 0 0 10px; position: relative; display: block; filter: drop-shadow(0 10px 18px rgba(15,23,42,.10)) drop-shadow(0 1px 0 var(--line)); }
.steps li.slip:nth-child(1) { transform: rotate(-1.2deg); }
.steps li.slip:nth-child(2) { transform: rotate(.6deg); }
.steps li.slip:nth-child(3) { transform: rotate(-.4deg); }
.slip::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M0 0h10L5 9z' fill='%23FFFFFF'/%3E%3C/svg%3E") repeat-x;
}
.slip__body { background: var(--white); padding: 1.4rem 1.5rem 1.1rem; }
.slip__head, .slip__foot { display: flex; justify-content: space-between; font-family: var(--mono); color: var(--text3); }
.slip__head { font-size: .75rem; letter-spacing: .08em; padding-bottom: .9rem; border-bottom: 1.5px dashed #BEC6D3; }
.slip__title { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.slip__title b { font-size: 1.25rem; font-weight: 600; }
.slip__icon { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.slip__desc { display: block; margin-top: .75rem; color: var(--text2); line-height: 1.55; }
.slip__foot { font-size: .82rem; color: var(--ink); margin-top: .9rem; padding-top: .9rem; border-top: 1.5px dashed #BEC6D3; }
.slip__foot span:last-child { font-weight: 500; }

/* ───────── Use-case cards: a small Google Sheet ───────── */
.uses li.cell { padding: 0; gap: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 12px 28px rgba(15,23,42,.07); }
.cell__cols { display: grid; grid-template-columns: 34px minmax(0, 1fr); background: var(--gutter); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .7rem; color: var(--text3); text-align: center; }
.cell__cols span { padding: .3rem 0; }
.cell__cols span:first-child { border-right: 1px solid var(--line); }
.cell__grid { flex: 1; display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto 1fr; }
.cell__rn { background: var(--gutter); border-right: 1px solid var(--line); font-family: var(--mono); font-size: .7rem; color: var(--text3); display: flex; align-items: center; justify-content: center; }
.cell__rn:nth-of-type(2) { align-items: flex-start; padding-top: .9rem; }
.cell__sel { position: relative; display: flex; align-items: center; gap: .65rem; min-height: 58px; padding: .6rem 1rem; outline: 2px solid var(--accent); outline-offset: -2px; border-bottom: 1px solid var(--line-soft); }
.cell__sel::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 8px; height: 8px; background: var(--accent); border: 1.5px solid var(--white); }
.cell__sel b { font-size: 1.12rem; font-weight: 600; }
.cell__icon { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cell__desc { display: block; padding: .75rem 1rem 1.1rem; color: var(--text2); font-size: 1.075rem; line-height: 1.55; }
.cell__tabs { display: flex; align-items: stretch; gap: 2px; height: 34px; padding: 0 .5rem; background: var(--gutter); border-top: 1px solid var(--line); font-size: .75rem; }
.cell__add { display: flex; align-items: center; padding: 0 .5rem; color: var(--text3); font-size: 1rem; }
.cell__tab { display: flex; align-items: center; padding: 0 .75rem; color: var(--text3); white-space: nowrap; overflow: hidden; }
.cell__tab.is-on { background: var(--white); color: var(--accent); font-weight: 600; border-bottom: 2px solid var(--accent); }

/* legal pages */
.legal__bar { border-bottom: 1px solid var(--line); background: var(--white); }
.legal__bar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.legal__bar .brand { color: var(--ink); }
.legal__bar .brand:hover { color: var(--ink); }
.legal__bar .brand .mark { width: 32px; height: 32px; }
.legal { background: var(--white); }
.legal__main { max-width: 46rem; padding: 3rem 0 2rem; }
.legal__main h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 600; }
.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; }
.legal__bar .lang { color: var(--ink) !important; border-color: var(--line); }
.legal__bar .lang:hover { color: var(--accent) !important; }

/* Korean: break lines between words, not inside them */
html:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }
/* Japanese: break between phrases where the browser supports it */
html:lang(ja) h1, html:lang(ja) h2 { word-break: auto-phrase; }

/* ───────── Mesh backgrounds (hero, privacy): soft colour blobs on navy, a little grain ───────── */
.mesh { position: relative; isolation: isolate; overflow: hidden; background: #0A1330; }
.mesh::before {
  content: ""; position: absolute; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(46% 50% at 14% 22%, rgba(56,189,248,.7) 0%, transparent 70%),
    radial-gradient(44% 48% at 86% 14%, rgba(139,92,246,.7) 0%, transparent 70%),
    radial-gradient(46% 50% at 72% 82%, rgba(236,72,153,.45) 0%, transparent 70%),
    radial-gradient(42% 50% at 26% 88%, rgba(30,58,138,.95) 0%, transparent 70%),
    radial-gradient(36% 40% at 48% 52%, rgba(45,212,191,.3) 0%, transparent 70%);
  filter: blur(40px) saturate(120%);
}
.mesh--alt::before {
  background:
    radial-gradient(46% 50% at 84% 30%, rgba(56,189,248,.62) 0%, transparent 70%),
    radial-gradient(44% 48% at 12% 20%, rgba(236,72,153,.45) 0%, transparent 70%),
    radial-gradient(46% 50% at 22% 84%, rgba(139,92,246,.65) 0%, transparent 70%),
    radial-gradient(42% 50% at 76% 90%, rgba(30,58,138,.95) 0%, transparent 70%),
    radial-gradient(36% 40% at 50% 55%, rgba(45,212,191,.28) 0%, transparent 70%);
}
.mesh::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) {
  .mesh::before { animation: mesh-drift 22s ease-in-out infinite alternate; }
}
@keyframes mesh-drift { from { transform: translate3d(-2%, -1%, 0) rotate(0deg); } to { transform: translate3d(2%, 2%, 0) rotate(4deg); } }
.hero.mesh { background-image: none; }

/* ───────── Privacy: four glass cards, no icons ───────── */
.privacy { padding: 7rem 0; }
.privacy__kicker { font-family: var(--mono); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.privacy h2 { max-width: 22ch; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.025em; line-height: 1.12; }
.pcards { margin: 3rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pcards li {
  display: flex; flex-direction: column; gap: 1.1rem; padding: 1.6rem 1.6rem 1.7rem; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.pcards__n { font-family: var(--mono); font-weight: 500; font-size: .95rem; color: var(--sky); }
.pcards p { margin: 0; font-size: 1.205rem; line-height: 1.6; color: #E6ECF7; }
@media (max-width: 880px) { .pcards { grid-template-columns: minmax(0, 1fr); } .privacy { padding: 5rem 0; } }
