:root {
  --background: #F7F5EA;
  --surface: #FFFFFF;
  --text: #0B1A2B;
  --text-muted: #4A5A6B;
  --border: #E4E1CF;
  --primary: #00508E;
  --accent: #FF6B35;
  --navy: #0B1A2B;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Figtree", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #0F1A26;
    --surface: #17263A;
    --text: #F3F1E6;
    --text-muted: #A9B5C2;
    --border: #2B3B50;
  }
}
:root[data-theme="dark"] {
  --background: #0F1A26;
  --surface: #17263A;
  --text: #F3F1E6;
  --text-muted: #A9B5C2;
  --border: #2B3B50;
}

* { box-sizing: border-box; }
html { background: var(--background); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-family: var(--body);
  color: var(--text);
  background: var(--background);
}

/* One box, centred; the space around it is the page background. */
.card {
  width: 100%;
  max-width: 1120px;
  overflow: hidden;
  background: var(--background);
}

/* Hero */
.hero {
  position: relative;
  background: var(--accent);
  color: var(--navy);
  padding: 20px 24px 0;
  overflow: hidden;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}
.brand img { border-radius: 10px; display: block; }

.theme {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 26, 43, 0.12);
  color: var(--navy);
  cursor: pointer;
}
.theme:hover { background: rgba(11, 26, 43, 0.2); }
.theme svg { width: 22px; height: 22px; display: none; }
:root:not([data-theme]) .i-auto,
:root[data-theme="light"] .i-light,
:root[data-theme="dark"] .i-dark { display: block; }

.hero-grid { display: grid; gap: 8px; padding-top: 36px; }

.badge {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: #F7F5EA;
  font-size: 14px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 17vw, 132px);
  line-height: 0.9;
  text-transform: uppercase;
}

.sub {
  margin: 24px 0 28px;
  max-width: 36ch;
  font-size: 19px;
  line-height: 28px;
  font-weight: 600;
}

.button {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 16px;
  background: var(--navy);
  color: #F7F5EA;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.button:hover { background: #16304d; }
.button:focus-visible, .theme:focus-visible, footer a:focus-visible, .brand:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.hero .button:focus-visible, .hero .theme:focus-visible, .hero .brand:focus-visible { outline-color: #F7F5EA; }

/* Phones: two real screenshots, light in front, dark behind */
.phones {
  position: relative;
  height: 400px;
  margin-top: 24px;
}
.phone {
  position: absolute;
  bottom: -64px;
  width: 220px;
  height: auto;
  border-radius: 38px;
  border: 7px solid var(--navy);
  background: var(--navy);
  box-shadow: 0 24px 48px rgba(11, 26, 43, 0.35);
  animation: rise 700ms cubic-bezier(.2, .7, .2, 1) both;
}
.phone-front { left: calc(50% - 150px); z-index: 2; }
.phone-back { left: calc(50% - 10px); bottom: -96px; transform: rotate(5deg); animation-delay: 120ms; }

@keyframes rise { from { transform: translateY(48px); opacity: 0; } }
.phone-back { animation-name: rise-tilt; }
@keyframes rise-tilt { from { transform: translateY(48px) rotate(5deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } }

/* Below the hero */
.sheet { padding: 0 24px 24px; }

.points { list-style: none; margin: 0; padding: 40px 0 8px; display: grid; gap: 28px; }
.points h2 { margin: 0 0 8px; font-size: 20px; line-height: 26px; font-weight: 700; }
.points p { margin: 0; max-width: 34ch; font-size: 16px; line-height: 24px; color: var(--text-muted); }

footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-muted);
}
footer p { margin: 0; max-width: 56ch; }
footer .links { display: flex; gap: 16px; }
footer a { color: var(--text-muted); }

@media (min-width: 700px) {
  body { padding: 32px; }
  .card { border-radius: 28px; border: 1px solid var(--border); }
  .hero { padding: 28px 56px 0; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; align-items: end; padding-top: 56px; }
  .hero-copy { padding-bottom: 72px; }
  .phones { height: 480px; margin-top: 0; }
  .phone { width: 250px; }
  .phone-front { left: calc(50% - 190px); bottom: -70px; }
  .phone-back { left: calc(50% - 20px); bottom: -110px; }
  .sheet { padding: 0 56px 32px; }
  .points { grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: 72px; }
  .points li { padding: 0 28px; border-left: 1px solid var(--border); }
  .points li:first-child { padding-left: 0; border-left: 0; }
  .points li:last-child { padding-right: 0; }
  footer { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
