/* Trainary — site-next (local prototype) */

:root {
  --bg: #050606;
  --bg-2: #0a0c0c;
  --shell: rgba(255, 255, 255, 0.035);
  --shell-line: rgba(255, 255, 255, 0.08);
  --core: #0e1112;
  --core-2: #151819;
  --hair: rgba(255, 255, 255, 0.07);
  --text: #f1f5f3;
  --muted: rgba(226, 238, 233, 0.58);
  --faint: rgba(226, 238, 233, 0.36);
  --teal: #14b8a6;
  --teal-soft: rgba(20, 184, 166, 0.14);
  --green: #3ddc84;
  --orange: #fb923c;
  --blue: #4f8cf7;
  --amber: #e0a73a;
  --violet: #a78bfa;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --radius: 2rem;
  --ui: "SF Pro Rounded", ui-rounded, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Fixed ambience: glow orbs + grain, never on scrolling layers */
.ambience { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ambience .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.ambience .orb.a { width: 720px; height: 720px; left: -220px; top: -260px; background: radial-gradient(circle, rgba(20,184,166,0.55), transparent 65%); }
.ambience .orb.b { width: 620px; height: 620px; right: -240px; top: 30vh; background: radial-gradient(circle, rgba(61,220,132,0.22), transparent 65%); }
.ambience::after {
  content: ""; position: absolute; inset: -50%; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, footer { position: relative; z-index: 1; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- Island nav ---------- */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 6px 6px 14px; border-radius: 999px;
  background: rgba(14, 17, 18, 0.62); border: 1px solid var(--shell-line);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 50px -20px rgba(0,0,0,0.6);
}
.nav .brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.01em; margin-right: 8px; }
.nav .brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav .links { display: flex; gap: 2px; }
.nav .links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .5s var(--ease), background .5s var(--ease); }
.nav .links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; position: relative; background: rgba(255,255,255,0.06); }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .6s var(--ease), top .6s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.menu-open .burger span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

.overlay {
  position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 0 28px; background: rgba(5,6,6,0.82); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  opacity: 0; pointer-events: none; transition: opacity .6s var(--ease);
}
.overlay a { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; transform: translateY(40px); opacity: 0; transition: transform .8s var(--ease), opacity .8s var(--ease); }
.menu-open .overlay { opacity: 1; pointer-events: auto; }
.menu-open .overlay a { transform: none; opacity: 1; }
.menu-open .overlay a:nth-child(2) { transition-delay: .05s; }
.menu-open .overlay a:nth-child(3) { transition-delay: .1s; }
.menu-open .overlay a:nth-child(4) { transition-delay: .15s; }
.menu-open .overlay a:nth-child(5) { transition-delay: .2s; }
.menu-open .overlay a:nth-child(6) { transition-delay: .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; border-radius: 999px;
  padding: 8px 8px 8px 22px; font-weight: 500; font-size: 15px;
  transition: transform .5s var(--ease), background .5s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: transform .6s var(--ease); }
.btn:hover .ic { transform: translate(3px, -1px) scale(1.05); }
.btn.primary { background: var(--text); color: #071010; }
.btn.primary .ic { background: rgba(0,0,0,0.08); }
.btn.ghost { background: rgba(255,255,255,0.06); border: 1px solid var(--shell-line); }
.btn.ghost .ic { background: rgba(255,255,255,0.08); }
.btn.sm { padding: 6px 6px 6px 16px; font-size: 14px; gap: 10px; }
.btn.sm .ic { width: 28px; height: 28px; }
.btn svg { width: 15px; height: 15px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 5px 12px 5px 6px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--muted);
  background: rgba(255,255,255,0.04); border: 1px solid var(--shell-line);
}
.eyebrow b { font-weight: 600; letter-spacing: 0.04em; text-transform: none; font-size: 11px; color: #071010; background: var(--teal); border-radius: 999px; padding: 2px 8px; }
.eyebrow.plain { padding: 5px 12px; }

h1, h2, h3 { margin: 0; letter-spacing: -0.035em; font-weight: 600; line-height: 1.02; }
h1 { font-size: clamp(44px, 5.4vw, 80px); }
h2 { font-size: clamp(36px, 5vw, 68px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 34em; }
.grad { background: linear-gradient(100deg, #e9fff8 10%, #5eead4 55%, #3ddc84 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dim { color: var(--faint); }

section { padding: clamp(96px, 13vw, 168px) 0; }
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 80px); justify-items: start; }
.sec-head > .lede, .sec-head > .points, .sec-head > .checks { justify-self: stretch; }
.sec-head.center { justify-items: center; text-align: center; }

/* ---------- Double bezel ---------- */
.bezel { padding: 7px; border-radius: var(--radius); background: var(--shell); border: 1px solid var(--shell-line); }
.bezel > .core {
  height: 100%; border-radius: calc(var(--radius) - 7px); background: linear-gradient(180deg, var(--core-2), var(--core));
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.08); overflow: hidden; position: relative;
}

/* ---------- Devices ---------- */
.iphone {
  --k: 300; width: calc(var(--k) * 1px); aspect-ratio: 1206 / 2622; position: relative;
  padding: calc((var(--k) * 1px) * 0.035); border-radius: calc((var(--k) * 1px) * 0.17);
  background: linear-gradient(145deg, #3a3d3f, #121414 40%, #2a2c2d);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 60px 90px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(0,0,0,0.6);
}
.iphone .screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; background: #000;
  border-radius: calc((var(--k) * 1px) * 0.135);
}
.iphone .island {
  position: absolute; z-index: 3; top: calc((var(--k) * 1px) * 0.03); left: 50%; transform: translateX(-50%);
  width: 32%; height: calc((var(--k) * 1px) * 0.085); background: #000; border-radius: 999px;
}
.iphone .screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.ipad {
  --k: 640; width: calc(var(--k) * 1px); aspect-ratio: 1668 / 2420; position: relative;
  padding: calc((var(--k) * 1px) * 0.028); border-radius: calc((var(--k) * 1px) * 0.06);
  background: linear-gradient(145deg, #34373a, #111313 45%, #26292a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 60px 100px -40px rgba(0,0,0,0.9);
}
.ipad.land { aspect-ratio: 2420 / 1668; }
.ipad .screen { width: 100%; height: 100%; overflow: hidden; border-radius: calc((var(--k) * 1px) * 0.035); background: #000; position: relative; }
.ipad .screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- In-device UI kit (mirrors the app) ---------- */
.ui { position: absolute; left: 0; top: 0; width: 280px; height: 609px; transform-origin: 0 0; transform: scale(calc(var(--k) * 0.93 / 280)); font-family: var(--ui); color: #fff; background: radial-gradient(120% 50% at 50% 0%, #0f2f2b 0%, #000 55%); overflow: hidden; }
.ui .status { display: flex; justify-content: space-between; padding: 7.5% 9% 0; font-size: 12px; font-weight: 600; }
.ui .status i { display: inline-block; width: 18px; height: 9px; border-radius: 3px; border: 1.3px solid #fff; position: relative; }
.ui .status i::after { content: ""; position: absolute; inset: 1px; right: 3px; background: #fff; border-radius: 1px; }
.ui .title { text-align: center; font-weight: 600; font-size: 14px; margin: 16px 0 12px; }
.ui .pad { padding: 0 12px; display: grid; gap: 8px; }
.ui .card { background: #1c1c1e; border-radius: 16px; padding: 12px; border: 0.5px solid rgba(255,255,255,0.06); }
.ui .h { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.ui .sub { font-size: 11px; color: rgba(235,235,245,0.6); }
.ui .num { font-weight: 700; font-variant-numeric: tabular-nums; }
.ui .g { color: var(--green); }
.ui .t { color: var(--teal); }
.ui .o { color: var(--orange); }
.ui .row { display: flex; align-items: center; gap: 10px; }
.ui .row .sp { flex: 1; min-width: 0; }
.ui .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ui .dot svg { width: 15px; height: 15px; }
.ui .sec { font-size: 18px; font-weight: 700; margin: 8px 2px 0; }
.ui .set { display: flex; align-items: center; gap: 10px; background: #1c1c1e; border-radius: 16px; padding: 10px 12px; }
.ui .check { width: 32px; height: 32px; border-radius: 50%; background: rgba(61,220,132,0.12); display: grid; place-items: center; flex: none; }
.ui .check svg { width: 16px; height: 16px; stroke: var(--green); stroke-width: 2.4; fill: none; stroke-dasharray: 24; stroke-dashoffset: 24; }
.ui .set.done .check svg { stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease); }
.ui .set .w { margin-left: auto; text-align: right; }
.ui .set .w .num { font-size: 18px; color: var(--green); }
.ui .chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; background: rgba(255,255,255,0.08); }
.ui .chip.warm { background: rgba(251,146,60,0.16); color: var(--orange); }
.ui .btn-ui { margin-top: 2px; text-align: center; border-radius: 14px; padding: 11px; font-weight: 700; font-size: 14px; background: var(--teal); color: #031412; }

/* Rest ring */
.ring { position: relative; width: 150px; height: 150px; margin: 6px auto 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .bg { stroke: rgba(251,146,60,0.14); }
.ring .fg { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 427; stroke-dashoffset: 0; }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val .num { font-size: 36px; color: var(--orange); }

/* Week grid (iPad hero) */
.week { position: absolute; left: 0; top: 0; width: 472px; height: 685px; transform-origin: 0 0; transform: scale(calc(var(--k) * 0.944 / 472)); font-family: var(--ui); background: #000; color: #fff; padding: 4.5% 3.5% 0; }
.week .top { display: flex; justify-content: center; margin-bottom: 4%; }
.week .tabs { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: #1c1c1e; font-size: 12px; }
.week .tabs span { padding: 6px 12px; border-radius: 999px; color: #ddd; }
.week .tabs span.on { background: #2c3a37; color: var(--green); font-weight: 600; }
.week .range { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.week .legend { display: flex; gap: 14px; font-size: 11px; color: #bbb; margin-bottom: 12px; }
.week .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.week .grid { position: relative; display: grid; grid-template-columns: 34px repeat(5, 1fr); gap: 0 5px; }
.week .dh { text-align: center; font-size: 11px; color: #999; padding-bottom: 8px; border-bottom: 1px solid #1d1d1f; }
.week .dh b { display: block; font-size: 16px; color: #fff; font-weight: 600; margin-top: 2px; }
.week .dh.today b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); }
.week .hours { grid-column: 1; font-size: 9px; color: #777; }
.week .hours div { height: 46px; }
.week .col { position: relative; border-left: 1px solid #141415; }
.week .blk { position: absolute; left: 2px; right: 2px; border-radius: 6px; padding: 5px 6px; font-size: 9.5px; line-height: 1.25; font-weight: 600; overflow: hidden; }
.week .blk small { display: block; font-weight: 500; opacity: 0.75; }
.week .blk.b { background: #2f4f86; border-left: 3px solid var(--blue); }
.week .blk.a { background: #6b5a3a; border-left: 3px solid var(--amber); }
.week .blk.v { background: #4b3d7a; border-left: 3px solid var(--violet); }

/* ---------- Hero ---------- */
.hero { min-height: 100dvh; padding-top: 128px; padding-bottom: 80px; display: grid; align-items: center; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 1fr; gap: 40px; align-items: center; }
.hero .copy { display: grid; gap: 24px; justify-items: start; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .meta { display: flex; gap: 22px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
.hero .meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero .meta svg { width: 14px; height: 14px; stroke: var(--teal); }
.stage { position: relative; height: 720px; }
.stage .ipad { --k: 500; position: absolute; right: -40px; top: 10px; transform: rotate(3deg); }
.stage .iphone { --k: 268; position: absolute; left: 10px; bottom: 0; transform: rotate(-4deg); z-index: 2; }
.stage .badge {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px;
  background: rgba(20,24,25,0.9); border: 1px solid var(--shell-line); box-shadow: 0 20px 40px -18px rgba(0,0,0,0.8); font-size: 13px;
}
.stage .badge .bi { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.stage .badge .bi svg { width: 16px; height: 16px; }
.stage .badge small { display: block; color: var(--faint); font-size: 11px; }
.stage .badge.one { right: -28px; bottom: 190px; }
.stage .badge.two { left: 236px; bottom: -14px; }

/* ---------- Marquee ---------- */
.marquee { padding: 26px 0; border-block: 1px solid var(--hair); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; gap: 12px; width: max-content; animation: slide 46s linear infinite; }
.marquee .pill { white-space: nowrap; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--shell-line); background: rgba(255,255,255,0.03); color: var(--muted); font-size: 14px; }
.marquee .pill b { color: var(--teal); font-weight: 500; margin-right: 6px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Story (sticky phone) ---------- */
.story .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.story .steps { display: grid; }
.story .step { min-height: 78vh; display: grid; align-content: center; gap: 18px; padding-right: 20px; opacity: 0.28; transition: opacity .8s var(--ease); }
.story .step.on { opacity: 1; }
.story .step h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }
.story .step .n { font-family: var(--mono); font-size: 13px; color: var(--teal); }
.story .step ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); font-size: 15.5px; }
.story .step li { display: flex; gap: 10px; }
.story .step li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); margin-top: 10px; flex: none; }
.story .pin { position: sticky; top: calc(50vh - 330px); height: 660px; display: grid; place-items: center; }
.story .pin .iphone { --k: 304; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); }
.scene.on { opacity: 1; }
.story .mini { display: none; }

/* plan grid */
.plan-grid { display: grid; grid-template-columns: 34px 1fr 1fr 1fr; gap: 4px; font-size: 11px; }
.plan-grid div { padding: 7px 4px; border-radius: 8px; background: #232325; text-align: center; font-variant-numeric: tabular-nums; }
.plan-grid .hd { background: none; color: rgba(235,235,245,0.5); font-size: 10px; padding: 2px; }
.plan-grid .s { background: none; color: rgba(235,235,245,0.5); }
.plan-grid .up { color: var(--green); font-weight: 700; }

/* chart */
.chart svg { width: 100%; height: 130px; display: block; }
.chart .line { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .area { fill: url(#cg); opacity: 0.6; }
.chart .gridl { stroke: rgba(255,255,255,0.06); }
.seg { display: flex; gap: 2px; padding: 3px; background: #2c2c2e; border-radius: 9px; font-size: 10px; }
.seg span { flex: 1; text-align: center; padding: 4px; border-radius: 7px; color: #ccc; }
.seg span.on { background: #636366; color: #fff; font-weight: 600; }

/* ---------- AI section ---------- */
.ai .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.chatbox { padding: 26px; display: grid; gap: 14px; min-height: 520px; align-content: start; }
.chatbox .bar { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 12px; font-family: var(--mono); margin-bottom: 6px; }
.chatbox .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 20px; font-size: 15px; line-height: 1.45; }
.msg.me { justify-self: end; background: #1e2a28; border: 1px solid rgba(20,184,166,0.25); border-bottom-right-radius: 6px; }
.msg.bot { background: rgba(255,255,255,0.04); border: 1px solid var(--hair); border-bottom-left-radius: 6px; color: #dfe9e5; }
.msg.bot ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.tool { justify-self: start; display: inline-flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--teal); padding: 6px 12px; border-radius: 999px; background: var(--teal-soft); }
.tool svg { width: 13px; height: 13px; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.tiles div { border-radius: 12px; background: rgba(61,220,132,0.08); border: 1px solid rgba(61,220,132,0.18); padding: 8px; text-align: center; font-size: 12px; color: var(--muted); }
.tiles b { display: block; color: var(--green); font-size: 16px; font-variant-numeric: tabular-nums; }
.ai .points { display: grid; gap: 14px; margin-top: 10px; }
.ai .points div { display: flex; gap: 12px; color: var(--muted); font-size: 15.5px; }
.ai .points svg { width: 18px; height: 18px; flex: none; stroke: var(--teal); margin-top: 3px; }
.works { display: flex; gap: 10px; flex-wrap: wrap; }
.works span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--shell-line); color: var(--muted); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento > .bezel { min-height: 300px; }
.bento .c12 { grid-column: 1 / -1; } .bento .c8 { grid-column: span 8; } .bento .c4 { grid-column: span 4; } .bento .c6 { grid-column: span 6; } .bento .c5 { grid-column: span 5; } .bento .c7 { grid-column: span 7; }
.tile { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; max-width: 30em; }
.tile .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.tile .viz { margin-top: auto; padding-top: 22px; }

.lock { position: relative; border-radius: 22px; padding: 14px 16px; background: rgba(40,44,46,0.75); border: 1px solid var(--hair); display: flex; align-items: center; gap: 14px; font-family: var(--ui); }
.lock .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; color: var(--teal); }
.lock .t { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--teal); margin-left: auto; }
.lock .bar { position: absolute; left: 16px; right: 16px; bottom: 7px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.lock .bar i { display: block; height: 100%; width: 100%; background: var(--teal); transform-origin: left; }

.dist { display: flex; gap: 10px; font-family: var(--ui); }
.dist div { flex: 1; border-radius: 16px; padding: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--hair); }
.dist b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.dist small { color: var(--faint); font-size: 12px; }

.warm { display: grid; gap: 6px; font-family: var(--ui); font-size: 13px; }
.warm div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,0.04); }
.warm div .w { margin-left: auto; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.warm div.wu .w { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1px; }
.warm .tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(251,146,60,0.16); color: var(--orange); }

.badges { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.badges div { aspect-ratio: 1; border-radius: 30%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18), rgba(255,255,255,0.03)); border: 1px solid var(--hair); }
.badges svg { width: 46%; height: 46%; }

.mbars { display: grid; gap: 8px; font-size: 12px; color: var(--muted); }
.mbars div { display: grid; grid-template-columns: 70px 1fr 64px; align-items: center; gap: 10px; }
.mbars i { display: block; height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--teal), var(--green)); transform-origin: left; }
.mbars span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.bigstat { font-size: 54px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.bigstat small { font-size: 15px; color: var(--green); font-weight: 500; letter-spacing: 0; margin-left: 8px; }

.copyfan { position: relative; height: 150px; }
.copyfan .pc { position: absolute; left: 0; top: 18px; width: 58%; padding: 12px 14px; border-radius: 16px; background: #1b1f20; border: 1px solid var(--hair); font-size: 13px; }
.copyfan .pc small { display: block; color: var(--faint); font-size: 11px; }
.copyfan .who { position: absolute; right: 0; display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--hair); font-size: 12.5px; }
.copyfan .who i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 700; color: #061311; }

.mini-list { display: grid; gap: 8px; font-size: 13px; }
.mini-list div { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.04); color: var(--muted); }
.mini-list b { color: var(--text); font-weight: 500; font-family: var(--mono); font-size: 12px; }

.import-tile { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; }
.import-tile > div:first-child { display: grid; gap: 10px; }
.import-tile .more { color: var(--teal); font-size: 15px; margin-top: 4px; }
.import-tile .more:hover { text-decoration: underline; text-underline-offset: 4px; }
.flow { display: flex; align-items: center; gap: 16px; }
.flow .src { display: grid; gap: 8px; }
.flow .src span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--shell-line); font-size: 13px; color: var(--muted); text-align: center; }
.flow .arrow { width: 60px; color: var(--teal); flex: none; }
.flow .rows { flex: 1; display: grid; gap: 8px; }
.flow .rows div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(61,220,132,0.06); border: 1px solid rgba(61,220,132,0.16); font-size: 14px; }
.flow .rows b { font-weight: 500; color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Gallery ---------- */
.gallery .switch { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--shell-line); }
.gallery .switch button { padding: 8px 18px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: background .5s var(--ease), color .5s var(--ease); }
.gallery .switch button[aria-pressed="true"] { background: var(--text); color: #071010; }
.rail { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(16px, (100vw - 1200px) / 2) 40px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { margin: 0; scroll-snap-align: center; display: grid; gap: 16px; justify-items: center; flex: none; }
.rail figcaption { text-align: center; font-size: 14px; color: var(--muted); max-width: 260px; }
.rail figcaption b { display: block; color: var(--text); font-weight: 500; font-size: 15px; }
.rail .iphone { --k: 250; }
.rail .ipad { --k: 440; }
.rail[hidden] { display: none; }

/* ---------- Studio ---------- */
.studio .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.studio-card { padding: 26px; display: grid; gap: 18px; font-family: var(--ui); }
.seats .top { display: flex; justify-content: space-between; align-items: baseline; }
.seats .top b { font-size: 30px; font-variant-numeric: tabular-nums; }
.seats .meter { height: 10px; border-radius: 6px; background: rgba(255,255,255,0.06); overflow: hidden; margin-top: 10px; }
.seats .meter i { display: block; height: 100%; width: 70%; border-radius: 6px; background: linear-gradient(90deg, var(--teal), var(--green)); transform-origin: left; }
.coach { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.035); font-size: 14px; }
.coach i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; color: #061311; }
.coach .r { margin-left: auto; color: var(--faint); font-size: 12px; text-align: right; }
.coach .r b { color: var(--text); font-weight: 600; font-size: 14px; }
.tiers { display: flex; gap: 10px; flex-wrap: wrap; }
.tiers div { flex: 1; min-width: 120px; padding: 14px; border-radius: 16px; border: 1px solid var(--shell-line); background: rgba(255,255,255,0.02); }
.tiers b { display: block; font-size: 26px; letter-spacing: -0.03em; }
.tiers small { color: var(--faint); font-size: 12px; }
.checks { display: grid; gap: 12px; margin-top: 8px; }
.checks div { display: flex; gap: 12px; color: var(--muted); font-size: 15.5px; }
.checks svg { width: 18px; height: 18px; flex: none; stroke: var(--teal); margin-top: 3px; }

/* ---------- Clients ---------- */
.clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.plan .p { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; }
.plan .p small { font-size: 14px; color: var(--faint); font-weight: 400; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li svg { width: 16px; height: 16px; flex: none; stroke: var(--teal); margin-top: 4px; }
.plan.pro > .core { background: linear-gradient(180deg, #10302b, #0c1514 60%); }
.plan .tag { align-self: flex-start; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.free-note { margin-top: 26px; text-align: center; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { border-radius: 22px; border: 1px solid var(--shell-line); background: rgba(255,255,255,0.025); padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.06); position: relative; flex: none; transition: transform .6s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 12.5px; height: 1.5px; background: var(--text); }
.faq summary i::after { transform: rotate(90deg); transition: transform .6s var(--ease); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* ---------- Final CTA / footer ---------- */
.final .core { padding: clamp(48px, 7vw, 96px) 28px; text-align: center; display: grid; justify-items: center; gap: 24px;
  background: radial-gradient(80% 120% at 50% 0%, rgba(20,184,166,0.28), transparent 60%), var(--core); }
.final img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 20px 60px -10px rgba(20,184,166,0.5); }
footer { padding: 40px 0 60px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--hair); padding-top: 28px; }
footer nav { display: flex; gap: 22px; }
footer a:hover { color: var(--text); }
footer .langs { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
footer .langs a[aria-current] { color: var(--teal); }

/* Reveal base state (JS adds .js on <html>) */
.js [data-reveal] { opacity: 0; transform: translateY(48px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero .wrap, .ai .wrap, .studio .wrap { grid-template-columns: 1fr; }
  .stage { height: 640px; max-width: 620px; width: 100%; margin-inline: auto; }
  .bento .c8, .bento .c4, .bento .c6, .bento .c5, .bento .c7 { grid-column: span 6; }
}
@media (max-width: 860px) {
  .nav .links { display: none; }
  .burger { display: block; }
  .story .wrap { grid-template-columns: 1fr; }
  .story .pin { display: none; }
  .story .step { min-height: 0; opacity: 1; padding: 0 0 72px; }
  .story .mini { display: flex; justify-content: center; margin-top: 18px; }
  .story .mini .iphone { --k: 240; }
  .plans, .clients-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .import-tile { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow .src { grid-auto-flow: column; }
  .flow .arrow { transform: rotate(90deg); align-self: center; }
  .bento > .bezel { grid-column: 1 / -1 !important; min-height: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 120px; }
  .stage { height: 470px; }
  .stage .ipad { --k: 300; right: -36px; top: 0; }
  .stage .iphone { --k: 180; left: -4px; }
  .stage .badge.one { display: none; }
  .nav .btn { display: none; }
  .stage .badge.two { display: none; }
  .tile, .plan, .chatbox, .studio-card { padding: 20px; }
  .rail .ipad { --k: 320; }
  .badges { grid-template-columns: repeat(4, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
