/* DriveDeck site. One accent (the app's blue), one radius scale (22px media, pill buttons),
   light and dark from the system setting. */
:root {
  --bg: #fbfbfd;
  --bg-2: #f2f3f6;
  --text: #16171a;
  --text-2: #55585f;
  --text-3: #8a8d94;
  --line: rgb(22 23 26 / 0.09);
  --accent: #2f6bff;
  --accent-ink: #ffffff;
  --frame: #0d0e10;
  --shadow: 0 30px 80px -30px rgb(30 45 90 / 0.35);
  --radius: 22px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0e;
    --bg-2: #141518;
    --text: #f2f3f5;
    --text-2: #a3a6ad;
    --text-3: #6e7178;
    --line: rgb(255 255 255 / 0.09);
    --accent: #4f83ff;
    --frame: #1c1d21;
    --shadow: 0 30px 80px -30px rgb(0 0 0 / 0.8);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif; margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { display: block; max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; height: 60px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.button {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button:active { transform: scale(0.98); }
.button.quiet { background: transparent; color: var(--accent); padding-left: 4px; padding-right: 4px; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; font-weight: 700; }
.hero p { margin-top: 20px; font-size: 20px; color: var(--text-2); max-width: 30ch; }
.hero .actions { margin-top: 32px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hero .note { font-size: 14px; color: var(--text-3); }

/* Devices: real screenshots and recordings in a plain bezel. */
.ipad {
  background: var(--frame); border-radius: 34px; padding: 14px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.ipad video, .ipad img { border-radius: 22px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.iphone {
  background: var(--frame); border-radius: 44px; padding: 10px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.iphone img { border-radius: 35px; width: 100%; }

/* Day and night */
.cycle { padding: 96px 0 40px; }
.cycle h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; font-weight: 700; max-width: 18ch; }
.cycle .lead { margin-top: 14px; color: var(--text-2); font-size: 19px; max-width: 58ch; }
.switch {
  margin: 32px 0 28px; display: inline-flex; padding: 4px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line);
}
.switch button {
  appearance: none; border: 0; background: transparent; color: var(--text-2);
  font: inherit; font-size: 15px; font-weight: 600; padding: 8px 20px; border-radius: 999px; cursor: pointer;
}
.switch button[aria-pressed="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
.stage { position: relative; }
.stage .ipad { max-width: 1060px; }
.stage video[hidden] { display: none; }

/* Feature grid (bento): five real screens, five cells. */
.features { padding: 96px 0; }
.features h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; font-weight: 700; max-width: 20ch; }
.bento { margin-top: 44px; display: grid; gap: 20px; grid-template-columns: repeat(6, 1fr); }
.tile {
  border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
  border: 1px solid var(--line); display: flex; flex-direction: column;
}
.tile .copy { padding: 26px 28px 22px; }
.tile h3 { font-size: 23px; font-weight: 650; }
.tile p { margin-top: 6px; color: var(--text-2); font-size: 16px; max-width: 46ch; }
.tile img { margin-top: auto; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: right top; }
.tile.nav-tile { grid-column: span 4; grid-row: span 2; }
.tile.nav-tile img { aspect-ratio: auto; height: 100%; object-position: center; }
.tile.small { grid-column: span 2; }
.tile.small img { aspect-ratio: 1 / 1; object-position: center top; }
.tile.wide { grid-column: span 3; }
.tile.wide img { aspect-ratio: 16 / 10; object-position: center top; }

/* iPhone companion */
.companion { padding: 96px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.companion .wrap { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; }
.companion h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; font-weight: 700; }
.companion .lead { margin-top: 16px; font-size: 19px; color: var(--text-2); max-width: 46ch; }
.points { margin-top: 28px; display: grid; gap: 18px; }
.point { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.point i { font-size: 26px; color: var(--accent); line-height: 1.2; }
.point strong { display: block; font-weight: 600; }
.point span { color: var(--text-2); font-size: 16px; }
.caution { margin-top: 26px; font-size: 14px; color: var(--text-3); max-width: 52ch; }
.phones { position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; }
.phones .iphone.portrait { width: 62%; transform: translateX(-22%); }
.phones .iphone.landscape { width: 92%; margin-top: -42%; transform: translateX(10%); }

/* Safety and privacy: statements in two columns, no cards. */
.trust { padding: 96px 0; }
.trust h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; font-weight: 700; max-width: 16ch; }
.statements { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.statement { padding-top: 22px; border-top: 1px solid var(--line); }
.statement h3 { font-size: 21px; font-weight: 650; }
.statement p { margin-top: 8px; color: var(--text-2); max-width: 48ch; }

/* Closing band */
.closing { padding: 40px 0 110px; }
.closing .band {
  border-radius: 32px; padding: 64px 56px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 22%, var(--bg-2)), var(--bg-2) 60%);
  border: 1px solid var(--line);
}
.closing img { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
.closing h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1.1; }
.closing p { margin-top: 8px; color: var(--text-2); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 48px; font-size: 13px; color: var(--text-3); }
footer .wrap { display: grid; gap: 14px; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer .links a { color: var(--text-2); }
footer p { max-width: 110ch; }

/* Text pages (privacy, support) */
.page { padding: 64px 0 96px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(36px, 4.4vw, 52px); font-weight: 700; line-height: 1.08; }
.page .updated { margin-top: 10px; color: var(--text-3); font-size: 15px; }
.page h2 { font-size: 24px; font-weight: 650; margin-top: 44px; }
.page p, .page li { color: var(--text-2); margin-top: 12px; }
.page ul { padding-left: 22px; margin: 8px 0 0; }
.page strong { color: var(--text); font-weight: 600; }
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; background: var(--bg-2); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--text-3); font-weight: 400; }
.faq details[open] summary::after { content: "-"; }
.contact { margin-top: 28px; padding: 26px 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2); }
.contact a { font-weight: 600; }

/* Reveal on scroll (IntersectionObserver adds .in). */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
  .reveal.in { opacity: 1; transform: none; }
  .bento .reveal:nth-child(2) { transition-delay: 0.06s; }
  .bento .reveal:nth-child(3) { transition-delay: 0.12s; }
  .bento .reveal:nth-child(4) { transition-delay: 0.18s; }
  .bento .reveal:nth-child(5) { transition-delay: 0.24s; }
}

/* Phones and small tablets */
@media (max-width: 900px) {
  .nav-links { gap: 18px; }
  .nav-links .optional { display: none; }
  .hero { padding-top: 40px; }
  .hero .wrap, .companion .wrap { grid-template-columns: 1fr; gap: 40px; }
  .bento { grid-template-columns: 1fr; }
  .tile.nav-tile, .tile.small, .tile.wide { grid-column: auto; grid-row: auto; }
  .tile.nav-tile img { aspect-ratio: 4 / 3; height: auto; }
  .statements { grid-template-columns: 1fr; gap: 28px; }
  .closing .band { grid-template-columns: 1fr; padding: 40px 28px; }
  .cycle, .features, .companion, .trust { padding: 64px 0; }
  .ipad { border-radius: 24px; padding: 8px; }
  .ipad video, .ipad img { border-radius: 16px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .nav-links { font-size: 13px; gap: 14px; }
}
