/* ForeDrive marketing site. Shares the Sunrise palette with the app (css/foredrive-sunrise.css). */
@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #fffaf3; --surface: #f6ece0; --line: #e0d2c1;
  --ink: #2b1b3d; --muted: #6b5c63; --inverse: #fffaf3;
  --primary: #c44a34; --primary-hover: #a93c28; --accent: #e2664f;
  --plum: #2b1b3d; --plum-2: #3d2a52;
  --lv0: #f5dfb8; --lv1: #f0b46a; --lv2: #e2664f; --lv3: #8e2f5f;
  --r: 16px; --r-lg: 26px;
  --shadow: 0 4px 18px rgba(43, 27, 61, .14);
  --font: "Figtree", system-ui, -apple-system, sans-serif;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 900; }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 800; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 40ch; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 250, 243, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 22px; }
.brand svg { width: 34px; height: 34px; }
.brand em { font-style: normal; color: var(--primary); }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { background: var(--surface); }
.nav-links a.current { background: var(--surface); }
.nav-links .btn { margin-left: 6px; }
@media (max-width: 720px) {
  /* Phones: brand + app button on the first row, page links wrap to a second row. */
  .nav .wrap { flex-wrap: wrap; padding: 10px 0 8px; row-gap: 4px; min-height: 0; }
  .brand { font-size: 20px; }
  .nav-links { display: contents; }
  .nav-links .btn { order: 1; margin-left: auto; padding: 9px 14px; font-size: 15px; }
  .nav-links a:not(.btn) { order: 2; font-size: 15px; padding: 6px 10px; }
  .nav-links a:not(.btn):first-of-type { margin-left: -10px; }
}
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: 700 17px/1 var(--font); text-decoration: none; cursor: pointer; border: 0; transition: transform .12s, background .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--inverse); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: 17px 28px; font-size: 19px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 24px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .eyebrow { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.hero .note { font-size: 14px; color: var(--muted); margin-top: 14px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero .phone { order: -1; margin: 0 auto; } }

/* Phone frame */
.phone { width: min(330px, 80vw); aspect-ratio: 663 / 1200; border-radius: 44px; background: #1a1024; padding: 12px; box-shadow: 0 30px 60px rgba(43, 27, 61, .28), inset 0 0 0 2px #3d2a52; margin-inline: auto; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; background: var(--surface); }
.phone.sm { width: min(260px, 70vw); border-radius: 36px; padding: 9px; }
.phone.sm img { border-radius: 28px; }

/* Sections */
section { padding: clamp(40px, 7vw, 80px) 0; }
section.alt { background: var(--surface); }
section.plum { background: var(--plum); color: var(--inverse); }
section.plum .muted, section.plum .lead { color: rgba(255, 250, 243, .72); }
.section-head { max-width: 60ch; margin-bottom: 32px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--bg); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--inverse); font-weight: 900; font-size: 20px; margin-bottom: 12px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feat { background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r); padding: 20px; }
.feat h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.feat h3 svg { width: 24px; height: 24px; color: var(--primary); flex: none; }
.feat p { margin: 0; color: var(--muted); font-size: 15.5px; }
.feat .tag { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--inverse); background: var(--primary); border-radius: 999px; padding: 3px 8px; margin-left: auto; }

/* Ratings legend */
.ratings { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.rating { border-radius: var(--r); padding: 18px; background: var(--bg); border-left: 8px solid var(--c); box-shadow: var(--shadow); }
.rating b { display: block; font-size: 19px; margin-bottom: 4px; }
.rating span { color: var(--muted); font-size: 15px; }

/* Audience */
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.who div { background: var(--plum-2); border-radius: var(--r); padding: 22px; }
.who h3 { color: var(--inverse); }
.who p { color: rgba(255, 250, 243, .78); margin: 0; font-size: 15.5px; }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; align-items: stretch; }
.tier { background: var(--bg); border: 2px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; }
.tier.featured { border-color: var(--primary); box-shadow: var(--shadow); position: relative; }
.tier.featured::before { content: "Most popular"; position: absolute; top: -13px; left: 22px; background: var(--primary); color: var(--inverse); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.tier h3 { font-size: 22px; }
.price { font-size: 40px; font-weight: 900; letter-spacing: -.02em; margin: 6px 0 2px; }
.price small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tier .for { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.tier li { padding: 7px 0 7px 30px; position: relative; font-size: 16px; border-top: 1px solid var(--line); }
.tier li::before { content: "✓"; position: absolute; left: 4px; color: var(--primary); font-weight: 900; }
.tier li.soon::before { content: "◷"; color: var(--muted); }
.tier li.soon { color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* Forms */
.signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
.signup input, .form input, .form textarea { font: 500 17px/1.3 var(--font); padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); min-width: 0; }
.signup input { flex: 1 1 260px; }
.signup input:focus, .form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); }
.form { display: grid; gap: 12px; max-width: 560px; }
.form textarea { min-height: 130px; resize: vertical; }
.form-note, .signup-note { font-size: 14px; color: var(--muted); margin-top: 8px; }
.hp { position: absolute; left: -9999px; }
.done { background: var(--lv0); border-radius: 14px; padding: 14px 16px; font-weight: 600; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 8px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 10px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 900; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ol, .faq details ul { color: var(--muted); margin: 0 0 12px; }
.faq details ol, .faq details ul { padding-left: 22px; }

/* Prose pages */
.prose { max-width: 72ch; }
.prose h2 { font-size: 24px; margin-top: 36px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 800; }

/* Screens row */
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; align-items: start; }
.screens figure { margin: 0; text-align: center; }
.screens figcaption { margin-top: 14px; font-weight: 700; }
.screens figcaption small { display: block; color: var(--muted); font-weight: 500; font-size: 14.5px; }

/* Screenshot pairs inside FAQ answers and the day/night section */
.screens.two { grid-template-columns: repeat(auto-fit, minmax(220px, 260px)); justify-content: center; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 200px)); gap: 18px; margin: 4px 0 16px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 18px; border: 6px solid #1a1024; box-shadow: var(--shadow); background: var(--surface); }
.shots figcaption { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--muted); text-align: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14.5px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--primary); }
footer .copy { margin-left: auto; }

/* Callout */
.callout { background: var(--surface); border-radius: var(--r); padding: 18px 20px; border-left: 6px solid var(--primary); }
