/* Landing page styles — TICKET-023, rebranded TICKET-027.
 *
 * Token block below carries the Social Market AI brand palette from
 * assets/brand/social-market-ai/manifest.json (see docs/DESIGN_TOKENS.md
 * §3). Values are sRGB hex here, matching the manifest and client/theme.ts
 * directly — this surface has no oklch-specific need the way the old
 * placeholder palette did.
 *
 * Never write a color or font name below this block. Add it here instead. */

:root {
  /* Social Market AI brand palette — assets/brand/social-market-ai/manifest.json.
   * Do not hand-tune these against the design-reference; edit the manifest's
   * source values instead and re-derive. */
  --bg: #F4F7FF;        /* frost */
  --bg-alt: #E8EEFF;
  --ink: #071426;       /* manifest "ink" */
  --ink-soft: #6B7381;
  --line: #DCE0E9;
  --accent: #315BFF;        /* manifest "blue" — primary */
  --accent-hover: #2647C7;  /* darkened for hover/active, not a brand-defined value */
  --accent-ai: #176BEE;     /* manifest "aiBlue" — reserved for "AI" emphasis, matches the wordmark */
  --accent-2: #FF7A00;      /* manifest "orange" — the mark's center spark */
  --accent-3: #FF3478;      /* manifest "pink" */
  --accent-4: #08C9E8;      /* manifest "cyan" */
  --accent-soft: #DDE4FF;
  --white: #FFFFFF;
  --midnight: #061A35;      /* manifest "midnight" — dark surfaces */
  --good: oklch(64% 0.18 145); /* semantic (success), not brand-defined */

  --font-display: "Helvetica Neue", Helvetica, Arial, -apple-system, system-ui, "Segoe UI", sans-serif;
  --font-body: -apple-system, system-ui, "Segoe UI", sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --measure: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 var(--space-lg); }

.skip-link {
  position: absolute; left: var(--space-md); top: -100px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: var(--space-md); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ---------- nav ---------- */

.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: var(--space-lg); min-height: 68px; }
.nav__links { display: flex; gap: var(--space-lg); margin-left: auto; }
.nav__links a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: var(--space-sm); }
/* Under 720px the header has room for one action. The hero carries both
 * CTAs immediately below, so the nav's secondary one is redundant rather
 * than lost — dropping it stops the label wrapping to two lines. */
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__actions .btn--ghost { display: none; }
  .btn { padding: 11px 18px; }
}

.wordmark { display: inline-flex; align-items: center; text-decoration: none; }
.wordmark .lockup { height: 28px; width: auto; display: block; }
@media (max-width: 480px) { .wordmark .lockup { height: 24px; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  font: inherit; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: none; color: inherit;
  text-decoration: none; cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 3px; }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-soft); }
.btn--lg { font-size: 17px; padding: 16px 28px; }

/* Pending CTAs: aria-disabled rather than the disabled attribute, so they
 * stay focusable and screen readers announce both the label and the reason.
 * Targets land with TICKET-008 (onboarding) and TICKET-016 (login). */
.btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.55; }
.btn--primary[aria-disabled="true"]:hover { background: var(--accent); }
.btn--ghost[aria-disabled="true"]:hover { border-color: var(--line); }

.cta-group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.cta-note { font-size: 14px; color: var(--ink-soft); }
.cta-note--block { margin-top: var(--space-md); }

/* ---------- hero ---------- */

.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 88px); background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 62%); border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 880px) { .hero__inner { grid-template-columns: 1fr; } }

.eyebrow { display: inline-flex; align-items: center; gap: var(--space-sm); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-hover); background: var(--white); border: 1px solid var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: var(--space-lg); }

.hero h1 { font-size: clamp(42px, 6.2vw, 68px); }
.hero h1 em { font-style: normal; background: linear-gradient(96deg, var(--accent) 0%, var(--accent-3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin-top: var(--space-lg); font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 46ch; }
.hero .cta-group { margin-top: var(--space-xl); }
.hero__visual { position: relative; aspect-ratio: 4 / 3; min-height: 320px; }
.hero__visual-card {
  position: absolute; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: 0 24px 60px -20px color-mix(in oklab, var(--accent) 30%, transparent);
  overflow: hidden;
}
.hero__visual-card--primary { top: 0; left: 4%; width: 58%; }
.hero__visual-banner {
  height: 34%; min-height: 84px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-ai) 100%);
  color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 28px);
  display: flex; align-items: center; justify-content: center;
}
.hero__visual-lines { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); }
.hero__visual-lines span { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.hero__visual-lines span:first-child { width: 70%; }
.hero__visual-lines span:last-child { width: 45%; }
.hero__visual-card--review {
  top: 19%; right: 0; width: 44%; padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm);
  box-shadow: 0 20px 50px -18px color-mix(in oklab, var(--accent) 26%, transparent);
}
.hero__visual-review-head { display: flex; align-items: center; gap: var(--space-sm); font-size: 13px; font-weight: 600; color: var(--accent); }
.hero__visual-card--review p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.hero__visual-chip {
  position: absolute; bottom: 26%; left: 20%; width: 34%; padding: var(--space-sm) var(--space-md);
  background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 18%, var(--bg));
  border-radius: var(--radius-md); font-size: 12px; font-weight: 600; color: var(--accent-hover);
}
@media (max-width: 880px) {
  .hero__visual { min-height: 260px; margin-top: var(--space-lg); }
}

/* ---------- sections ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { max-width: 60ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head h2 { font-size: clamp(30px, 4vw, 42px); }
.section__head p { margin-top: var(--space-md); color: var(--ink-soft); }

.grid { display: grid; gap: var(--space-lg); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 940px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-lg); }
.card h3 { font-size: 22px; margin-bottom: var(--space-sm); }
.card p { color: var(--ink-soft); font-size: 15px; }

.step__num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover); font-size: 15px; margin-bottom: var(--space-md); }

/* ---------- closing band ---------- */

.band { background: var(--ink); color: var(--bg); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); text-align: center; }
.band h2 { font-size: clamp(30px, 4.4vw, 46px); }
.band p { margin-top: var(--space-md); color: color-mix(in oklab, var(--bg) 72%, var(--ink)); }
.band .cta-group { margin-top: var(--space-xl); justify-content: center; }
.band .btn--ghost { border-color: color-mix(in oklab, var(--bg) 35%, transparent); color: var(--bg); }
.band .cta-note { color: color-mix(in oklab, var(--bg) 66%, var(--ink)); }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); padding: var(--space-xl) 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; justify-content: space-between; }
.footer p { font-size: 14px; color: var(--ink-soft); }
