:root {
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Noto Sans TC", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, "Helvetica Neue", Arial, "PingFang TC", "Noto Sans TC", sans-serif;
  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, "New York", ui-serif, Georgia, "Songti TC", serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --bg: #f5f2ec; --bg2: #ebe6dc; --panel: #fffdf9; --ink: #14120f; --dim: rgba(20, 18, 15, 0.7); --faint: rgba(20, 18, 15, 0.5);
  --line: rgba(20, 18, 15, 0.1); --line2: rgba(20, 18, 15, 0.18);
  --accent: #d7261e; --accent-text: #b01e17; --on-accent: #ffffff; --accent-soft: rgba(215, 38, 30, 0.09);
  --btn: #14120f; --on-btn: #f5f2ec;
  --good: #1d7a49; --warn: #94640a; --bad: #b4322a; --todo: #fff2c2;
  --r: 12px; --wrap: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110; --bg2: #1b1a17; --panel: #1a1916; --ink: #f2eee7; --dim: rgba(242, 238, 231, 0.7); --faint: rgba(242, 238, 231, 0.48);
    --line: rgba(242, 238, 231, 0.1); --line2: rgba(242, 238, 231, 0.18);
    --accent: #ff4a3d; --accent-text: #ff8b80; --accent-soft: rgba(255, 74, 61, 0.14);
    --btn: #f2eee7; --on-btn: #121110;
    --good: #7edcaa; --warn: #f0c674; --bad: #ff968d; --todo: #5a4a12;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 750; letter-spacing: -0.03em; }
h2 { font-size: 24px; margin-top: 36px; }
h3 { font-size: 18px; margin-top: 24px; }
h2[id] { scroll-margin-top: 84px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin: 4px 0; }
code { font: 14px var(--mono); background: var(--bg2); padding: 1px 5px; border-radius: 5px; }
mark.todo { background: var(--todo); color: inherit; padding: 0 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

.top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 750 19px/1 var(--display); letter-spacing: -0.03em; }
.logo:hover { color: var(--ink); }
.logo .mark { width: 22px; height: 22px; }
.nav { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
.nav a, .actions a.plain { color: var(--dim); text-decoration: none; font-size: 15px; }
.nav a:hover, .actions a.plain:hover, .nav a[aria-current="page"] { color: var(--ink); }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border-radius: 10px; background: var(--btn); color: var(--on-btn); text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.btn:hover { color: var(--on-btn); transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(20, 18, 15, 0.45), 0 0 0 2px var(--accent); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line2); }
.btn.ghost:hover { color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn.big { min-height: 50px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

main { min-height: 60vh; }
.page { padding-top: 40px; padding-bottom: 64px; }
.lede { font-size: 19px; color: var(--dim); max-width: 760px; }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-text); font-weight: 650; margin-bottom: 10px; }
.muted { color: var(--dim); }
.small { font-size: 14px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.toggle-note { color: var(--dim); font-size: 15px; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 16px 0 8px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .who { color: var(--dim); font-size: 14px; margin-bottom: 14px; }
.price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.price small { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.price-alt { font-size: 14px; color: var(--dim); margin: 6px 0 14px; min-height: 22px; }
.plan ul { padding-left: 18px; font-size: 14.5px; flex: 1; }
.plan .btn { margin-top: 12px; }
.group-title { margin-top: 40px; }
.faq dt { font-weight: 650; margin-top: 18px; }
.faq dd { margin: 6px 0 0; color: var(--dim); }

.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; }
.doc nav ul { list-style: none; padding: 0; margin: 0; position: sticky; top: 84px; }
.doc nav a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--dim); text-decoration: none; font-size: 15px; }
.doc nav a[aria-current="page"], .doc nav a:hover { background: var(--bg2); color: var(--ink); }
.prose { max-width: 760px; }
.prose h2 { font-size: 21px; }
.updated { color: var(--faint); font-size: 14px; margin-bottom: 20px; }
.toc { background: var(--bg2); border-radius: var(--r); padding: 14px 18px; margin: 0 0 20px; font-size: 15px; }
.toc ol { margin: 6px 0 0; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 16px; }
.details dt { color: var(--dim); }
.details dd { margin: 0; }
table.sub { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 18px; }
table.sub th, table.sub td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.sub th { color: var(--dim); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.tiles a { text-decoration: none; color: inherit; }
.tiles .card:hover { border-color: var(--line2); }
.tiles .card h3 { color: var(--accent-text); font-size: 17px; }

.status-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; max-width: 640px; margin-bottom: 18px; }
.status-head { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 650; margin-bottom: 14px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--faint); }
[data-state="ok"] .dot { background: var(--good); }
[data-state="degraded"] .dot { background: var(--warn); }
[data-state="down"] .dot { background: var(--bad); }

.foot { border-top: 1px solid var(--line); background: var(--panel); padding: 36px 0 28px; font-size: 14.5px; }
.foot .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin: 0 0 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 6px 0; }
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot address { font-style: normal; color: var(--dim); line-height: 1.7; }
.foot .base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); }
.marks { display: inline-flex; gap: 8px; align-items: center; vertical-align: middle; margin-left: 8px; }
.pay { width: 48px; height: 30px; display: block; }
.pay-wide { width: 84px; }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 16px; }
  .doc nav ul { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .foot .cols { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }
  .details dd { margin-bottom: 8px; }
  .actions a.plain.lang { order: 3; }
  .top { position: static; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
@media print { .top, .foot .cols, .skip { display: none; } body { background: #fff; color: #000; } }

/* ---- home: hero ------------------------------------------------------------------------------------------------ */
.home { overflow-x: clip; }
.kdot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 12px; vertical-align: middle; box-shadow: 0 0 0 4px var(--accent-soft); }
.kicker, .demo-cap, .sect, .side-h, .tname { font: 600 12.5px/1.4 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; }
.kicker { color: var(--dim); margin: 0 0 clamp(18px, 2.4vw, 30px); }
.h-hero { padding-top: clamp(40px, 7vw, 104px); padding-bottom: 24px; }
.display { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 8.6vw, 132px); line-height: 0.93; letter-spacing: -0.05em; margin: 0; }
.display .line { display: block; }
.display .l1 { animation: h-rise 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
.display .l2 { animation: h-rise 0.9s 0.12s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
.pen { position: relative; display: inline-block; margin-left: 0.06em; font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.035em; padding: 0 0.08em; white-space: nowrap; }
.pen-loop { position: absolute; left: -12%; top: -6%; width: 124%; height: 118%; overflow: visible; pointer-events: none; }
.pen-loop path, .pen-line path, .hint-arrow path { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.pen-loop path { stroke-width: clamp(3px, 0.45vw, 6px); animation: h-draw 1.1s 0.7s cubic-bezier(0.65, 0.05, 0.3, 1) both; }
.h-sub { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px 64px; align-items: end; margin-top: clamp(28px, 4.4vw, 60px); }
.h-lede { font-size: clamp(17px, 1.55vw, 21px); line-height: 1.5; color: var(--dim); max-width: 40ch; margin: 0; }
.h-act { justify-self: end; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.home .note { font-size: 14px; color: var(--faint); margin: 14px 0 0; }

/* ---- home: the demo -------------------------------------------------------------------------------------------- */
.h-demo { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(64px, 9vw, 128px); }
.demo { margin: 0; scroll-margin-top: 84px; --s-ink: var(--ink); --s-dim: var(--dim); --s-line: var(--line2); --s-panel: var(--panel); --s-bg: var(--bg2); --pin: #e5322d; }
.demo [hidden] { display: none !important; }
.demo-cap { display: flex; align-items: center; color: var(--dim); margin-bottom: 14px; }
.stage { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 0.8fr) auto minmax(0, 1.2fr); gap: clamp(20px, 4vw, 64px); align-items: center; padding: clamp(18px, 4vw, 56px); border-radius: 28px; background: var(--s-bg); border: 1px solid var(--line); overflow: hidden; color: var(--s-ink); transition: background-color 1.2s ease, color 0.8s ease; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(var(--line2) 1px, transparent 1.3px); background-size: 22px 22px; transition: opacity 1s ease; }
.demo[data-state="night"] { --s-ink: #e9edf5; --s-dim: rgba(233, 237, 245, 0.66); --s-line: rgba(233, 237, 245, 0.16); --s-panel: rgba(255, 255, 255, 0.06); --s-bg: #0b1220; --good: #7edcaa; --bad: #ff968d; }
.demo[data-state="night"] .stage::before { opacity: 0.12; }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stars { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; background-image: radial-gradient(1.6px 1.6px at 8% 14%, #fff 50%, transparent 55%), radial-gradient(1.2px 1.2px at 22% 70%, #fff 50%, transparent 55%), radial-gradient(1.4px 1.4px at 34% 22%, #fff 50%, transparent 55%), radial-gradient(1px 1px at 46% 88%, #fff 50%, transparent 55%), radial-gradient(1.6px 1.6px at 61% 9%, #fff 50%, transparent 55%), radial-gradient(1.2px 1.2px at 72% 64%, #fff 50%, transparent 55%), radial-gradient(1px 1px at 81% 30%, #fff 50%, transparent 55%), radial-gradient(1.5px 1.5px at 93% 78%, #fff 50%, transparent 55%), radial-gradient(1px 1px at 15% 44%, #fff 50%, transparent 55%), radial-gradient(1.3px 1.3px at 55% 40%, #fff 50%, transparent 55%); }
.demo[data-state="night"] .stars { opacity: 0.85; }
.moon { position: absolute; top: clamp(16px, 3vw, 32px); right: clamp(16px, 3vw, 40px); width: 44px; height: 44px; fill: #f4e7c5; opacity: 0; transform: translateY(48px) rotate(-25deg); transition: opacity 1s ease, transform 1.6s cubic-bezier(0.2, 0.7, 0.1, 1); filter: drop-shadow(0 0 18px rgba(244, 231, 197, 0.55)); }
.demo[data-state="night"] .moon { opacity: 1; transform: none; }
.dawn { position: absolute; inset: 0; opacity: 0; background: radial-gradient(120% 80% at 50% 115%, rgba(255, 166, 102, 0.6), rgba(255, 206, 150, 0.2) 45%, transparent 72%); }
.demo[data-state="morning"] .dawn { animation: h-dawn 3.6s ease forwards; }

.clockcol { min-width: 0; }
.clock { font: 300 clamp(40px, 5.6vw, 76px)/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.05em; margin: 0 0 22px; }
.phases { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.phases li { position: relative; margin: 0; padding-left: 20px; color: var(--s-dim); transition: color 0.4s ease; }
.phases li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color 0.4s ease, border-color 0.4s ease; }
.phases b { display: inline-block; min-width: 5.2em; font-weight: 650; }
.demo[data-state="day"] [data-phase="day"], .demo[data-state="night"] [data-phase="night"], .demo[data-state="morning"] [data-phase="morning"] { color: var(--s-ink); }
.demo[data-state="day"] [data-phase="day"]::before, .demo[data-state="night"] [data-phase="night"]::before, .demo[data-state="morning"] [data-phase="morning"]::before { background: var(--accent); border-color: var(--accent); }

.phonecol { position: relative; justify-self: center; }
.hint { position: absolute; right: calc(100% + 4px); top: 9%; margin: 0; display: flex; flex-direction: column; align-items: flex-end; font: italic 500 23px/1.1 var(--serif); color: var(--accent); white-space: nowrap; transform: rotate(-7deg); transition: opacity 0.4s ease; }
.hint-arrow { width: 72px; height: 48px; margin-right: -30px; }
.hint-arrow path { stroke-width: 2.2px; animation: h-draw 0.9s 1.5s ease both; }
.demo.has-notes .hint, .demo:not([data-state="day"]) .hint { opacity: 0; }
.phone { width: clamp(244px, 23vw, 290px); aspect-ratio: 9 / 18.6; padding: 9px; border-radius: 46px; background: #0e0e10; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 44px 80px -34px rgba(20, 18, 15, 0.6), 0 14px 26px -14px rgba(20, 18, 15, 0.4); }
.screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; overflow: clip; background: #fbfaf7; color: #17181c; font: 14px/1.35 var(--font); transition: filter 1s ease; }
.demo[data-state="night"] .screen { filter: brightness(0.48) saturate(0.7); }
.app { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 18px; border-radius: 38px; }
.demo.is-live .app { cursor: crosshair; }
.demo.is-live[data-state="day"] .app:hover { background: #fffefb; }
.app:focus { outline: none; }
.app:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.app-status { display: flex; justify-content: space-between; align-items: center; padding: 2px 10px 0; font-size: 12px; font-weight: 650; }
.app-sys { display: flex; gap: 2px; align-items: flex-end; }
.app-sys i { display: block; width: 3px; border-radius: 1px; background: #17181c; height: 5px; }
.app-sys i:nth-child(2) { height: 7px; }
.app-sys i:nth-child(3) { height: 9px; }
.app-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; color: #0f6e6a; font-size: 13px; font-weight: 550; }
.app-heart { width: 15px; height: 15px; border: 1.6px solid #17181c; border-radius: 4px 4px 2px 2px; }
.app-photo { position: relative; flex: none; height: 112px; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #f8cc9f 0%, #f1a274 46%, #6c99ad 100%); transition: height 0.7s cubic-bezier(0.2, 0.7, 0.1, 1); }
.app-photo .sun { position: absolute; left: 62%; top: 18%; width: 34px; height: 34px; border-radius: 50%; background: #fff3d8; }
.app-photo .roofs { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: #284b5c; clip-path: polygon(0 58%, 10% 34%, 20% 50%, 32% 18%, 44% 44%, 56% 26%, 68% 52%, 80% 24%, 91% 46%, 100% 36%, 100% 100%, 0 100%); }
.app-title { margin: 4px 0 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; transition: font-size 0.6s ease, letter-spacing 0.6s ease; }
.app-meta { margin: 0; font-size: 12px; color: #6f6c66; }
.app-row { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid #ebe7df; }
.app-price { margin: 0; font-size: 12px; color: #c2bdb3; transition: color 0.6s ease, font-size 0.6s ease; }
.app-price b { font-weight: 600; }
.app-cta { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 14px; border-radius: 9px; background: #dfdbd3; color: #7a766e; font-size: 12px; font-weight: 650; transition: flex-basis 0.6s cubic-bezier(0.2, 0.7, 0.1, 1), height 0.6s ease, background-color 0.6s ease, color 0.6s ease, font-size 0.6s ease, border-radius 0.6s ease; flex: 0 0 auto; }
.screen.fix-photo .app-photo { height: 172px; }
.screen.fix-title .app-title { font-size: 24px; font-weight: 750; letter-spacing: -0.025em; }
.screen.fix-price .app-price { color: #17181c; font-size: 16px; }
.screen.fix-cta .app-cta { flex: 1 0 100%; height: 48px; border-radius: 14px; background: #0f6e6a; color: #fff; font-size: 16px; }

.pins { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; pointer-events: none; }
.pin { position: absolute; display: grid; place-items: center; width: 28px; height: 28px; margin: -28px 0 0 -2px; border-radius: 50% 50% 50% 3px; background: var(--pin); color: #fff; font: 700 13px/1 var(--font); box-shadow: 0 0 0 2px #fff, 0 6px 14px rgba(0, 0, 0, 0.28); transform-origin: 0 100%; animation: h-pop 0.38s cubic-bezier(0.3, 1.6, 0.5, 1) both; transition: background-color 0.5s ease; }
.pin.is-draft::after { content: ""; position: absolute; left: -6px; bottom: -6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--pin); animation: h-ping 1.2s ease-out infinite; }
.pin.is-done { background: #1d7a49; }
.pin.at-title { left: 50%; top: 40%; }
.pin.at-cta { left: 80%; top: 93%; }
.composer { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 12px; border-radius: 22px 22px 30px 30px; background: #fff; color: #17181c; box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.2); animation: h-sheet 0.32s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
.composer-title { display: block; margin-bottom: 6px; font: 650 12px/1.3 var(--font); color: #c8211a; }
.composer-input { display: block; width: 100%; padding: 9px 10px; border-radius: 10px; border: 1px solid #d8d3ca; background: #f7f5f1; color: #17181c; font: 16px/1.3 var(--font); }
.composer-input:focus { outline: 2px solid #e5322d; outline-offset: 1px; }
.composer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.composer .dbtn { color: #17181c; border-color: #d8d3ca; }
.composer .dbtn.solid { color: #fff; background: #e5322d; border-color: transparent; }

.dbtn { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--s-line); background: transparent; color: var(--s-ink); font: 600 14px/1 var(--font); cursor: pointer; transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; }
.dbtn:hover { border-color: var(--s-ink); }
.dbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dbtn.solid { background: var(--accent); color: #fff; border-color: transparent; }
.dbtn.solid:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px var(--accent); }
.dbtn.big { min-height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.dbtn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }

.sidecol { align-self: stretch; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.side-h { margin: 0; color: var(--s-dim); }
.empty { margin: 0; color: var(--s-dim); font-size: 15px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notes li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 8px 9px 12px; border-radius: 12px; background: var(--s-panel); border: 1px solid var(--s-line); font-size: 15px; animation: h-in 0.35s ease both; }
.num { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50% 50% 50% 3px; background: var(--pin); color: #fff; font: 700 12px/1 var(--font); transition: background-color 0.5s ease; }
.demo[data-state="morning"] .num { background: #1d7a49; }
.demo:not([data-state="day"]) .notes, .demo:not([data-state="day"]) .side-h { display: none; }
.ntext { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.nx { flex: none; width: 44px; height: 44px; margin: -6px -4px -6px 0; border: 0; border-radius: 8px; background: transparent; color: var(--s-dim); font: 400 20px/1 var(--font); cursor: pointer; }
.nx:hover { color: var(--s-ink); background: var(--s-line); }
.nx:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.agent { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--s-line); background: var(--s-panel); animation: h-in 0.4s ease both; }
.typing { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 600 12.5px/1.3 var(--mono); color: var(--s-dim); }
.demo[data-state="morning"] .typing { display: none; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: h-blink 1s infinite both; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-height: 270px; overflow: auto; scrollbar-width: thin; }
.log li { margin: 0; animation: h-in 0.35s ease both; }
.log-head { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 14px; }
.log-file { margin: 4px 0; font: 12px/1.3 var(--mono); color: var(--s-dim); }
.diff { margin: 0; padding: 6px 8px; border-radius: 8px; background: rgba(127, 127, 127, 0.12); font: 12px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.diff .del { display: block; color: var(--bad); }
.diff .add { display: block; color: var(--good); }
.log-done { margin: 4px 0 0; font: 600 12px/1.3 var(--mono); color: var(--good); }
.pr { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--s-panel); border: 1px solid var(--s-line); box-shadow: 0 14px 30px -20px rgba(20, 18, 15, 0.55); animation: h-in 0.5s ease both; }
.pr-badge { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin: 0; border-radius: 10px; background: #1d7a49; color: #fff; font: 700 13px/1 var(--mono); }
.pr-body { flex: 1; min-width: 150px; }
.pr-title { margin: 0; font-weight: 650; line-height: 1.3; }
.pr-meta { margin: 2px 0 0; font-size: 14px; color: var(--s-dim); }
.controls { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.demo-help { margin: 14px 0 0; font-size: 14px; color: var(--faint); max-width: 72ch; }

/* ---- home: sections ---------------------------------------------------------------------------------------------- */
.sect { color: var(--dim); margin: 0 0 clamp(24px, 3vw, 40px); padding-top: 16px; border-top: 1.5px solid var(--ink); }
.h-steps { padding-bottom: clamp(64px, 9vw, 128px); }
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 56px); }
.steps3 li { margin: 0; }
.sn { display: block; margin-bottom: 18px; font: 250 clamp(60px, 7.4vw, 104px)/0.9 var(--display); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease; }
.steps3 li:hover .sn { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.steps3 h3 { margin: 0 0 10px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 720; letter-spacing: -0.03em; }
.steps3 p { margin: 0; color: var(--dim); max-width: 38ch; }

.h-plat { background: var(--ink); color: var(--bg); padding: clamp(64px, 9vw, 120px) 0; }
.h-plat .sect { color: color-mix(in srgb, var(--bg) 66%, transparent); border-top-color: var(--bg); }
.plats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plats li { margin: 0; padding: 6px clamp(12px, 2vw, 28px) 18px; border-left: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); }
.plats li:first-child { padding-left: 0; border-left: 0; }
.pname { position: relative; display: inline-block; font: 800 clamp(36px, 6.2vw, 96px)/1 var(--display); letter-spacing: -0.055em; }
.pname::after { content: ""; position: absolute; left: 2%; right: 4%; bottom: -6px; height: 4px; border-radius: 4px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.1, 1); }
.plats li:hover .pname::after { transform: scaleX(1); }
.pnote { display: block; margin-top: 16px; font-size: 15px; color: color-mix(in srgb, var(--bg) 68%, transparent); }
.more { margin: 32px 0 0; font-weight: 600; }
.more a { text-decoration-thickness: 2px; text-underline-offset: 5px; }
.h-plat a { color: var(--bg); }

.h-teams { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px 72px; align-items: end; padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }
.big2 { margin: 0 0 22px; font: 780 clamp(34px, 4.8vw, 68px)/1.0 var(--display); letter-spacing: -0.045em; text-wrap: balance; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; margin: 0; padding: 16px 0 16px 36px; border-top: 1px solid var(--line2); font-size: 17px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 21px; width: 15px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-48deg); }

.h-price { padding-bottom: clamp(64px, 9vw, 128px); }
.tease { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line2); }
.tplan { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 30px; color: var(--ink); text-decoration: none; border-left: 1px solid var(--line2); transition: background-color 0.25s ease; }
.tplan:first-child { border-left: 0; padding-left: 0; }
.tplan:hover { color: var(--ink); background: var(--accent-soft); }
.tname { color: var(--dim); }
.tamount { font: 800 clamp(48px, 5.6vw, 80px)/1 var(--display); letter-spacing: -0.055em; }
.tunit { color: var(--dim); font-size: 15px; }

.h-final { padding: clamp(80px, 11vw, 160px) 0; background: #c8211a; color: #fff; }
.h-final .final { max-width: 16ch; margin: 0; font-size: clamp(40px, 6.8vw, 108px); color: #fff; text-wrap: balance; }
.pen-line { display: block; width: min(440px, 72%); height: 22px; margin: 6px 0 28px; overflow: visible; }
.h-final .pen-line path { stroke: #fff; stroke-width: 4px; }
.pen-line.is-in path { animation: h-draw 1s 0.25s cubic-bezier(0.65, 0.05, 0.3, 1) both; }
.h-final .h-lede { color: rgba(255, 255, 255, 0.86); margin-bottom: 32px; }
.btn.inv { background: #fff; color: #14120f; }
.btn.inv:hover { color: #14120f; box-shadow: 0 0 0 2px #14120f; }
.btn.ghost.inv { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn.ghost.inv:hover { color: #fff; border-color: #fff; box-shadow: none; }
.h-final :focus-visible { outline-color: #fff; }

/* ---- home: motion ------------------------------------------------------------------------------------------------- */
[data-reveal] { transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.1, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.1, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.is-pending { opacity: 0; transform: translateY(28px); }
@keyframes h-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes h-rise { from { opacity: 0; transform: translateY(0.3em); } to { opacity: 1; transform: none; } }
@keyframes h-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes h-pop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }
@keyframes h-sheet { from { transform: translateY(110%); } to { transform: none; } }
@keyframes h-ping { from { opacity: 0.9; transform: scale(0.6); } to { opacity: 0; transform: scale(2.4); } }
@keyframes h-blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@keyframes h-dawn { 0% { opacity: 1; } 100% { opacity: 0.3; } }

@media (max-width: 1180px) {
  .hint { display: none; }
}
@media (max-width: 980px) {
  .h-sub { grid-template-columns: 1fr; }
  .h-act { justify-self: start; }
  .stage { grid-template-columns: minmax(0, 1fr); }
  .clockcol { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
  .clock { margin: 0; font-size: 40px; }
  .phases { grid-auto-flow: column; gap: 18px; }
  .phases span { display: none; }
  .phases b { min-width: 0; }
  /* the controls right under the phone, then the notes, the agent's log and the pull request */
  .sidecol { display: contents; }
  .clockcol { order: 1; }
  .phonecol { order: 2; }
  .controls { order: 3; justify-content: center; margin-top: 0; }
  .side-h, .pr { order: 4; }
  .empty, .notes, .agent { order: 5; }
  .steps3 { grid-template-columns: 1fr; }
  .plats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .plats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .h-teams { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stage { border-radius: 22px; }
  .tease { grid-template-columns: 1fr; }
  .tplan, .tplan:first-child { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line2); }
  .tplan:first-child { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
  .is-pending { opacity: 1; transform: none; }
}
@media print {
  .is-pending { opacity: 1 !important; transform: none !important; }
  .h-plat, .h-final { background: none; color: inherit; }
}
