/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  /* Color — palette */
  --accent-blue: #6366F1;
  --accent-coral: #FF6B6B;
  --accent-coral-hover: #FF5252;
  --accent-green: #22C55E;
  --accent-yellow: #FCD34D;

  /* Color — surfaces (light) */
  --bg-primary: #FFFFFF;
  --bg-surface: #F6F7F8;
  --bg-surface-alt: #EEF0F4;
  --border-subtle: #F3F4F6;

  /* Color — sectional */
  --cta-bg: #1A1A2E;
  --footer-bg: #1A1A2E;
  --hero-gradient-start: #FFF5F5;
  --hero-gradient-end: #F0F5FF;

  /* Color — text */
  --text-primary: #1A1A1A;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;

  /* Color — accent tints (used for icon wrappers and badges) */
  --tint-coral: #FFF5F5;
  --tint-coral-strong: #FF6B6B22;
  --tint-coral-soft: #FF6B6B18;
  --tint-blue: #F0F5FF;
  --tint-blue-strong: #6366F118;
  --tint-green: #F0FDF4;
  --tint-green-strong: #22C55E18;
  --tint-yellow: #FFFBEB;
  --tint-yellow-strong: #FCD34D30;

  /* Color — on-dark surfaces */
  --on-dark-strong: #FFFFFF;
  --on-dark: #FFFFFFCC;
  --on-dark-muted: #FFFFFFBB;
  --on-dark-faint: #FFFFFF99;
  --on-dark-fainter: #FFFFFF66;
  --on-dark-divider: #FFFFFF15;
  --on-dark-translucent: #FFFFFF18;
  --on-dark-border: #FFFFFF44;
  --on-dark-copyright: #FFFFFF55;
  --on-dark-secondary: #FFFFFF88;

  /* Spacing scale */
  --space-2xs: 6px;
  --space-xs: 8px;
  --space-sm: 10px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 28px;
  --space-4xl: 32px;
  --space-5xl: 40px;
  --space-6xl: 48px;
  --space-7xl: 64px;

  /* Layout padding */
  --section-padding-y: 80px;
  --section-padding-x: 120px;
  --header-padding-y: 20px;
  --header-padding-x: 48px;
  --cta-padding-y: 100px;
  --cta-padding-x: 120px;
  --footer-padding-top: 48px;
  --footer-padding-bottom: 32px;
  --footer-padding-x: 120px;

  /* Component padding */
  --pad-card: 24px;
  --pad-card-lg: 28px;
  --pad-badge-y: 6px;
  --pad-badge-x: 14px;
  --pad-badge-y-lg: 8px;
  --pad-badge-x-lg: 16px;
  --pad-btn-sm-y: 10px;
  --pad-btn-sm-x: 24px;
  --pad-btn-md-y: 16px;
  --pad-btn-md-x: 36px;
  --pad-btn-lg-y: 18px;
  --pad-btn-lg-x: 40px;
  --pad-btn-lg-x-secondary: 32px;

  /* Section gap */
  --section-gap: 48px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Typography */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  /* Layout */
  --page-width: 1440px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0F1117;
    --bg-surface: #141727;
    --bg-surface-alt: #252836;
    --border-subtle: #2A2D3A;
    --cta-bg: #FF6B6B;
    --footer-bg: #0A0C12;
    --hero-gradient-start: #1A1020;
    --hero-gradient-end: #101828;
    --text-primary: #F0F0F5;
    --text-secondary: #9CA3AF;
    --text-tertiary: #6B7280;
  }
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.page {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  background: var(--bg-primary);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--header-padding-y) var(--header-padding-x);
  background: var(--bg-primary);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo__icon {
  width: 28px;
  height: 28px;
  color: var(--accent-coral);
}

.logo__text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo--inverse .logo__text { color: var(--on-dark-strong); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4xl);
  font-size: 15px;
  font-weight: 500;
}

/*
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.site-nav a:hover { color: var(--text-primary); }
*/

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  border: 0;
  transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

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

.btn--pill { border-radius: var(--radius-xl); }
.btn--rounded { border-radius: var(--radius-lg); }

.btn--sm {
  padding: var(--pad-btn-sm-y) var(--pad-btn-sm-x);
  font-size: 14px;
}

.btn--lg {
  padding: var(--pad-btn-md-y) var(--pad-btn-md-x);
  font-size: 16px;
}

.btn--xl {
  padding: var(--pad-btn-lg-y) var(--pad-btn-lg-x);
  font-size: 18px;
  font-weight: 700;
  gap: var(--space-sm);
}

.btn--xl.btn--outline { padding-inline: var(--pad-btn-lg-x-secondary); }

.btn--primary {
  background: var(--accent-coral);
  color: var(--on-dark-strong);
}

.btn--primary:hover { background: var(--accent-coral-hover); }

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid #E5E7EB;
}

.btn--outline {
  background: transparent;
  color: var(--on-dark);
  border: 1px solid var(--on-dark-border);
  font-weight: 600;
  font-size: 16px;
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--pad-badge-y-lg) var(--pad-badge-x-lg);
  border-radius: var(--radius-xl);
  font-size: 13px;
  font-weight: 500;
}

.badge--surface {
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.badge--coral,
.badge--green {
  padding: var(--pad-badge-y) var(--pad-badge-x);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  gap: var(--space-2xs);
}

.badge--coral {
  background: var(--tint-coral);
  color: var(--accent-coral);
}

.badge--green {
  background: var(--tint-green);
  color: var(--accent-green);
}

.badge--coral-soft {
  padding: var(--pad-badge-y) var(--pad-badge-x);
  background: var(--tint-coral-strong);
  color: var(--accent-coral);
  border-radius: var(--radius-xl);
  font-size: 13px;
  font-weight: 600;
}

.badge--translucent {
  background: var(--on-dark-translucent);
  color: var(--on-dark);
  font-weight: 600;
}

.badge__icon { width: 14px; height: 14px; }
.badge__icon--coral { color: var(--accent-coral); }
.badge__icon--yellow { color: var(--accent-yellow); width: 16px; height: 16px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4xl);
  padding: var(--section-padding-y) var(--section-padding-x);
  background: linear-gradient(180deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
}

.hero__headline {
  max-width: 800px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
}

.hero__subline {
  max-width: 700px;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.hero__cta-row .btn i { width: 18px; height: 18px; }

.mockup {
  margin: 0;
  width: 800px;
  height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.menucontainer {
  width: 600px;
  height: 36px;
  background: var(--bg-primary);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
}

.menubar {
  height: 36px;
  display: inline-flex;
  align-items: center;
/*  justify-content: flex-end; */
  gap: var(--space-md);
  padding: 0; /* var(--space-lg); */
}

.menubar__icon {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
}

.menubar__icon--coral {
  width: 16px;
  height: 16px;
  color: var(--accent-coral);
}

.menubar__icon--green {
  width: 16px;
  height: 16px;
  color: var(--accent-green);
}

.menubar__icon--dot {
  width: 16px;
  height: 16px;
  color: var(--accent-green);
  scale: 1.5;
  margin-left: -14px;
  margin-right: -10px;
}

.menubar__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-coral);
}

#preview {
  margin-left: -6px;
  margin-top: -12px;
}

.mockup__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.trust {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust__icon {
  width: 16px;
  height: 16px;
  color: var(--accent-green);
}

/* ==========================================================================
   Wave separators
   ========================================================================== */

.wave {
  height: 70px;
  width: 100%;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% 100%;
}

.wave--surface {
  background-color: var(--bg-surface);
  background-image: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-primary) 50%, var(--bg-surface) 50%, var(--bg-surface) 100%);
  /* Soft curve effect via radial highlight */
  position: relative;
}

.wave--primary {
  background-color: var(--bg-primary);
  background-image: linear-gradient(to bottom, var(--bg-surface) 0%, var(--bg-surface) 50%, var(--bg-primary) 50%, var(--bg-primary) 100%);
}

.wave--cta {
  background-color: var(--cta-bg);
  background-image: linear-gradient(to bottom, var(--bg-surface) 0%, var(--bg-surface) 50%, var(--cta-bg) 50%, var(--cta-bg) 100%);
}

/* ==========================================================================
   Sections (Features, How It Works, Use Cases)
   ========================================================================== */

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-gap);
  padding: var(--section-padding-y) var(--section-padding-x);
}

.section--surface { background: var(--bg-surface); }
.section--primary { background: var(--bg-primary); }

.section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.section__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
}

.section__title--lg {
  font-size: 40px;
  max-width: 800px;
}

.section__sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 700px;
}

#use-cases .section__sub {
  font-size: 18px;
  line-height: 1.6;
}

/* ==========================================================================
   Grids
   ========================================================================== */

.grid {
  display: grid;
  width: 100%;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
}

.card--feature { padding: var(--pad-card); }
.card--use { padding: var(--pad-card-lg); }

.card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.card__title--display {
  font-family: var(--font-display);
  font-size: 20px;
}

.card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.card__desc--lg {
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================================================
   Icon wraps (square tinted icon containers)
   ========================================================================== */

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
}

.icon-wrap i { width: 22px; height: 22px; }

.icon-wrap--coral  { background: var(--tint-coral);  color: var(--accent-coral); }
.icon-wrap--blue   { background: var(--tint-blue);   color: var(--accent-blue); }
.icon-wrap--green  { background: var(--tint-green);  color: var(--accent-green); }
.icon-wrap--yellow { background: var(--tint-yellow); color: #D97706; }

#use-cases .icon-wrap--coral  { background: var(--tint-coral-soft); }
#use-cases .icon-wrap--blue   { background: var(--tint-blue-strong); }
#use-cases .icon-wrap--green  { background: var(--tint-green-strong); }
#use-cases .icon-wrap--yellow { background: var(--tint-yellow-strong); }
#use-cases .icon-wrap i { width: 24px; height: 24px; }

/* ==========================================================================
   Steps (How It Works)
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  width: 100%;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--pad-card-lg);
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  text-align: center;
}

.step__num {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  color: var(--on-dark-strong);
  font-size: 18px;
  font-weight: 700;
}

.step__num--coral { background: var(--accent-coral); }
.step__num--blue  { background: var(--accent-blue); }
.step__num--green { background: var(--accent-green); }

.step__icon { width: 32px; height: 32px; }
.step__icon--coral { color: var(--accent-coral); }
.step__icon--blue  { color: var(--accent-blue); }
.step__icon--green { color: var(--accent-green); }

.step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.step__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3xl);
  padding: var(--cta-padding-y) var(--cta-padding-x);
  background: var(--cta-bg);
  text-align: center;
}

.cta__title {
  max-width: 800px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--on-dark-strong);
}

.cta__sub {
  max-width: 650px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-dark-muted);
}

.cta__buttons {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.cta__buttons .btn i { width: 20px; height: 20px; }

.cta__note {
  font-size: 13px;
  color: var(--on-dark-fainter);
}

/* ==========================================================================
   Text
   ========================================================================== */

.outline-2 {
  margin-left: 50px;
  margin-right: 50px;
}

.outline-3, .outline-4 {
  margin-top: 20px;
}

.outline-text-2 p, .outline-text-3 p, .outline-text-4 p {
  margin-top: 10px;
}

.org-ol li {
  margin-top: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-5xl);
  padding: var(--footer-padding-top) var(--footer-padding-x) var(--footer-padding-bottom);
  background: var(--footer-bg);
  margin-top: 40px;
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6xl);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 300px;
}

.site-footer__tagline {
  max-width: 280px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-dark-secondary);
}

.site-footer__links {
  display: flex;
  gap: var(--space-7xl);
}

.link-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--on-dark-faint);
  text-transform: none;
  margin: 0;
}

.link-col a {
  font-size: 14px;
  color: var(--on-dark);
}

.link-col a:hover { color: var(--on-dark-strong); }

.site-footer__divider {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--on-dark-divider);
  margin: 0;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer__bottom small {
  font-size: 13px;
  color: var(--on-dark-copyright);
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-footer__social a {
  display: inline-flex;
  color: var(--on-dark-fainter);
}

.site-footer__social i { width: 18px; height: 18px; }
.site-footer__social a:hover { color: var(--on-dark-strong); }

/* ==========================================================================
   Responsive — tablet & mobile
   Relies on the device-width viewport set in html_header.html. Most layout
   spacing comes from the custom properties defined in :root, so the bulk of
   the work is overriding those tokens at each breakpoint; the rest collapses
   multi-column grids and horizontal flex rows into single columns.
   ========================================================================== */

/* Tablet / small laptop: tighten horizontal padding, drop the 4-up grid to 2-up. */
@media (max-width: 1024px) {
  :root {
    --section-padding-x: 56px;
    --cta-padding-x: 56px;
    --footer-padding-x: 56px;
    --header-padding-x: 32px;
  }

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

  /* The hero mockup is fixed at 800px — let it shrink with the viewport. */
  .mockup { width: 100%; max-width: 800px; }
  .menucontainer { width: 100%; max-width: 600px; }
}

/* Phone: single-column everything, smaller type, generous tap targets. */
@media (max-width: 640px) {
  :root {
    --section-padding-y: 48px;
    --section-padding-x: 20px;
    --cta-padding-y: 56px;
    --cta-padding-x: 20px;
    --header-padding-y: 16px;
    --header-padding-x: 20px;
    --footer-padding-top: 40px;
    --footer-padding-bottom: 24px;
    --footer-padding-x: 20px;
    --section-gap: 32px;
  }

  /* Header: stack the brand, nav, and CTA so nothing overflows. */
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }
  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
  }

  /* Hero. */
  .hero__headline { font-size: 34px; }
  .hero__subline { font-size: 16px; }
  .hero__cta-row { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__cta-row .btn { width: 100%; }
  .mockup { height: auto; aspect-ratio: 8 / 5; padding: var(--space-lg); }

  /* Section headings. */
  .section__title,
  .section__title--lg { font-size: 28px; }
  .cta__title { font-size: 32px; }
  .cta__sub,
  #use-cases .section__sub { font-size: 16px; }

  /* Collapse every multi-column layout to a single column. */
  .grid--2,
  .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  /* CTA buttons stack and go full width. */
  .cta__buttons { flex-direction: column; align-items: stretch; width: 100%; }
  .cta__buttons .btn { width: 100%; }

  /* Footer: stack the brand above the link columns, then the bottom row. */
  .site-footer__top { flex-direction: column; gap: var(--space-5xl); }
  .site-footer__brand { width: auto; }
  .site-footer__links { flex-wrap: wrap; gap: var(--space-5xl); }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  /* The prose blocks indent with fixed 50px margins — pull them in on phones. */
  .outline-2 { margin-left: 20px; margin-right: 20px; }
}

/* ==========================================================================
   Signup form
   ========================================================================== */

form#signup {
  display: block;
  margin-right: 50px;
}

form#signup div {
  margin-top: 20px;
}

form#signup label {
  color: var(--text-secondary);
}

form#signup input[type=text], form#signup input[type=email] {
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  width: 350px;
  height: 36px;
  line-height: 1.4em;
}

form#signup input[type=submit] {
  width: 350px;
}

form#signup select {
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  width: 350px;
  height: 36px;
  line-height: 1.4em;
}

.signup__tagline {
  max-width: 350px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--on-dark-secondary);
  margin-top: 16px;
}

.beta-instructions {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

h3 a {
  color: var(--accent-coral);
}

h3 a:hover {
  color: var(--accent-coral-hover);
}

  
