/* ==========================================================================
   HypaBoost — public site stylesheet
   --------------------------------------------------------------------------
   Palette is reused from the main app's design tokens
   (packages/theme/src/tokens.css): Hypa Orange, Deep Indigo, Warm White.
   Fonts are system stacks on purpose — this site loads no external fonts,
   no CDNs, no trackers.
   Mobile first: everything below is written for a 360px screen and widened
   with min-width media queries.
   ========================================================================== */

:root {
  /* Brand colours (read from the app tokens) */
  --orange: #ff6a13;
  --indigo: #1e1b4b;
  --charcoal: #1f2937;
  --slate: #6b7280;
  --warm-white: #fff8f1;
  --white: #ffffff;
  --green: #16a34a;
  --gold: #f5b700;
  --red: #dc2626;

  /* Alpha variants only — no new hues */
  --orange-08: rgba(255, 106, 19, 0.08);
  --orange-15: rgba(255, 106, 19, 0.15);
  --white-78: rgba(255, 255, 255, 0.78);
  --indigo-06: rgba(30, 27, 75, 0.06);
  --indigo-12: rgba(30, 27, 75, 0.12);
  --indigo-20: rgba(30, 27, 75, 0.2);
  --charcoal-12: rgba(31, 41, 55, 0.12);

  /* Roles */
  --page: var(--warm-white);
  --surface: var(--white);
  --text: var(--charcoal);
  --muted: var(--slate);
  --line: var(--indigo-12);
  --link: var(--indigo);

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

  --radius-card: 12px;
  --radius-button: 999px;
  --shadow-card: 0 2px 8px rgba(30, 27, 75, 0.08);
  --shadow-raised: 0 8px 24px rgba(30, 27, 75, 0.12);

  --wrap: 68rem;
  --gutter: 16px;
  --tap-min: 48px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--indigo);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.75rem, 6vw, 2.125rem);
}

h2 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.4em;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--orange);
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
  border-radius: 4px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 28px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.0625rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--orange-15);
  border-radius: var(--radius-button);
  padding: 6px 14px;
  margin: 0 0 18px;
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--indigo);
  color: var(--white);
  padding: 10px 16px;
  z-index: 50;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--indigo);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 30px;
  height: 30px;
  display: block;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 6px 0;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--indigo);
}

.site-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--orange);
}

.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--orange);
}

@media (min-width: 40rem) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-top: 44px;
  padding-bottom: 48px;
  background: linear-gradient(180deg, var(--orange-08) 0%, var(--page) 100%);
}

.hero-inner {
  max-width: 44rem;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.35em;
}

.hero-lede {
  font-size: clamp(1.0625rem, 3.4vw, 1.25rem);
  color: var(--charcoal);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-note {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap-min);
  padding: 12px 22px;
  border-radius: var(--radius-button);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-raised);
}

.btn-primary {
  background: var(--orange);
  color: var(--indigo);
}

.btn-secondary {
  background: var(--indigo);
  color: var(--white);
}

.btn-secondary:hover {
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Steps (create → schedule → boost)
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--indigo);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 10px;
}

.step h3 {
  margin-bottom: 0.25em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--orange-08);
  color: var(--orange);
  margin-bottom: 14px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.card h3 {
  margin-bottom: 0.35em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 36rem) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 62rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Who it's for
   -------------------------------------------------------------------------- */

.audience {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.audience li {
  background: var(--surface);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin: 0;
  font-weight: 600;
  color: var(--indigo);
  box-shadow: var(--shadow-card);
}

@media (min-width: 36rem) {
  .audience {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 62rem) {
  .audience {
    grid-template-columns: repeat(4, 1fr);
  }
}

.global-note {
  max-width: 46rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Launching soon
   -------------------------------------------------------------------------- */

.launch {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  max-width: 46rem;
}

.launch p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.page-head {
  max-width: 46rem;
  padding-top: 40px;
  padding-bottom: 8px;
}

.page-head h1 {
  margin-bottom: 0.25em;
}

.updated {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}

.prose {
  max-width: 46rem;
  padding-top: 20px;
  padding-bottom: 56px;
}

.prose h2 {
  margin-top: 2em;
  padding-top: 0.35em;
  border-top: 1px solid var(--line);
}

.prose h2:first-of-type {
  margin-top: 1.2em;
}

.prose h3 {
  margin-top: 1.4em;
}

.prose ul,
.prose ol {
  margin-bottom: 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  margin: 0 0 1.6em;
  box-shadow: var(--shadow-card);
}

.callout h3 {
  margin-top: 0;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  word-break: break-word;
}

.steps-list {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps-list > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 0.9em;
}

.steps-list > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--indigo);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-block {
  background: var(--orange-08);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  margin-bottom: 1.6em;
}

.contact-block p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--indigo);
  color: var(--white);
  padding-top: 36px;
  padding-bottom: 36px;
}

.site-footer a {
  color: var(--white);
  text-decoration-color: var(--orange);
}

.site-footer a:hover {
  text-decoration-thickness: 2px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

.footer-copy {
  color: var(--white-78);
  font-size: 0.9375rem;
  margin-bottom: 18px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-weight: 600;
  font-size: 0.9375rem;
}

.footer-note {
  margin: 18px 0 0;
  font-size: 0.875rem;
  color: var(--white-78);
  max-width: 44rem;
}

/* --------------------------------------------------------------------------
   Motion & print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer {
    background: transparent;
    color: var(--charcoal);
  }

  .site-footer a {
    color: var(--charcoal);
  }
}
