/* iknow.tw 首頁「一店一日」(2026-11-24, owner: 「奢華、專業、高級感、動態效果」「不要 AI 感太重」).
   帳本的紙、帳房藍的拉絲鋼、一條香檳金的細線；標題用思源宋體，內文思源黑體，時間和金額用等寬數字。
   The other pages (links, 404, the legal pages) keep style.css. Every colour and face is a token below;
   motion only ever moves transform and opacity, and home.js is an enhancement — without it nothing hides. */
:root {
  --paper: #F5F2EA;
  --paper-2: #ECE7DB;
  --card: #FFFDF8;
  --ink: #111C30;
  --ink-2: #4A576C;
  --ink-3: #586377;
  --rule: rgba(17, 28, 48, .16);
  --rule-soft: rgba(17, 28, 48, .08);
  --brand: #1B3A6B;
  --brand-deep: #122A50;
  --on-brand: #FDFCF8;
  --night: #0A1424;
  --on-night: #EEF2F8;
  --on-night-2: #AEBBD0;
  --on-night-3: #8693AA;
  --rule-night: rgba(238, 242, 248, .16);
  --gold: #C9A96A;
  --gold-ink: #86662B;
  --gold-soft: rgba(201, 169, 106, .3);
  --ok: #23774F;
  --bad: #B3261E;
  --bad-night: #E08A82;
  /* The blue a supplier's dot-matrix printer leaves on a 銷貨單. */
  --print: #2B4A9B;
  --paper-edge: #E6DFCD;
  --hole: #DDD6C4;
  --press: rgba(0, 0, 0, .14);
  --shadow: rgba(10, 20, 36, .5);
  --shadow-soft: rgba(10, 20, 36, .22);
  /* 拉絲藍鋼: hairlines one pixel apart over a slow diagonal of the brand blue (the app's 76-glaze-steel). */
  --steel: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, rgba(0, 0, 0, .05) 1px 2px, rgba(255, 255, 255, .02) 2px 3px),
    linear-gradient(135deg, #2A4C82 0%, #1B3A6B 38%, #14305B 62%, #24467A 100%);
  --steel-night: repeating-linear-gradient(90deg, rgba(255, 255, 255, .028) 0 1px, rgba(0, 0, 0, .06) 1px 2px, rgba(255, 255, 255, .012) 2px 3px),
    linear-gradient(160deg, #17325E 0%, #0F2242 46%, #0A1424 100%);
  --steel-edge: rgba(255, 255, 255, .16);
  --steel-top: rgba(255, 255, 255, .28);
  --bezel: linear-gradient(145deg, #40609A 0%, #12284B 46%, #2C4D82 100%);
  --bezel-edge: rgba(10, 20, 36, .55);
  --sheen: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .26) 50%, transparent 100%);
  /* Paper grain: a still, very faint speckle, so the cream reads as stock and not as a flat fill. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .11 0 0 0 0 .19 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --fade-in-right: linear-gradient(90deg, transparent, #000 60%);
  --bar-bg: rgba(245, 242, 234, .97);
  --bar-bg-night: rgba(10, 20, 36, .96);
  /* The night side of the day: the same brushed hairlines as the steel, barely there. */
  --night-grain: repeating-linear-gradient(90deg, rgba(255, 255, 255, .011) 0 1px, transparent 1px 4px);
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 20px;
  --wrap: 1160px;
  /* Full-bleed sections, capped content: at 1920 the gutters grow, the measure does not. */
  --pad: max(var(--gutter), calc(50% - var(--wrap) / 2));
  --dock-h: 74px;
  --phone-w: 248px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 24px; }
body {
  margin: 0; overflow-x: clip;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 400 16px/1.75 var(--sans);
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
p, li, summary { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
q { quotes: "「" "」" "『" "』"; }
strong { font-weight: 700; }
/* Chinese may break between any two characters, so text is cut into phrases that break between each
   other, never inside ("讀出／來", "24／小時"). A phrase longer than the line still wraps inside itself. */
.phrase { display: inline-block; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.icon { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 60; padding: 12px 16px; border-radius: 8px;
  background: var(--brand); color: var(--on-brand); font-weight: 700; text-decoration: none; transform: translateY(-80px);
}
.skip-link:focus { transform: none; }

/* ── Top bar ── */
.topbar { position: relative; z-index: 40; --bar-fg: var(--ink); --bar-fg-2: var(--ink-2); --bar-rule: var(--rule); }
.topbar-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--bar-fg); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
/* The app's seal: a steel square with a second line just inside its edge. */
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: var(--steel); color: var(--on-brand); font: 400 13px/1 var(--mono); letter-spacing: .04em;
  box-shadow: inset 0 0 0 3px var(--brand), inset 0 0 0 4px var(--steel-edge);
}
.topbar-nav { display: none; }
.topbar-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--bar-rule); border-radius: 8px;
  color: var(--bar-fg); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: border-color .2s, background-color .2s;
}
.topbar-link:hover { border-color: var(--gold); }
.topbar-link:active { background-color: var(--rule-soft); }

/* ── Buttons: one primary — brushed steel under a hairline of light. The press darkens and never moves. ── */
.button {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px; border-radius: 10px; font: 700 17px/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  transition: box-shadow .2s var(--ease);
}
.button-primary {
  background: var(--steel); color: var(--on-brand);
  box-shadow: inset 0 0 0 1px var(--steel-edge), inset 0 1px 0 var(--steel-top), 0 18px 30px -18px var(--shadow);
}
.button-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sheen); transform: translateX(-130%);
  transition: transform .9s var(--ease);
}
.button-primary:hover::after, .button-primary:focus-visible::after { transform: translateX(130%); }
.button-primary:active { box-shadow: inset 0 0 0 1px var(--steel-edge), inset 0 0 0 100px var(--press); }
.button-light { background: var(--paper); color: var(--brand-deep); box-shadow: 0 18px 34px -20px var(--night); }
.button-light:hover { background: var(--card); }
.button-light:active { box-shadow: inset 0 0 0 100px var(--press); }

/* ── Hero ── */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 12px var(--pad) 64px; }
/* 帳本紙: ruled lines fading in from the right, behind the phone. */
.hero::before {
  content: ""; position: absolute; inset: 46% 0 0 24%; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 43px, var(--rule-soft) 43px 44px);
  -webkit-mask-image: var(--fade-in-right); mask-image: var(--fade-in-right);
}
.stage-pill { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--gold-ink); font-size: 13px; font-weight: 400; }
.stage-pill::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.hero h1 { font: 900 clamp(38px, 10.8vw, 46px)/1.2 var(--serif); letter-spacing: .01em; }
.lead { max-width: 28em; margin-top: 20px; color: var(--ink-2); font-size: 17px; }
.lead strong { color: var(--ink); }
.hero .button { width: 100%; margin-top: 28px; }
.cta-note { max-width: 30em; margin-top: 12px; color: var(--ink-3); font-size: 14px; }
/* 「想先問問題？傳 LINE 給客服」 under the first button: the trial starts in the app; LINE is for questions. */
.cta-note a { display: inline-block; padding: 10px 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.hero-demo { display: grid; gap: 16px; }
.hero-stage { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.hero-stage .phone { width: 100%; transform: perspective(1400px) rotateX(calc(var(--tx, 0) * 1deg)) rotateY(calc(var(--ty, 0) * 1deg)); transition: transform .5s var(--ease); }
.hero-demo figcaption, .stop-figure figcaption { color: var(--ink-3); font-size: 13px; }

/* A real screen in a plain steel bezel — no drawn notch, no fake status bar. */
.phone {
  width: var(--phone-w); padding: 8px; border-radius: 38px; background: var(--bezel);
  box-shadow: 0 0 0 1px var(--bezel-edge), inset 0 1px 0 var(--steel-top), 0 36px 60px -32px var(--shadow), 0 14px 26px -18px var(--shadow);
}
.phone-screen { position: relative; aspect-ratio: 390 / 844; overflow: hidden; border-radius: 31px; background: var(--night); }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Several screens of one job, one after another: each later screen fades in over the one before and all
   leave together when the loop starts again. home.js lets them run only while they are on screen. */
.phone-screen img:nth-child(n + 2) { opacity: 0; }
[data-frames="2"] img:nth-child(2) { animation: two-2 9s linear infinite; }
[data-frames="3"] img:nth-child(2) { animation: three-2 12s linear infinite; }
[data-frames="3"] img:nth-child(3) { animation: three-3 12s linear infinite; }
[data-frames="4"] img:nth-child(2) { animation: four-2 14s linear infinite; }
[data-frames="4"] img:nth-child(3) { animation: four-3 14s linear infinite; }
[data-frames="4"] img:nth-child(4) { animation: four-4 14s linear infinite; }
@keyframes two-2 { 0%, 44% { opacity: 0; } 49%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes three-2 { 0%, 29% { opacity: 0; } 33%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes three-3 { 0%, 62% { opacity: 0; } 66%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes four-2 { 0%, 22% { opacity: 0; } 25%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes four-3 { 0%, 47% { opacity: 0; } 50%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes four-4 { 0%, 72% { opacity: 0; } 75%, 97% { opacity: 1; } 100% { opacity: 0; } }

/* The four steps beside the hero's phone light up with its four screens (the same 14 seconds). */
.steps { position: relative; display: grid; gap: 20px; padding-left: 16px; counter-reset: none; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--rule); }
.steps::after { background: var(--gold-ink); transform-origin: top; animation: steps-rail 14s linear infinite; }
.steps li { color: var(--ink); font-size: 14px; font-weight: 400; line-height: 1.45; }
.steps b { display: block; color: var(--gold-ink); font: 400 12px/1.6 var(--mono); }
.steps li:nth-child(1) { animation: step-1 14s linear infinite; }
.steps li:nth-child(2) { animation: step-2 14s linear infinite; }
.steps li:nth-child(3) { animation: step-3 14s linear infinite; }
.steps li:nth-child(4) { animation: step-4 14s linear infinite; }
@keyframes steps-rail { 0% { transform: scaleY(0); } 97% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes step-1 { 0%, 22% { opacity: 1; } 25%, 97% { opacity: .36; } 100% { opacity: 1; } }
@keyframes step-2 { 0%, 22% { opacity: .36; } 25%, 47% { opacity: 1; } 50%, 100% { opacity: .36; } }
@keyframes step-3 { 0%, 47% { opacity: .36; } 50%, 72% { opacity: 1; } 75%, 100% { opacity: .36; } }
@keyframes step-4 { 0%, 72% { opacity: .36; } 75%, 97% { opacity: 1; } 100% { opacity: .36; } }
/* Under each of the day's phones: one line per screen, said while that screen is up, and a hairline that
   fills over the loop. */
.shot { display: grid; gap: 16px; width: var(--phone-w); }
.captions { position: relative; display: grid; padding-top: 12px; }
.captions::before, .captions::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--d-rule, var(--rule)); }
.captions::after { background: var(--d-accent, var(--gold-ink)); transform-origin: left; }
.captions li { grid-area: 1 / 1; color: var(--d-fg, var(--ink)); font-size: 15px; font-weight: 400; line-height: 1.5; }
.captions b { margin-right: 12px; color: var(--d-accent, var(--gold-ink)); font: 400 12px/1.5 var(--mono); }
.captions li:not(:last-child) { opacity: 0; }
.captions[data-frames="2"]::after { animation: cap-rail 9s linear infinite; }
.captions[data-frames="2"] li:nth-child(1) { animation: cap2-1 9s linear infinite; }
.captions[data-frames="2"] li:nth-child(2) { animation: cap2-2 9s linear infinite; }
.captions[data-frames="3"]::after { animation: cap-rail 12s linear infinite; }
.captions[data-frames="3"] li:nth-child(1) { animation: cap3-1 12s linear infinite; }
.captions[data-frames="3"] li:nth-child(2) { animation: cap3-2 12s linear infinite; }
.captions[data-frames="3"] li:nth-child(3) { animation: cap3-3 12s linear infinite; }
@keyframes cap-rail { 0% { transform: scaleX(0); opacity: 1; } 96% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes cap2-1 { 0%, 43% { opacity: 1; } 47%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cap2-2 { 0%, 45% { opacity: 0; } 49%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes cap3-1 { 0%, 28% { opacity: 1; } 31%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cap3-2 { 0%, 30% { opacity: 0; } 33%, 61% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes cap3-3 { 0%, 63% { opacity: 0; } 66%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
.js [data-play]:not(.is-playing) img, .js [data-play]:not(.is-playing) .steps li, .js [data-play]:not(.is-playing) .steps::after,
.js [data-play]:not(.is-playing) .captions li, .js [data-play]:not(.is-playing) .captions::after { animation-play-state: paused; }

/* ── 店務助理 ── */
.band { position: relative; }
.assistant { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; padding: 72px var(--pad); background: var(--paper-2) var(--grain); border-block: 1px solid var(--rule-soft); }
.feature-pill { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--brand); font-size: 14px; font-weight: 700; }
.feature-pill::before { content: ""; width: 26px; height: 1px; background: var(--gold-ink); }
h2 { font: 900 30px/1.3 var(--serif); letter-spacing: .01em; }
.section-lead { max-width: 32em; margin-top: 16px; color: var(--ink-2); }
.section-lead strong { color: var(--ink); }

/* 「你可以這樣說」: a page of the ledger — a number, the sentence, what the app does with it. */
.ledger-title { padding-bottom: 12px; border-bottom: 1px solid var(--ink); color: var(--ink-2); font-size: 14px; font-weight: 400; }
.ledger-rows { counter-reset: row; }
.ledger-rows li { position: relative; counter-increment: row; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 8px; padding: 16px 0; }
.ledger-rows li::before { content: counter(row, decimal-leading-zero); grid-row: 1 / span 2; padding-top: 4px; color: var(--gold-ink); font: 400 12px/1.6 var(--mono); }
.ledger-rows li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule); transform-origin: left; transition: background-color .3s; }
.ledger-rows q { color: var(--ink); font: 700 17px/1.5 var(--serif); transition: color .3s; }
.ledger-rows li > span { grid-column: 2; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.ledger-note { margin-top: 16px; color: var(--ink-3); font-size: 14px; }
@media (hover: hover) {
  .ledger-rows li:hover q { color: var(--brand); }
  .ledger-rows li:hover::after { background: var(--gold-ink); }
}
.assistant-points { display: grid; gap: 28px; }
.assistant-points li { padding-top: 20px; border-top: 1px solid var(--ink); }
.assistant-points h3 { margin-bottom: 8px; font: 700 20px/1.4 var(--serif); }
.assistant-points p { max-width: 30em; color: var(--ink-2); }
.assistant-note { color: var(--ink-2); font-size: 15px; }

/* ── 店裡的一天 ──
   One set of colours for the section, switched whole when home.js sees the day reach 「鐵門拉下來」. */
.day {
  --d-bg: var(--paper); --d-fg: var(--ink); --d-fg-2: var(--ink-2); --d-fg-3: var(--ink-3);
  --d-rule: var(--rule); --d-accent: var(--gold-ink); --d-strike: var(--bad);
  position: relative; isolation: isolate; padding: 80px var(--pad) 72px; background: var(--d-bg) var(--grain); color: var(--d-fg);
  transition: background-color .9s var(--ease), color .9s var(--ease);
}
.day::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--night-grain); opacity: 0; pointer-events: none; transition: opacity .9s var(--ease); }
.day.is-night::before { opacity: 1; }
.day.is-night {
  --d-bg: var(--night); --d-fg: var(--on-night); --d-fg-2: var(--on-night-2); --d-fg-3: var(--on-night-3);
  --d-rule: var(--rule-night); --d-accent: var(--gold); --d-strike: var(--bad-night);
}
.day :is(h2, h3, p, li, q, s, span, strong, figcaption) { transition: color .9s var(--ease), border-color .9s var(--ease), text-decoration-color .9s var(--ease); }
.day .section-lead { color: var(--d-fg-2); }
.day .section-lead strong, .stop-copy strong { color: var(--d-fg); }
.stops { position: relative; margin-top: 48px; padding-left: 32px; }
/* The rail down the day, and the gold that home.js draws along it as the day passes. */
.stops::before, .stops::after { content: ""; position: absolute; left: 6px; top: 10px; bottom: 0; width: 1px; background: var(--d-rule); }
.stops::after { background: var(--gold); transform: scaleY(var(--p, 0)); transform-origin: top; }
.stop { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 76px; }
.stop:last-child { padding-bottom: 8px; }
.stop-time { position: relative; margin-bottom: 12px; color: var(--d-accent); font: 400 15px/1.5 var(--mono); }
.stop-time-word { font-family: var(--sans); font-weight: 700; }
/* A tick across the rail at each stop, like the marks on a ruler. */
.stop-time::before { content: ""; position: absolute; left: -32px; top: 50%; width: 11px; height: 1px; background: var(--d-accent); transform-origin: left; transition: transform .5s var(--ease), background-color .9s var(--ease); }
.stop.is-on .stop-time::before { transform: scaleX(1.9); }
/* "以前…" struck through above a job: the owner's old way, as in the promo video. */
.before { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; color: var(--d-fg-3); font-size: 14px; }
.before s { text-decoration-color: var(--d-strike); text-decoration-thickness: 1.5px; }
.stop h3 { font: 700 26px/1.35 var(--serif); }
.stop-copy > p:not([class]) { max-width: 30em; margin-top: 12px; color: var(--d-fg-2); }
.say { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; align-items: baseline; max-width: 30em; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--d-rule); }
.say-label { grid-row: 1 / span 2; color: var(--d-accent); font-size: 13px; font-weight: 400; }
.say q { color: var(--d-fg); font: 700 19px/1.5 var(--serif); }
.say-then { grid-column: 2; color: var(--d-fg-2); font-size: 14px; }
.stop-figure { display: grid; justify-items: start; gap: 16px; }
.day .stop-figure figcaption { color: var(--d-fg-3); }
.dusk { padding-bottom: 76px; }
.dusk::before { content: ""; display: block; height: 1px; margin-bottom: 32px; background: linear-gradient(90deg, var(--gold), transparent); }
.dusk p { color: var(--d-fg); font: 900 30px/1.35 var(--serif); }
.day-stage { display: none; }

/* The one drawn picture: an illustrated before/after — the paper a supplier hands over, and the same
   lines once the AI has read them, overlapping like two sheets. */
.demo-visual { display: grid; width: min(100%, 400px); color: var(--ink); }
.paper {
  position: relative; justify-self: start; width: 90%; padding: 24px 18px 14px; overflow: hidden;
  background: var(--card); border: 1px solid var(--paper-edge); border-radius: 3px; box-shadow: 0 22px 36px -24px var(--shadow);
  transform: rotate(-2deg); color: var(--print); font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums;
}
/* The tractor-feed holes along the top of a supplier's continuous-form paper. */
.paper::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: 8px; height: 8px;
  background: radial-gradient(circle at 4px 4px, var(--hole) 3px, transparent 3.5px) 0 0 / 20px 8px repeat-x;
}
/* Fixed heights, so the reading line knows where every line is: line n of the paper is centred
   101 + 30 × (n − 1) px from the top (24 padding + 34 head + 28 column titles), the total at 258. */
.paper-head { display: flex; justify-content: space-between; align-items: baseline; height: 34px; padding-bottom: 6px; border-bottom: 2px dotted currentColor; }
.paper-head b { font-size: 17px; letter-spacing: .4em; }
.paper-cols, .paper-row, .paper-sum { display: grid; grid-template-columns: 1.3fr 1fr .8fr .9fr; gap: 6px; }
.paper-cols { height: 28px; padding: 6px 0 4px; border-bottom: 1px dotted currentColor; font-size: 12px; line-height: 17px; }
.paper-row { height: 30px; padding: 4px 0; line-height: 22px; }
.paper-cols span:nth-child(n + 2), .paper-row span:nth-child(n + 2) { text-align: right; }
.paper-sum { height: 29px; margin-top: 4px; padding-top: 6px; border-top: 1px dotted currentColor; line-height: 22px; }
.paper-sum span:first-child { grid-column: 1 / 4; text-align: right; }
.paper-sum span:last-child { text-align: right; font-weight: 700; }
/* The AI reading the paper. The line passes line n at 10% + 15% × (n − 1) of the six seconds and the
   total at 82%; the read card echoes each moment (.read-rows li::before, .read-total::before below), so
   the two are one motion. Five lines — a sixth needs new timings. */
.scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: var(--gold-ink); box-shadow: 0 0 0 5px var(--gold-soft); animation: scan 6s linear infinite;
}
@keyframes scan {
  0% { transform: translateY(72px); opacity: 0; }
  5% { opacity: 1; }
  10% { transform: translateY(99.5px); }
  70% { transform: translateY(219.5px); }
  82% { transform: translateY(256.5px); }
  90% { transform: translateY(256.5px); opacity: 1; }
  96%, 100% { transform: translateY(256.5px); opacity: 0; }
}
.ai-chip {
  position: relative; z-index: 2; justify-self: center; display: inline-flex; align-items: center; gap: 6px;
  margin: -16px 0 -12px; padding: 6px 14px; border-radius: 8px; background: var(--steel); color: var(--on-brand);
  font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--steel-edge), 0 10px 20px -10px var(--shadow);
}
.ai-chip .icon { width: 16px; height: 16px; }
.read-card {
  position: relative; z-index: 1; justify-self: end; width: 90%; padding: 14px 16px 16px;
  background: var(--card); border: 1px solid var(--paper-edge); border-radius: 12px; box-shadow: 0 22px 40px -26px var(--shadow);
}
.read-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.read-tag { color: var(--brand); font-size: 13px; font-weight: 700; }
.read-date { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; padding: 8px 0; border-top: 1px solid var(--rule); }
.read-date > span:first-child { color: var(--ink-2); }
.read-date em { margin-left: 8px; color: var(--gold-ink); font-size: 12px; font-style: normal; font-weight: 700; }
.read-rows li {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto 4.5em; gap: 10px;
  margin-inline: -8px; padding: 7px 8px; border-top: 1px solid var(--rule); font-size: 15px;
}
.read-rows li > :nth-child(2) { color: var(--ink-2); }
.read-rows b { text-align: right; font-weight: 400; }
.read-total {
  position: relative; isolation: isolate; display: flex; justify-content: space-between; align-items: baseline;
  margin-inline: -8px; padding: 9px 8px 5px; border-top: 1px solid var(--rule); font-weight: 700;
}
.read-total b { font-size: 19px; }
/* The card answering the reading line (see .scan): each row lights while its line on the paper is being
   read — 0.9 s apart, the same 15% of six seconds. The light is a layer under the row. */
.read-rows li::before, .read-total::before {
  content: ""; position: absolute; inset: 1px 0 0; z-index: -1; border-radius: 6px;
  background: var(--gold-soft); opacity: 0; animation: read-echo 6s linear infinite;
}
.read-rows li:nth-child(2)::before { animation-delay: .9s; }
.read-rows li:nth-child(3)::before { animation-delay: 1.8s; }
.read-rows li:nth-child(4)::before { animation-delay: 2.7s; }
.read-rows li:nth-child(5)::before { animation-delay: 3.6s; }
.read-total::before { animation-name: read-echo-total; }
@keyframes read-echo { 0%, 7% { opacity: 0; } 10%, 19% { opacity: 1; } 23%, 100% { opacity: 0; } }
@keyframes read-echo-total { 0%, 79% { opacity: 0; } 82%, 91% { opacity: 1; } 95%, 100% { opacity: 0; } }
.read-confirm {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 12px;
  border-radius: 8px; background: var(--ok); color: var(--on-brand); font-weight: 700;
}

.day-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--d-rule); transition: border-color .9s var(--ease); }
.day-more h3 { font: 700 22px/1.4 var(--serif); }
.extras { margin-top: 16px; }
.extras li { padding: 16px 0; border-bottom: 1px solid var(--d-rule); color: var(--d-fg-2); }
.extras li:first-child { border-top: 1px solid var(--d-rule); }
/* The promo video: phone-shaped and narrow, so a vertical clip never fills two screens. */
.promo { display: grid; justify-items: start; gap: 16px; }
.promo video { width: min(100%, 232px); height: auto; aspect-ratio: 9 / 16; border-radius: 24px; background: var(--brand-deep); box-shadow: 0 0 0 1px var(--d-rule), 0 30px 50px -30px var(--shadow); }
.promo figcaption { color: var(--d-fg-3); font-size: 13px; }

/* ── 價格 ── */
.pricing { padding: 88px var(--pad) 72px; background: var(--paper) var(--grain); }
.plans { display: grid; margin-top: 32px; border-top: 1px solid var(--ink); }
.plan { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.plan h3 { font: 700 20px/1.4 var(--serif); }
.plan-fit { margin-top: 4px; color: var(--ink-3); font-size: 14px; }
.price { color: var(--ink-2); font-size: 15px; }
.price .num { color: var(--ink); font-size: 34px; font-weight: 400; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan-notes { margin-top: 16px; color: var(--ink-2); }
.trial { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--ink); }
.trial-days { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; gap: 16px 8px; color: var(--brand); font: 700 24px/1 var(--serif); white-space: nowrap; }
.trial-days span { grid-column: 1 / -1; color: var(--ink); font-size: 20px; }
.trial-days b { font: 900 104px/1 var(--serif); letter-spacing: -.02em; }
.trial-copy p { max-width: 30em; color: var(--ink-2); }
.trial .button { width: 100%; }

/* ── 放心放、常見問題 ── */
.trust-section { padding: 24px var(--pad) 96px; background: var(--paper) var(--grain); }
.trust { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 28px; }
.trust article { padding-top: 20px; border-top: 1px solid var(--ink); }
.trust h3 { margin-bottom: 8px; font: 700 20px/1.4 var(--serif); }
.trust p { max-width: 30em; color: var(--ink-2); }
.trust a { color: var(--brand); }
.faq-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 80px; }
.faq-title { font: 900 30px/1.3 var(--serif); }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { position: relative; padding: 20px 44px 20px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 400; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
/* A plus drawn from two hairlines; opening the answer lays the upright one down. */
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 15px; height: 1px; background: currentColor; transition: transform .35s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: none; }
.faq details p { max-width: 40em; padding: 0 0 24px; color: var(--ink-2); }
.faq details[open] p { animation: answer .45s var(--ease) both; }
.faq a { color: var(--brand); }
@keyframes answer { from { opacity: 0; transform: translateY(-6px); } }

/* ── 收尾 ── */
.closing { padding: 96px var(--pad); background: var(--steel-night); color: var(--on-night); }
.closing-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.closing h2 { font-size: 38px; line-height: 1.25; }
.closing p { max-width: 26em; color: var(--on-night-2); }
.closing .button { width: 100%; margin-top: 12px; }
.closing :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

/* Footer (scripts/build-site.mjs footer()): the same night as the closing band. */
.site-footer { display: grid; gap: 8px; padding: 40px var(--pad) calc(48px + var(--dock-h) + env(safe-area-inset-bottom)); background: var(--night); color: var(--on-night-2); font-size: 14px; border-top: 1px solid var(--rule-night); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; margin-bottom: 4px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a { color: var(--on-night); }
/* The LINE id and the email are tapped by thumb too: give them room (2026-11-24 site check). */
.site-footer p a { display: inline-block; padding: 10px 0; }
.copyright { margin-top: 8px; color: var(--on-night-3); font-size: 13px; }

/* The button that stays within reach. home.js brings it in once the first screen's button has scrolled
   away and takes it out again beside the last one; without home.js it simply stays. */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; justify-content: center;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--bar-bg); border-top: 1px solid var(--rule);
}
.dock .button { width: min(100%, 440px); }
[data-dock="night"] .dock { background: var(--bar-bg-night); border-top-color: var(--rule-night); }
.js .dock { visibility: hidden; transform: translateY(110%); transition: transform .5s var(--ease), visibility 0s .5s; }
.js .dock.is-on { visibility: visible; transform: none; transition: transform .5s var(--ease), visibility 0s; }

/* ── 找不到這一頁 (404.html, 2026-11-25): the first screen's paper and type, one way out and one way home. ── */
.notfound { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; align-content: center; min-height: 66svh; padding: 40px var(--pad) 88px; }
.notfound::before {
  content: ""; position: absolute; inset: 34% 0 0 24%; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 43px, var(--rule-soft) 43px 44px);
  -webkit-mask-image: var(--fade-in-right); mask-image: var(--fade-in-right);
}
.notfound-code { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--gold-ink); font: 400 15px/1.5 var(--mono); }
.notfound-code::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.notfound h1 { font: 900 clamp(38px, 10.8vw, 46px)/1.2 var(--serif); letter-spacing: .01em; }
.notfound-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; margin-top: 28px; }
.button-quiet { border: 1px solid var(--rule); color: var(--ink); transition: border-color .2s, box-shadow .2s var(--ease); }
.button-quiet:hover { border-color: var(--gold-ink); }
.button-quiet:active { box-shadow: inset 0 0 0 100px var(--press); }
.notfound .cta-note a { color: var(--brand); }
/* A page without the dock needs no room kept for it under the footer. */
body:not(.has-dock) .site-footer { padding-bottom: 48px; }

/* ── Motion that home.js starts: things rise into place the first time they are seen. ── */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .stop-figure[data-reveal] { transform: translateY(40px) rotate(1.6deg); transform-origin: 30% 100%; transition-duration: 1.1s; }
.js .stop-figure[data-reveal].is-in { transform: none; }
.js .assistant-points li:nth-child(2), .js .trust article:nth-child(2) { transition-delay: .1s; }
.js .assistant-points li:nth-child(3), .js .trust article:nth-child(3) { transition-delay: .2s; }
/* The ledger writes itself row by row: each line of text, then the rule under it. */
.js .ledger-rows[data-reveal] { opacity: 1; transform: none; }
.js .ledger-rows li { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--n, 0) * 55ms); }
.js .ledger-rows li::after { transform: scaleX(0); transition: transform .9s var(--ease), background-color .3s; transition-delay: calc(var(--n, 0) * 55ms + 120ms), 0s; }
.js .ledger-rows.is-in li { opacity: 1; transform: none; }
.js .ledger-rows.is-in li::after { transform: none; }
.ledger-rows li:nth-child(2) { --n: 1; }
.ledger-rows li:nth-child(3) { --n: 2; }
.ledger-rows li:nth-child(4) { --n: 3; }
.ledger-rows li:nth-child(5) { --n: 4; }
.ledger-rows li:nth-child(6) { --n: 5; }
.ledger-rows li:nth-child(7) { --n: 6; }
.ledger-rows li:nth-child(8) { --n: 7; }
.ledger-rows li:nth-child(9) { --n: 8; }
.ledger-rows li:nth-child(10) { --n: 9; }
.ledger-rows li:nth-child(11) { --n: 10; }
.ledger-rows li:nth-child(12) { --n: 11; }
.ledger-rows li:nth-child(13) { --n: 12; }

/* The first screen needs no script: it arrives line by line as the page opens. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy > :not(h1), .hero-demo { animation: rise 1s var(--ease) both; }
  .hero h1 .phrase { animation: rise 1s var(--ease) both; }
  .hero h1 .phrase:nth-child(2) { animation-delay: .12s; }
  .hero-copy .lead { animation-delay: .24s; }
  .hero-copy .button { animation-delay: .34s; }
  .hero-copy .cta-note { animation-delay: .42s; }
  .hero-demo { animation-delay: .3s; animation-duration: 1.2s; }
  .hero .button-primary::after { animation: sheen 1.4s var(--ease) 1.5s 1 both; }
  .notfound > * { animation: rise 1s var(--ease) both; }
  .notfound h1 { animation-delay: .1s; }
  .notfound .lead { animation-delay: .22s; }
  .notfound-actions { animation-delay: .32s; }
  .notfound .cta-note { animation-delay: .4s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes sheen { from { transform: translateX(-130%); } to { transform: translateX(130%); } }

@media (prefers-reduced-motion: reduce) {
  .scan { display: none; }
  .read-rows li:nth-child(n)::before, .read-total::before, .steps li:nth-child(n), .steps::after, .captions[data-frames] li:nth-child(n), .captions[data-frames]::after, .phone-screen img:nth-child(n + 2), .faq details[open] p { animation: none; }
  .captions[data-frames]::after { transform: none; }
  /* Still pictures: the last screen of each job, and every step equally plain. */
  .phone-screen img:last-child { opacity: 1; }
  .steps::after { transform: none; }
  .js [data-reveal], .js .ledger-rows li, .js .ledger-rows li::after, .js .stop-figure[data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .dock, .js .dock.is-on, .hero-stage .phone, .button-primary::after { transition: none; }
}

/* ── Wider screens ── */
@media (min-width: 760px) {
  :root { --gutter: 36px; --phone-w: 280px; }
  h2, .faq-title { font-size: 40px; }
  .hero { gap: 52px; padding-top: 28px; padding-bottom: 88px; }
  .hero h1 { font-size: 58px; line-height: 1.16; }
  .notfound { padding-block: 64px 120px; }
  .notfound h1 { font-size: 58px; line-height: 1.16; }
  .notfound-actions { display: flex; flex-wrap: wrap; width: auto; }
  .lead { font-size: 18px; }
  .hero .button, .trial .button, .closing .button { width: auto; }
  .hero-stage { grid-template-columns: minmax(0, 290px) minmax(0, 200px); gap: 32px; }
  .steps { gap: 28px; padding-left: 20px; }
  .steps li { font-size: 15px; }
  .assistant { padding-block: 104px; }
  .ledger-rows li { grid-template-columns: 44px minmax(0, 1.05fr) minmax(0, .95fr); gap: 0 20px; align-items: baseline; padding: 16px 0; }
  .ledger-rows li::before { grid-row: auto; padding-top: 0; }
  .ledger-rows li > span { grid-column: 3; }
  .assistant-points, .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .day { padding-block: 112px 96px; }
  .stop h3 { font-size: 32px; }
  .dusk p { font-size: 44px; }
  .day-more { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .pricing { padding-block: 112px 88px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
  .plan { flex-direction: column; align-items: flex-start; padding: 24px 0; }
  .trial { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 44px; padding-top: 36px; }
  .trial-days b { font-size: 136px; }
  .trust-section { padding-bottom: 120px; }
  .closing { padding-block: 128px; }
  .closing h2 { font-size: clamp(48px, 5.4vw, 72px); line-height: 1.18; }
  .closing .button { justify-self: start; }
}

@media (min-width: 960px) {
  html { scroll-padding-top: 92px; }
  /* The bar stays, takes a sheet of the page's paper once the page moves, and turns to night with the page. */
  .topbar { position: sticky; top: 0; }
  .topbar::before {
    content: ""; position: absolute; inset: 0; background: var(--bar-bg); border-bottom: 1px solid var(--bar-rule);
    transition: opacity .35s, background-color .6s var(--ease);
  }
  /* Clear over the first screen until the page moves (home.js knows when); without it the pane just stays. */
  .js .topbar::before { opacity: 0; }
  .js.is-scrolled .topbar::before { opacity: 1; }
  [data-tone="night"] .topbar { --bar-bg: var(--bar-bg-night); --bar-fg: var(--on-night); --bar-fg-2: var(--on-night-2); --bar-rule: var(--rule-night); }
  .topbar-inner { min-height: 68px; }
  .brand, .topbar-link, .topbar-nav a { transition: color .6s var(--ease), border-color .3s; }
  .topbar-nav { display: flex; gap: 32px; margin: 0 auto 0 48px; }
  .topbar-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bar-fg-2); font-size: 15px; text-decoration: none; }
  .topbar-nav a:hover { color: var(--bar-fg); }

  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; align-content: center; gap: 56px; min-height: min(calc(100svh - 68px), 880px); }
  .closing-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 24px 64px; }
  .closing h2 { grid-row: span 2; }
  .hero h1 { font-size: clamp(54px, 5.9vw, 78px); }
  .hero::before { inset: 0 0 0 44%; }
  .hero-demo { justify-items: end; }
  .hero-demo figcaption { width: 384px; max-width: 100%; }
  .hero-stage { grid-template-columns: minmax(0, 250px) minmax(0, 112px); gap: 24px; }
  .steps { gap: 24px; }

  .assistant { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px 88px; align-items: start; }
  .assistant-copy { position: sticky; top: 124px; }
  .assistant-points, .assistant-note { grid-column: 1 / -1; }

  /* Without home.js: each job beside its own screen. */
  .stop { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 88px; align-items: center; padding-bottom: 128px; }
  /* With it: the text scrolls, the screens stay pinned beside it and change with the job being read. */
  .day.is-pinned .day-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 0 88px; align-items: start; }
  .day.is-pinned .stops { margin-top: 0; }
  .day.is-pinned .stop { grid-template-columns: minmax(0, 1fr); min-height: 76vh; align-content: center; padding-bottom: 0; }
  .day.is-pinned .stop-slot { display: none; }
  .day.is-pinned .stop .stop-copy.is-in { opacity: .3; transition: opacity .6s var(--ease), transform .9s var(--ease); }
  .day.is-pinned .stop.is-on .stop-copy.is-in { opacity: 1; }
  .day.is-pinned .dusk { display: grid; align-content: center; min-height: 56vh; padding-bottom: 0; }
  .day.is-pinned .day-stage {
    --stage-h: min(700px, calc(100vh - 150px));
    position: sticky; top: max(92px, calc(50vh - var(--stage-h) / 2 + 20px)); display: grid; place-items: center; height: var(--stage-h);
  }
  .day.is-pinned .day-stage { --phone-w: min(300px, calc((var(--stage-h) - 104px) * .462)); }
  .day.is-pinned .day-stage .stop-figure {
    grid-area: 1 / 1; opacity: 0; transform: translateY(26px) scale(.96); pointer-events: none;
    transition: opacity .55s var(--ease), transform .7s var(--ease);
  }
  .day.is-pinned .day-stage .stop-figure.is-active { opacity: 1; transform: none; pointer-events: auto; }
  .day-more { margin-top: 40px; }

  .faq-block { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; margin-top: 112px; }
  .faq-title { position: sticky; top: 124px; }

  /* On a wide screen the bar stays in view and holds the way to the trial, so the dock is not needed. */
  .dock { display: none; }
  .topbar-link { min-height: 42px; padding: 0 20px; border-color: transparent; background: var(--steel); color: var(--on-brand); font-weight: 700; box-shadow: inset 0 0 0 1px var(--steel-edge), inset 0 1px 0 var(--steel-top); }
  .topbar-link:hover { border-color: transparent; box-shadow: inset 0 0 0 1px var(--gold), inset 0 1px 0 var(--steel-top); }
  .topbar-link:active { background: var(--steel); box-shadow: inset 0 0 0 100px var(--press); }
  .site-footer { padding-bottom: 56px; }
}

@media (min-width: 1180px) {
  .hero-demo { --hero-phone: min(320px, calc((100vh - 220px) * .462)); }
  .hero-demo figcaption { width: calc(var(--hero-phone) + 178px); }
  .hero-stage { grid-template-columns: minmax(0, var(--hero-phone)) minmax(0, 150px); gap: 28px; }
  .steps { gap: 28px; }
}

@media (max-width: 359px) {
  .brand { gap: 8px; font-size: 14px; }
  .topbar-link { padding: 0 12px; }
}

@media (min-width: 960px) and (prefers-reduced-motion: reduce) {
  .day.is-pinned .day-stage .stop-figure, .day.is-pinned .stop .stop-copy.is-in { transition: none; transform: none; }
}
