/* HypeUp marketing site — brand tokens as CSS vars (midnight-lime, dark-first).
   Source of truth: packages/ui/tokens/brand.json + docs/brand-guidelines.md.
   No gradients (brand rule); soft dotted texture only. Mobile-first + fluid type. */

:root {
  /* Color — canvas/ink + electric lime + surfaces */
  --bg: #0a0a0a;
  --surface: #1c1c1c;
  --surface-muted: #242424;
  --surface-accent: #1e2e1a;
  --content: #f5f5f3;
  --content-muted: #9a9a9a;
  --border: #2a2a2a;
  --accent: #cbf74a;
  --accent-content: #0a0a0a;
  --success: #7bd88f;

  /* Type */
  --font-display: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;

  /* Radii */
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* Layout */
  --maxw: 1080px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);
}

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

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

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

body {
  margin: 0;
  background-color: var(--bg);
  /* Soft dotted texture (no gradients) */
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -11px -11px;
  color: var(--content);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.35vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

/* ---------- Typography ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.lead {
  color: var(--content-muted);
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.55;
  max-width: 42ch;
}

h2.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  margin: 0 0 0.5rem;
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  margin: 0 0 0.5rem;
}

/* ---------- Buttons (tap-sized pills) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

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

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-1px);
  }
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-content);
}

.btn-accent:hover {
  opacity: 0.92;
}

.btn-ghost {
  background-color: transparent;
  color: var(--content);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--content-muted);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: lowercase;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--content);
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark .dot {
  color: var(--accent);
}

.header-cta {
  min-height: 44px;
  padding: 0.5rem 1.15rem;
  font-size: 0.95rem;
}

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

.hero {
  padding-block: clamp(3.5rem, 10vw, 8rem) var(--section-y);
  text-align: center;
}

.hero .wordmark-hero {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: clamp(3.25rem, 1.5rem + 12vw, 7rem);
  margin: 0;
}

.hero .wordmark-hero .dot {
  color: var(--accent);
}

.hero .tagline {
  margin: 1.25rem auto 0;
  max-width: 26ch;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(1.5rem, 1rem + 3.5vw, 2.75rem);
  color: var(--content);
}

.hero .lead {
  margin: 1.25rem auto 0;
  max-width: 48ch;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--content-muted);
}

/* ---------- Generic cards / grids ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 1rem + 2vw, 2rem);
}

.card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--surface-accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--content-muted);
  margin: 0;
}

.section-head {
  max-width: 46ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head .lead {
  margin-top: 0.75rem;
}

/* ---------- Evidence section ---------- */

.evidence {
  background-color: var(--surface);
  border-block: 1px solid var(--border);
}

.evidence .grid {
  gap: 1.25rem;
}

.evidence .card {
  background-color: var(--surface-muted);
}

.evidence .card h3 {
  color: var(--content);
}

/* ---------- Pricing ---------- */

.pricing .grid {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin-inline: auto;
}

.plan {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: clamp(1.75rem, 1rem + 3vw, 2.5rem);
  text-align: left;
}

.plan.featured {
  border-color: var(--accent);
}

.plan .badge {
  position: absolute;
  top: -0.75rem;
  right: 1.5rem;
  background-color: var(--accent);
  color: var(--accent-content);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.plan .plan-name {
  font-family: var(--font-display);
  text-transform: lowercase;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}

.plan .price {
  margin: 0.75rem 0 0.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.plan .price .amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 2rem + 3vw, 3.5rem);
  letter-spacing: -0.02em;
}

.plan .price .per {
  color: var(--content-muted);
  font-size: 1rem;
}

.plan .price-sub {
  color: var(--content-muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  min-height: 1.4em;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.65rem;
}

.plan li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--content);
}

.plan li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: var(--radius-full);
  background-color: var(--accent);
}

.plan .btn {
  width: 100%;
}

.pricing-note {
  text-align: center;
  color: var(--content-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
}

.cta-band .inner {
  background-color: var(--surface-accent);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: clamp(2.5rem, 2rem + 4vw, 4rem) var(--gutter);
}

.cta-band h2 {
  font-family: var(--font-display);
  text-transform: lowercase;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 1.2rem + 3vw, 3rem);
  margin: 0 0 0.75rem;
}

.cta-band .lead {
  margin: 0 auto 1.75rem;
  max-width: 40ch;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  color: var(--content-muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

.footer-brand .wordmark {
  font-size: 1.35rem;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  max-width: 34ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.footer-links a {
  color: var(--content-muted);
}

.footer-links a:hover {
  color: var(--content);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ---------- Legal (terms / privacy) pages ---------- */

.legal {
  max-width: 780px;
}

.legal h1 {
  font-family: var(--font-display);
  text-transform: lowercase;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.25rem);
  margin: 0 0 0.5rem;
}

.legal .updated {
  color: var(--content-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-family: var(--font-display);
  text-transform: lowercase;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  margin: 2.5rem 0 0.75rem;
}

.legal p,
.legal li {
  color: var(--content-muted);
}

.legal ul {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
}

.legal a {
  color: var(--accent);
}

/* ---------- Skip link (a11y) ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-content);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  z-index: 50;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Responsive breakpoints ---------- */

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

@media (min-width: 768px) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
