/* ============================================================
   cuepresenter.com — built on the Cue design system tokens.
   Light marketing theme with dark product previews.
   ============================================================ */

/* ---- Fonts (Mulish; latin woff2 subsets bundled) ---- */
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/mulish-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/mulish-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/mulish-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/mulish-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/mulish-800.woff2') format('woff2');
}

/* ---- Tokens ---- */
:root {
  --cue-pink-100: #FFE3EF;
  --cue-pink-200: #FFB9D6;
  --cue-pink-300: #FF8FC0;
  --cue-pink-400: #FF5C9E;
  --cue-pink-500: #F53D8C;
  --cue-pink-600: #D42473;
  --cue-pink-700: #A5175A;

  --brand: var(--cue-pink-400);
  --brand-strong: var(--cue-pink-500);
  --brand-soft: rgba(255, 92, 158, 0.14);
  --brand-gradient: linear-gradient(135deg, #FF8FC0 0%, #FF5C9E 50%, #F53D8C 100%);
  --brand-gradient-text: linear-gradient(120deg, #FF8FC0 0%, #F53D8C 100%);

  --ink-0: #0B0C0F;            /* Cue's dark app backdrop, used in previews */
  --ink-inset: #08090B;

  --live: #FF453A;
  --standby: #FFB020;
  --ok: #30D158;
  --ok-soft: rgba(48, 209, 88, 0.16);
  --danger: #FF453A;

  /* Light marketing theme */
  --bg-app: #FFFFFF;
  --surface-1: #FBF7F9;
  --surface-2: #FFFFFF;
  --surface-3: #F3EEF1;
  --border-subtle: rgba(17, 19, 24, 0.07);
  --border-default: rgba(17, 19, 24, 0.12);
  --border-strong: rgba(17, 19, 24, 0.20);
  --text-primary: #14161B;
  --text-secondary: #52575F;
  --text-tertiary: #8A909C;
  --text-on-brand: #FFFFFF;
  --text-brand: var(--cue-pink-600);

  --font-sans: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --ls-label: 0.06em;

  --radius-sm: 7px;
  --radius-md: 11px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-2xl: 30px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(17, 19, 24, 0.05), 0 8px 24px rgba(17, 19, 24, 0.05);
  --shadow-preview: 0 40px 100px rgba(20, 0, 10, 0.45);
  --glow-brand: 0 0 0 1px rgba(255, 92, 158, 0.5), 0 8px 30px rgba(245, 61, 140, 0.35);
  --focus-ring: 0 0 0 3px rgba(255, 92, 158, 0.45);

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 220ms;

  --content-max: 1200px;
  --pad-x: 40px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-app);
  color: var(--text-primary);
  font: 500 16px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.ic { width: 20px; height: 20px; flex-shrink: 0; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--text-primary);
  color: #fff;
  font: 600 14px/1 var(--font-sans);
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: 600 14px/1 var(--font-sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-standard), filter var(--dur-fast) var(--ease-standard);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--brand-gradient);
  color: var(--text-on-brand);
  box-shadow: var(--glow-brand);
}
.btn--primary:hover { filter: brightness(1.06); }
.btn--lg {
  height: 52px;
  padding: 0 24px;
  gap: 10px;
  border-radius: var(--radius-lg);
  font-size: 15px;
}
.btn[disabled] { opacity: 0.55; cursor: default; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  backdrop-filter: saturate(160%) blur(24px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.nav__brand img { width: 30px; height: 30px; }
.nav__brand span {
  font: 800 22px/1 var(--font-sans);
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.nav__links { display: flex; gap: 24px; margin-left: 12px; }
.nav__links a {
  font: 600 14px/1 var(--font-sans);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.nav__links a:hover { color: var(--text-primary); }
.nav__spacer { flex: 1; }
.nav__cta { transition: opacity var(--dur-fast) var(--ease-standard), visibility var(--dur-fast); }
.nav__cta.is-offstage {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 88px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--cue-pink-600);
  font: 800 12px/1 var(--font-sans);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.badge .ic { width: 15px; height: 15px; }
.hero h1 {
  font: 800 62px/1.02 var(--font-sans);
  letter-spacing: -0.03em;
  margin-top: 20px;
  text-wrap: balance;
}
.hero__sub {
  font: 500 19px/1.55 var(--font-sans);
  color: var(--text-secondary);
  margin-top: 20px;
  max-width: 500px;
}
.hero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font: 600 13px/1.4 var(--font-sans);
  color: var(--text-tertiary);
}
.hero__note .ic { width: 16px; height: 16px; }

/* ---- Waitlist form ---- */
.waitlist { margin-top: 30px; max-width: 460px; }
.waitlist__row { display: flex; gap: 10px; }
.waitlist input[type='email'] {
  flex: 1;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  color: var(--text-primary);
  font: 500 15px/1 var(--font-sans);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.waitlist input[type='email']::placeholder { color: var(--text-tertiary); }
.waitlist input[type='email']:focus-visible {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-lg);
}
.waitlist__status {
  margin-top: 10px;
  font: 600 13px/1.45 var(--font-sans);
  color: var(--text-tertiary);
  min-height: 19px;
}
.waitlist__status a { color: var(--text-brand); }
.waitlist__status.is-ok { color: #1E9E4A; }
.waitlist__status.is-error { color: var(--danger); }
.waitlist .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Waitlist on dark CTA band */
.cta .waitlist { margin: 28px auto 0; }
.cta .waitlist input[type='email'] {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: #F5F6F8;
}
.cta .waitlist input[type='email']::placeholder { color: #8A909C; }
.cta .waitlist__status { color: #A0A6B0; }
.cta .waitlist__status.is-ok { color: var(--ok); }
.cta .waitlist__status.is-error { color: #FF7A72; }
.cta .waitlist__status a { color: var(--cue-pink-300); }

/* ---- Device composite (hero) ---- */
.devices {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 620px;
  padding-bottom: 34px;
}
.device {
  background: #16181D;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-preview);
}
.device img { width: 100%; height: auto; }
.device--ipad {
  border-radius: 26px;
  padding: 12px;
}
.device--ipad img { border-radius: 14px; }
.device--iphone {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 26%;
  border-radius: 22px;
  padding: 5px;
  box-shadow: 0 24px 60px rgba(20, 0, 10, 0.5);
}
.device--iphone img { border-radius: 17px; }

/* ---- Section scaffolding ---- */
.section { padding-top: 88px; padding-bottom: 88px; }
.section--band {
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.kicker {
  font: 800 12px/1 var(--font-sans);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--cue-pink-600);
}
.section h2 {
  font: 800 40px/1.1 var(--font-sans);
  letter-spacing: -0.02em;
  margin-top: 12px;
  text-wrap: balance;
}
.section__lede {
  font: 500 18px/1.6 var(--font-sans);
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 640px;
}

/* ---- Room (use cases) ---- */
.room { text-align: center; }
.room .section__lede { margin-left: auto; margin-right: auto; }
.room__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  font: 600 14px/1 var(--font-sans);
  color: var(--text-secondary);
  box-shadow: var(--shadow-card);
}
.chip .ic { width: 17px; height: 17px; color: var(--cue-pink-600); }

/* ---- Feature showcase rows ---- */
.show {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 44px;
}
.show:first-of-type { padding-top: 52px; }
.show--flip .show__media { order: -1; }
.show__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--cue-pink-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.show__icon .ic { width: 24px; height: 24px; }
.show h3 {
  font: 800 30px/1.12 var(--font-sans);
  letter-spacing: -0.02em;
}
.show p {
  font: 500 16px/1.6 var(--font-sans);
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 440px;
}
.show__media {
  border-radius: var(--radius-xl);
  background: #16181D;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px;
  box-shadow: 0 24px 70px rgba(20, 0, 10, 0.32);
}
.show__media img { border-radius: 13px; }

/* ---- Card grid ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.card {
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--cue-pink-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card__icon .ic { width: 24px; height: 24px; }
.card h3 { font: 800 18px/1.2 var(--font-sans); }
.card p {
  font: 500 14px/1.55 var(--font-sans);
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ---- Steps ---- */
.step {
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.step__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--brand-gradient);
  box-shadow: var(--glow-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step__icon .ic { width: 26px; height: 26px; }
.step .kicker { display: block; }
.step h3 {
  font: 800 21px/1.2 var(--font-sans);
  margin: 8px 0;
}
.step p {
  font: 500 15px/1.55 var(--font-sans);
  color: var(--text-secondary);
}

/* ---- Private strip ---- */
.private {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.private__item { display: flex; align-items: flex-start; gap: 14px; }
.private__item .ic {
  width: 22px;
  height: 22px;
  color: var(--cue-pink-600);
  margin-top: 2px;
}
.private__item h3 { font: 800 16px/1.3 var(--font-sans); }
.private__item p {
  font: 500 14px/1.55 var(--font-sans);
  color: var(--text-secondary);
  margin-top: 4px;
}
.private__item a { color: var(--text-brand); }

/* ---- CTA band ---- */
.cta { padding-top: 40px; padding-bottom: 88px; }
.cta__panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, #241016, #0B0C0F);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 64px 48px;
  text-align: center;
}
.cta__orb {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--brand-gradient);
  filter: blur(90px);
  opacity: 0.5;
}
.cta__panel h2, .cta__panel p, .cta__panel form { position: relative; }
.cta h2 {
  font: 800 46px/1.05 var(--font-sans);
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}
.cta p {
  font: 500 18px/1.5 var(--font-sans);
  color: #A0A6B0;
  margin: 16px auto 0;
  max-width: 480px;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-1);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 52px;
  padding-bottom: 40px;
}
.footer__brand-row { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.footer__brand-row img { width: 28px; height: 28px; }
.footer__brand-row span {
  font: 800 20px/1 var(--font-sans);
  letter-spacing: -0.03em;
}
.footer__tagline {
  font: 500 14px/1.5 var(--font-sans);
  color: var(--text-tertiary);
  max-width: 260px;
}
.footer h3 {
  font: 800 12px/1 var(--font-sans);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col a {
  font: 600 14px/1.3 var(--font-sans);
  color: var(--text-secondary);
  text-decoration: none;
}
.footer__col a:hover { color: var(--text-primary); }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  background: var(--ink-0);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: left;
}
.store-badge small {
  display: block;
  font: 600 9px/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A0A6B0;
  margin-bottom: 3px;
}
.store-badge strong { font: 700 15px/1 var(--font-sans); }
.footer__legal {
  padding-bottom: 40px;
  font: 500 13px/1.5 var(--font-sans);
  color: var(--text-tertiary);
}

/* ---- Legal article pages ---- */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px var(--pad-x) 88px;
}
.article h1 {
  font: 800 42px/1.08 var(--font-sans);
  letter-spacing: -0.03em;
}
.article .updated {
  font: 600 14px/1 var(--font-sans);
  color: var(--text-tertiary);
  margin-top: 14px;
}
.article h2 {
  font: 800 24px/1.2 var(--font-sans);
  letter-spacing: -0.02em;
  margin-top: 44px;
}
.article p, .article li {
  font: 400 16px/1.7 var(--font-sans);
  color: var(--text-secondary);
  margin-top: 14px;
}
.article li { margin-top: 10px; }
.article ul { padding-left: 22px; margin: 14px 0 0; }
.article strong { color: var(--text-primary); font-weight: 700; }
.article a { color: var(--text-brand); }

/* ---- Reveal on scroll ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; }
  .hero h1 { font-size: 48px; }
  .devices { max-width: 560px; justify-self: start; }
  .show { grid-template-columns: 1fr; gap: 28px; }
  .show--flip .show__media { order: 0; }
  .cards, .private { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --pad-x: 22px; }
  .nav__links { display: none; }
  .hero h1 { font-size: 38px; }
  .hero__sub { font-size: 17px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section h2 { font-size: 30px; }
  .show h3 { font-size: 24px; }
  .cta h2 { font-size: 32px; }
  .cta__panel { padding: 44px 24px; }
  .waitlist__row { flex-direction: column; }
  /* In a column row, flex: 1 would let flex-basis 0 collapse the input's height. */
  .waitlist input[type='email'] { flex: 0 0 auto; width: 100%; }
  .waitlist .btn { width: 100%; }
  .cards, .private { grid-template-columns: 1fr; }
  .device--iphone { right: -4px; }
  .article h1 { font-size: 32px; }
}
