/* Dayride: the app's day and night palettes, on the web. */
:root {
  --bg: #E8E6E1;
  --slate: #DCDAD6;
  --elevated: #F4F3F0;
  --line: #C5C3BF;
  --text: #141414;
  --soft: #2A2A2A;
  --muted: #5A5A5A;
  --accent: #FF6A1A;
  --accent-text: #B8440A; /* orange dark enough for small text on bone */
  --on-accent: #141414;
  --glow: rgba(255, 106, 26, .16);
  --shadow: 0 30px 60px -36px rgba(20, 20, 20, .35);
  --measure: 62ch;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0A;
    --slate: #161616;
    --elevated: #1E1E1E;
    --line: #2A2A2A;
    --text: #FFFFFF;
    --soft: #E8E6E1;
    --muted: #9A9A9A;
    --accent-text: #FF8A4A;
    --glow: rgba(255, 106, 26, .18);
    --shadow: 0 30px 60px -36px rgba(0, 0, 0, .9);
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  background:
    radial-gradient(1100px 560px at 85% -10%, var(--glow), transparent 60%),
    var(--bg);
  min-height: 100dvh;
}
a { color: var(--accent-text); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
a:hover { border-bottom-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; border: 0; }
.skip:focus { left: 12px; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 70rem; }

/* display type: Rajdhani, like the app's numerals and wordmark */
.display, h1, h2, h3, .brand, .eyebrow, .num {
  font-family: "Rajdhani", "DIN Alternate", "Arial Narrow", sans-serif;
}

/* masthead */
.mast { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 24px 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.7rem; letter-spacing: -.01em; color: var(--text); border: 0; line-height: 1; }
.brand .ride { color: var(--accent); }
.brand svg { width: 30px; height: 30px; flex: none; }
.mast nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: .95rem; }
.mast nav a { color: var(--soft); border: 0; }
.mast nav a[aria-current] { color: var(--text); border-bottom: 2px solid var(--accent); }
.nav-get { padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent) !important; font-weight: 600; font-size: .9rem; }
.nav-get:hover { filter: brightness(1.05); }

.eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 56px 0 8px; }
h1 { font-weight: 700; font-size: clamp(2.6rem, 6.4vw, 4.4rem); line-height: .98; letter-spacing: -.01em; margin: 0 0 18px; }
h1 .hl { color: var(--accent); }
h2 { font-weight: 700; font-size: 1.9rem; line-height: 1.05; margin: 44px 0 10px; }
h3 { font-weight: 700; font-size: 1.35rem; line-height: 1.15; margin: 28px 0 6px; }
.lede { font-size: 1.22rem; color: var(--soft); max-width: var(--measure); margin: 0 0 8px; }
.stamp { color: var(--muted); font-size: .95rem; }
p, li { max-width: var(--measure); }
ul { padding-left: 1.2em; }
li + li { margin-top: .35em; }

/* hero */
.lp-hero { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; margin-top: 36px; }
.lp-hero .eyebrow { margin-top: 20px; }
.lp-hero .lede { margin-bottom: 26px; }
@media (min-width: 880px) { .lp-hero { grid-template-columns: 1.1fr .9fr; gap: 56px; margin-top: 56px; } }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.text-link { color: var(--soft); border-bottom-color: var(--line); }
.price-line { color: var(--muted); font-size: .95rem; margin: 16px 0 0; }
.price-line b { color: var(--text); font-weight: 600; }

/* App Store button. Pre-launch it reads "Coming to the App Store"; swap for Apple's official badge at launch. */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 9px 22px 9px 16px;
  border-radius: 14px; border: 1px solid var(--text); background: var(--text); color: var(--bg);
  box-shadow: 0 14px 30px -18px rgba(255, 106, 26, .8); transition: transform .15s ease, filter .15s ease;
}
.store-btn:hover { border-bottom-color: var(--text); transform: translateY(-1px); }
.store-btn svg { width: 24px; height: 28px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.05; }
.store-btn small { font-size: .75rem; letter-spacing: .02em; }
.store-btn b { font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; }

/* phones with real screenshots */
.phones { position: relative; display: grid; place-items: center; min-height: 520px; }
.phones::before { content: ""; position: absolute; width: 85%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(8px); }
.phone {
  position: relative; width: min(270px, 64vw); aspect-ratio: 660 / 1434; border-radius: 44px; padding: 9px;
  background: linear-gradient(145deg, #3b3b3b, #0d0d0d 40%, #2a2a2a);
  box-shadow: 0 0 0 1px #4a4a4a, 0 50px 80px -40px rgba(0,0,0,.65);
}
.phone img { display: block; width: 100%; height: 100%; border-radius: 36px; object-fit: cover; }
.phones .phone.back { position: absolute; transform: translate(-38%, 6%) rotate(-6deg) scale(.88); opacity: .96; }
.phones .phone.front { transform: translate(16%, 0); }
@media (max-width: 560px) {
  .phones { min-height: 0; }
  .phones .phone.back { display: none; }
  .phones .phone.front { transform: none; }
}

/* a live-looking readout strip, drawn with type rather than an image */
.readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 28px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--line); max-width: 30rem; }
.readout div { background: var(--elevated); padding: 12px 16px; }
.readout small { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.readout b { font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 1.7rem; line-height: 1.1; }
.readout b i { font-style: normal; font-size: .9rem; color: var(--muted); margin-left: 3px; }

/* sections */
.lp-section { margin-top: 96px; }
.lp-section > h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin: 0 0 10px; }
.lp-section > .eyebrow { margin: 0 0 8px; }
.lp-section > p { color: var(--soft); }
.feat-grid { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.feat-grid > li { margin: 0; max-width: none; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--elevated); box-shadow: var(--shadow); }
.feat-grid h3 { margin: 6px 0 8px; }
.feat-grid p { margin: 0; color: var(--soft); font-size: 1rem; }
.num { font-size: .85rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chip { padding: 4px 11px; border-radius: 999px; background: var(--slate); color: var(--soft); font-size: .85rem; white-space: nowrap; }
.chip.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.daylight { margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: .95rem; }
.daylight small { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); align-self: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

/* modes */
.modes { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.modes li { margin: 0; max-width: none; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--slate); }
.modes b { display: block; font-family: "Rajdhani", sans-serif; font-size: 1.45rem; line-height: 1.1; }
.modes span { color: var(--soft); font-size: .98rem; }
.modes .tool { display: inline-block; margin-top: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }

/* privacy band */
.panel { margin-top: 96px; padding: 34px 28px; border-radius: 26px; border: 1px solid var(--line); background: var(--elevated); box-shadow: var(--shadow); }
.panel h2 { margin-top: 0; font-size: clamp(1.9rem, 3.8vw, 2.5rem); }
.panel ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px 26px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel li { margin: 0; padding-left: 22px; position: relative; color: var(--soft); }
.panel li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.panel li b { color: var(--text); }

/* founder note */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.founder .mono { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 1.6rem; }
.founder p { margin: 0 0 8px; font-size: 1.1rem; }
.founder .sig { color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { margin-top: 24px; border-top: 1px solid var(--line); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 1.3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--soft); }

/* closing CTA */
.closer { margin-top: 96px; text-align: center; padding: 48px 20px; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(520px 260px at 50% 0%, var(--glow), transparent 70%), var(--slate); }
.closer h2 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 2.7rem); }
.closer p { margin: 0 auto 24px; color: var(--soft); }
.closer .cta-row { justify-content: center; }

/* legal pages rendered from docs/*.md */
.legal h1 { font-size: clamp(2.3rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.6rem; }
.legal .tldr { margin: 28px 0; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--elevated); }
.legal .tldr p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 36rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--slate); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }

/* reveal on load */
.reveal > :nth-child(-n+5) { animation: rise .7s ease both; }
.reveal > *:nth-child(2) { animation-delay: .08s; } .reveal > *:nth-child(3) { animation-delay: .16s; }
.reveal > *:nth-child(4) { animation-delay: .24s; } .reveal > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

footer.wrap { margin-top: 80px; margin-bottom: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); border: 0; }
footer a:hover { color: var(--text); }
footer .legal-note { flex-basis: 100%; }
.mail { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .95em; }

/* phones: each table row becomes a small card, labelled from the header */
@media (max-width: 640px) {
  .table-wrap { border: 0; overflow: visible; }
  .legal table { min-width: 0; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal tr { display: block; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--elevated); }
  .legal td { display: block; border: 0; padding: 4px 14px; }
  .legal td:first-child { padding-top: 12px; font-weight: 600; }
  .legal td:last-child { padding-bottom: 12px; }
  .legal td:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); }
}
