/* ZedLess landing page. Colors, fonts and voice follow docs/style-guide.md (same tokens as
   apps/mobile/src/theme.ts); corners are the app's even radii, not the RDV website's corner. */

@font-face {
  font-family: 'Saira Condensed';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/saira-condensed-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Saira Condensed';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/saira-condensed-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2');
}

:root {
  --teal: #005d5f;
  --olive: #4f5e00;
  --rust: #5e2400;
  --plum: #3a005e;
  --aqua: #3cb1b3;
  --ink: #141414;
  --white: #ffffff;

  /* Dark theme (the original ZedLess look). */
  --bg: var(--ink);
  --surface: #2c2c2c;
  --text: #f2f2f2;
  --text-muted: #a9a9a9;
  --text-on-color: rgba(255, 255, 255, 0.85);
  --accent: var(--aqua);
  --accent-text: var(--ink);
  --border: rgba(255, 255, 255, 0.15);
  --hairline: rgba(255, 255, 255, 0.06);
  --mark-z: #f2f2f2;

  --font-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  color-scheme: dark;
}

/* Light theme: plum-tinted paper with plum as the accent. Aqua only sits on plum. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f2f7;
    --surface: #ffffff;
    --text: #1d1622;
    --text-muted: #6a6170;
    --accent: var(--plum);
    --accent-text: var(--white);
    --border: rgba(58, 0, 94, 0.18);
    --hairline: rgba(58, 0, 94, 0.08);
    --mark-z: #1d1622;
    color-scheme: light;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 32px;
  }
}

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

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

/* Mark + name, gap of 1/4 the mark's height (style guide §1). */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.lockup__mark {
  width: 40px;
  height: 40px;
}

.lockup__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
  /* The name keeps its capital L: never uppercased. */
  text-transform: none;
}

.header__nav {
  display: flex;
  gap: 24px;
}

.header__nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
}

.header__nav a:hover {
  color: var(--text);
}

@media (max-width: 479.98px) {
  .header__nav {
    display: none;
  }
}

/* --- Shared ------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: 1.1875rem;
  color: var(--text-muted);
  max-width: 34em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 150ms ease, opacity 150ms ease;
}

.btn:active {
  opacity: 0.85;
  transform: scale(0.98);
}

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

.section {
  padding-block: 56px;
}

.section__title {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  margin-bottom: 32px;
}

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

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-block: 32px 56px;
}

.hero__text {
  display: grid;
  gap: 16px;
}

.hero h1 {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  /* Line break wherever it falls, but keep "can't" and "snooze" readable. */
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 16px;
}

.hero__soon {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Two phones, the light one peeking out behind the dark one. */
.hero__phones {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
  /* Two 56 %-wide phones (540 × 1200 shots), offset by 10 % of the width. */
  aspect-ratio: 100 / 135;
}

.phone {
  position: absolute;
  width: 56%;
  border-radius: var(--radius-xl);
  border: 6px solid var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.phone--front {
  left: 0;
  bottom: 0;
}

.phone--back {
  right: 0;
  top: 0;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    padding-block: 56px 80px;
  }
  .hero__phones {
    justify-self: end;
  }
}

/* --- How it works --------------------------------------------------------- */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

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

.step {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: var(--white);
}

.step p {
  color: var(--text-on-color);
}

.step h3 {
  font-size: 1.75rem;
}

.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  color: var(--aqua);
}

.step--teal {
  background: var(--teal);
}
.step--olive {
  background: var(--olive);
}
.step--plum {
  background: var(--plum);
}

/* Aqua on teal/olive is too faint for a big number; white keeps it readable. */
.step--teal .step__num,
.step--olive .step__num {
  color: var(--white);
}

/* --- Facts ---------------------------------------------------------------- */

.facts {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.facts li {
  display: grid;
  gap: 8px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.facts h3 {
  font-size: 1.5rem;
}

.facts p {
  color: var(--text-muted);
}

/* --- Screens -------------------------------------------------------------- */

.screens__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.screens__head .section__title {
  margin-bottom: 0;
}

.screens__lead {
  margin-block: 16px 32px;
  color: var(--text-muted);
  max-width: 40em;
}

/* Segmented control, like the app's: surface track, accent fill on the selected item. */
.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.segmented button {
  min-width: 88px;
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.segmented button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--accent-text);
}

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

@media (min-width: 900px) {
  .screens {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.screens figure {
  display: grid;
  gap: 12px;
}

.screens img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.screens figcaption {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

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

.footer {
  padding-block: 32px 40px;
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

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

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