/* FocusVan's pages, in the app's own night navy (src/theme/colors.ts). */
:root {
  --background: #16202a;
  --surface: #243241;
  --border: rgba(255, 255, 255, 0.1);
  --text: #e8f1f6;
  --muted: #93acbf;
  --accent: #7fb3d3;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

header {
  margin-bottom: 36px;
}

.brand {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

h1 {
  margin: 12px 0 6px;
  font-size: 32px;
  line-height: 1.2;
}

h2 {
  margin: 40px 0 10px;
  font-size: 21px;
  line-height: 1.3;
}

h3 {
  margin: 24px 0 6px;
  font-size: 17px;
}

p,
li {
  color: var(--text);
}

.updated,
.note {
  color: var(--muted);
  font-size: 15px;
}

a {
  color: var(--accent);
}

ul {
  padding-left: 22px;
}

li {
  margin: 6px 0;
}

.card {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.card p {
  margin: 6px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 600;
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer a {
  margin-right: 16px;
}

@media (max-width: 520px) {
  h1 {
    font-size: 27px;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  td {
    border-bottom: none;
    padding: 4px 0;
  }

  tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  td:first-child {
    font-weight: 600;
  }
}

/* ── The landing page: one calm scroll, the app's art beside a few words. ── */

.landing {
  --cream: #f5efe6;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
}

.nav .brand {
  font-family: var(--rounded);
  font-size: 20px;
  color: var(--text);
}

.nav-links a {
  margin-left: 22px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

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

.hero,
.feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 56px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px;
}

.hero {
  padding-top: 40px;
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--rounded);
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.lede {
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.cta {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 18px;
  background: var(--cream);
  color: #16202a;
  font-weight: 700;
  font-size: 16px;
}

.hero-art,
.feature-art {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
}

.hero-art {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.feature-copy h2 {
  margin: 0 0 14px;
  font-family: var(--rounded);
  font-size: 34px;
  line-height: 1.15;
}

.feature-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 18px;
}

.feature-copy .detail {
  font-size: 16px;
}

/* Every other feature puts its picture first. */
.feature.flip .feature-copy {
  order: 2;
}

.vans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  padding: 18px;
  background: var(--surface);
}

.vans img {
  width: 100%;
  height: auto;
}

.closing {
  max-width: 680px;
  margin: 40px auto 0;
  padding: 72px 24px;
  text-align: center;
}

.closing h2 {
  margin: 0 0 12px;
  font-family: var(--rounded);
  font-size: 40px;
}

.closing p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 44px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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

/* ── iPhone frames: the app's own screens, so it's plain it's an iPhone app.
   A plain dark frame (no maker's logo, no model). Its corners are a share of
   its width and height (the phone is about 2.2 times as tall as wide), so
   they stay round at any size. ── */
.phone {
  /* The bezel is set against the phone's own width (cqw), not its column's:
     a padding in % would follow the column, thicker beside a wide picture. */
  container-type: inline-size;
  position: relative;
  width: 100%;
  border-radius: 17.5% / 8%;
  background: #05080b;
  box-shadow:
    0 0 0 1.5px #2a323b,
    0 0 0 3.5px #8b939c,
    0 0 0 4.5px #4a525b,
    0 36px 70px rgba(0, 0, 0, 0.55);
}

/* Its side buttons: power on the right, the two volume buttons on the left. */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 1.6%;
  min-width: 3px;
  border-radius: 2px;
}

.phone::before {
  right: -2.6%;
  top: 27%;
  height: 12%;
  background: #7c858e;
}

.phone::after {
  left: -2.6%;
  top: 21%;
  height: 18%;
  background: linear-gradient(#7c858e 0 42%, transparent 42% 58%, #7c858e 58%);
}

.phone img {
  display: block;
  width: calc(100% - 5.2cqw);
  height: auto;
  margin: 2.6cqw;
  border-radius: 15% / 6.9%;
}

/* A picture from the app behind, the phone in front of it, a little over its edge. */
.stage {
  position: relative;
  padding-bottom: 12%;
}

.stage .backdrop {
  width: 88%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.stage .phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38%;
}

/* A phone on its own, centered, a soft light behind it. */
.solo {
  display: flex;
  justify-content: center;
  padding: 12px 0;
  background: radial-gradient(closest-side, rgba(127, 179, 211, 0.16), transparent);
}

.solo .phone {
  max-width: 270px;
}

@media (max-width: 820px) {
  .stage .backdrop {
    width: 92%;
  }

  .stage .phone {
    width: 44%;
  }

  .solo .phone {
    max-width: 240px;
  }

  .hero,
  .feature {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px;
  }

  .hero {
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .lede {
    font-size: 17px;
  }

  .feature-copy h2 {
    font-size: 28px;
  }

  .feature-copy p {
    font-size: 17px;
  }

  /* On a phone the words come first, then the picture, every time. */
  .feature.flip .feature-copy {
    order: 0;
  }

  .closing h2 {
    font-size: 32px;
  }
}

/* ── Motion (script.js), none of it with Reduce Motion on. ── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Parallax: the picture behind lags, the phone in front leads. */
.stage .backdrop {
  transform: translateY(calc(var(--p, 0) * 36px));
  will-change: transform;
}

.stage .phone {
  transform: translateY(calc(var(--p, 0) * -44px));
  will-change: transform;
}

.solo .phone {
  transform: translateY(calc(var(--p, 0) * -28px));
  will-change: transform;
}

/* The van at the end: the middle band of its 1080 × 1920 canvas, on a road. */
.road {
  position: relative;
  width: 300px;
  height: 200px;
  margin: 0 auto 8px;
  overflow: hidden;
}

.road::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(127, 179, 211, 0.18), transparent);
}

.van {
  position: absolute;
  left: 0;
  top: -178px;
  width: 300px;
  height: 533px;
}

.van-layer {
  position: absolute;
  inset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .stage .backdrop,
  .stage .phone,
  .solo .phone {
    transform: none;
  }
}
