/* ASAP microsite — styles */

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/barlow-latin-900-normal.woff2') format('woff2'); }

:root {
  --ink: #18181B;
  --ink-2: #27272A;
  --ink-3: #3F3F46;
  --paper: #F7F7F5;
  --stone: #F1F1EE;
  --line: #E4E4E0;
  --muted: #52525B;
  --muted-2: #6B6B73;
  --faint: #A1A1AA;
  --violet: #7C5CFF;
  --violet-tint: #EFEBFF;
  --violet-deep: #5B3FE0;
  --coral: #FF7A59;
  --coral-tint: #FFEDE7;
  --grad: linear-gradient(90deg, #7C5CFF, #FF7A59);
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Barlow', ui-sans-serif, system-ui, sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--ink); }
a:hover { color: var(--violet); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 50; background: #fff; padding: 10px 16px; border-radius: 8px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.disp { font-family: 'Barlow', sans-serif; font-weight: 900; letter-spacing: -.02em; line-height: .95; margin: 0; }
.h2 { font-family: 'Barlow', sans-serif; font-weight: 900; letter-spacing: -.015em; line-height: 1; margin: 0; font-size: clamp(2.25rem, 4.4vw, 4rem); }
.grad { background: linear-gradient(90deg, #7C5CFF, #FF7A59, #7C5CFF); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.3125rem; line-height: 1.5; color: #3F3F46; margin: 0; }
.body { font-size: 1.125rem; line-height: 1.55; color: var(--muted); margin: 0; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: .8125rem; letter-spacing: .04em; color: var(--muted-2); }

/* Buttons */
.pill { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 1.0625rem; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, transform .2s; }
.pill:active { transform: scale(.97); }
.pill.ink { background: var(--ink); color: #fff; }
.pill.ink:hover { background: var(--violet); color: #fff; }
.pill.soft { background: #E7E7E2; color: var(--ink); }
.pill.soft:hover { background: #DCDCD5; color: var(--ink); }
.pill.light { background: #fff; color: var(--ink); }
.pill.light:hover { background: var(--violet-tint); color: var(--ink); }
.pill svg { transition: transform .2s; }
.pill:hover svg { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247,247,245,.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.site-header .bar-inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height .3s; }
.site-header.scrolled { background: rgba(247,247,245,.92); border-bottom-color: var(--line); }
.site-header.scrolled .bar-inner { height: 68px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { width: 44px; height: 44px; border-radius: 6px; transition: transform .3s; }
.site-header.scrolled .logo img { transform: scale(.86); }
.navlinks { display: flex; gap: 32px; }
.navlink { text-decoration: none; font-weight: 500; font-size: 1rem; color: #3F3F46; padding: 10px 4px; }
.spacer { width: 44px; }

/* Hero */
.hero { padding-top: 88px; padding-bottom: 48px; }
.hero-inner { display: flex; flex-direction: column; gap: 28px; max-width: 1180px; }
.hero h1 { font-size: clamp(3.5rem, 9vw, 8.5rem); }
.hero .lead { max-width: 660px; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.w { display: inline-block; will-change: transform; }
.btns { display: flex; gap: 12px; }

/* App preview */
.preview-stage { perspective: 1400px; }
.preview { background: linear-gradient(120deg, #7C5CFF, #FF7A59); border-radius: 40px; padding: clamp(20px, 4vw, 56px) clamp(20px, 4vw, 56px) 0; overflow: hidden; transform-origin: 50% 100%; }
.app { background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 30px 60px rgba(40,10,80,.35); display: grid; grid-template-columns: 200px 1fr 220px; grid-template-rows: 380px 150px; overflow: hidden; }
.app-col { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.app-left { border-right: 1px solid #ECECE8; }
.app-right { border-left: 1px solid #ECECE8; gap: 12px; }
.app-label { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .08em; }
.size-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.size-row.on { background: #F4F4F1; color: var(--ink); }
.size-row i { border: 1.5px solid var(--faint); border-radius: 2px; }
.size-row.on i { border-color: var(--ink); }
.app-canvas { background-color: var(--stone); background-image: radial-gradient(#DADAD5 1px, transparent 1px); background-size: 18px 18px; display: flex; align-items: center; justify-content: center; }
.mini-banner { width: 160px; height: 320px; border-radius: 4px; background: var(--ink); box-shadow: 0 12px 30px rgba(0,0,0,.18); padding: 18px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.mb-line { display: block; height: 14px; background: #fff; border-radius: 3px; transform-origin: left center; }
.mb-sub { display: block; height: 8px; width: 60%; background: var(--muted-2); border-radius: 3px; margin-top: 6px; transform-origin: left center; }
.mb-img { position: absolute; left: 18px; right: 18px; bottom: 70px; top: 110px; border-radius: 6px; background: linear-gradient(160deg, #7C5CFF, #FF7A59); }
.mb-cta { position: absolute; right: 14px; bottom: 18px; width: 64px; height: 64px; border-radius: 50%; background: var(--coral); outline: 1.5px solid var(--violet); outline-offset: 4px; }
.field { font-family: var(--mono); font-size: 12px; background: #F4F4F1; border-radius: 6px; padding: 8px; }
.curve-box { background: #F4F4F1; border-radius: 8px; height: 92px; display: flex; align-items: center; justify-content: center; }
.app-timeline { grid-column: 1 / 4; border-top: 1px solid #ECECE8; position: relative; padding: 20px 24px; }
.tracks { position: relative; height: 110px; }
.bar { position: absolute; height: 22px; border-radius: 6px; background: var(--line); overflow: hidden; transform-origin: left center; }
.bar b { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 6px; background: #C9C9C2; }
.bar.hi { background: #E6E0FF; }
.bar.hi b { background: var(--violet); }
.playhead { position: absolute; left: 0; top: -8px; bottom: -8px; width: 2px; background: var(--coral); border-radius: 1px; }
.preview-note { max-width: 780px; margin: 40px auto 0; text-align: center; }

/* Feature cards */
.features { display: flex; flex-direction: column; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.card { border-radius: 40px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.card.rev .copy { order: 2; }
.copy { display: flex; flex-direction: column; gap: 20px; }
.vis { border-radius: 28px; padding: 32px; min-height: 380px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.bg-white { background: #fff; }
.bg-ink { background: var(--ink); color: #fff; }
.bg-violet { background: var(--violet-tint); }
.bg-coral { background: var(--coral-tint); }
.bg-grad { background: linear-gradient(140deg, #7C5CFF, #FF7A59); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; font-size: .9375rem; font-weight: 500; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.05); }

/* 01 formats */
.fmt-wrap { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.fmt { display: block; border-radius: 6px; background: var(--ink-3); position: relative; overflow: hidden; transform-origin: 50% 100%; }
.fmt.master { background: var(--ink); box-shadow: 0 0 0 3px var(--stone), 0 0 0 5px var(--violet); }
.fmt .art { position: absolute; inset: 18% 14% auto 14%; height: 18%; border-radius: 3px; background: linear-gradient(90deg, #7C5CFF, #FF7A59); }
.fmt .art2 { position: absolute; right: 12%; bottom: 10%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--coral); }

/* 02 layers */
.layer-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 40px; border-radius: 12px; background: #303034; }
.layer-row.head { padding: 14px 16px; border-radius: 14px; background: var(--ink-3); }
.layer-row .tag { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.update { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: #FF9C80; font-size: 1rem; font-weight: 500; }

/* 05–13 grid */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mini { border-radius: 32px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.mini .h2 { font-size: 2.125rem; }
.mini .body { font-size: 1.0625rem; }
.mini-vis { min-height: 120px; position: relative; }
.stops-bar { height: 120px; border-radius: 20px; background: linear-gradient(90deg, #18181B, #7C5CFF 55%, #FF7A59); background-size: 160% 100%; position: relative; }
.stop { position: absolute; bottom: -8px; width: 18px; height: 18px; border-radius: 6px; border: 3px solid #fff; }

/* Workflow */
.workflow { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 40px; }
.steps-wrap { position: relative; }
.steps-line { position: absolute; left: 32px; right: 32px; top: 64px; height: 3px; border-radius: 2px; background: var(--grad); transform-origin: left center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.step { display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 28px; background: #fff; }
.num { font-family: 'Barlow', sans-serif; font-weight: 900; font-size: 4rem; line-height: 1; letter-spacing: -.03em; display: inline-block; }
.step strong { font-size: 1.5rem; font-weight: 900; }

/* FAQ */
.faq { padding-top: 24px; padding-bottom: 72px; display: grid; gap: 24px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-weight: 900; font-size: 1.625rem; letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
.pm { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: #E7E7E2; display: flex; align-items: center; justify-content: center; transition: transform .25s, background-color .25s, color .25s; }
details[open] .pm { transform: rotate(45deg); background: var(--ink); color: #fff; }
.answer { overflow: hidden; }
.answer p { margin: 0 0 28px; max-width: 760px; }

/* Closing */
.closing { padding-bottom: 48px; }
.closing-box { background: var(--ink); color: #fff; border-radius: 40px; padding: clamp(40px, 6vw, 88px); display: flex; flex-direction: column; gap: 28px; align-items: flex-start; position: relative; overflow: hidden; }
.glow { position: absolute; left: 85%; top: 10%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,255,.55), rgba(255,122,89,.25) 45%, rgba(24,24,27,0) 70%); pointer-events: none; }
.closing-box > *:not(.glow) { position: relative; }
.closing h2 { font-size: clamp(2.75rem, 7vw, 6rem); max-width: 1000px; }

/* Footer */
.site-footer { padding-top: 24px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: .9375rem; color: var(--muted-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--muted); }

/* Legal pages */
.legal { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); margin-bottom: 32px; }
.legal h2 { font-weight: 900; font-size: 1.5rem; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 1.125rem; line-height: 1.6; color: var(--muted); }
.legal .ph { background: #FFF3C4; color: #7A5B00; padding: 0 4px; border-radius: 4px; font-family: var(--mono); font-size: .95em; }
.back { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; margin-bottom: 40px; }

/* Responsive */
@media (max-width: 960px) {
  .card { grid-template-columns: 1fr; padding: 32px; gap: 32px; border-radius: 28px; }
  .card.rev .copy { order: 0; }
  .grid3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps-line { display: none; }
  .navlinks { display: none; }
  .btns { flex-wrap: wrap; }
  .app { grid-template-columns: 1fr; grid-template-rows: 340px 140px; }
  .app-left, .app-right { display: none; }
  .app-timeline { grid-column: 1; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .steps { grid-template-columns: 1fr; }
  .vis { padding: 20px; min-height: 280px; }
  .pill { height: 50px; padding: 0 22px; }
  summary { font-size: 1.375rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
