:root {
  --forest: #10231b;
  --forest-2: #17332a;
  --accent: #245b47;
  --accent-hover: #1d4c3b;
  --cream: #f4f0e8;
  --bg: #f5f3ee;
  --paper: #edeae3;
  --ink: #1a1a18;
  --muted: #5d5a53;
  --amber: #e8b060;
  --line: color-mix(in oklab, #1a1a18 12%, transparent);
  --display: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86em; background: color-mix(in oklab, var(--ink) 7%, transparent); padding: 1px 6px; border-radius: 5px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cream); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: clamp(30px, 4.2vw, 50px); text-wrap: balance; }
h3 { font-size: 21px; letter-spacing: -0.015em; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in oklab, var(--cream) 70%, transparent); margin-bottom: 18px; }
.eyebrow.dark { color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s; }
.btn:active { transform: scale(0.97); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-light { background: var(--cream); color: var(--forest); }
.btn-light:hover { background: #fff; }
.btn-ghost { color: var(--cream); border-color: color-mix(in oklab, var(--cream) 35%, transparent); }
.btn-ghost:hover { border-color: var(--cream); background: color-mix(in oklab, var(--cream) 10%, transparent); }
.btn-dark { background: var(--accent); color: var(--cream); }
.btn-dark:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }

.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; color: var(--cream); transition: background 0.3s, backdrop-filter 0.3s; }
.nav.solid { background: color-mix(in oklab, var(--forest) 88%, transparent); backdrop-filter: blur(14px); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: -0.02em; }
.nav nav { display: flex; gap: 28px; font-size: 14px; }
.nav nav a, .nav .link { text-decoration: none; opacity: 0.8; transition: opacity 0.2s; }
.nav nav a:hover, .nav .link:hover { opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 20px; font-size: 14px; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; background: radial-gradient(120% 90% at 70% 45%, var(--forest-2), var(--forest) 70%); color: var(--cream); overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.07; mix-blend-mode: overlay; pointer-events: none; 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"); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in oklab, var(--forest) 92%, transparent) 0%, color-mix(in oklab, var(--forest) 70%, transparent) 34%, transparent 62%), linear-gradient(0deg, var(--forest) 0%, transparent 22%); }
.hero-in { padding-block: 130px 110px; }
.hero h1 { font-size: clamp(44px, 7.2vw, 96px); max-width: 11.5em; text-wrap: balance; letter-spacing: -0.035em; }
.hero h1 em { font-style: italic; color: var(--amber); font-weight: 400; }
.lede { margin-top: 26px; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); color: color-mix(in oklab, var(--cream) 82%, transparent); }
.cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin-top: 18px; font-size: 13px; color: color-mix(in oklab, var(--cream) 62%, transparent); }

.legend { position: absolute; right: var(--gutter); bottom: 28px; display: flex; gap: 28px; font-size: 12px; color: color-mix(in oklab, var(--cream) 65%, transparent); }
.legend div { display: flex; flex-direction: column; gap: 2px; }
.legend dt { display: flex; align-items: center; gap: 8px; letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }
.legend dd { font-family: var(--display); font-size: 28px; color: var(--cream); font-variant-numeric: tabular-nums; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.k-sent { background: var(--cream); }
.k-open { border: 1.5px solid var(--cream); }
.k-reply { border: 1.5px solid var(--amber); }

section { padding-block: clamp(72px, 11vw, 140px); }
.how-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 7vw, 100px); align-items: start; }
.how-head { position: sticky; top: 110px; }
.how-head p:not(.eyebrow) { margin-top: 20px; color: var(--muted); max-width: 30em; }
.steps { list-style: none; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 1px; background: var(--line); }
.steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 24px; padding-block: 22px; }
.steps li + li { margin-top: 10px; }
.step-n { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--accent); color: var(--accent); font-family: var(--display); font-size: 17px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); max-width: 32em; }

.show { background: var(--paper); display: grid; gap: clamp(72px, 10vw, 130px); }
.show-row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.show-row.flip { grid-template-columns: 1.2fr 0.8fr; }
.show-row.flip .show-copy { order: 2; }
.show-copy h2 { font-size: clamp(28px, 3.4vw, 42px); }
.show-copy > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 10px; font-size: 15px; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 1px; background: var(--accent); }
.frame { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(16, 35, 27, 0.35), 0 8px 16px -8px rgba(16, 35, 27, 0.15); transform: perspective(1600px) rotateY(-3deg); transition: transform 0.7s var(--ease); }
.flip .frame { transform: perspective(1600px) rotateY(3deg); }
.frame:hover { transform: none; }

.auto { background: var(--forest); color: var(--cream); }
.auto-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.auto h2 { margin-bottom: 22px; }
.auto p:not(.eyebrow) { color: color-mix(in oklab, var(--cream) 78%, transparent); margin-top: 14px; max-width: 32em; }
.code { background: #0a1712; border: 1px solid color-mix(in oklab, var(--cream) 12%, transparent); border-radius: 14px; padding: clamp(18px, 3vw, 30px); overflow-x: auto; }
.code pre { font: 13px/1.75 ui-monospace, "SF Mono", Menlo, monospace; color: var(--cream); white-space: pre; }
.c-dim { color: color-mix(in oklab, var(--cream) 50%, transparent); }
.c-amber { color: var(--amber); }

.safe-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 90px); }
.ledger { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.ledger li { display: grid; grid-template-columns: 11em 1fr; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.ledger b { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.ledger span { color: var(--muted); }

.pricing { background: var(--paper); }
.price-head { margin-bottom: 44px; max-width: 18em; }
.plans { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; max-width: 880px; }
.plan { padding: 32px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 18px; }
.plan.pro { background: var(--forest); color: var(--cream); border-color: transparent; }
.price { font-size: 15px; }
.price span { font-family: var(--display); font-size: 52px; letter-spacing: -0.03em; line-height: 1; }
.price small { display: block; margin-top: 6px; font-size: 13px; opacity: 0.7; }
.plan ul { list-style: none; padding: 0; display: grid; gap: 8px; flex: 1; font-size: 15px; }
.plan li::before { content: "—"; margin-right: 10px; opacity: 0.5; }
.plan .btn { align-self: flex-start; }
.plan.pro .btn-dark { background: var(--cream); color: var(--forest); }

.final { background: radial-gradient(90% 120% at 20% 100%, var(--forest-2), var(--forest)); color: var(--cream); }
.final .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.final h2 { max-width: 14em; font-size: clamp(32px, 5vw, 60px); }

.foot { background: var(--forest); color: color-mix(in oklab, var(--cream) 65%, transparent); font-size: 13px; padding-block: 28px; border-top: 1px solid color-mix(in oklab, var(--cream) 10%, transparent); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--cream); }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease) var(--d, 0ms), transform 0.8s var(--ease) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .link { display: none; }
  .hero-in { padding-block: 120px 150px; }
  .hero-shade { background: linear-gradient(180deg, color-mix(in oklab, var(--forest) 85%, transparent) 0%, color-mix(in oklab, var(--forest) 70%, transparent) 55%, transparent 75%); }
  .legend { left: var(--gutter); right: auto; bottom: 20px; }
  .how-grid, .show-row, .show-row.flip, .auto-grid, .safe-grid, .plans { grid-template-columns: 1fr; }
  .how-head { position: static; }
  .show-row.flip .show-copy { order: 0; }
  .frame, .flip .frame { transform: none; }
  .ledger li { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .frame, .flip .frame { transform: none; transition: none; }
}

.price i { font-style: normal; }
.lang { appearance: none; background: transparent; color: var(--cream); border: 1px solid color-mix(in oklab, var(--cream) 30%, transparent); border-radius: 999px; height: 34px; padding: 0 28px 0 14px; font: inherit; font-size: 13px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23f4f0e8' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.lang:hover { border-color: var(--cream); }
.lang option { color: var(--ink); background: var(--cream); }

:lang(zh-TW) { --display: "Fraunces", "Noto Serif TC", "PingFang TC", "Songti TC", serif; --sans: "Figtree", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
:lang(ja) { --display: "Fraunces", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; --sans: "Figtree", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; }
:lang(ko) { --display: "Fraunces", "Noto Serif KR", "AppleMyungjo", serif; --sans: "Figtree", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
:lang(zh-TW) h1, :lang(zh-TW) h2, :lang(zh-TW) h3,
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3,
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { letter-spacing: 0; line-height: 1.22; }
:lang(zh-TW) .hero h1, :lang(ja) .hero h1, :lang(ko) .hero h1 { font-size: clamp(38px, 6vw, 80px); line-height: 1.18; max-width: 14em; }
:lang(zh-TW) .hero h1 em, :lang(ja) .hero h1 em, :lang(ko) .hero h1 em { font-style: normal; font-weight: 500; }
:lang(zh-TW) .eyebrow, :lang(ja) .eyebrow, :lang(ko) .eyebrow { letter-spacing: 0.08em; }
:lang(zh-TW) body, :lang(ja) body, :lang(ko) body { line-height: 1.75; }
:lang(ko) body { word-break: keep-all; }
:lang(es) .ledger li { grid-template-columns: 13em 1fr; }

@media (max-width: 860px) {
  .lang { height: 32px; font-size: 12px; padding-left: 10px; }
  .nav-cta { gap: 10px; }
  :lang(es) .ledger li { grid-template-columns: 1fr; }
}
:lang(zh-TW) .eyebrow, :lang(ja) .eyebrow, :lang(ko) .eyebrow { text-transform: none; }
:lang(zh-TW) .hero h1, :lang(ja) .hero h1, :lang(ko) .hero h1 { font-size: clamp(34px, 5.2vw, 68px); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.compare { background: var(--bg); }
.cmp-head { max-width: 40em; margin-bottom: 40px; }
.cmp-head p:not(.eyebrow) { margin-top: 18px; color: var(--muted); }
.tbl { overflow-x: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.tbl table { width: 100%; min-width: 960px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.tbl th, .tbl td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl thead th { font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; vertical-align: bottom; white-space: nowrap; }
.tbl thead a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.tbl thead a:hover { text-decoration-color: currentColor; }
.tbl tbody th { font-weight: 600; font-size: 13px; color: var(--muted); width: 13%; }
.tbl .us { background: color-mix(in oklab, var(--accent) 9%, #fff); }
.tbl thead .us { color: var(--accent); }
.tbl td small { color: var(--muted); font-size: 12px; }
.tbl th:first-child, .tbl td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
.cmp-note { margin-top: 16px; font-size: 13px; color: var(--muted); max-width: 52em; }
.fit { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 6vw, 80px); align-items: start; }
.fit h3 { font-size: clamp(26px, 3vw, 36px); position: sticky; top: 100px; }
.fit .ledger li { grid-template-columns: 10em 1fr; }

.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 90px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative; font-family: var(--display); font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 36px 24px 0; color: var(--muted); max-width: 42em; }

@media (max-width: 860px) {
  .fit, .faq-grid { grid-template-columns: 1fr; }
  .fit h3 { position: static; }
  .fit .ledger li { grid-template-columns: 1fr; }
  .nav nav { display: none; }
}

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes blip { 0%, 10% { background: var(--accent); transform: scale(1.3); } 24%, 100% { background: transparent; transform: scale(1); } }
@keyframes drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-2%, -1%, 0); } }

.hero-in > * { animation: rise 1s var(--ease) both; }
.hero-in > :nth-child(1) { animation-delay: 0.1s; }
.hero-in > :nth-child(2) { animation-delay: 0.22s; }
.hero-in > :nth-child(3) { animation-delay: 0.38s; }
.hero-in > :nth-child(4) { animation-delay: 0.5s; }
.hero-in > :nth-child(5) { animation-delay: 0.62s; }
.legend { animation: rise 1s var(--ease) 0.9s both; }

.photo { margin: 28px 0 0; overflow: hidden; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14) translateY(var(--py, 0px)); will-change: transform; }
.photo-tall { aspect-ratio: 5 / 4; max-width: 440px; }
.photo-tall img { object-position: 70% center; }
.photo-wide { aspect-ratio: 4 / 3; max-width: 520px; }
.js .photo { clip-path: inset(0 0 100% 0 round 14px); transition: clip-path 1.3s var(--ease) 0.15s; }
.js .reveal.in .photo { clip-path: inset(0 round 14px); }
.safe-head h2 { max-width: 12em; }

.pace { display: flex; gap: 8px; margin-top: 16px; }
.pace i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--accent); animation: blip 4.8s infinite; animation-delay: calc(var(--i) * 0.6s); }

.steps::after { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 1px; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step-n { transition: background 0.5s var(--ease), color 0.5s var(--ease); }
.steps li.on .step-n { background: var(--accent); color: var(--cream); }

.flow { display: block; width: 100%; height: auto; margin-top: clamp(40px, 6vw, 72px); overflow: visible; }
.flow-lines { stroke: color-mix(in oklab, var(--cream) 24%, transparent); fill: none; }
.flow-src rect { fill: transparent; stroke: color-mix(in oklab, var(--cream) 38%, transparent); }
.flow-src text { fill: var(--cream); font-family: var(--sans); }
.flow-hub rect { fill: var(--forest-2); stroke: var(--amber); stroke-width: 1.2; }
.flow-hub.gm rect { stroke: color-mix(in oklab, var(--cream) 60%, transparent); }
.flow-name { fill: var(--cream); font-family: var(--display); }
.flow-sub { fill: var(--amber); font-family: var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.flow-dots circle { fill: var(--cream); opacity: 0.85; }
.in-pulse circle { fill: var(--cream); }
.out-pulse circle { fill: var(--amber); }
.pulse { filter: drop-shadow(0 0 5px rgba(232, 176, 96, 0.75)); }

.final { position: relative; overflow: hidden; isolation: isolate; }
.final::before { content: ""; position: absolute; inset: -4%; z-index: -2; background: url("assets/photo-stamps.jpg") center / cover; animation: drift 28s ease-in-out infinite alternate; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in oklab, var(--forest) 95%, transparent) 0%, color-mix(in oklab, var(--forest) 72%, transparent) 100%); }

.credits { font-size: 12px; }
.credits a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .photo-tall { max-width: 100%; }
  .photo-wide { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-in > *, .legend { animation: none; }
  .pace i { animation: none; }
  .js .photo { clip-path: none; transition: none; }
  .photo img { transform: none; }
  .final::before { animation: none; }
}

:lang(zh-TW) .ledger li, :lang(ja) .ledger li, :lang(ko) .ledger li { grid-template-columns: 14em 1fr; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .ledger b, :lang(zh-TW) h2, :lang(zh-TW) .ledger b { word-break: auto-phrase; }
@media (max-width: 860px) {
  :lang(zh-TW) .ledger li, :lang(ja) .ledger li, :lang(ko) .ledger li { grid-template-columns: 1fr; }
}

.flow-scroll, .code { overflow-x: auto; scrollbar-width: thin; scrollbar-color: color-mix(in oklab, var(--cream) 30%, transparent) transparent; }
@media (max-width: 700px) { .flow { min-width: 640px; } }
