/* OWNIT Email Studio. Postal look: white paper, ink black, one postal red.
   Radius rule: paper objects (envelopes, emails, sheets, stamps, slips) 3px. Controls (buttons, inputs, chips) 8px. */
:root {
  --bg: #fbfbfb;
  --paper: #ffffff;
  --ink: #151515;
  --ink-2: #393939;
  --muted: #5f5f5f;
  --faint: #737373;
  --line: #e6e6e6;
  --line-2: #d0d0d0;
  --wash: #f3f3f3;
  --red: #e5383b;
  --red-ink: #c2262a;
  --red-tint: #fdeded;
  --hi: #fff2b8;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --r: 8px;
  --rp: 3px;
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sh-paper: 0 1px 0 rgba(21, 21, 21, .04), 0 18px 40px -22px rgba(21, 21, 21, .28);
  --sh-lift: 0 2px 4px rgba(21, 21, 21, .06), 0 28px 60px -26px rgba(21, 21, 21, .36);
  --stripes: repeating-linear-gradient(-45deg, var(--red) 0 10px, #fff 10px 16px, var(--ink) 16px 26px, #fff 26px 32px);
  --gut: 32px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink-2); font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 760; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1264px; margin: 0 auto; padding: 0 var(--gut); }

.mono-label {
  display: block; font-family: var(--mono); font-size: 12px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 8px; padding: 0;
}

/* ---------- buttons + inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px;
  border-radius: var(--r); border: 1px solid transparent; font-weight: 640; font-size: 15px; line-height: 1; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; transition: transform 160ms var(--ease), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 16px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-red { background: var(--red-ink); color: #fff; }
.btn-line { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: #2c2c2c; }
  .btn-red:hover { background: #a91f23; }
  .btn-line:hover { border-color: var(--ink); }
}
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--paper); color: var(--ink); transition: transform 160ms var(--ease), border-color 160ms ease;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn[disabled] { opacity: .45; pointer-events: none; }
.input {
  width: 100%; min-height: 44px; padding: 10px 13px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--paper);
  color: var(--ink); font-size: 16px; transition: border-color 160ms ease, box-shadow 160ms ease;
}
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 21, 21, .1); }
.input-lg { min-height: 52px; font-size: 18px; font-weight: 560; }
.input[aria-invalid="true"] { border-color: var(--red-ink); }
.err { color: var(--red-ink); font-size: 13px; margin-top: 6px; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--wash); border: 1px solid var(--line); }
.seg button {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent;
  color: var(--muted); font-size: 14px; font-weight: 600; transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease);
}
.seg button:active { transform: scale(.97); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .06); }
.seg-sm button { min-height: 34px; padding: 0 10px; font-family: var(--mono); font-weight: 500; font-size: 13px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(251, 251, 251, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { height: 64px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.logo b { font-weight: 850; letter-spacing: -0.02em; font-size: 19px; }
.logo span { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-left: 10px; border-left: 1px solid var(--line-2); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 560; color: var(--ink-2); padding: 8px 12px; border-radius: var(--r); transition: background-color 160ms ease, color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { background: var(--wash); color: var(--ink); } }

/* ---------- hero ---------- */
.hero { padding: 56px 0 72px; border-bottom: 1px solid var(--line); background: var(--paper); position: relative; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 40px; align-items: center; }
.hero-copy { max-width: 600px; }
.hero h1 { font-size: clamp(2.6rem, 3.2vw + .7rem, 4.1rem); letter-spacing: -0.036em; line-height: 1.02; font-weight: 780; }
.hero h1 em { font-style: italic; font-weight: 700; color: var(--red-ink); padding-right: .05em; }
.lede { margin-top: 22px; font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.hero-try { margin-top: 30px; }
.hero-try-row { display: flex; gap: 10px; }
.hero-try-row .input { flex: 1; min-width: 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .text-link:hover { text-decoration-color: var(--ink); } }

.hero-art { position: relative; min-width: 0; }
.scene-fit { --s: 1; width: 100%; height: calc(506px * var(--s)); position: relative; }
.scene { position: absolute; left: 50%; top: 0; width: 640px; height: 506px; margin-left: -320px; transform: scale(var(--s)); transform-origin: 50% 0; perspective: 1400px; }

.env-back, .env-front, .env-flap { position: absolute; left: 40px; width: 560px; }
.env-back { top: 214px; height: 274px; background: #e9e9e7; border: 9px solid transparent; border-image: var(--stripes) 9; box-shadow: var(--sh-lift); }
.env-back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, 0) 40%); }
.env-flap {
  top: 214px; height: 178px; z-index: 6; transform-origin: 50% 0; transform: rotateX(0deg);
  clip-path: polygon(0 0, 100% 0, 50% 100%); background: linear-gradient(180deg, #f7f7f5, #ececea);
  transition: transform 620ms var(--ease-io), z-index 0ms linear 300ms;
}
.env-front-wrap { position: absolute; inset: 0; z-index: 5; filter: drop-shadow(0 -1px 2px rgba(0, 0, 0, .12)); pointer-events: none; }
.env-front {
  top: 214px; height: 274px; z-index: 5; background: #fcfcfb; clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
  border: 9px solid transparent; border-image: var(--stripes) 9; border-top: 0;
}
.env-front::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(0, 0, 0, .035), transparent 45%), linear-gradient(200deg, rgba(0, 0, 0, .035), transparent 45%); }
.env-from { position: absolute; left: 26px; bottom: 26px; display: grid; gap: 1px; font-size: 11px; line-height: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; max-width: 210px; }
.env-from b { color: var(--ink); font-weight: 500; }
.env-to { position: absolute; right: 30px; bottom: 26px; text-align: left; display: grid; gap: 4px; width: 230px; }
.env-to .mono { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.env-to b { font-size: 21px; line-height: 1.15; color: var(--ink); font-weight: 720; letter-spacing: -0.02em; border-bottom: 1px solid var(--line-2); padding-bottom: 6px; }
.env-stamp { position: absolute; right: 64px; top: 256px; z-index: 7; transform: rotate(4deg); }
.env-postmark { position: absolute; left: 392px; top: 248px; z-index: 8; width: 150px; height: 104px; transform: rotate(-8deg); pointer-events: none; }

.fan { position: absolute; inset: 0; z-index: 4; clip-path: inset(-120px -160px 18px -160px); }
.fcard {
  --rot: 0deg; position: absolute; left: 170px; top: 18px; width: 300px; height: 396px; padding: 0; border: 0; background: var(--paper);
  border-radius: var(--rp); box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 18px 34px -18px rgba(0, 0, 0, .4); overflow: hidden;
  transform-origin: 50% 250%; transform: rotate(var(--rot)) translateY(0);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.fcard:nth-child(1) { --rot: -9.6deg; }
.fcard:nth-child(2) { --rot: -3.2deg; }
.fcard:nth-child(3) { --rot: 3.2deg; }
.fcard:nth-child(4) { --rot: 9.6deg; }
.fcard-in { position: absolute; left: 0; top: 0; width: 600px; transform: scale(.5); transform-origin: 0 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .fcard:hover { transform: rotate(var(--rot)) translateY(-16px); box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 30px 50px -22px rgba(0, 0, 0, .45); }
}
.fcard:active { transform: rotate(var(--rot)) translateY(-10px) scale(.985); }

/* closed state: before the intro plays (added by JS, never in shot mode) */
.scene.closed .env-flap { transform: rotateX(0deg); z-index: 6; transition: none; }
.scene.closed .fcard { transform: rotate(0deg) translateY(230px); transition: none; }
.scene:not(.closed) .env-flap { transform: rotateX(180deg); z-index: 1; }
.scene.opening .fcard { transition: transform 900ms var(--ease); transition-delay: calc(380ms + var(--i) * 90ms); }

/* ---------- stamp + postmark ---------- */
.stamp {
  --hole: 3.4px; position: relative; width: 80px; height: 96px; padding: 7px; background: #fff;
  -webkit-mask: radial-gradient(var(--hole), #0000 97%, #000) round calc(-1.5 * var(--hole)) calc(-1.5 * var(--hole)) / calc(3 * var(--hole)) calc(3 * var(--hole)), linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--hole)) calc(100% - 3 * var(--hole));
  mask: radial-gradient(var(--hole), #0000 97%, #000) round calc(-1.5 * var(--hole)) calc(-1.5 * var(--hole)) / calc(3 * var(--hole)) calc(3 * var(--hole)), linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--hole)) calc(100% - 3 * var(--hole));
  filter: drop-shadow(0 0 0 transparent);
}
.env-stamp, .bp-stamp, .end-stamp { filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .16)); }
.stamp-in { position: relative; width: 100%; height: 100%; background: var(--b2); display: grid; place-items: center; overflow: hidden; outline: 1px solid rgba(0, 0, 0, .08); outline-offset: -1px; }
.stamp-mono {
  display: grid; place-items: center; width: 44px; height: 44px; background: var(--b1); color: var(--k1); font-size: 17px; font-weight: 700; letter-spacing: .02em;
  border-radius: 50%; line-height: 1;
}
.stamp-mono[data-shape="rounded"] { border-radius: 12px; }
.stamp-mono[data-shape="arch"] { border-radius: 999px 999px 6px 6px; height: 50px; }
.stamp-mono[data-shape="outline"] { background: transparent; color: var(--b1); box-shadow: inset 0 0 0 2.5px var(--b1); }
.stamp-name, .stamp-city { display: none; }
.stamp-lg { --hole: 5px; width: 188px; height: 228px; padding: 11px; }
.stamp-lg .stamp-in { grid-template-rows: 1fr auto auto; padding: 18px 12px 14px; }
.stamp-lg .stamp-mono { width: 92px; height: 92px; font-size: 34px; align-self: center; }
.stamp-lg .stamp-mono[data-shape="arch"] { height: 104px; }
.stamp-lg .stamp-mono[data-shape="outline"] { box-shadow: inset 0 0 0 4px var(--b1); }
.stamp-lg .stamp-name { display: block; text-align: center; color: var(--k2); font-weight: 760; font-size: 14px; line-height: 1.15; letter-spacing: .02em; text-transform: uppercase; max-width: 100%; overflow-wrap: anywhere; }
.stamp-lg .stamp-city { display: block; color: var(--k2); opacity: .8; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.postmark-svg { width: 100%; height: 100%; overflow: visible; color: var(--red); opacity: .82; mix-blend-mode: multiply; }
.postmark-svg text { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.4px; fill: currentColor; text-transform: uppercase; }

/* ---------- sections ---------- */
section { position: relative; }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(2.05rem, 2.6vw + .9rem, 3.35rem); }
.sec-head p { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 40em; }
.live-name { color: var(--red-ink); }

/* ---------- brand it ---------- */
.brand { padding: 104px 0 96px; }
.brand-grid { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 56px; align-items: start; }
.form-card { position: relative; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--rp); padding: 34px 32px 30px; box-shadow: var(--sh-paper); }
.form-card::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -6px; height: 12px;
  background: radial-gradient(circle at 7px 6px, var(--bg) 4.2px, transparent 4.8px) 0 0 / 14px 12px repeat-x;
}
.field { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--paper); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease);
}
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ink); } }
.colors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.color-in { display: flex; align-items: center; gap: 12px; padding: 7px 12px 7px 7px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); cursor: pointer; transition: border-color 160ms ease; }
.color-in:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 21, 21, .1); }
.color-in input { -webkit-appearance: none; appearance: none; width: 40px; height: 40px; border: 0; padding: 0; border-radius: 6px; background: none; cursor: pointer; flex: none; }
.color-in input::-webkit-color-swatch-wrapper { padding: 0; }
.color-in input::-webkit-color-swatch { border: 0; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.color-in input::-moz-color-swatch { border: 0; border-radius: 6px; }
.color-in input:focus { outline: none; }
.color-meta { display: grid; line-height: 1.25; font-size: 14px; font-weight: 600; color: var(--ink); }
.color-meta output { font-size: 13px; color: var(--muted); text-transform: uppercase; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.preset {
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; position: relative; background: conic-gradient(from 225deg, var(--p1) 0 50%, var(--p2) 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform 160ms var(--ease), box-shadow 160ms ease;
}
.preset:active { transform: scale(.92); }
.preset[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.opts { display: flex; gap: 8px; }
.opts .opt { flex: 1; }
.opt {
  display: grid; justify-items: center; gap: 6px; min-width: 56px; padding: 8px 6px 7px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--paper);
  font-size: 12px; font-weight: 600; color: var(--muted); transition: border-color 160ms ease, color 160ms ease, transform 160ms var(--ease), box-shadow 160ms ease;
}
.opt:active { transform: scale(.96); }
.opt[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt .stamp-mono { width: 30px; height: 30px; font-size: 12px; }
.opt .stamp-mono[data-shape="arch"] { height: 33px; }
.opt .stamp-mono[data-shape="rounded"] { border-radius: 8px; }
.opt .stamp-mono[data-shape="outline"] { box-shadow: inset 0 0 0 2px var(--b1); }
.opt-aa { font-size: 23px; line-height: 30px; color: var(--ink); font-weight: 700; }
.seg-wide { display: flex; width: 100%; }
.seg-wide button { flex: 1; justify-content: center; }
.tone-sample { margin-top: 10px; font-size: 15px; color: var(--muted); min-height: 1.5em; }
.tone-sample b { color: var(--ink); font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.share-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.share-url { margin-top: 12px; font-size: 13px; color: var(--ink-2); background: var(--wash); }
.end-copy .share-url { max-width: 560px; }

.brand-preview { position: sticky; top: 88px; display: grid; gap: 22px; min-width: 0; }
.bp-top { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; }
.bp-stamp { position: relative; transform: rotate(-3deg); }
.bp-postmark { position: absolute; right: -62px; top: 22px; width: 150px; height: 104px; transform: rotate(-10deg); pointer-events: none; }
.bp-kit { margin: 0; display: grid; gap: 12px; padding-left: 64px; min-width: 0; }
.bp-kit div { display: grid; grid-template-columns: 76px 1fr; align-items: baseline; gap: 10px; border-bottom: 1px dashed var(--line-2); padding-bottom: 9px; min-width: 0; }
.bp-kit dt { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bp-kit dd { margin: 0; font-size: 15px; color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.sw { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }
.paper { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--rp); box-shadow: var(--sh-paper); overflow: hidden; }
.paper-bar { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--paper); }
.paper-bar span:first-child { white-space: nowrap; }
.paper-bar span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.frag-clip { position: relative; overflow: hidden; height: 560px; }
.frag-clip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, rgba(255, 255, 255, .96)); pointer-events: none; }
.frag { width: 600px; transform-origin: 0 0; }
.frag[data-scale="fit"] { position: absolute; left: 0; top: 0; }

/* ---------- sequence ---------- */
.seq { padding: 104px 0 104px; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seq-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 44px; align-items: start; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 21px; top: 26px; bottom: 26px; border-left: 2px dashed var(--line-2); }
.tl-item { position: relative; }
.tl-btn {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; width: 100%; text-align: left; padding: 12px 14px 12px 0;
  border: 0; background: transparent; border-radius: var(--r); color: inherit; transition: background-color 180ms ease, transform 160ms var(--ease);
}
.tl-btn:active { transform: scale(.99); }
.tl-node {
  grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--line-2); position: relative; z-index: 1; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.tl-item.cond .tl-node { border-style: dashed; }
.tl-node .ic { width: 20px; height: 20px; }
.tl-when { font-family: var(--mono); font-size: 12px; line-height: 18px; color: var(--ink); text-transform: uppercase; letter-spacing: .03em; padding-top: 2px; }
.tl-when i { font-style: normal; color: var(--muted); text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 13px; }
.tl-subj { font-weight: 660; color: var(--ink); font-size: 16px; line-height: 1.3; margin-top: 3px; }
.tl-pre { font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
@media (hover: hover) and (pointer: fine) { .tl-btn:hover { background: var(--wash); } }
.tl-btn[aria-pressed="true"] { background: var(--wash); }
.tl-btn[aria-pressed="true"] .tl-node { background: var(--red); border-color: var(--red); color: #fff; border-style: solid; }
.tl-btn[aria-pressed="true"] .tl-pre { -webkit-line-clamp: 2; }

.viewer { position: sticky; top: 84px; min-width: 0; }
.peek { margin-bottom: 14px; }
.peek-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--rp); background: var(--paper); overflow: hidden; }
.peek-list li { display: grid; grid-template-columns: 30px 150px minmax(0, 1fr) 64px; align-items: center; gap: 12px; padding: 7px 14px; font-size: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.peek-list li:first-child { border-top: 0; }
.peek-list li.on { background: #f7f7f7; color: var(--ink-2); }
.peek-list .pk-from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.peek-list li.on .pk-from, .peek-list li.on .pk-subj { font-weight: 700; color: var(--ink); }
.peek-list .pk-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peek-list .pk-time { text-align: right; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.peek-list .avatar { width: 30px; height: 30px; font-size: 11px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--b1, #555); color: var(--k1, #fff); flex: none; }
.avatar.ph { background: var(--wash); color: var(--muted); }
.viewer-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.reader-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.viewer-actions { display: flex; gap: 8px; flex: none; }
.reader { border: 1px solid var(--line-2); border-radius: var(--rp); background: var(--paper); overflow: hidden; box-shadow: var(--sh-paper); transition: background-color 240ms ease, border-color 240ms ease; }
.reader-head { padding: 16px 20px 14px; border-bottom: 1px solid var(--line); transition: background-color 240ms ease, border-color 240ms ease; }
.reader-subj { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1.3; }
.reader-from { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.reader-from .mono { font-size: 12px; color: var(--muted); }
.reader-when { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; align-self: flex-start; }
.reader-stage { height: clamp(400px, calc(100vh - 440px), 640px); background: #f1f1f1; display: grid; justify-items: center; align-items: start; transition: background-color 240ms ease; overflow: hidden; }
.device { width: 100%; height: 100%; position: relative; transition: width 320ms var(--ease); }
.device iframe { width: 100%; height: 100%; border: 0; display: block; background: transparent; }
.reader-stage[data-device="phone"] { padding: 22px 0; }
.reader-stage[data-device="phone"] .device { width: 375px; height: 616px; border-radius: 40px; border: 11px solid #151515; background: #151515; overflow: hidden; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .45); }
.reader-stage[data-device="phone"] .device iframe { border-radius: 29px; }
.plain { margin: 0; width: 100%; height: 100%; overflow: auto; padding: 26px 28px; background: #fff; color: #222; font-family: var(--mono); font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.reader.dark { background: #1b1b1d; border-color: #2c2c2e; }
.reader.dark .reader-head { background: #1b1b1d; border-color: #2c2c2e; }
.reader.dark .reader-subj, .reader.dark .reader-from b { color: #f2f2f2; }
.reader.dark .reader-from, .reader.dark .muted, .reader.dark .reader-from .mono, .reader.dark .reader-when { color: #a8a8ac; }
.reader.dark .reader-stage { background: #111113; }
.reader.dark .reader-stage[data-device="phone"] .device { box-shadow: 0 0 0 1px #3a3a3e, 0 24px 48px -24px rgba(0, 0, 0, .6); }
.reader.dark .plain { background: #18181a; color: #e6e6e6; }

/* ---------- run it ---------- */
.run { padding: 104px 0 104px; }
.sim-note { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 15px !important; color: var(--ink) !important; background: var(--red-tint); padding: 8px 14px; border-radius: var(--r); }
.sim-note .ic { color: var(--red-ink); }
.run-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: start; }
.widget { position: sticky; top: 84px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--rp); overflow: hidden; box-shadow: var(--sh-paper); --b1: #5b2a4e; --k1: #fff; --b2: #f3d1d8; --k2: #161616; }
.w-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--b1); color: var(--k1); }
.w-head .stamp-mono { width: 38px; height: 38px; font-size: 14px; background: var(--b2); color: var(--k2); }
.w-head .stamp-mono[data-shape="arch"] { height: 42px; }
.w-head .stamp-mono[data-shape="outline"] { background: transparent; color: var(--k1); box-shadow: inset 0 0 0 2px var(--k1); }
.w-head b { display: block; font-size: 16px; line-height: 1.2; letter-spacing: -0.01em; }
.w-head span { font-size: 13px; opacity: .85; }
.w-body { padding: 16px 18px 18px; }
.w-field { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.w-services { display: grid; gap: 6px; }
.w-svc {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; text-align: left; padding: 9px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--paper);
  font-size: 14px; line-height: 1.3; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease);
}
.w-svc:active { transform: scale(.985); }
.w-svc b { font-weight: 640; color: var(--ink); }
.w-svc span { color: var(--muted); font-size: 12.5px; grid-column: 1; }
.w-svc em { font-style: normal; font-family: var(--mono); font-size: 13px; grid-row: 1 / span 2; grid-column: 2; color: var(--ink); }
.w-svc[aria-pressed="true"] { border-color: var(--b1); box-shadow: inset 0 0 0 1.5px var(--b1); }
.w-days, .w-times { display: flex; flex-wrap: wrap; gap: 6px; }
.w-pill {
  min-height: 40px; padding: 0 11px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--paper); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease);
}
.w-pill:active { transform: scale(.96); }
.w-pill[aria-pressed="true"] { background: var(--b1); color: var(--k1); border-color: var(--b1); }
.w-submit { width: 100%; background: var(--b1); color: var(--k1); min-height: 48px; font-size: 16px; }
.w-fine { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }
.w-done { padding: 30px 22px 26px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.w-done-stamp {
  font-family: var(--mono); font-weight: 500; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  border: 2.5px solid var(--red); border-radius: 6px; padding: 6px 14px; transform: rotate(-6deg); mix-blend-mode: multiply;
}
.w-done-stamp.thud { animation: thud 420ms var(--ease) both; }
@keyframes thud { 0% { transform: rotate(-6deg) scale(1.35); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(-6deg) scale(1); opacity: 1; } }
.w-done-title { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-top: 6px; }
.w-done-sub { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.w-stats { width: 100%; margin: 10px 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); text-align: left; }
.w-stats div { padding: 11px 4px 10px; border-bottom: 1px solid var(--line); }
.w-stats div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 12px; }
.w-stats div:nth-child(even) { padding-left: 14px; }
.w-stats dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.w-stats dd { margin: 3px 0 0; font-size: 18px; font-weight: 720; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; }
.w-stats dd.flash { animation: statflash 1200ms ease-out; }
@keyframes statflash { 0%, 30% { background: var(--hi); } 100% { background: transparent; } }

.run-right { display: grid; gap: 16px; min-width: 0; }
.clock { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--rp); padding: 18px 20px 16px; box-shadow: var(--sh-paper); }
.clock-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.clock-date { font-size: 28px; font-weight: 760; color: var(--ink); letter-spacing: -0.025em; line-height: 1.1; }
.clock-time { font-size: 14px; color: var(--muted); margin-top: 3px; }
.clock-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.route { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: relative; }
.route::before { content: ""; position: absolute; left: 14px; right: 14px; top: 14px; border-top: 2px dashed var(--line-2); }
.route-fill { position: absolute; left: 14px; top: 13px; height: 4px; background: var(--red); border-radius: 2px; width: 0; transition: width 400ms var(--ease); }
.route li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.route .rn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--line-2); color: var(--faint); position: relative; z-index: 1; transition: background-color 240ms ease, border-color 240ms ease, color 240ms ease, transform 240ms var(--ease); }
.route .rn .ic { width: 15px; height: 15px; }
.route .rl { font-family: var(--mono); font-size: 10.5px; line-height: 13px; color: var(--faint); text-transform: uppercase; letter-spacing: .02em; overflow-wrap: anywhere; padding: 0 2px; }
.route li.done .rn { background: var(--red); border-color: var(--red); color: #fff; }
.route li.done .rl { color: var(--ink); }
.route li.now .rn { transform: scale(1.14); }
.route li.skipped .rn { border-style: dashed; color: var(--faint); background: var(--wash); }
.route li.skipped .rl { text-decoration: line-through; }
.clock-status { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); min-height: 1.5em; }
.clock-status b { color: var(--ink); }

.mailbox { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); height: 470px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--rp); overflow: hidden; box-shadow: var(--sh-paper); }
.mb-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; position: relative; }
.mb-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); gap: 10px; }
.mb-head .mono-label { margin: 0; }
.mb-follow { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; min-height: 32px; }
.mb-follow input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
#mbList { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.mb-item { border-bottom: 1px solid var(--line); }
.mb-item button {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 10px; width: 100%; text-align: left; padding: 11px 14px; border: 0; background: transparent; color: var(--muted); font-size: 13.5px; line-height: 1.35;
  transition: background-color 160ms ease;
}
.mb-item .avatar { grid-row: span 3; width: 30px; height: 30px; font-size: 11px; }
.mb-row1 { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-2); }
.mb-row1 span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-row1 time { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.mb-subj { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-pre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-item.unread .mb-row1 span:first-child, .mb-item.unread .mb-subj { font-weight: 700; color: var(--ink); }
.mb-item.unread button { box-shadow: inset 3px 0 0 transparent; }
.mb-item.sel button { background: var(--wash); }
.mb-tag { display: inline-block; margin-left: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--red-ink); text-transform: uppercase; letter-spacing: .04em; }
@media (hover: hover) and (pointer: fine) { .mb-item button:hover { background: #f6f6f6; } }
.mb-item.arrive { animation: arrive 520ms var(--ease) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.mb-empty { position: absolute; inset: 52px 0 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px; color: var(--muted); font-size: 14px; }
.mb-empty .ic { width: 30px; height: 30px; color: var(--line-2); }
.mb-read { position: relative; background: #f1f1f1; min-width: 0; }
.mb-read iframe { width: 100%; height: 100%; border: 0; display: block; }
.mb-read-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; background: #f6f6f6; }
.mb-dialog { width: min(640px, calc(100vw - 24px)); height: min(760px, calc(100dvh - 40px)); padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.mb-dialog[open] { display: flex; flex-direction: column; }
.mb-dialog::backdrop { background: rgba(21, 21, 21, .55); }
.mb-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.mb-dialog-bar .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-dialog iframe { flex: 1; width: 100%; border: 0; }

/* sheet */
.sheet-wrap { margin-top: 44px; }
.sheet-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.sheet-title h3 { font-size: 26px; letter-spacing: -0.02em; }
.sheet-title h3 span { color: var(--red-ink); font-weight: 600; }
.sheet-title p { color: var(--muted); font-size: 15px; }
.gs { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--rp); overflow: hidden; box-shadow: var(--sh-paper); font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; }
.gs-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.gs-icon { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; background: #1e8e3e; color: #fff; flex: none; }
.gs-icon .ic { width: 18px; height: 18px; }
.gs-file { display: grid; min-width: 0; line-height: 1.3; }
.gs-file b { font-weight: 600; color: var(--ink); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font); }
.gs-file span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.gs-sim { margin-left: auto; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--red-ink); border: 1px solid currentColor; border-radius: 4px; padding: 3px 7px; white-space: nowrap; }
.gs-fx { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-bottom: 1px solid var(--line); font-size: 13px; min-height: 34px; }
.gs-ref { width: 52px; font-size: 12px; color: var(--ink-2); border-right: 1px solid var(--line); flex: none; }
.gs-fxi { color: var(--faint); font-style: italic; font-size: 13px; }
.gs-val { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-grid { overflow: auto; max-height: 352px; position: relative; overscroll-behavior: contain; }
.gs-grid:focus-visible { outline-offset: -2px; }
.gs table { border-collapse: separate; border-spacing: 0; font-size: 13px; color: #202124; min-width: 100%; }
.gs th, .gs td { border-right: 1px solid #e2e3e3; border-bottom: 1px solid #e2e3e3; padding: 0 8px; height: 30px; white-space: nowrap; text-align: left; font-weight: 400; }
.gs thead th { position: sticky; top: 0; z-index: 2; background: #f8f9fa; color: #5f6368; font-size: 11.5px; text-align: center; height: 24px; }
.gs .rn-h, .gs td.rn { position: sticky; left: 0; z-index: 1; background: #f8f9fa; color: #5f6368; text-align: center; font-size: 11.5px; width: 40px; min-width: 40px; max-width: 40px; padding: 0; }
.gs thead .rn-h { z-index: 3; }
.gs .fz { position: sticky; z-index: 1; background: #fff; }
.gs .fz1 { left: 40px; }
.gs thead .fz { z-index: 3; background: #f8f9fa; }
.gs .fz-last { box-shadow: inset -2px 0 0 #c6c9cc; }
.gs tr.new td.fz { background: #fffcef; }
.gs tr.hdr td { font-weight: 700; background: #fff; color: #202124; }
.gs td.num { text-align: right; }
.gs td.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.gs td.flash { animation: cellflash 1600ms ease-out both; }
@keyframes cellflash { 0%, 30% { background: var(--hi); } 100% { background: transparent; } }
.gs tr.new td:not(.rn) { background: #fffcef; }
.gs .tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; line-height: 16px; background: #eef0f1; color: #3c4043; }
.gs .tag.ok { background: #e6f4ea; color: #146c2e; }
.gs .tag.go { background: #e8f0fe; color: #1a4fb4; }
.gs .tag.warn { background: #fef7e0; color: #8a5a00; }
.gs .tag.red { background: var(--red-tint); color: var(--red-ink); }
.gs .tag.dim { background: #f1f3f4; color: #5f6368; }
.gs-tabs { display: flex; gap: 2px; padding: 0 8px; background: #f8f9fa; border-top: 1px solid var(--line); overflow-x: auto; }
.gs-tabs button {
  min-height: 40px; padding: 0 16px; border: 0; background: transparent; color: #444746; font-size: 13.5px; font-weight: 600; font-family: var(--font);
  border-bottom: 3px solid transparent; transition: background-color 160ms ease, color 160ms ease; white-space: nowrap;
}
.gs-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); border-bottom-color: var(--red); }
.gs-tabs button .cnt { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-left: 6px; font-weight: 400; }

/* ---------- why ---------- */
.why { padding: 104px 0; background: var(--paper); border-top: 1px solid var(--line); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.vs-col { margin: 0; min-width: 0; }
.vs-plain { padding: 0; height: 470px; }
.vs-meta { padding: 16px 22px; border-bottom: 1px solid var(--line); font-family: Arial, sans-serif; font-size: 13px; color: #444; display: grid; gap: 4px; }
.vs-meta span { display: inline-block; width: 64px; color: #888; }
.vs-plain-body { padding: 22px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.55; color: #222; }
.vs-plain-body p { margin: 0 0 12px; }
.vs-plain-body a { color: #1a0dab; }
.vs-brand { height: 470px; }
.frag-clip-vs { height: 470px; }
.vs-cap { margin-top: 18px; font-weight: 700; color: var(--ink); font-size: 18px; letter-spacing: -0.01em; }
.vs-points { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15.5px; }
.vs-points li { display: flex; gap: 10px; align-items: flex-start; }
.vs-points .ic { margin-top: 3px; }
.vs-bad .ic { color: var(--faint); }
.vs-good .ic { color: var(--red-ink); }

.calc { margin-top: 88px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.calc h3 { font-size: clamp(1.7rem, 1.4vw + 1rem, 2.4rem); }
.calc-sub { margin-top: 10px; color: var(--muted); font-size: 16px; }
.calc-field { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: baseline; margin-top: 26px; }
.calc-field label { font-size: 15.5px; color: var(--ink); font-weight: 560; }
.calc-field output { font-size: 15.5px; color: var(--ink); font-weight: 650; font-family: var(--font); }
.calc-field input { grid-column: 1 / -1; width: 100%; accent-color: var(--ink); height: 28px; margin: 0; cursor: pointer; }
.calc-assume { padding: 16px 16px 12px; background: var(--red-tint); border-radius: var(--r); }
.calc-assume input { accent-color: var(--red-ink); }
.receipt { position: relative; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--rp); padding: 28px 28px 24px; box-shadow: 8px 8px 0 var(--wash); }
.receipt::before { content: ""; position: absolute; left: 16px; right: 16px; top: 52px; border-top: 1px dashed var(--line-2); }
.receipt-head { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--red-ink); }
.receipt-big { margin-top: 30px; font-size: clamp(2.6rem, 3vw + 1rem, 3.6rem); font-weight: 800; color: var(--ink); letter-spacing: -0.035em; line-height: 1; display: grid; gap: 6px; }
.receipt-big small { font-size: 15px; font-weight: 560; color: var(--muted); letter-spacing: 0; }
.receipt-rows { margin: 22px 0 0; display: grid; gap: 0; }
.receipt-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.receipt-rows dt { color: var(--ink-2); }
.receipt-rows dd { margin: 0; color: var(--ink); font-weight: 650; white-space: nowrap; font-family: var(--font); }
.receipt-math { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- setup ---------- */
.setup { padding: 104px 0 96px; }
.setup-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
.track { list-style: none; margin: 0; padding: 0; position: relative; }
.track::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 40px; border-left: 2px solid var(--ink); }
.track li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding-bottom: 30px; position: relative; }
.track li:last-child { padding-bottom: 0; }
.track-mark { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ink); color: var(--ink); position: relative; z-index: 1; }
.track li:last-child .track-mark { background: var(--red); border-color: var(--red); color: #fff; }
.track-mark .ic { width: 20px; height: 20px; }
.track-status { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--red-ink); margin-top: 3px; }
.track h3 { font-size: 21px; letter-spacing: -0.015em; margin-top: 5px; line-height: 1.2; }
.track p:not(.track-status) { margin-top: 6px; font-size: 16px; color: var(--ink-2); max-width: 34em; }
.slip { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--rp); padding: 24px 26px 18px; box-shadow: var(--sh-paper); position: relative; }
.slip::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -6px; height: 12px; background: radial-gradient(circle at 7px 6px, var(--bg) 4.2px, transparent 4.8px) 0 0 / 14px 12px repeat-x; }
.slip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.slip-head h3 { font-size: 22px; }
.slip-head .mono { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.slip-table { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 15px; }
.slip-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 0 6px; font-weight: 400; }
.slip-table td { padding: 10px 0; border-top: 1px dashed var(--line-2); color: var(--ink); vertical-align: top; }
.slip-table td:first-child { width: 58px; color: var(--red-ink); font-size: 14px; }
.faq-wrap { margin-top: 96px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-title { font-size: clamp(1.8rem, 1.6vw + 1rem, 2.6rem); }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; cursor: pointer; font-weight: 640; font-size: 17.5px; color: var(--ink); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform 220ms var(--ease); color: var(--ink); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 2px 20px; max-width: 40em; color: var(--ink-2); }

/* ---------- end ---------- */
.end { padding: 24px 0 104px; }
.end-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; padding: 52px 56px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--rp); position: relative; overflow: hidden; }
.end-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 9px; background: var(--stripes); }
.end-stamp { transform: rotate(-4deg); }
.end-copy h2 { font-size: clamp(2rem, 2.4vw + .9rem, 3.1rem); }
.end-copy p { margin-top: 14px; font-size: 18px; max-width: 36em; }
.end-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.foot { border-top: 1px solid var(--line); padding: 26px 0 96px; font-size: 14px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover { text-decoration: underline; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px);
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r); font-size: 14.5px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45);
  transition: transform 260ms var(--ease), opacity 200ms ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- reveal (fail-open: only hidden after JS adds rv-on) ---------- */
html.rv-on .rv { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
html.rv-on .rv.in { opacity: 1; transform: none; }
html.shot *, html.shot *::before, html.shot *::after { transition: none !important; animation: none !important; }
html.shot { scroll-behavior: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  html.rv-on .rv { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .brand-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
  .bp-top { grid-template-columns: 1fr; }
  .bp-kit { padding-left: 0; }
  .bp-postmark { right: auto; left: 120px; }
  .seq-grid { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; }
  .peek-list li { grid-template-columns: 32px 120px minmax(0, 1fr) 54px; }
}
@media (max-width: 1020px) {
  :root { --gut: 24px; }
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { max-width: 640px; }
  .brand-grid { grid-template-columns: 1fr; }
  .brand-preview { position: relative; top: 0; order: -1; }
  .bp-top { grid-template-columns: auto 1fr; }
  .bp-kit { padding-left: 76px; }
  .bp-postmark { left: auto; right: -62px; }
  .seq-grid { grid-template-columns: 1fr; }
  .viewer { position: relative; top: 0; }
  .tl { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; margin: 0 calc(-1 * var(--gut)); padding-left: var(--gut); padding-right: var(--gut); scroll-padding-left: var(--gut); scrollbar-width: thin; }
  .tl::before { display: none; }
  .tl-item { flex: 0 0 250px; scroll-snap-align: start; }
  .tl-btn { height: 100%; border: 1px solid var(--line); padding: 12px; align-content: start; background: var(--paper); grid-template-columns: 36px minmax(0, 1fr); }
  .tl-node { width: 36px; height: 36px; }
  .tl-node .ic { width: 17px; height: 17px; }
  .tl-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--paper); }
  .run-grid { grid-template-columns: 1fr; }
  .widget { position: relative; top: 0; }
  .w-services { grid-template-columns: 1fr 1fr; }
  .vs { gap: 24px; }
  .calc { grid-template-columns: 1fr; gap: 32px; }
  .setup-grid, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .end-card { grid-template-columns: 1fr; gap: 28px; padding: 40px 32px; }
}
@media (max-width: 760px) {
  :root { --gut: 20px; }
  body { font-size: 16px; }
  .logo span { display: none; }
  .hero { padding: 36px 0 44px; }
  .hero h1 { font-size: clamp(2.35rem, 9.6vw, 3rem); }
  .lede { font-size: 17px; margin-top: 16px; }
  .hero-try-row { flex-direction: column; }
  .hero-try-row .btn { width: 100%; }
  .brand, .seq, .run, .why, .setup { padding: 68px 0; }
  .sec-head { margin-bottom: 30px; }
  .sec-head p { font-size: 16.5px; }
  .form-card { padding: 26px 18px 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .colors { grid-template-columns: 1fr 1fr; }
  .color-in { padding: 6px 8px 6px 6px; gap: 8px; }
  .color-in input { width: 34px; height: 34px; }
  .opts-logo .opt { min-width: 0; flex: 1; }
  .opts-font .opt { flex: 1; }
  .form-actions .btn { width: 100%; }
  .bp-top { grid-template-columns: 1fr; gap: 18px; }
  .bp-stamp { justify-self: start; }
  .stamp-lg { width: 150px; height: 182px; }
  .stamp-lg .stamp-mono { width: 72px; height: 72px; font-size: 27px; }
  .stamp-lg .stamp-mono[data-shape="arch"] { height: 82px; }
  .bp-postmark { left: 110px; right: auto; top: 30px; width: 150px; }
  .bp-kit { padding-left: 0; }
  .frag-clip { height: 430px; }
  .w-services { grid-template-columns: 1fr; }
  .peek-list li { grid-template-columns: 30px minmax(0, 1fr) 46px; gap: 10px; padding: 9px 12px; }
  .peek-list .pk-from { grid-column: 2; grid-row: 1; }
  .peek-list .pk-line { grid-column: 2 / -1; grid-row: 2; }
  .peek-list .pk-time { grid-column: 3; grid-row: 1; }
  .peek-list .avatar { grid-row: span 2; width: 30px; height: 30px; }
  .viewer-bar .seg { flex: 1 1 auto; }
  .viewer-bar .seg button { flex: 1; justify-content: center; padding: 0 8px; }
  .viewer-actions { width: 100%; }
  .viewer-actions .btn { flex: 1; }
  .reader-head { padding: 14px 14px 12px; }
  .reader-top { flex-direction: column; gap: 12px; }
  .reader-subj { font-size: 17px; }
  .reader-when { display: none; }
  .reader-stage { height: 560px; }
  .reader-stage[data-device="phone"] { padding: 14px 0; }
  .reader-stage[data-device="phone"] .device { width: min(330px, calc(100% - 20px)); height: 530px; border-width: 9px; border-radius: 34px; }
  .reader-stage[data-device="phone"] .device iframe { border-radius: 25px; }
  .clock { padding: 16px 14px 14px; }
  .clock-top { align-items: flex-start; }
  .clock-date { font-size: 24px; }
  .clock-ctl { width: 100%; }
  .clock-ctl .btn { margin-left: auto; }
  .route .rl { display: none; }
  .route::before { left: 12px; right: 12px; }
  .route .rn { width: 26px; height: 26px; }
  .route .rn .ic { width: 13px; height: 13px; }
  .mailbox { grid-template-columns: 1fr; height: auto; }
  .mb-list { border-right: 0; min-height: 230px; }
  #mbList { max-height: 360px; }
  .mb-read { display: none; }
  .sheet-title h3 { font-size: 22px; }
  .gs-file span { display: none; }
  .gs .fz { position: static; }
  .gs .fz-last { box-shadow: none; }
  .vs { grid-template-columns: 1fr; gap: 40px; }
  .vs-plain { height: auto; }
  .vs-brand, .frag-clip-vs { height: 430px; }
  .calc { margin-top: 64px; }
  .receipt { padding: 24px 20px 20px; }
  .track li { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .track::before { left: 19px; }
  .track-mark { width: 40px; height: 40px; }
  .track h3 { font-size: 19px; }
  .slip { padding: 20px 18px 16px; }
  .faq-wrap { margin-top: 64px; }
  .faq summary { font-size: 16.5px; }
  .end { padding-bottom: 72px; }
  .end-card { padding: 34px 20px 28px; }
  .end-btns .btn { width: 100%; white-space: normal; text-align: center; }
  .foot { padding-bottom: 110px; }
}
