/* ============================================================
   Overhand Studio — Sideout marketing landing
   Design tokens from the Clear Skies brand palette.
   ============================================================ */
:root {
  /* Backgrounds */
  --cream-page: #f4eee1;
  --cream-raised: #faf5ec;
  --card-cream: #fbf7ef;
  --tan: #e7ddc8;
  --eyebrow-pill-bg: #f0e7d4;

  /* Borders */
  --border: #e3d9c6;
  --border-strong: #ddd2bf;
  --border-input: #d8ccb6;
  --border-pill: #e0d4bd;

  /* Forest */
  --forest-deep: #15342a;
  --forest-darkest: #112a20;
  --forest-accent: #2e6147;
  --forest-hover: #1d4633;

  /* Terracotta */
  --terra: #c4673f;
  --terra-hover: #b15a34;
  --terra-light: #e0a07f;

  /* Text */
  --text-primary: #2c2519;
  --text-head: #15342a;
  --text-muted: #5f5648;
  --text-faint: #9a8f7c;
  --text-nav: #3a3327;
  --text-on-dark: #f4eee1;

  /* Type */
  --font-display: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;

  /* Misc */
  --shadow-device: 0 36px 80px -28px rgba(21, 52, 42, 0.5);
  --max-content: 1140px;
  --sticky-offset: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--terra); color: #fff; }

img { max-width: 100%; }

:where(h1, h2, p) { margin: 0; }

/* Anchored sections clear the sticky nav */
[id] { scroll-margin-top: var(--sticky-offset); }

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

/* ---------- Shared layout ---------- */
.container {
  max-width: var(--max-content);
  margin: 0 auto;
}
.container--stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.section { padding: 80px 32px; }
.section--cream { background: var(--cream-page); }
.section--features { padding: 30px 32px 80px; background: var(--cream-page); }
.section--showcase { padding: 20px 32px 80px; background: var(--cream-page); }
.section--dupr { background: var(--forest-deep); color: var(--text-on-dark); }
.section--studio {
  background: var(--cream-raised);
  border-top: 1px solid var(--border);
}
.section--waitlist {
  padding: 88px 32px;
  background: var(--forest-deep);
  color: var(--text-on-dark);
}

.section__head {
  text-align: center;
  margin-bottom: 44px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.section__sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 50ch;
}

/* ---------- Headings ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.02em;
  color: var(--text-head);
}
.h2--light { color: #fff; }
.h2--xl {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

/* ---------- Eyebrows ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 10px;
}
.eyebrow--accent { color: var(--terra-light); margin-bottom: 0; }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--eyebrow-pill-bg);
  border: 1px solid var(--border-pill);
  padding: 7px 15px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest-deep);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 9999px;
  background: var(--terra);
}
.dot--accent {
  width: 6px; height: 6px;
  background: var(--terra-light);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  border-radius: 8px;
}
.btn--dark {
  background: var(--forest-deep);
  color: var(--text-on-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  transition: background .15s;
}
.btn--dark:hover { background: var(--forest-hover); }
.btn--terra {
  background: var(--terra);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 24px;
  transition: background .15s, transform .15s;
}
.btn--terra:hover {
  background: var(--terra-hover);
  transform: translateY(-1px);
}

/* ---------- Logo lockup ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Header wordmark image */
.logo__img {
  display: block;
  height: 30px;
  width: auto;
}
.logo__mark {
  display: inline-flex;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--forest-deep);
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: #fff;
}
.logo__mark--terra { background: var(--terra); }
.logo__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--forest-deep);
}
.logo__word--light { font-size: 15px; color: var(--text-on-dark); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 245, 236, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 15px 32px;
}
.nav__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-nav);
}
.nav-link { transition: color .15s; }
.nav-link:hover { color: var(--forest-deep); }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 32px 72px;
  background: var(--cream-raised);
  border-bottom: 1px solid var(--border);
}
.hero__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--forest-deep);
  max-width: 16ch;
}
.hero__lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 54ch;
}
.hero__caption {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
}
.hero__device-wrap {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
}
/* Soft brand-tinted stage so the light app screen has contrast to sit against */
.hero__device-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 480px;
  height: 480px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(21, 52, 42, 0.16), rgba(21, 52, 42, 0) 68%);
  z-index: 0;
  pointer-events: none;
}

/* Phone mockup */
.device {
  position: relative;
  z-index: 1;
  width: 272px;
  height: 556px;
  border-radius: 42px;
  background: var(--forest-deep);
  padding: 10px;
  box-shadow: var(--shadow-device);
}
.device__notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 24px;
  background: var(--forest-deep);
  border-radius: 9999px;
  z-index: 3;
}
.device__screen {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 33px;
  background: #0f261d;
  object-fit: cover;
  object-position: top center;
}

/* ---------- Forms ---------- */
.waitlist-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 460px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.field {
  flex: 1;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
}
.field:focus { border-color: var(--terra); }
.field-dark {
  min-width: 220px;
  background: rgba(244, 238, 225, 0.08);
  border: 1px solid rgba(244, 238, 225, 0.28);
  color: #fff;
}
.field-dark:focus {
  border-color: rgba(224, 160, 127, 0.8);
  background: rgba(244, 238, 225, 0.12);
}
.field-dark::placeholder { color: rgba(244, 238, 225, 0.5); }

/* Form confirmation message */
.form-confirm {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
}
.form-confirm--light {
  background: var(--eyebrow-pill-bg);
  border: 1px solid var(--border-pill);
  color: var(--forest-deep);
}
.form-confirm--dark {
  background: rgba(244, 238, 225, 0.1);
  border: 1px solid rgba(244, 238, 225, 0.24);
  color: #fff;
}

/* ---------- Who it's for ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.audience {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: center;
  padding: 8px;
}
.audience__tile {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--tan);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--terra);
  font-size: 18px;
}
.audience__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--forest-deep);
  line-height: 1.1;
}
.audience__body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card-cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature__num {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--forest-deep);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
}
.feature__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--forest-deep);
  line-height: 1.12;
}
.feature__body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- Showcase ---------- */
.showcase {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.showcase__sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 54ch;
}
.showcase__frame {
  width: 100%;
  max-width: 980px;
  background: var(--forest-deep);
  border-radius: 26px;
  padding: 11px;
  box-shadow: var(--shadow-device);
}
.showcase__frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

/* ---------- DUPR ---------- */
.dupr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.dupr__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dupr__col--center { justify-content: center; align-items: center; }
.dupr .h2--light { line-height: 1.04; }
.dupr__body {
  font-size: 17.5px;
  line-height: 1.6;
  color: rgba(244, 238, 225, 0.78);
  max-width: 48ch;
}
.dupr__cta {
  align-self: flex-start;
  gap: 9px;
  font-size: 15px;
  padding: 13px 22px;
  margin-top: 6px;
}

/* Stat card */
.statcard {
  width: 100%;
  max-width: 380px;
  background: var(--forest-darkest);
  border: 1px solid rgba(244, 238, 225, 0.14);
  border-radius: 20px;
  padding: 28px;
}
.statcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.statcard__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 238, 225, 0.6);
}
.statcard__synced {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--terra-light);
}
.statcard__rating {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.statcard__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: #fff;
}
.statcard__delta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--terra-light);
}
.statcard__divider {
  height: 1px;
  background: rgba(244, 238, 225, 0.14);
  margin: 20px 0;
}
.statcard__rows {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.statcard__row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
}
.statcard__key { color: rgba(244, 238, 225, 0.7); }
.statcard__val { font-family: var(--font-mono); }

/* ---------- Compare ---------- */
.compare {
  max-width: 920px;
  margin: 0 auto;
}
.compare .section__head { margin-bottom: 40px; }
.compare__table {
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-cream);
}
.compare__row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
}
.compare__row:not(.compare__row--head) {
  border-top: 1px solid var(--border);
}
.compare__row--head { background: var(--tan); }
.compare__cell { padding: 16px 18px; }
.compare__cell--label {
  padding: 16px 22px;
  font-size: 14.5px;
  color: var(--text-primary);
  font-weight: 500;
}
.compare__cell--col {
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.compare__cell--brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--forest-deep);
}
.compare__cell--mark {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.compare__cell--yes {
  text-align: center;
  color: var(--forest-accent);
  font-weight: 800;
  font-size: 16px;
}

/* ---------- Studio ---------- */
.studio {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.studio__body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Waitlist ---------- */
.waitlist {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.waitlist__sub {
  font-size: 18px;
  color: rgba(244, 238, 225, 0.8);
  max-width: 46ch;
}
.waitlist .waitlist-form { max-width: 440px; }

/* ---------- Footer ---------- */
.footer {
  padding: 48px 32px;
  background: var(--forest-darkest);
  color: rgba(244, 238, 225, 0.7);
}
.footer__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
.foot-link { transition: color .15s; }
.foot-link:hover { color: var(--text-on-dark); }
.footer__url {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(244, 238, 225, 0.55);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .dupr {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .dupr__col--center { order: -1; }
}

@media (max-width: 760px) {
  .nav { padding: 13px 20px; }
  .section,
  .section--features,
  .section--showcase,
  .section--waitlist { padding-left: 20px; padding-right: 20px; }

  /* Collapsible nav */
  .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
  }
  .nav__toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--forest-deep);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
  }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__inner { flex-wrap: wrap; }
  .nav__links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 8px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 8px 0; }
  .nav__cta {
    display: none;
    flex-basis: 100%;
    margin-bottom: 4px;
  }
  .nav__links.is-open ~ .nav__cta { display: inline-flex; }

  .feature-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }

  .hero { padding: 56px 20px 56px; }
  .compare__cell--label { padding: 14px 16px; font-size: 13.5px; }
  .compare__cell { padding: 14px 10px; }
}

@media (max-width: 460px) {
  .audience-grid { grid-template-columns: 1fr; }
  .statcard__num { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
