/* ============================================================
   N of 1 — Shared Stylesheet
   Field Study palette — warm earth tones
   ============================================================ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --bg:        #111010;
  --surface:   #1c1a19;
  --surface-hl:#272422;

  /* Semantic phase colors */
  --trial:     #d4845a;  /* terracotta — trial phase / primary */
  --baseline:  #7b9eb5;  /* steel blue — baseline phase */
  --accent:    #b8c94a;  /* moss chartreuse — split-complement pop */
  --success:   #7aad8a;  /* muted sage */
  --error:     #b85c5c;

  /* Aliases — existing class references pick up new colors */
  --cyan:      #d4845a;
  --purple:    #7b9eb5;
  --green:     #7aad8a;
  --red:       #b85c5c;
  --white:     #ede8e1;
  --slate:     #9b9189;
  --dim:       #625c56;

  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-full: 999px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { color: var(--trial); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography helpers ───────────────────────────────────── */
.text-cyan   { color: var(--trial); }
.text-purple { color: var(--baseline); }
.text-green  { color: var(--success); }
.text-slate  { color: var(--slate); }
.text-dim    { color: var(--dim); }
.text-center { text-align: center; }
.mono        { font-family: var(--font-mono); }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 64px 0;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(17,16,16,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-hl);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav__logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}
.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--white); text-decoration: none; }

.nav__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg) !important;
  background: var(--trial);
  padding: 7px 16px;
  border-radius: var(--radius-md);
  transition: opacity 0.15s;
}
.nav__cta:hover {
  opacity: 0.88;
  text-decoration: none !important;
}

.nav__menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--white);
}

.nav__menu-icon--close { display: none; }
.nav__menu-toggle[aria-expanded="true"] .nav__menu-icon--open  { display: none; }
.nav__menu-toggle[aria-expanded="true"] .nav__menu-icon--close { display: block; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn--lg { font-size: 1rem;    padding: 14px 28px; }
.btn--md { font-size: 0.9375rem; padding: 11px 22px; }
.btn--sm { font-size: 0.875rem;  padding: 8px 16px; }

.btn--primary {
  background: var(--trial);
  color: var(--bg);
}
.btn--primary:hover { opacity: 0.88; }

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--surface-hl);
}
.btn--secondary:hover { border-color: var(--slate); color: var(--white); }

.btn--ghost {
  background: rgba(212,132,90,0.1);
  color: var(--trial);
  border: 1px solid rgba(212,132,90,0.25);
}
.btn--ghost:hover { background: rgba(212,132,90,0.16); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--surface-hl);
  border-radius: var(--radius-md);
  padding: 28px;
}

.card--glow-cyan   { box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.card--glow-purple { box-shadow: 0 2px 12px rgba(0,0,0,0.2); }

/* ── Badge ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.badge--cyan   { background: rgba(212,132,90,0.12); color: var(--trial);    border: 1px solid rgba(212,132,90,0.25); }
.badge--purple { background: rgba(123,158,181,0.12); color: var(--baseline); border: 1px solid rgba(123,158,181,0.25); }
.badge--green  { background: rgba(122,173,138,0.12); color: var(--success);  border: 1px solid rgba(122,173,138,0.25); }

/* ── Section headings ─────────────────────────────────────── */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dim);
  margin-bottom: 10px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.125rem; font-weight: 600; }
p  { color: var(--slate); line-height: 1.75; }

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--surface-hl);
  margin: 0;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--surface-hl);
  padding: 48px 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer__logo {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
}
.footer__logo span { color: var(--accent); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}
.footer__links a {
  font-size: 0.875rem;
  color: var(--dim);
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--white); text-decoration: none; }
.footer__copy {
  font-size: 0.8125rem;
  color: var(--dim);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ── Legal pages ──────────────────────────────────────────── */
.legal {
  padding-top: 112px;
  padding-bottom: 96px;
}
.legal h1 { margin-bottom: 8px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.legal .meta { color: var(--dim); font-size: 0.875rem; margin-bottom: 48px; }
.legal h2 { font-size: 1.25rem; color: var(--white); margin: 40px 0 12px; }
.legal h3 { font-size: 1.0625rem; color: var(--slate); margin: 28px 0 8px; }
.legal p, .legal li { color: var(--slate); margin-bottom: 12px; line-height: 1.8; }
.legal ul, .legal ol { padding-left: 20px; margin-bottom: 16px; }
.legal a { color: var(--trial); }
.legal strong { color: var(--white); }
.legal .highlight-box {
  background: rgba(212,132,90,0.06);
  border: 1px solid rgba(212,132,90,0.18);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.legal .highlight-box p { margin: 0; }

/* ── Scroll-reveal animations ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease,
              transform 0.45s ease;
  will-change: opacity, transform;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.06s; }
.reveal--delay-2 { transition-delay: 0.12s; }
.reveal--delay-3 { transition-delay: 0.18s; }
.reveal--delay-4 { transition-delay: 0.24s; }
.reveal--delay-5 { transition-delay: 0.30s; }
.reveal--delay-6 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Utilities ────────────────────────────────────────────── */
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.gap-8  { gap: 32px; }
.gap-12 { gap: 48px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-auto { margin-top: auto; }
.margin-0 { margin: 0; }

/* ── Layout helpers ───────────────────────────────────────── */
.container--relative {
  position: relative;
  z-index: 1;
}

.section--tinted {
  background: rgba(28,26,25,0.6);
}

/* ── Section intro paragraphs ─────────────────────────────── */
.section-intro {
  max-width: 520px;
  margin: 16px auto 0;
}
.section-intro--sm {
  max-width: 480px;
  margin: 16px auto 0;
}
.section-intro--privacy {
  max-width: 500px;
  margin: 16px auto 0;
}
.section-intro--waitlist {
  max-width: 480px;
  margin: 0 auto 40px;
}

/* ── Badge display helpers ────────────────────────────────── */
.badge--block-mb { margin-bottom: 24px; display: inline-flex; }

/* ── Metric chip dot color variants ──────────────────────── */
.metric-chip__dot--cyan   { background: var(--trial); }
.metric-chip__dot--purple { background: var(--baseline); }
.metric-chip__dot--green  { background: var(--success); }

/* ── Phone mockup — shared label style ───────────────────── */
.ps-section-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--dim);
}
.ps-section-label--mt { margin-top: 4px; }

/* ── Phone mockup — header flex row ──────────────────────── */
.ps-header__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Phone mockup — status badge (COMPLETE) ──────────────── */
.ps-status-badge {
  background: rgba(122,173,138,0.12);
  border: 1px solid rgba(122,173,138,0.28);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--success);
}

/* ── Phone mockup — legend dot color variants ────────────── */
.ps-legend-dot--purple { background: var(--baseline); }
.ps-legend-dot--cyan   { background: var(--trial); }

/* ── Phone mockup — purple spark bar variant ─────────────── */
.ps-spark-bar--purple { background: var(--baseline); }

/* ── Phone mockup — right phone (create experiment) ─────── */
.ps-form-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-field-value {
  background: var(--surface-hl);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.72rem;
  color: var(--white);
}

.ps-metric-row--selected {
  background: rgba(212,132,90,0.08);
  border: 1px solid rgba(212,132,90,0.28);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.68rem;
  color: var(--trial);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ps-metric-row--base {
  background: var(--surface-hl);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.68rem;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ps-duration-row {
  display: flex;
  gap: 6px;
}

.ps-duration-box {
  flex: 1;
  background: var(--surface-hl);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
}

.ps-duration-box--trial {
  background: rgba(212,132,90,0.08);
  border: 1px solid rgba(212,132,90,0.28);
}

.ps-duration-label {
  font-size: 0.58rem;
  color: var(--dim);
}

.ps-duration-label--trial { color: var(--trial); }

.ps-duration-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}

.ps-duration-value--trial { color: var(--trial); }

/* ── Mockup strip heading ─────────────────────────────────── */
.mockup-strip__heading { font-size: 1.625rem; }

/* ── How It Works — step card color variants ─────────────── */
.step-card--cyan  { border-color: rgba(212,132,90,0.2); }
.step-card--green { border-color: rgba(122,173,138,0.2); }

.step-card__num--cyan  { color: var(--accent); }
.step-card__num--green { color: var(--success); }

/* ── How It Works — YOLO info box ────────────────────────── */
.how__yolo-box {
  margin-top: 64px;
  padding: 40px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-hl);
}

.how__yolo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.how__yolo-item { text-align: center; }

.how__yolo-icon { margin-bottom: 12px; }

.how__yolo-h4 {
  color: var(--white);
  margin-bottom: 8px;
}

.how__yolo-h3 {
  color: var(--white);
  margin-bottom: 24px;
}

.how__yolo-p { font-size: 0.9rem; }

/* ── Feature card — premium header row ───────────────────── */
.feature-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* ── Privacy strip — footnote ────────────────────────────── */
.privacy-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--dim);
  margin-top: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.privacy-note a { color: var(--trial); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--surface-hl);
    padding: 24px;
    gap: 20px;
  }
  .nav__menu-toggle { display: block; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
