/* Kovoyo public website — design system. Static, no framework. */

:root {
  --red-500: #e11d2a;
  --red-600: #c8121f;
  --red-700: #9c0e18;
  --ink-950: #0e1116;
  --ink-900: #14181f;
  --ink-700: #33394a;
  --ink-500: #5b6272;
  --ink-300: #9aa1b0;
  --teal-500: #16b8ad;
  --teal-600: #0f9a91;
  --cream-50: #fdfbf8;
  --cream-100: #f7f1e8;
  --cream-200: #efe6d8;
  --line: #e7e0d3;
  --line-dark: #262c38;
  --paper: #ffffff;
  --focus: #16b8ad;

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1160px;
  --measure: 700px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(14, 17, 22, 0.06);
  --shadow-md: 0 12px 32px rgba(14, 17, 22, 0.10);
  --shadow-lg: 0 24px 60px rgba(14, 17, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--red-600);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-950);
  color: #fff;
  padding: 0.85rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---------- Header ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 248, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink-950);
  flex-shrink: 0;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.primary-nav {
  display: none;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--ink-700);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.primary-nav a:hover {
  color: var(--red-600);
}

@media (min-width: 760px) {
  .primary-nav {
    display: block;
  }
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ink-950);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.header-cta:hover {
  background: var(--red-600);
  transform: translateY(-1px);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  color: #fff;
  box-shadow: 0 10px 24px rgba(225, 29, 42, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(225, 29, 42, 0.4);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border: 1.5px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--red-600);
  color: var(--red-600);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 82% -10%, rgba(225, 29, 42, 0.55), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(22, 184, 173, 0.35), transparent 55%),
    linear-gradient(160deg, var(--ink-950), #1a1f2b 55%, var(--ink-900));
  color: #fff;
  padding: 3.5rem 0 4.5rem;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd9dc;
  background: rgba(225, 29, 42, 0.18);
  border: 1px solid rgba(225, 29, 42, 0.4);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(22, 184, 173, 0.3);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 15ch;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ff8a8f, #ffd9dc 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 46ch;
  margin: 0 0 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.75rem;
}

.hero-stats div {
  min-width: 9rem;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.hero-stats span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
}

/* Route motif — pure CSS/SVG decoration, no external asset */
.route-motif {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

.route-motif svg {
  position: absolute;
  right: -4%;
  top: 6%;
  width: min(46vw, 640px);
  height: auto;
}

@media (max-width: 900px) {
  .route-motif svg {
    opacity: 0.5;
  }
}

/* ---------- Section scaffolding ---------- */

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-alt {
  background: var(--cream-100);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: var(--ink-950);
}

.section-head p {
  color: var(--ink-500);
  font-size: 1.08rem;
  margin: 0;
}

/* ---------- Product showcase (alternating rows) ---------- */

.product-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
}

.product-row + .product-row {
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .product-row {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .product-row.reverse .product-copy {
    order: 2;
  }
  .product-row.reverse .product-visual {
    order: 1;
  }
}

.product-copy .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.badge-passenger {
  color: var(--red-600);
  background: #fde8e9;
}

.badge-driver {
  color: var(--teal-600);
  background: #e2f7f5;
}

.product-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
  color: var(--ink-950);
}

.product-copy p {
  color: var(--ink-500);
  font-size: 1.05rem;
  margin: 0 0 1.4rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--ink-700);
  font-size: 0.98rem;
}

.feature-list svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Illustrative device mock — CSS only, not a real screenshot */
.product-visual {
  display: flex;
  justify-content: center;
}

.device {
  position: relative;
  width: min(280px, 78vw);
  aspect-ratio: 9 / 18.5;
  background: var(--ink-950);
  border-radius: 42px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}

.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream-100), var(--cream-50));
}

.device-screen .map-lines {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}

.device-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.device-topbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 34px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.device-pin {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: var(--shadow-md);
}

.device-pin.pin-driver {
  background: var(--red-500);
  top: 42%;
  left: 30%;
}

.device-pin.pin-passenger {
  background: var(--teal-500);
  top: 58%;
  left: 62%;
}

.device-sheet {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 14px 16px 16px;
}

.device-sheet .bar {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  margin: 0 auto 12px;
}

.device-sheet .row {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  margin-bottom: 8px;
}

.device-sheet .row.short {
  width: 60%;
}

.device-sheet .chip {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--teal-500);
  color: #fff;
}

/* ---------- Value cards ---------- */

.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  color: #fff;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--ink-950);
}

.value-card p {
  color: var(--ink-500);
  margin: 0;
  font-size: 0.97rem;
}

/* ---------- Casablanca / context band ---------- */

.context-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--ink-950), #1a2230 60%, var(--ink-900));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.context-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
}

.context-band p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
  margin: 0 auto;
  font-size: 1.05rem;
}

.context-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
}

/* ---------- Resource / legal link cards (home) ---------- */

.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .resource-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.resource-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: var(--ink-950);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.98rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.resource-card:hover {
  border-color: var(--red-500);
  transform: translateY(-2px);
  color: var(--ink-950);
}

.resource-card svg {
  flex-shrink: 0;
  color: var(--ink-300);
}

.resource-card:hover svg {
  color: var(--red-600);
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--ink-950);
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}

@media (min-width: 760px) {
  .footer-top {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col li.static {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Legal / document pages ---------- */

.doc-hero {
  background: linear-gradient(160deg, var(--ink-950), #1a1f2b 60%, var(--ink-900));
  color: #fff;
  padding: 3.25rem 0 3rem;
}

.doc-hero .eyebrow {
  color: #ffb3b8;
}

.doc-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

.doc-hero .updated {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  margin: 0;
}

.doc-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.25rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .doc-layout {
    grid-template-columns: 220px minmax(0, var(--measure));
    justify-content: center;
  }
}

.doc-toc {
  display: none;
}

@media (min-width: 900px) {
  .doc-toc {
    display: block;
    position: sticky;
    top: 6.5rem;
    align-self: start;
  }
}

.doc-toc h2 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-300);
  margin: 0 0 1rem;
}

.doc-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
  display: grid;
  gap: 0.65rem;
}

.doc-toc a {
  display: block;
  padding: 0.1rem 0 0.1rem 1rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--ink-500);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.doc-toc a:hover {
  color: var(--red-600);
  border-left-color: var(--red-500);
}

.doc-content {
  max-width: var(--measure);
}

.doc-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-950);
  margin: 2.75rem 0 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 6rem;
}

.doc-content > *:first-child,
.doc-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.doc-content p {
  color: var(--ink-700);
  margin: 0 0 1.1rem;
  font-size: 1.01rem;
}

.doc-content ul,
.doc-content ol {
  color: var(--ink-700);
  padding-left: 1.3rem;
  margin: 0 0 1.1rem;
}

.doc-content li {
  margin-bottom: 0.55rem;
}

.doc-content strong {
  color: var(--ink-950);
}

.doc-lede {
  font-size: 1.08rem;
  color: var(--ink-700);
}

.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--red-500);
  background: var(--cream-100);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0 1.8rem;
}

.notice p {
  margin: 0;
}

.notice p + p {
  margin-top: 0.6rem;
}

.steps {
  padding-left: 1.3rem;
  color: var(--ink-700);
  counter-reset: step;
}

.steps li {
  margin-bottom: 1rem;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow-sm);
}

.contact-card dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-300);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-card dd {
  margin: 0.2rem 0 1.1rem;
  color: var(--ink-950);
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-card dd:last-child {
  margin-bottom: 0;
}

.contact-card dd a {
  color: var(--ink-950);
  text-decoration: none;
}

.contact-card dd a:hover {
  color: var(--red-600);
}

/* Support page cards reuse value-card */
.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin: 0 0 2rem;
}

@media (min-width: 640px) {
  .support-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Load-time entrance motion (hero only, never hides content) ---------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-eyebrow,
.hero h1,
.hero-lede,
.hero-actions,
.hero-stats {
  animation: fade-up 0.7s ease both;
}

.hero h1 { animation-delay: 0.05s; }
.hero-lede { animation-delay: 0.12s; }
.hero-actions { animation-delay: 0.18s; }
.hero-stats { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero h1,
  .hero-lede,
  .hero-actions,
  .hero-stats {
    animation: none;
  }
}
