/* chikutik.com. Tokens from the chikutik design system: a white dial, black bars, one gold bar for now. */
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url('fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url('fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url('fonts/poppins-latin-600-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --paper: #ffffff; --wash: #f5f5f5; --line: #e7e7e7; --faint: #c9c9c9; --mute: #767676;
  --ink-2: #2b2b2b; --ink: #000000; --on-ink: #ffffff; --gold: #a8843a; --gold-text: #7f6128; --red: #b2301f;
  --font: Poppins, 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --ease-out: cubic-bezier(.2,.7,.1,1); --ease-settle: cubic-bezier(.3,1.25,.5,1); --ease-lume: cubic-bezier(.3,1.3,.5,1);
  --gut: max(16px, 4vw);
  --top-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0b0b0b; --wash: #171716; --line: #222221; --faint: #3a3a38; --mute: #9a9a96;
    --ink-2: #d6d6d3; --ink: #f2f2f0; --on-ink: #0b0b0b; --gold: #c9a45a; --gold-text: #c9a45a; --red: #e0654f;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b0b0b; --wash: #171716; --line: #222221; --faint: #3a3a38; --mute: #9a9a96;
  --ink-2: #d6d6d3; --ink: #f2f2f0; --on-ink: #0b0b0b; --gold: #c9a45a; --gold-text: #c9a45a; --red: #e0654f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; overflow-x: hidden; }
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
code { font: 500 .92em/1 ui-monospace, Menlo, monospace; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 12px; }
.skip:focus { top: 8px; }
.gold { color: var(--gold-text); }
.fine { font-size: 13px; color: var(--mute); }

/* ---------- controls (ck-btn) ---------- */
.btn {
  font: 500 14px/20px var(--font); height: 44px; padding: 0 20px; border-radius: 0; border: 1.5px solid var(--ink); color: var(--ink);
  background: var(--paper) linear-gradient(var(--ink), var(--ink)) no-repeat left / 0% 100%;
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; text-decoration: none;
  transition: background-size .32s var(--ease-out), color .2s, transform .12s;
}
.btn:hover { background-size: 100% 100%; color: var(--on-ink); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn.primary { background-color: var(--ink); color: var(--on-ink); background-image: linear-gradient(var(--ink-2), var(--ink-2)); }
.btn.ghost { border-color: transparent; background-color: transparent; background-image: linear-gradient(var(--wash), var(--wash)); }
.btn.ghost:hover { color: var(--ink); }
.btn.small { height: 36px; padding: 0 14px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: progress; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- top bar ---------- */
.bar-top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--top-h);
  display: flex; align-items: center; gap: 24px; padding-inline: var(--gut); background: var(--paper);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.bar-top.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; color: var(--ink); }
.brand svg { height: 22px; width: auto; display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; color: var(--mute); padding: 6px 8px; }
.nav a:hover, .nav a.on { color: var(--ink); }
.top-tools { display: flex; align-items: center; gap: 12px; }
.signin { font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 6px 4px; }
.signin:hover { text-decoration: underline; text-underline-offset: 3px; }
.lang { display: flex; }
.lang button { background: none; border: 0; padding: 6px 6px; font-size: 13px; color: var(--mute); }
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .nav { display: none; } .top-tools { margin-left: auto; } }
@media (max-width: 420px) { .bar-top .btn { display: none; } }

/* ---------- section rail: bars at the wall, the section in view is the long bar ---------- */
.sect-rail { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 12px; }
.sect-rail a { display: flex; align-items: center; height: 12px; text-decoration: none; }
.sect-rail i { display: block; width: 14px; height: 4px; background: var(--faint); transition: width .45s var(--ease-settle), background .2s; }
.sect-rail a.on i { width: 44px; background: var(--ink); }
.sect-rail span { font-size: 12px; color: var(--mute); margin-left: 10px; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; white-space: nowrap; }
.sect-rail a:hover span, .sect-rail a:focus-visible span { opacity: 1; transform: none; }
.sect-rail.hide { opacity: 0; pointer-events: none; }
.sect-rail { transition: opacity .3s; }
@media (max-width: 1180px) { .sect-rail { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(120px, 24vw) minmax(0, 1fr); align-items: center; padding-block: clamp(48px, 9vh, 120px) clamp(56px, 10vh, 128px); padding-right: var(--gut); }
.hero-bars { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 22px); }
.hero-bars i { display: block; height: clamp(10px, 1.1vw, 16px); width: 34%; background: var(--ink); }
.hero-bars i.long { width: 100%; background: var(--gold); position: relative; transform-origin: left; animation: grow 900ms var(--ease-settle) 250ms both; }
.hero-bars i.long::after { content: ''; position: absolute; right: 12%; top: 50%; width: 11%; height: 34%; translate: 0 -50%; background: var(--paper); transform: scaleX(0); transform-origin: right; animation: lume .5s var(--ease-lume) 1.2s forwards; }
@keyframes grow { from { transform: scaleX(.34); } to { transform: none; } }
@keyframes lume { to { transform: scaleX(1); } }
.hero-text { padding-left: clamp(24px, 4vw, 64px); max-width: 60rem; display: grid; gap: 20px; }
.hero-clock { font-size: 15px; color: var(--mute); }
.hero-clock b { color: var(--ink); font-weight: 500; }
.hero-clock .sep { margin: 0 4px; }
.hero h1 { font-size: clamp(48px, 8.4vw, 128px); line-height: .98; letter-spacing: -.025em; }
.hero-a { font-size: clamp(22px, 2.6vw, 38px); line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.hero .lede { font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-2); max-width: 40rem; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-left: 0; }
  .hero-bars { flex-direction: row; gap: 8px; align-items: flex-end; margin-bottom: 28px; }
  .hero-bars { display: grid; grid-template-columns: 1fr; gap: 9px; width: 62vw; }
  .hero-bars i { height: 9px; }
  .hero-text { padding-left: var(--gut); }
}

/* ---------- the scroll demo ---------- */
.story { position: relative; display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); border-top: 1px solid var(--line); }
.stage { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); height: calc(100vh - var(--top-h)); height: calc(100svh - var(--top-h)); overflow: hidden; pointer-events: none; }
.stage-rail { position: absolute; inset: 0; }
.br-row { position: absolute; left: 0; top: 0; width: 100%; height: var(--rowH); will-change: transform; }
.br-bar { position: absolute; left: 0; top: 50%; height: var(--thick); margin-top: calc(var(--thick) / -2); background: var(--ink); transition: background .35s, box-shadow .35s; }
.br-bar::after { content: ''; position: absolute; right: 12px; top: 50%; height: 34%; width: 24px; translate: 0 -50%; background: var(--paper); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-lume) .06s; }
.br-row.sel .br-bar::after { transform: scaleX(1); }
.br-c1, .br-c2 { position: absolute; top: 50%; translate: 0 -50%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--label); line-height: 1.3; }
.br-c1 { left: var(--c1x); width: calc(var(--c2x) - var(--c1x) - 12px); color: var(--mute); }
.br-c2 { left: var(--c2x); right: 16px; color: var(--ink); }
.br-row.past .br-bar { background: var(--faint); }
.br-row.past.sel .br-bar { background: var(--ink); }
.br-row.past .br-c2 { color: var(--mute); }
.br-row.now .br-bar { background: var(--gold); }
.br-row.now .br-c1 { color: var(--gold-text); }
.br-row.overdue .br-c1 { color: var(--red); }
.br-row.event .br-bar { background: transparent; box-shadow: inset 0 0 0 3px var(--ink); }
.br-row.event.past .br-bar { box-shadow: inset 0 0 0 3px var(--faint); }
.br-row.event.sel .br-bar::after { background: var(--ink); }
.br-row.claim .br-c1 { color: var(--ink-2); }
.stage-head { position: absolute; left: var(--hx); right: 20px; top: var(--cy); transform: translateY(-50%); display: grid; gap: 6px; }
.stage-when { font-size: 14px; color: var(--mute); }
.stage-when.now { color: var(--gold-text); }
.stage-title { font-size: var(--hsize); line-height: 1.06; font-weight: 600; letter-spacing: -.02em; }
.stage-sub { font-size: 15px; color: var(--ink-2); min-height: 1.6em; }
.stage-qa { position: absolute; z-index: 2; left: var(--hx); right: 20px; top: 28px; background: var(--paper); display: flex; align-items: center; gap: 10px; border-bottom: 1.5px solid var(--ink); padding: 6px 0; font-size: 18px; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease-out); }
.stage-qa.on { opacity: 1; transform: none; }
.qa-key { font: 500 12px var(--font); border: 1px solid currentColor; padding: 0 6px; color: var(--mute); }
.qa-caret { display: inline-block; width: 2px; height: 1.1em; background: var(--gold); margin-left: -6px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.steps { padding: 18vh var(--gut) 30vh clamp(8px, 2vw, 24px); display: grid; gap: 0; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; max-width: 30rem; opacity: .32; transition: opacity .35s; }
.step.on { opacity: 1; }
.step h3 { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; }
.step p:not(.eyebrow) { color: var(--ink-2); font-size: 17px; }
.eyebrow { font-size: 13px; color: var(--mute); letter-spacing: .02em; }
.step-count { color: var(--gold-text); }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .stage { height: 54svh; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
  .steps { padding: 6vh var(--gut) 20vh; }
  .step { min-height: 64vh; justify-content: flex-start; padding-top: 4vh; }
  .br-c1 { display: none; }
  .stage-sub { display: none; }
  .stage-qa { left: 16px; top: 12px; }
}

/* ---------- bands ---------- */
.band { padding: clamp(72px, 12vh, 140px) var(--gut); border-top: 1px solid var(--line); display: grid; gap: clamp(28px, 4vw, 48px); padding-left: max(var(--gut), min(12vw, 160px)); }
.band > h2, .price-head h2, .try-head h2 { font-size: clamp(30px, 4vw, 56px); line-height: 1.04; max-width: 20ch; }
.rhythm { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.rhythm li { display: grid; gap: 8px; align-content: start; position: relative; padding-top: 22px; }
.rhythm li::before { content: ''; position: absolute; left: 0; top: 0; width: 58px; height: 9px; background: var(--ink); }
.rhythm li:first-child::before { width: 176px; max-width: 100%; }
.rhythm .t { font-size: 13px; color: var(--mute); }
.rhythm b { font-size: 19px; font-weight: 600; }
.rhythm li > span:last-child { color: var(--ink-2); font-size: 15px; }
@media (max-width: 980px) { .rhythm { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rhythm { grid-template-columns: 1fr; } }

.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; }
.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--mute); }
.facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .facts > div { grid-template-columns: 1fr; gap: 4px; } }

.addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 72rem; }
.addon { border: 1px solid var(--line); padding: 28px; display: grid; gap: 12px; align-content: start; }
.addon h3 { font-size: 24px; }
.addon p { color: var(--ink-2); }
.addon-mark { display: grid; gap: 5px; margin-bottom: 6px; }
.addon-mark i { display: block; width: 18px; height: 5px; background: var(--ink); }
.addon-mark i.long { width: 54px; }
.status { font-size: 13px; font-weight: 500; color: var(--ink) !important; }
.status.soon { color: var(--mute) !important; font-weight: 400; }
@media (max-width: 760px) { .addons { grid-template-columns: 1fr; } }

.price-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; max-width: 72rem; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); }
.seg button { border: 0; background: var(--paper); padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 72rem; }
.plan { border: 1px solid var(--line); padding: 28px; display: grid; gap: 16px; align-content: start; grid-template-rows: auto auto 1fr auto; }
.plan.main { border: 1.5px solid var(--ink); }
.plan h3 { font-size: 18px; }
.price { display: grid; gap: 2px; }
.price b { font-size: clamp(34px, 3.4vw, 46px); line-height: 1; font-weight: 600; letter-spacing: -.02em; }
.price span { font-size: 14px; color: var(--mute); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; align-content: start; }
.plan li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; }
.plan li::before { content: ''; position: absolute; left: 0; top: .72em; width: 14px; height: 4px; background: var(--ink); }
.plan .contact { display: flex; gap: 12px; align-items: baseline; font-size: 15px; }
.addr { user-select: all; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 34rem; } }

.try { grid-template-columns: minmax(0, 1fr); }
.try-head { display: grid; gap: 16px; max-width: 44rem; }
.try-head p { color: var(--ink-2); }
.reset b { font-weight: 500; color: var(--ink); }
.frame { border: 1.5px solid var(--ink); height: min(760px, 82vh); max-width: 100%; background: #fff; }
.frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.faq { display: grid; max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; font-size: 17px; list-style: none; display: flex; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ''; flex: none; width: 14px; height: 4px; background: var(--ink); transition: width .45s var(--ease-settle); }
.faq details[open] summary::before { width: 32px; }
.faq details p { color: var(--ink-2); padding: 10px 0 0 28px; max-width: 44rem; }

.foot { border-top: 1px solid var(--line); padding: 48px var(--gut) calc(48px + env(safe-area-inset-bottom, 0px)); padding-left: max(var(--gut), min(12vw, 160px)); display: grid; gap: 12px; }
.foot p { color: var(--mute); font-size: 14px; }
.foot .ck-x b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.foot .ck-x a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.addrs { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- checkout dialog ---------- */
.modal { border: 1.5px solid var(--ink); border-radius: 0; padding: 0; width: min(480px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); }
.modal::backdrop { background: rgba(0,0,0,.35); }
.modal form { padding: 24px; display: grid; gap: 16px; }
.modal [data-pane] { display: grid; gap: 14px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { font-size: 22px; }
.x { background: none; border: 0; font-size: 24px; line-height: 1; width: 36px; height: 36px; }
.x:hover { background: var(--wash); }
.sum { font-size: 17px; }
.sum b { font-weight: 600; }
.field { display: grid; gap: 5px; font-size: 13px; color: var(--mute); }
.field input { border: 0; border-bottom: 1.5px solid var(--faint); padding: 8px 0; font-size: 16px; background: transparent; border-radius: 0; }
.field input:focus { outline: none; border-bottom-color: var(--ink); }
.hint { font-size: 13px; color: var(--mute); }
.err { font-size: 14px; color: var(--red); }
.ok { font-size: 18px; font-weight: 600; }
.row-end { display: flex; justify-content: flex-end; gap: 12px; }
#lic-key { width: 100%; font: 500 12.5px/1.5 ui-monospace, Menlo, monospace; border: 1.5px solid var(--faint); padding: 10px; resize: none; background: var(--wash); color: var(--ink); word-break: break-all; }
.howto { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--ink-2); font-size: 15px; }
.wait-bars { display: grid; gap: 6px; }
.wait-bars i { display: block; height: 7px; width: 40px; background: var(--faint); animation: wait 1.6s var(--ease-settle) infinite; }
.wait-bars i:nth-child(2) { animation-delay: .2s; }
.wait-bars i:nth-child(3) { animation-delay: .4s; }
@keyframes wait { 0%, 100% { width: 40px; background: var(--faint); } 40% { width: 120px; background: var(--gold); } }

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

/* the name, in one line, in every footer; hover or focus shows who made it */
.ck-mean { position: relative; display: inline-flex; align-items: baseline; gap: 8px; flex-basis: 100%; color: var(--mute); cursor: default; outline: none; }
.ck-mean > i { align-self: center; flex: none; width: 16px; height: 4px; background: var(--gold); transform-origin: left center; animation: ck-tick 2s steps(1) infinite; }
.ck-mean b { color: var(--ink); font-weight: 600; letter-spacing: .01em; }
.ck-mean .jp { color: var(--gold-text); font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Noto Sans JP', 'Noto Sans CJK JP', sans-serif; font-weight: 500; letter-spacing: .04em; }
.ck-mean .ck-maker { position: absolute; left: 24px; bottom: calc(100% + 8px); padding: 6px 10px; background: var(--ink); color: var(--on-ink); font-size: 12.5px; font-weight: 500; white-space: nowrap; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .18s, transform .18s; }
.ck-mean .ck-maker::after { content: ''; position: absolute; left: 14px; top: 100%; border: 5px solid transparent; border-top-color: var(--ink); }
.ck-mean:hover .ck-maker, .ck-mean:focus-visible .ck-maker, .ck-mean.show .ck-maker { opacity: 1; transform: none; }
.ck-mean:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@keyframes ck-tick { 0% { transform: scaleX(1); } 50% { transform: scaleX(.5); } }
@media (prefers-reduced-motion: reduce) { .ck-mean > i { animation: none; } }
