/* Kotetsu Studio. Light, with the brand yellow (kotetsu.ai light theme: amber #E5AE00, amber ink #725400). */
:root {
  --paper: #F8FAFC; --white: #FFFFFF; --mist: #EEF1F5; --line: #E2E6EC; --line-strong: #CDD3DB;
  --ink: #0F1318; --ink-2: #3A424D; --muted: #6B7480;
  --amber: #E5AE00; --amber-hover: #F2BC12; --amber-soft: #FFF6D6; --amber-ink: #725400;
  --green: #12965C; --green-soft: #E6F5EE;
  --font: -apple-system, "SF Pro Display", "SF Pro Text", "Inter Display", Inter, "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --radius: 18px; --shadow: 0 1px 2px rgba(15, 19, 24, .04), 0 8px 24px rgba(15, 19, 24, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 760px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px; background: rgba(248, 250, 252, .82); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.brand b { font-weight: 600; color: var(--amber); }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }

/* buttons: one shape, two kinds */
.btn, .cta-sm { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
  border-radius: 999px; font: 600 15px var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn.primary, .top nav a.cta-sm { background: var(--amber); color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 6px 16px rgba(229, 174, 0, .28); }
.btn.primary:hover, .top nav a.cta-sm:hover { background: var(--amber-hover); transform: translateY(-1px); color: var(--ink); }
.btn.ghost { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); }
.btn:focus-visible, .cta-sm:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(229, 174, 0, .45); outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn.big { height: 54px; width: 100%; font-size: 16px; }
.top nav a.cta-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* video slots: marked as empty until real footage exists (no stand-ins) */
.reel { position: relative; overflow: hidden; background: linear-gradient(135deg, #F1F3F6, #E7EBF0); }
.reel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 70% 30%, rgba(229, 174, 0, .14), transparent 70%); }
.reel-slot { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; text-align: center; gap: 4px; color: var(--muted); }
.reel-slot span { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.reel-slot small { font-size: 12px; }

/* hero: a huge humanoid (Booster's T2 model, assets/t2.glb) standing behind the words */
/* main clips sideways at the window edge (full width), so the humanoid hanging past it never makes the page scroll
   sideways. Not on .hero: that box is 1160 px wide and would cut him mid-page on wide screens. clip, not hidden: no scroll box. */
main { overflow-x: clip; }
.hero { position: relative; isolation: isolate; min-height: min(92vh, 900px); display: grid; align-items: center;
  max-width: 1160px; margin: 0 auto; padding: 72px 28px 88px; }
.hero-figure { position: absolute; z-index: -1; top: -20px; bottom: -120px; right: -22vw; width: min(80vw, 1100px); opacity: 0; transition: opacity 1.4s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.hero-figure.is-ready { opacity: 1; }
.hero-figure canvas, .visual-stage canvas { width: 100%; height: 100%; display: block; }
.hero-figure::before { content: ""; position: absolute; inset: 10% 10% 20%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(229, 174, 0, .22), transparent); filter: blur(20px); }
.hero-copy { max-width: 560px; }
.eyebrow { margin: 0 0 14px; font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
h1 { margin: 0; font-size: clamp(48px, 7vw, 88px); line-height: 1.0; letter-spacing: -.04em; font-weight: 700; }
h1 em { font-style: normal; color: var(--muted); }
.lede { margin: 22px 0 32px; max-width: 30em; font-size: 19px; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
.band { padding: 96px 0; }
.band.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 720px; margin-bottom: 44px; }
h2 { margin: 0; font-size: clamp(32px, 4vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.sub { margin: 16px 0 0; color: var(--ink-2); font-size: 17px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 12px var(--font); letter-spacing: .01em; vertical-align: 1px; }
.tag.pilot { background: var(--green-soft); color: var(--green); }
.tag.dev { background: var(--amber-soft); color: var(--amber-ink); }

/* services */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,19,24,.05), 0 18px 40px rgba(15,19,24,.09); }
.card .reel { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .tag { align-self: flex-start; }
.card h3 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.015em; }
.card p { margin: 0; color: var(--ink-2); }
.card small { color: var(--muted); }
.link { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 14px; color: var(--amber-ink); text-decoration: none; }
.link::after { content: " →"; }
.link:hover { text-decoration: underline; }

.grid-head { grid-column: 1 / -1; margin: 18px 0 -4px; font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.grid-head:first-child { margin-top: 0; }
.does { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 3px; }
.card .not { font-size: 13px; color: var(--muted); }
.card .not b { color: var(--ink-2); font-weight: 600; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.steps b { font: 700 13px var(--mono); color: var(--amber); }
.steps h3 { margin: 10px 0 6px; font-size: 20px; letter-spacing: -.015em; }
.steps p { margin: 0; color: var(--ink-2); }

/* request: Apple-style buy flow. The booking builds up on the left; one question at a time on the right. */
.buy-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.visual { position: sticky; top: 140px; }
.visual-card { border-radius: 18px; background: var(--mist); padding: 26px; display: flex; flex-direction: column; gap: 18px; min-height: 600px; }
.visual-top { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.visual-top img { border-radius: 7px; }
.visual-top b { margin-left: auto; font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.visual-stage { flex: 1; min-height: 380px; position: relative; overflow: hidden; border-radius: 14px;
  background: radial-gradient(60% 55% at 50% 45%, rgba(229, 174, 0, .18), transparent 70%); }
.visual-stage canvas { position: absolute; inset: 0; }
#v-stage { position: absolute; left: 0; right: 0; bottom: 0; }
#v-stage .scene { padding: 18px; gap: 10px; background: linear-gradient(to top, var(--mist) 55%, transparent); }
#v-stage .scene-title { font-size: 24px; }
.scene { width: 100%; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.scene-title { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.scene-note { color: var(--muted); font-size: 14px; max-width: 26em; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line-strong); font-weight: 600; font-size: 14px; animation: pop .35s cubic-bezier(.2, .9, .3, 1.3) both; }
.chip.on { background: var(--amber); border-color: var(--amber); }
.meter { width: min(100%, 360px); height: 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--amber); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.months { display: grid; grid-template-columns: repeat(12, 18px); gap: 6px; }
.months i { width: 18px; height: 18px; border-radius: 5px; background: var(--white); border: 1px solid var(--line); transition: background .3s; }
.months i.on { background: var(--amber); border-color: var(--amber); }
.badge { width: 150px; height: 110px; border-radius: 22px; display: grid; place-items: center; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  border: 2px dashed var(--line-strong); color: var(--muted); background: var(--white); transition: all .35s; }
.badge.on { border: 2px solid var(--amber); color: var(--amber-ink); background: var(--amber-soft); transform: scale(1.06); }
.visual-sum { margin: 0; display: grid; gap: 2px; }
.visual-sum div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-strong); font-size: 14px; }
.visual-sum dt { color: var(--muted); }
.visual-sum dd { margin: 0; font-weight: 600; text-align: right; }
.visual-sum div.is-empty dd { color: var(--muted); font-weight: 400; }
.visual-sum div.is-new dd { animation: flash .8s ease; }

.flow { min-width: 0; }
form { display: flex; flex-direction: column; }
/* Every question stays in place, like Apple's: unreached ones are faded and closed to clicks; the one in view is full. */
.q { padding: 40px 0 56px; scroll-margin-top: 140px; transition: opacity .45s ease; }
.q + .q { border-top: 1px solid var(--line); }
.q.is-away { opacity: .45; }
.q.is-locked { opacity: .3; }
.q.is-locked .q-body { pointer-events: none; }
/* Apple's two-tone question: the topic in ink, the question itself in grey. */
.q h3 { margin: 0; font-size: clamp(24px, 2.4vw, 28px); line-height: 1.17; letter-spacing: -.02em; font-weight: 600; color: var(--muted); }
.q h3 b { color: var(--ink); font-weight: 600; }
.q-body { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.q-hint { margin: 0; color: var(--muted); font-size: 14px; }
.next { align-self: flex-start; min-width: 160px; }
/* Apple's tip box: soft grey, bold question, plain answer, a circled plus that turns. */
.tip { border-radius: 12px; background: var(--mist); font-size: 14px; }
.tip summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 16px; position: relative; font-weight: 600; color: var(--ink); }
.tip summary::-webkit-details-marker { display: none; }
.tip summary::after { content: "+"; position: absolute; right: 16px; top: 14px; width: 18px; height: 18px; border: 1.5px solid var(--ink-2);
  border-radius: 50%; display: grid; place-items: center; font: 500 14px/1 var(--font); color: var(--ink-2); transition: transform .3s ease; }
.tip[open] summary::after { transform: rotate(45deg); }
.tip p { margin: -6px 0 0; padding: 0 16px 16px; color: var(--ink-2); line-height: 1.5; animation: rise .35s both; }
/* Apple's bar that slides in once you are in the questions, with your choices on the right. */
.buybar { position: fixed; z-index: 9; top: 67px; left: 0; right: 0; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line); transform: translateY(calc(-100% - 70px)); visibility: hidden; transition: transform .35s ease, visibility 0s .35s; }
.buybar.is-on { transform: none; visibility: visible; transition: transform .35s ease; }
.buybar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 52px; font-size: 15px; }
.buybar span { color: var(--ink-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Apple's progress on the right edge: a dot per question, a bar for the one in view. */
.progress { position: fixed; z-index: 8; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px;
  opacity: 0; pointer-events: none; transition: opacity .3s; }
.progress.is-on { opacity: 1; pointer-events: auto; }
.progress a { width: 4px; height: 4px; border-radius: 2px; background: var(--line-strong); transition: height .3s, background .3s; }
.progress a.is-on { height: 22px; background: var(--ink); }
.progress a.is-done { background: var(--amber); }

.tiles { display: grid; grid-template-columns: 1fr; gap: 12px; }
/* Every tile in a row is as tall as the tallest, text from the top, so the titles line up. */
.tile { position: relative; cursor: pointer; display: flex; }
.tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tile > span { flex: 1; display: flex; flex-direction: column; gap: 4px; min-height: 83px; justify-content: flex-start; padding: 15px 16px; background: var(--white);
  border: 1px solid #A3AAB4; border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.tile:hover > span { border-color: var(--ink-2); }
.tile b { font-size: 17px; font-weight: 600; letter-spacing: -.022em; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.tile b .tag { font-size: 11px; }
.tile small { color: var(--ink-2); font-size: 13px; line-height: 1.4; }
/* Selected: a 2px border in the brand amber (Apple uses its blue here); the 1px gap is made up so nothing shifts. */
.tile input:checked + span { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.tile input:focus-visible + span { outline: 3px solid rgba(229, 174, 0, .45); outline-offset: 2px; }

/* Style: skins in two columns under their set names, each with its colours. */
.tiles.skins, .tiles.two { grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles.three { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles-head { grid-column: 1 / -1; margin: 14px 0 0; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile.skin > span { min-height: 0; padding: 13px 14px; }
.tile.skin b { font-size: 15px; }
.tile.skin small { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .swatch { display: inline-flex; flex: none; }
.tile .swatch i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(15, 19, 24, .18); margin-left: -4px; }
.tile .swatch i:first-child { margin-left: 0; }

/* Start month: a row of month chips, like Apple's small selectors. */
.months-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.month { position: relative; cursor: pointer; }
.month input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.month span { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border: 1px solid #A3AAB4; border-radius: 12px; background: var(--white);
  font-weight: 600; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.month small { font-weight: 400; font-size: 11px; color: var(--muted); }
.month input:checked + span { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.month input:focus-visible + span { outline: 3px solid rgba(229, 174, 0, .45); outline-offset: 2px; }
.when-placement { display: flex; flex-direction: column; gap: 12px; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field i { font-style: normal; font-weight: 400; color: var(--muted); }
input, textarea { font: 16px var(--font); color: var(--ink); background: var(--white); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 13px 14px; width: 100%; transition: border-color .15s, background .15s; }
input:focus, textarea:focus { border-color: var(--amber); }
textarea { resize: vertical; min-height: 110px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--amber); flex: none; }
.error { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FDECEC; color: #B42318; font-size: 14px; }
.sent { padding: 40px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-align: center; animation: rise .45s both; }
.sent h3 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.02em; }
.sent p { color: var(--ink-2); margin: 0 0 22px; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { color: var(--amber-ink); } 100% { color: var(--ink); } }

/* footer */
.foot { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot span { display: inline-flex; align-items: center; gap: 8px; }
.foot img { border-radius: 5px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; }
  .hero { min-height: 0; padding-bottom: 420px; }
  .hero-figure { top: auto; height: 520px; bottom: -40px; right: -10vw; width: 120vw; }
  .progress { display: none; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .buy-grid { grid-template-columns: 1fr; gap: 28px; }
  .visual { position: static; }
  .visual-card { min-height: 0; }
  .visual-stage { min-height: 200px; }
}
@media (max-width: 620px) {
  .top nav a:not(.cta-sm) { display: none; }
  .grid, .steps, .row2, .tiles.skins, .tiles.two, .tiles.three { grid-template-columns: 1fr; }
  .months-pick { grid-template-columns: repeat(4, 1fr); }
  /* Phones: a short robot panel above the questions; the bar on top already lists the answers. */
  .visual-card { padding: 16px; gap: 10px; }
  .visual-stage { min-height: 230px; }
  .visual-sum { display: none; }
  .q { padding: 28px 0 40px; scroll-margin-top: 130px; }
  .tile > span { min-height: 0; }
  .band { padding: 64px 0; }
  .months { grid-template-columns: repeat(12, 14px); gap: 4px; } .months i { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
