/* Pulse website: the app's Trading Desk world at launch scale (DESIGN.md). A Deep Indigo field owns the first viewport and
   the closing offer; between them, flat white, grey bands as section heads, one working demo per capability, figures in
   tabular numerals, squared 8px keys. Lock teal appears only where the scan frame locks. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter.woff2') format('woff2') }

:root {
  --board: #FFFFFF; --band: #F4F4FA; --tonal: #EEEEF7; --edge: #D7D7E6;
  --ink: #15142A; --ink-2: #3D3C55; --ink-3: #62617A; --rule: rgba(20,23,28,.11); --rule-soft: rgba(20,23,28,.08);
  --brand: #3B2FC9; --deep: #2A1F9E; --band-ink: #4A43A6; --on-2: rgba(255,255,255,.78); --on-rule: rgba(255,255,255,.16);
  --on-green: #9CF0C2; --on-red: #FFB8B0; --lift: #CDCAFF;
  --green: #13773F; --amber: #9A4A06; --lock: #5DD6C8;
  --wrap: 1180px; --gutter: 16px; --ease: cubic-bezier(.16,1,.3,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --board: #0F0F17; --band: #161622; --tonal: #1E1E2C; --edge: #2D2D40;
    --ink: #EEEEF6; --ink-2: rgba(238,238,246,.80); --ink-3: rgba(238,238,246,.62); --rule: rgba(237,239,242,.11); --rule-soft: rgba(237,239,242,.07);
    --brand: #A9A3FF; --deep: #221A7E; --band-ink: #B7B2F5; --green: #6FCF97; --amber: #E8A25C; color-scheme: dark }
}
@media (min-width: 900px) { :root { --gutter: 32px } }

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; background: var(--board); scroll-behavior: smooth; scroll-padding-top: 72px }
body { margin: 0; background: var(--board); color: var(--ink); font: 400 16px/1.55 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased }
::selection { background: color-mix(in srgb, var(--brand) 24%, transparent) }
a { color: var(--brand); text-underline-offset: 3px }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px }
img { max-width: 100%; height: auto; display: block }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) }
.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--board); color: var(--ink); z-index: 30 }
.skip:focus { left: 8px }
.muted, .fine { font-size: 13px; color: var(--ink-3) }
.num, .board-figs b, .price { font-variant-numeric: tabular-nums }
[hidden] { display: none !important }

/* keys: squared, never pills */
.key { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 8px;
  background: var(--brand); color: #fff; font: 650 15px/1 Inter, system-ui, sans-serif; letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s }
.key:active { transform: translateY(1px) }
.key-light { background: #fff; color: #2A1F9E }
.key-light:hover { background: #F0EFFF }
.key-small { min-height: 40px; padding: 0 16px; font-size: 14px }
.key-big { min-height: 56px; padding: 0 28px; font-size: 17px }
.top .key:focus-visible, .hero-field .key:focus-visible, .join .key:focus-visible { outline-color: #fff }

/* the top bar stays with you; it is part of the indigo field */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, #2A1F9E 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); color: #fff; border-bottom: 1px solid transparent; transition: border-color .3s }
.top.scrolled { border-bottom-color: var(--on-rule) }
@media (prefers-color-scheme: dark) { .top { background: color-mix(in srgb, #221A7E 92%, transparent) } }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 64px }
.top-status { display: none; font-size: 13px; font-weight: 600; color: var(--on-2) }
.top-status::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--lift); vertical-align: 1px }
.top .brand { margin-right: auto }   /* the status and the key sit right, whether or not the status shows */
@media (min-width: 700px) { .top-status { display: inline } }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 20px; font-weight: 750; letter-spacing: -.025em }
.brand svg { width: 30px; height: 30px; display: block }
.brand-small { font-size: 16px } .brand-small svg { width: 24px; height: 24px }

/* the first viewport: the indigo field, the big headline, the card that becomes a row */
.hero-field { background: #2A1F9E; color: #fff; overflow: hidden }
@media (prefers-color-scheme: dark) { .hero-field { background: #221A7E } }
.hero { display: grid; gap: 40px; padding-top: 28px; padding-bottom: 44px }
.hero h1 { margin: 0; font-size: clamp(44px, 10.5vw, 84px); line-height: .98; letter-spacing: -.04em; font-weight: 780 }
.hero h1 span { display: block; color: var(--lift) }
.lede { margin: 22px 0 0; max-width: 31em; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.55; color: var(--on-2) }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px }
.hero-offer { margin: 0; font-size: 15px; color: var(--on-2) }
.hero-offer b { display: inline-block; margin-right: 8px; padding: 2px 7px; border-radius: 4px; background: var(--lift); color: #2A1F9E; font-size: 12px; font-weight: 750; letter-spacing: .02em; vertical-align: 1px }
@media (min-width: 960px) { .hero { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 72px } }

.stage { margin: 0; display: grid; gap: 16px; justify-items: center }
.card-sample { position: relative; width: min(100%, 400px); aspect-ratio: 1.72; padding: 20px }
.card-face { position: relative; height: 100%; display: flex; flex-direction: column; gap: 2px; padding: 20px 22px; border-radius: 6px;
  background: #FBFAF7; color: #2A2F36; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 24px 50px rgba(0,0,0,.40); transform: rotate(-3deg) }
.card-face::before { content: ''; position: absolute; top: 18px; right: 20px; width: 22px; height: 22px; border-radius: 4px; background: #C62F22 }   /* the sample company's logo */
.card-co { font-size: 11px; font-weight: 700; letter-spacing: .05em }
.card-name { margin-top: 12px; font-size: 21px; font-weight: 700; letter-spacing: -.01em }
.card-title { font-size: 12px; color: #62617A; margin-bottom: auto }
.card-line { font-size: 12px; color: #3D3C55; font-variant-numeric: tabular-nums }
.frame { position: absolute; inset: 0; z-index: 1; pointer-events: none }
.frame i { position: absolute; width: 36px; height: 36px; border: 3px solid var(--lock) }
.frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0 }
.frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0 }
.frame i:nth-child(3) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0 }
.frame i:nth-child(4) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px }
.row-sample { display: flex; align-items: center; gap: 12px; width: min(100%, 420px); min-height: 68px; padding: 12px 12px 12px 14px; border-radius: 10px;
  background: #fff; color: #15142A; box-shadow: 0 16px 40px rgba(0,0,0,.32) }
.avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: #EEEEF7; color: #2A1F9E; font-weight: 700; font-size: 14px }
.row-who { display: flex; flex-direction: column; min-width: 0; flex: 1 }
.row-who b { font-size: 16px; font-weight: 650; letter-spacing: -.005em }
.row-who small { font-size: 13px; color: var(--ink-3) }
.row-sample .row-who small { color: #62617A }
.row-keys { display: flex; gap: 6px }
.mini { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: #EEEEF7; color: #2A1F9E }
.mini:first-child { background: #3B2FC9; color: #fff }
.mini svg { width: 18px; height: 18px }
.stage figcaption { font-size: 12px; color: var(--on-2) }

/* phones: the launch line inside the first viewport; wide screens: the display-scale statement below the hero */
.hero-soon { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; font-size: 22px; font-weight: 760; letter-spacing: -.02em; color: #fff }
.hero-soon svg { width: 18px; height: 18px; color: var(--lift); flex: none }
@media (min-width: 960px) { .hero-soon { display: none } }
@media (max-width: 959px) { .launch { display: none } }
/* the launch statement: display scale, the first viewport's last word */
.launch { padding-bottom: 36px }
.launch-line { display: flex; align-items: center; gap: .3em; margin: 0; padding-top: 28px; border-top: 1px solid var(--on-rule);
  font-size: clamp(30px, 6.4vw, 72px); font-weight: 780; letter-spacing: -.04em; line-height: 1; color: #fff }
.launch-line span { white-space: nowrap }
.launch-line svg { width: .62em; height: .62em; flex: none; color: var(--lift) }
@media (min-width: 960px) { .launch { padding-bottom: 48px } }

/* the ticker tape: the trading desk's own way of saying what is new */
.tape { border-top: 1px solid var(--on-rule); overflow: hidden; background: rgba(0,0,0,.12); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent) }   /* the faded edge says it scrolls */
.tape-run { display: flex; gap: 40px; overflow-x: auto; padding: 14px var(--gutter); scrollbar-width: none; max-width: var(--wrap); margin: 0 auto; white-space: nowrap; font-size: 14px; color: var(--on-2) }
.tape-run b { margin-right: 6px; color: #fff; font-weight: 700 }

/* features: one band, one claim, one working demo */
.band { margin: 0; min-height: 36px; padding: 8px 0; display: flex; align-items: center; background: var(--band); border-block: 1px solid var(--rule-soft);
  color: var(--band-ink); font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase }
.feature { border-top: 1px solid var(--rule-soft) }   /* a plain rule divides capabilities; no label above the headline */
.feature-grid { display: grid; gap: 32px; padding-top: 44px; padding-bottom: 52px; align-items: center }
.feature h2, .screens-h { margin: 0 0 16px; font-size: clamp(30px, 4.8vw, 52px); line-height: 1.04; letter-spacing: -.035em; font-weight: 760; text-wrap: balance }
.feature-copy p { margin: 0 0 14px; max-width: 34em; font-size: 17px; color: var(--ink-2) }
.feature-copy .fine { font-size: 13px }
.facts { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--rule-soft) }
.facts li { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); color: var(--ink-2); font-size: 15px }
.facts b { min-width: 7.5em; color: var(--ink); font-weight: 650 }
@media (min-width: 960px) {
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 72px; padding-top: 72px; padding-bottom: 80px }
  .flip .feature-copy { order: 2 }
}
.demo { position: relative; justify-self: center; width: min(100%, 520px) }
.demo-note { margin: 8px 0 0; font-size: 11px; color: var(--ink-3) }

/* demo: Indian details, before and after */
.india { border: 1px solid var(--rule); border-radius: 12px; overflow: hidden }
.xl { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 16px 18px; border-bottom: 1px solid var(--rule-soft) }
.xl:last-child { border-bottom: 0 }
.xl .from { grid-column: 1; font-size: 14px; color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--rule) }
.xl .to { grid-column: 1; font-size: 22px; font-weight: 700; letter-spacing: -.015em }
.xl .to.ok { color: var(--green) }
.xl small { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 3px 8px; border-radius: 4px; background: var(--tonal); color: var(--ink-2); font-size: 12px; font-weight: 650 }

/* demo: the expo board */
.board { border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--board) }
.board-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: color-mix(in srgb, var(--brand) 8%, var(--board)); font-size: 14px }
.board-head b { letter-spacing: .03em }
.live { padding: 1px 6px; border-radius: 4px; background: var(--brand); color: var(--board); font-size: 11px; font-weight: 750 }
.board-head .muted { margin-left: auto }
.board-figs { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--rule-soft) }
.board-figs div { display: flex; flex-direction: column; padding: 12px 16px; box-shadow: inset -1px 0 0 var(--rule-soft) }
.board-figs small { font-size: 12px; color: var(--ink-3) }
.board-figs b { font-size: 30px; font-weight: 760; letter-spacing: -.03em; line-height: 1.15 }
.board-figs em { font-style: normal; font-size: 11px; font-weight: 650; color: var(--green) }
.board-figs em.quiet { color: var(--ink-3) }
.amber { color: var(--amber) !important }
.board-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule-soft); font-size: 14px }
.board-row em { font-style: normal; font-size: 12px; font-weight: 650; color: var(--green) }
.board .demo-note { padding: 0 16px 10px }

/* phones: real app screens */
.phone { margin: 0; padding: 10px; border-radius: 34px; background: #121519; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 60px rgba(0,0,0,.28) }
.phone img { width: 100%; border-radius: 25px; aspect-ratio: 600 / 1333; background: #EAEAF3 }
.phone-demo { display: grid; justify-items: center; width: min(100%, 340px) }
.screen { margin: 0; width: 100%; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px rgba(0,0,0,.14) }
.screen img { width: 100% }
.shot { margin: 0; scroll-snap-align: center }
.shot figcaption { margin-top: 12px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-3) }
.toast { position: absolute; left: 50%; bottom: 18%; display: flex; align-items: center; gap: 10px; width: max-content; max-width: 92vw; padding: 12px 16px;
  border-radius: 10px; background: #15142A; color: #fff; font-size: 14px; box-shadow: 0 16px 34px rgba(0,0,0,.35); transform: translateX(-50%) }
.toast b { margin-right: 6px }
.toast-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--on-green); flex: none }
.screens { padding: 56px 0; border-top: 1px solid var(--rule-soft) }
.screens-h { margin-top: 0 }
.screens-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 280px); gap: 18px; overflow-x: auto; margin: 26px calc(var(--gutter) * -1) 10px; padding: 6px var(--gutter) 24px; scroll-snap-type: x mandatory; scrollbar-width: none }
@media (min-width: 960px) { .screens-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: unset; overflow: visible; margin-inline: 0; padding-inline: 0; gap: 40px } .screens-row .shot:nth-child(2) { transform: translateY(-24px) } }

/* the closing indigo field: the offer and the form */
.join { background: #2A1F9E; color: #fff; padding: 64px 0 72px }
@media (prefers-color-scheme: dark) { .join { background: #221A7E } }
.join-grid { display: grid; gap: 32px }
.join h2 { margin: 0 0 16px; font-size: clamp(32px, 5.6vw, 60px); line-height: 1.02; letter-spacing: -.04em; font-weight: 780; text-wrap: balance }
.join-copy p { margin: 0; max-width: 32em; font-size: 17px; color: var(--on-2) }
@media (min-width: 960px) { .join-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start } }
.tester { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 22px; border-radius: 12px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--on-rule) }
.tester .wide, .tester label:nth-child(1), .tester label:nth-child(2) { grid-column: 1 / -1 }
.tester label span { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 650; color: var(--on-2) }
.tester input { width: 100%; min-height: 50px; padding: 0 14px; border: 0; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff;
  font: 400 16px Inter, system-ui, sans-serif; box-shadow: inset 0 0 0 1px var(--on-rule) }
.tester input::placeholder { color: rgba(255,255,255,.62) }
.tester input:focus-visible { outline: 2px solid #fff; outline-offset: 1px }
.tester input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--on-red) }
.tester button[disabled] { opacity: .7; cursor: default }
.form-note { margin: 0; min-height: 1.4em; font-size: 14px; font-weight: 650 }
.form-note.ok { color: var(--on-green) }
.form-note.bad { color: var(--on-red) }
.form-fine { margin: 0; font-size: 12px; color: var(--on-2) }
.join a:not(.key) { color: #fff }

/* plans, privacy and questions: rows */
.block { padding-bottom: 32px }
.rows { list-style: none; margin: 0 auto }
.row { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft) }
.row .row-who b { font-size: 16px; font-weight: 650 }
.row .row-who small { font-size: 14px; line-height: 1.45; max-width: 60ch; color: var(--ink-3) }
.ratecard { list-style: none; margin: 24px 0 12px; padding: 0; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden }
.plan { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 18px; border-bottom: 1px solid var(--rule-soft) }
.plan:last-child { border-bottom: 0 }
.plan h3 { grid-column: 1; margin: 0; font-size: 17px; font-weight: 700 }
.plan .price { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; font-size: 20px; font-weight: 760; text-align: right; white-space: nowrap; letter-spacing: -.02em }
.plan p:not(.price) { grid-column: 1; margin: 0; font-size: 14px; color: var(--ink-3) }
.plan[data-tier="pro"] { background: color-mix(in srgb, var(--brand) 7%, var(--board)) }
.faq details { border-bottom: 1px solid var(--rule-soft) }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 650 }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: ''; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease) }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px) }
.faq details p { margin: 0 0 18px; max-width: 64ch; color: var(--ink-2) }

.foot { padding: 32px 0 44px; border-top: 1px solid var(--rule) }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px }
.foot .brand { color: var(--ink) }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-left: auto; font-size: 14px }
.foot nav a { color: var(--ink-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center }
.foot nav a:hover { color: var(--brand) }

/* motion: each demo plays once as it arrives; every final state is the default, so nothing is hidden without script */
@media (prefers-reduced-motion: no-preference) {
  .js .stage .frame { animation: close .8s var(--ease) both }
  .js .stage .frame i { animation: lock .01s linear .75s both }
  .js .stage .row-sample { animation: rise .7s var(--ease) .8s both }
  .js .stage .row-who b { animation: land .6s var(--ease) 1.05s both }
  @keyframes close { from { inset: -18px; opacity: .3 } to { inset: 0; opacity: 1 } }
  @keyframes lock { from { border-color: #fff } to { border-color: var(--lock) } }
  @keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98) } to { opacity: 1; transform: none } }
  @keyframes land { from { opacity: 0; transform: translateY(-12px); filter: blur(4px) } to { opacity: 1; transform: none; filter: none } }
  .js .demo.wait .xl .to { opacity: 0; transform: translateY(6px) }
  .js .demo.play .xl .to { animation: rise .6s var(--ease) both }
  .js .demo.play .xl:nth-child(2) .to { animation-delay: .25s } .js .demo.play .xl:nth-child(3) .to { animation-delay: .5s } .js .demo.play .xl:nth-child(4) .to { animation-delay: .75s }
  .js .demo.wait .toast { opacity: 0; transform: translate(-50%, 14px) }
  .js .demo.play .toast { animation: toast .6s var(--ease) .6s both }
  @keyframes toast { from { opacity: 0; transform: translate(-50%, 14px) } to { opacity: 1; transform: translate(-50%, 0) } }
}

/* the terms page */
.doc { padding: 32px 0 56px }
.doc h1 { margin: 0 0 6px; font-size: clamp(30px, 5vw, 44px); letter-spacing: -.035em; line-height: 1.05 }
.doc h2 { margin: 32px 0 8px; font-size: 19px; letter-spacing: -.01em }
.doc p, .doc li { max-width: 68ch; color: var(--ink-2) }
.doc .meta { font-size: 13px; color: var(--ink-3) }
.mast { background: #2A1F9E; color: #fff }
@media (prefers-color-scheme: dark) { .mast { background: #221A7E } }
.mast-bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px }
