/* Medici LLC — site styles. Light theme, VoziNow "Sky" palette. */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F4F8FD;
  --ink: #0B1626;
  --ink-2: #24324A;
  --muted: #586579;
  --line: #E2E8F0;
  --sky: #1563C2;
  --sky-press: #0F54A8;
  --sky-tint: #E6F2FD;
  --sky-light: #8CC4FF;
  --night: #0B1626;
  --night-2: #142238;
  --on-night-muted: #AEBBCD;
  --focus: #1563C2;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;

  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 22, 38, .06);
  --shadow: 0 2px 6px rgba(11, 22, 38, .05), 0 18px 40px rgba(11, 22, 38, .08);
  --shadow-phone: 0 30px 60px -20px rgba(11, 22, 38, .35), 0 12px 24px -12px rgba(11, 22, 38, .25);
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--sky); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0 0 .5em; color: inherit; }
h1, h2, .display { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.02; }
h1 { font-size: clamp(2.9rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); }
h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
h1 em, h2 em, .display em { font-style: italic; color: var(--sky); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--sky); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 58ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--sky); color: #fff; box-shadow: 0 8px 20px -8px rgba(21, 99, 194, .6); }
.btn-primary:hover { background: var(--sky-press); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: var(--sky-tint); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }

.brand { display: inline-flex; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 2rem; line-height: 1; letter-spacing: -.01em; }
.brand-llc {
  font-size: .68rem; font-weight: 700; letter-spacing: .2em; color: var(--muted);
  padding-left: 10px; border-left: 1px solid var(--line); transform: translateY(-4px);
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) {
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .98rem;
  padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav a:not(.btn):hover { background: var(--bg-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--sky); }
.nav .btn { margin-left: 10px; min-height: 46px; padding: 10px 20px; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .js .menu-toggle { display: inline-flex; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 22px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .js .nav.is-open { display: flex; }
  .js .nav a:not(.btn) { border-radius: 12px; font-size: 1.05rem; }
  .js .nav .btn { margin: 12px 0 0; }
  .nav { flex-wrap: wrap; }
}

/* Phone frame for app screens */
.phone {
  width: var(--w, 260px); aspect-ratio: 304 / 658; padding: 7px; flex: none;
  background: #0B1626; border-radius: calc(var(--w, 260px) * .16);
  box-shadow: var(--shadow-phone);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--w, 260px) * .135); background: #EEF1F5; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 72px) 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 45%, rgba(140, 196, 255, .35), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy { padding-bottom: clamp(40px, 6vw, 88px); }
.hero h1 { max-width: 12ch; }
.hero .lead { margin-top: 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 36px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 0; list-style: none; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--sky); flex: none; }

.hero-phones { position: relative; height: clamp(460px, 52vw, 640px); align-self: end; }
.hero-phones .phone { position: absolute; bottom: -56px; }
.hero-phones .p-center { --w: clamp(220px, 21vw, 280px); left: 50%; transform: translateX(-50%); z-index: 3; bottom: -36px; }
.hero-phones .p-left { --w: clamp(180px, 17vw, 230px); left: 4%; transform: rotate(-7deg); z-index: 2; opacity: .98; }
.hero-phones .p-right { --w: clamp(180px, 17vw, 230px); right: 4%; transform: rotate(7deg); z-index: 1; opacity: .98; }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero h1 { max-width: 14ch; }
  .hero-phones { height: 440px; }
  .hero-phones .p-center { --w: 220px; }
  .hero-phones .p-left, .hero-phones .p-right { --w: 180px; }
  .hero-phones .p-left { left: max(0px, calc(50% - 250px)); }
  .hero-phones .p-right { right: max(0px, calc(50% - 250px)); }
}
@media (max-width: 480px) {
  .hero-phones { height: 400px; }
  .hero-phones .p-center { --w: 200px; }
  .hero-phones .p-left, .hero-phones .p-right { --w: 150px; }
  .hero-phones .p-left { left: -24px; }
  .hero-phones .p-right { right: -24px; }
}

/* Places band */
.places { background: var(--night); color: #fff; position: relative; z-index: 4; }
.places-inner { display: flex; align-items: center; gap: 18px 36px; flex-wrap: wrap; padding-block: 26px; }
.places-label { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sky-light); }
.places-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin: 0; padding: 0; list-style: none; font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.2; }
.places-list li { display: inline-flex; align-items: center; gap: 22px; }
.places-list li + li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky-light); opacity: .7; }

/* Sections */
.section { padding-block: var(--section); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* Two ways to ride */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }
.way {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 8px; min-height: 100%;
}
.way-label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.way h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.05; letter-spacing: -.01em; margin: 6px 0 10px; }
.way p { max-width: 46ch; }
.way ul { list-style: none; padding: 0; margin: 10px 0 28px; display: grid; gap: 12px; }
.way li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.way li svg { width: 20px; height: 20px; margin-top: 3px; }
.way .btn { margin-top: auto; align-self: flex-start; }

.way-chauffeur { background: linear-gradient(160deg, var(--night-2), var(--night)); color: #fff; }
.way-chauffeur .way-label, .way-chauffeur li svg { color: var(--sky-light); }
.way-chauffeur p { color: var(--on-night-muted); }
.way-app { background: linear-gradient(160deg, #F3F9FF, var(--sky-tint)); border: 1px solid #D6E7FA; }
.way-app .way-label, .way-app li svg { color: var(--sky); }
.way-app p { color: var(--muted); }

.vozi-logo { font-family: var(--sans); font-weight: 700; letter-spacing: -.02em; }
.vozi-logo span { color: var(--sky); }

.soon {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: auto;
  padding: 12px 18px; border-radius: 999px; background: #fff; border: 1px solid #D6E7FA;
  font-weight: 700; font-size: .95rem; color: var(--ink);
}
.soon svg { width: 18px; height: 18px; color: var(--sky); }

/* App walkthrough */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; } }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step .phone { --w: min(100%, 250px); width: min(100%, 250px); margin-bottom: 26px; border-radius: 40px; }
.step .phone img { border-radius: 33px; }
.step-num { counter-increment: step; font-family: var(--serif); font-size: 1.5rem; color: var(--sky); line-height: 1; margin-bottom: 8px; }
.step-num::before { content: "0" counter(step); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; max-width: 30ch; }
@media (max-width: 520px) {
  .steps { gap: 14px; row-gap: 36px; }
  .step .phone { border-radius: 26px; padding: 5px; }
  .step .phone img { border-radius: 21px; }
  .step p { font-size: .9rem; }
}
.fineprint { margin-top: 40px; text-align: center; color: var(--muted); font-size: .85rem; }

/* Drive */
.drive { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 920px) { .drive { grid-template-columns: 1fr; } }
.drive-phones { display: flex; justify-content: center; gap: 18px; }
.drive-phones .phone { --w: clamp(150px, 19vw, 240px); }
.drive-phones .phone:last-child { transform: translateY(40px); }
.checks { list-style: none; padding: 0; margin: 8px 0 32px; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.checks li span.tick { width: 28px; height: 28px; border-radius: 50%; background: var(--sky-tint); color: var(--sky); display: grid; place-items: center; }
.checks svg { width: 16px; height: 16px; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 920px) { .about { grid-template-columns: 1fr; } }
.statement { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 24px; }
.statement em { color: var(--sky); }
.facts-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 14px 24px; }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; font-weight: 700; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 12px; } }

/* Contact */
.contact { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 70% at 85% 10%, rgba(21, 99, 194, .45), transparent 70%);
}
.contact .container { position: relative; }
.contact .eyebrow { color: var(--sky-light); }
.big-phone {
  display: inline-block; font-family: var(--serif); font-size: clamp(3rem, 10vw, 8rem); line-height: 1;
  color: #fff; text-decoration: none; letter-spacing: -.02em; margin: 4px 0 28px;
  background-image: linear-gradient(var(--sky-light), var(--sky-light)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .35s var(--ease);
}
.big-phone:hover { background-size: 100% 2px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 32px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-muted); margin-bottom: 6px; }
.contact-grid a, .contact-grid address { color: #fff; font-style: normal; font-size: 1.1rem; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-grid a:hover { text-decoration: underline; }
.emergency { margin-top: 36px; color: var(--on-night-muted); font-size: .95rem; display: flex; gap: 10px; align-items: center; }
.emergency svg { width: 20px; height: 20px; color: #FF9B8F; flex: none; }

/* Long-form pages (privacy, terms, support, delete account) */
.page-head { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 90% 0%, rgba(140, 196, 255, .35), transparent 70%), linear-gradient(180deg, #fff, var(--bg-soft));
}
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 14px; }
.page-head p { color: var(--muted); margin: 0; max-width: 60ch; font-size: 1.1rem; }
.page-head .container, .doc { max-width: calc(800px + 2 * var(--gutter)); }
.doc { padding-block: clamp(40px, 6vw, 72px); }
.doc > :first-child { margin-top: 0; }
.doc h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 1.6em; margin-bottom: .4em; }
.doc h3 { margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.doc li { margin-bottom: .5em; }
.doc li::marker { color: var(--sky); }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--bg-soft); font-weight: 700; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.contact-card strong { font-size: 1.15rem; overflow-wrap: anywhere; }
a.contact-card:hover { border-color: var(--sky); box-shadow: var(--shadow); }
.contact-card .label { color: var(--muted); font-weight: 500; font-size: .9rem; }

.notice {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 16px 18px;
  border-radius: var(--radius); background: #FFF5F3; border: 1px solid #FBD9D3; color: var(--ink);
}
.notice svg { width: 22px; height: 22px; flex: none; color: #C0392B; margin-top: 2px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font-weight: 700; font-size: 1.08rem; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--sky); border-bottom: 2px solid var(--sky);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 20px; color: var(--muted); }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-tag { color: var(--muted); max-width: 34ch; margin: 14px 0 0; }
.site-footer h2 { font-family: var(--sans); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; line-height: 1.4; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--ink); text-decoration: none; display: inline-block; padding: 5px 0; }
.site-footer a:hover { color: var(--sky); text-decoration: underline; }
.site-footer address { font-style: normal; color: var(--muted); line-height: 1.8; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
