/* NovaMode landing page: the app's own colours and fonts (client/src/index.css). */
@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #eef3f0;
  --surface: #ffffff;
  --surface-2: #f5f8f6;
  --ink: #24302b;
  --muted: #5d6a64;
  --line: #d9e3dd;
  --primary: #3d7a6b;
  --primary-hover: #33695c;
  --primary-ink: #ffffff;
  --primary-soft: #dcece6;
  --warm: #e8914a;
  --warm-soft: #fdeedd;
  --hero: linear-gradient(135deg, #fde6cf 0%, #f6efe0 45%, #e3efe9 100%);
  --phone-edge: #24302b;
  --radius-lg: 22px;
  --radius: 14px;
  --font-body: 'Figtree', system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131917;
    --surface: #1b2320;
    --surface-2: #212b27;
    --ink: #e5ede9;
    --muted: #98a8a0;
    --line: #2d3a34;
    --primary: #7cc2b0;
    --primary-hover: #94d0c1;
    --primary-ink: #0f201b;
    --primary-soft: #223c35;
    --warm: #f2b277;
    --warm-soft: #3a2c1e;
    --hero: linear-gradient(135deg, #2a2420 0%, #1d2421 50%, #182420 100%);
    --phone-edge: #3a4842;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.3rem, 7vw, 3.8rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  font-weight: 650;
}
h3 {
  font-size: 1.15rem;
  font-weight: 650;
}
p {
  margin: 0 0 1rem;
}
a {
  color: var(--primary);
}
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 3px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-quiet {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-quiet:hover {
  border-color: var(--primary);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
section {
  margin: 0 0 4.5rem;
}

/* Hero */
.hero {
  background: var(--hero);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem 0;
  display: grid;
  gap: 2rem;
  overflow: hidden;
}
.eyebrow {
  color: var(--primary);
  font-weight: 650;
  margin-bottom: 0.75rem;
}
.lead {
  font-size: 1.2rem;
  max-width: 34rem;
}
.note {
  color: var(--muted);
  font-size: 0.95rem;
}
.hero .phone {
  margin: 0 auto -6rem;
}

/* Phone frames: the screenshots are phone-sized, shown at most 300px wide */
.phone {
  margin: 0 auto;
  width: min(300px, 78vw);
  border: 8px solid var(--phone-edge);
  border-radius: 36px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(20, 40, 33, 0.18);
  aspect-ratio: 600 / 1298;
}
.hero .phone {
  aspect-ratio: auto;
  height: 520px;
}
.hero .phone img {
  width: 100%;
}

/* Features: text and a phone, side by side from 800px */
.feature {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.feature-text {
  max-width: 32rem;
}
/* On phones the words come first, then the picture. */
.feature .phone {
  order: 2;
}
.feature-text p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* The AI part's introduction */
.ai-intro {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}
.ai-intro p:last-child {
  color: var(--muted);
  font-size: 1.1rem;
}

/* The rest */
.cards {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.cards li {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
}
.cards p {
  color: var(--muted);
  margin: 0;
}

.calm {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
}
.ticks {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.ticks li {
  padding-left: 2rem;
  position: relative;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 4px var(--primary-soft), inset 0 0 0 10px var(--primary);
}

.invite {
  text-align: center;
  background: var(--hero);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem 2rem;
}
.invite .actions {
  justify-content: center;
}

/* Footer */
.foot {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 16px 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
}
.foot a {
  color: var(--muted);
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1.15fr 1fr;
    padding: 3.5rem 3.5rem 0;
    align-items: start;
  }
  .hero .phone {
    height: 560px;
  }
  .feature {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
  .feature .phone {
    order: 0;
  }
  .feature-flip .phone {
    order: 2;
  }
  .calm {
    padding: 2.5rem 3rem;
  }
}

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