/* ── Ontime marketing site - matches the app's palette & calm feel ───────────── */
:root {
  --bg: #F1F2F5;
  --card: #FFFFFF;
  --line: #E7E9EF;
  --text: #15171E;
  --dim: #545b67;
  --faint: #868D99;
  --accent: #FB6B45;
  --accent-ink: #B4400F;
  --accent-soft: #FFEDE6;
  --green: #0B7A55;
  --green-soft: #E7F7F0;
  --amber-ink: #B4540A;
  --amber-soft: #FFF6E6;
  --grad: linear-gradient(120deg, #FF8A4C 0%, #FB6B45 45%, #F79AC0 100%);
  --grad-soft: linear-gradient(180deg, #FFF3EC 0%, #F1F2F5 62%);
  --shadow: 0 18px 46px -22px rgba(20, 23, 30, .28);
  --shadow-sm: 0 8px 24px -14px rgba(20, 23, 30, .28);
  --radius: 18px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 242, 245, .82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -0.03em; }
.logo:hover { text-decoration: none; }
.logo .dot {
  width: 24px; height: 24px; border-radius: 8px; background: var(--grad);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.logo .dot::after { content: ""; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; border-top-color: transparent; transform: rotate(35deg); }
nav ul { display: flex; gap: 6px; list-style: none; margin: 0 0 0 auto; padding: 0; align-items: center; }
nav ul a { color: var(--dim); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
nav ul a:hover { color: var(--text); background: #fff; text-decoration: none; }
nav ul a.active { color: var(--accent-ink); }
nav .nav-cta { background: var(--text); color: #fff; padding: 9px 15px; border-radius: 11px; font-weight: 700; font-size: 14px; }
nav .nav-cta:hover { background: #000; text-decoration: none; }
@media (max-width: 620px) { nav ul li.hide-sm { display: none; } .logo span { display: none; } }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px;
  padding: 14px 22px; border-radius: 14px; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -12px rgba(251, 107, 69, .7); }
.btn-primary:hover { box-shadow: 0 16px 30px -12px rgba(251, 107, 69, .8); }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #d7dae2; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { background: var(--grad-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 62px; padding-bottom: 68px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700;
  color: var(--accent-ink); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.eyebrow .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(251,107,69,.18); }
.hero h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 820; margin: 18px 0 0; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--dim); margin-top: 16px; max-width: 40ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; color: var(--faint); font-size: 14px; font-weight: 600; }
.trust b { color: var(--dim); font-weight: 600; }

/* ── Phone mockup (CSS-drawn run screen) ─────────────────────────────────── */
.phone-col { display: flex; justify-content: center; }
.phone { width: 290px; background: #0e0f13; border-radius: 42px; padding: 11px; box-shadow: var(--shadow); }
.phone .screen { background: var(--bg); border-radius: 32px; padding: 20px 16px 22px; position: relative; overflow: hidden; }
.phone .notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; background: #0e0f13; border-radius: 999px; }
.m-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); color: var(--dim);
  font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; margin: 26px auto 0; }
.m-pill { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--green); background: var(--green-soft);
  font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 999px; margin: 10px auto 0; width: fit-content; }
.center { text-align: center; }
.ring-wrap { display: grid; place-items: center; margin: 16px 0 4px; }
.ring { width: 168px; height: 168px; border-radius: 50%;
  background: conic-gradient(from -90deg, #34D399 0 62%, #e6e8ee 62% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent 70%, #000 71%);
  mask: radial-gradient(farthest-side, transparent 70%, #000 71%); }
.ring-inner { position: absolute; text-align: center; }
.ring-inner b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ring-inner span { display: block; font-size: 11px; font-weight: 700; color: var(--faint); letter-spacing: .12em; }
.ring-stack { position: relative; display: grid; place-items: center; width: 168px; height: 168px; }
.m-steps { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.m-step { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.m-step .b { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 11px; color: var(--faint); }
.m-step.done { color: var(--faint); }
.m-step.done .b { background: var(--green); border-color: var(--green); color: #fff; }
.m-step.done .t { text-decoration: line-through; }
.m-step.now { border-color: var(--accent); background: var(--accent-soft); }
.m-step.now .b { background: var(--accent); border-color: var(--accent); color: #fff; }
.m-step .r { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--faint); }
.m-step.now .r { color: var(--accent-ink); }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 82px 0; }
.section.banded { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.label { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 820; margin: 12px 0 0; }
.section-head p { color: var(--dim); font-size: 18px; margin-top: 14px; max-width: 56ch; }

/* How it works - numbered rows (no card grid) */
.steps-list { max-width: 860px; }
.step-row { display: grid; grid-template-columns: 68px 1fr; gap: 24px; padding: 30px 0; align-items: start; }
.step-row + .step-row { border-top: 1px solid var(--line); }
.step-row .n { font-size: 42px; font-weight: 820; letter-spacing: -0.04em; line-height: .9; color: var(--accent); }
.step-row h3 { font-size: clamp(20px, 2.6vw, 24px); font-weight: 800; margin: 2px 0 8px; }
.step-row p { color: var(--dim); font-size: 17px; margin: 0; max-width: 60ch; }

/* Features - two-column ledger list (no boxes) */
.feat-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 54px; }
.feat { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 24px 0; align-items: start; border-top: 1px solid var(--line); }
.feat .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); }
.feat.g .ic { background: var(--green-soft); color: var(--green); }
.feat.a .ic { background: var(--amber-soft); color: var(--amber-ink); }
.feat .ic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 18px; font-weight: 800; margin: 3px 0 6px; }
.feat p { color: var(--dim); font-size: 15.5px; margin: 0; }

/* The point - editorial statement */
.point { max-width: 880px; }
.point .quote { font-size: clamp(28px, 4.6vw, 44px); font-weight: 820; letter-spacing: -0.025em; line-height: 1.12; margin: 0; }
.point .quote em { font-style: normal; color: var(--accent-ink); }
.point .body { margin-top: 26px; max-width: 62ch; }
.point .body p { color: var(--dim); font-size: 18px; }

/* Pricing - wide two-tier */
.pricing { display: grid; grid-template-columns: 1fr 1fr; max-width: 940px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.tier { padding: 38px 36px; }
.tier + .tier { border-left: 1px solid var(--line); }
.tier.pro { background: linear-gradient(180deg, #FFF6F2 0%, #fff 60%); }
.tier .k { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.tier.pro .k { color: var(--accent-ink); }
.tier h3 { font-size: 24px; font-weight: 820; margin: 8px 0 4px; }
.tier .sub { color: var(--dim); font-size: 15px; margin: 0 0 18px; }
.tier ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.tier li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--text); font-size: 15.5px; align-items: start; }
.tier li svg { width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tier.pro li svg { stroke: var(--accent); }
.tier .note { margin: 20px 0 0; color: var(--faint); font-size: 13.5px; line-height: 1.55; }

/* FAQ (animated) */
.faq { max-width: 780px; }
.faq.center { margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 20px 26px 20px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: absolute; right: 0; top: 22px; width: 13px; height: 13px; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .28s ease, opacity .28s ease; }
.faq summary .plus::before { left: 0; top: 5.5px; width: 13px; height: 2px; }
.faq summary .plus::after  { left: 5.5px; top: 0; width: 2px; height: 13px; }
.faq details[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { overflow: hidden; transition: height .3s ease; }
.faq-a .inner { padding: 0 0 20px; color: var(--dim); font-size: 16px; max-width: 68ch; }

/* CTA band */
.cta-band { background: var(--grad); color: #fff; text-align: center; padding: 78px 22px; }
.cta-band h2 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 820; }
.cta-band p { color: rgba(255,255,255,.92); font-size: 17px; margin: 14px auto 26px; max-width: 48ch; }
.cta-band .btn-primary { background: #fff; color: var(--accent-ink); box-shadow: 0 14px 30px -14px rgba(0,0,0,.4); }

/* ── Content pages (privacy / terms / support) ───────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 22px 90px; }
.doc .eyebrow { margin-bottom: 6px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 820; margin: 14px 0 6px; }
.doc .updated { color: var(--faint); font-size: 14px; font-weight: 600; margin-bottom: 26px; }
.doc h2 { font-size: 21px; font-weight: 800; margin: 40px 0 12px; scroll-margin-top: 80px; }
.doc h3 { font-size: 17px; font-weight: 800; margin: 24px 0 8px; }
.doc p, .doc li { color: #2b2f39; font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .lede { color: var(--dim); font-size: 18px; max-width: none; }
.callout { background: var(--accent-soft); border: 1px solid #f6d3c6; border-radius: 16px; padding: 20px 22px; margin: 30px 0; color: #6a3a28; }
.callout strong { display: block; color: var(--accent-ink); margin-bottom: 4px; }

/* Support cards */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0 10px; }
.support-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.support-card .label { font-size: 12px; }
.support-card h3 { font-size: 18px; font-weight: 800; margin: 8px 0; }
.support-card p { color: var(--dim); font-size: 15px; }
.support-card .contact-link { font-weight: 700; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer { background: #fff; border-top: 1px solid var(--line); padding: 40px 22px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
footer .brand { font-weight: 800; letter-spacing: -0.03em; }
footer .links { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
footer .links a { color: var(--dim); font-weight: 600; font-size: 15px; }
footer .copy { width: 100%; color: var(--faint); font-size: 13px; margin: 10px 0 0; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 44px; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row, .trust { justify-content: center; }
  .phone-col { order: -1; margin-bottom: 8px; }
  .feat-list { grid-template-columns: 1fr; column-gap: 0; }
  .pricing { grid-template-columns: 1fr; }
  .tier + .tier { border-left: 0; border-top: 1px solid var(--line); }
  .support-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .step-row { grid-template-columns: 52px 1fr; gap: 16px; }
}
