/* Zustrieach home page. Colour tokens match the admin, supplier and rider sites.
   Light is the default. "Auto" follows the browser; Light and Dark set data-theme on <html>. */
:root {
  --bg: #f9fafb;
  --panel: #ffffff;
  --alt: #f0f0f8;
  --text: #000033;
  --muted: #53536a;
  --line: #e5e7eb;
  --brand: #000066;
  --on-brand: #ffffff;
  --accent: #ffbf00;
  --on-accent: #000033;
  --hero-bg: #000066;
  --hero-text: #f2f2ff;
  --hero-muted: #c8c8e6;
  --logo-mark: #000066;
  --logo-word: #000066;
  --link: #000066;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #00001f; --panel: #0d0d26; --alt: #08082a; --text: #f2f2ff; --muted: #a8a8c8; --line: #20203c;
    --brand: #ffbf00; --on-brand: #000033; --hero-bg: #04043a; --logo-mark: #ffbf00; --logo-word: #f2f2ff; --link: #ffbf00;
  }
}
:root[data-theme='dark'] {
  --bg: #00001f; --panel: #0d0d26; --alt: #08082a; --text: #f2f2ff; --muted: #a8a8c8; --line: #20203c;
  --brand: #ffbf00; --on-brand: #000033; --hero-bg: #04043a; --logo-mark: #ffbf00; --logo-word: #f2f2ff; --link: #ffbf00;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 17px; line-height: 1.6;
}
:root[lang='te'] body { font-family: 'Noto Sans Telugu', 'Nirmala UI', system-ui, sans-serif; line-height: 1.75; }
:root[lang='hi'] body { font-family: 'Noto Sans Devanagari', 'Nirmala UI', system-ui, sans-serif; line-height: 1.75; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
p { margin: 0 0 12px; }
a { color: var(--link); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* Logo: a single-colour image used as a mask, so it takes the colour of the theme. */
.mask { display: inline-block; background-color: currentColor; flex: none;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center; }
.mask.mark { color: var(--logo-mark); width: 33px; height: 38px; -webkit-mask-image: url(/assets/zustrieach-mark.png); mask-image: url(/assets/zustrieach-mark.png); }
.mask.word { color: var(--logo-word); width: 100px; height: 16px; -webkit-mask-image: url(/assets/zustrieach-wordmark.png); mask-image: url(/assets/zustrieach-wordmark.png); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 20px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--link); text-decoration: underline; }
.switches { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.seg button { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; padding: 6px 10px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed='true'] { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.seg button:focus-visible, .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.btn.gold { background: var(--accent); color: var(--on-accent); }
.btn.gold:hover { filter: brightness(1.05); }
.btn.ghost { border-color: currentColor; color: inherit; }
.btn.ghost:hover { background: rgb(255 255 255 / 0.1); }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-text); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 72px 0 96px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-family: ui-serif, Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: -0.01em; }
:root[lang='te'] .hero h1, :root[lang='hi'] .hero h1 { font-family: inherit; line-height: 1.35; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--hero-muted); max-width: 40em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .btn.ghost { color: var(--hero-text); }
.hero-card { background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.18); border-radius: 20px; padding: 28px; }
.hero-card .big { font-size: clamp(56px, 8vw, 88px); line-height: 1; font-weight: 800; color: var(--accent); margin: 0; font-family: ui-serif, Georgia, serif; }
.hero-card .big span { font-size: 0.32em; font-weight: 600; margin-left: 8px; color: var(--hero-text); font-family: system-ui, sans-serif; }
.hero-card .small { color: var(--hero-muted); margin: 8px 0 18px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li { border: 1px solid rgb(255 255 255 / 0.3); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
/* A tape measure along the bottom of the hero. */
.tape { position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: var(--accent);
  background-image:
    repeating-linear-gradient(90deg, var(--on-accent) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(90deg, var(--on-accent) 0 2px, transparent 2px 60px);
  background-size: 100% 10px, 100% 20px; background-repeat: repeat-x, repeat-x; background-position: left bottom, left bottom; }

/* Promise strip */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 56px 0 24px; }
.promise h2 { font-size: 19px; }
.promise p { color: var(--muted); font-size: 15.5px; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--alt); }
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-family: ui-serif, Georgia, serif; margin-bottom: 32px; }
:root[lang='te'] .section-title, :root[lang='hi'] .section-title { font-family: inherit; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.steps h3, .card h3 { font-size: 19px; }
.steps p, .card p { color: var(--muted); font-size: 15.5px; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; margin-bottom: 12px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; }
.card .link { margin-top: auto; font-weight: 600; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* App */
.app { background: var(--hero-bg); color: var(--hero-text); text-align: center; }
.app-box { max-width: 640px; }
.app h2 { font-family: ui-serif, Georgia, serif; font-size: clamp(26px, 3.4vw, 36px); }
:root[lang='te'] .app h2, :root[lang='hi'] .app h2 { font-family: inherit; }
.app p { color: var(--hero-muted); }

/* Footer */
.foot { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

.lost { padding: 120px 0; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding: 48px 0 72px; }
  .promise, .steps, .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .promise, .steps, .cards { grid-template-columns: 1fr; }
  .nav { margin-left: 0; width: 100%; order: 3; gap: 14px; }
  .switches { margin-left: auto; }
  .section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Longer sections: what it is, in-app tour, roles, money, trust */
.two { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.two p { color: var(--muted); font-size: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.note { margin-top: 24px; color: var(--muted); max-width: 52em; }
.lead-dark { color: var(--muted); max-width: 44em; margin: -12px 0 28px; font-size: 18px; }
.muted { color: var(--muted); }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.role h3 { font-size: 21px; }
.checks { list-style: none; padding: 0; margin: 8px 0 20px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--text); }
.checks li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg) translateY(-3px); }
.role .btn { margin-top: auto; align-self: flex-start; }
.btn.small { padding: 9px 16px; font-size: 15px; }
.money { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 820px; }
.money li { display: flex; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.money .num { flex: none; margin: 0; }
.money h3 { font-size: 19px; margin-bottom: 4px; }
.money p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 960px) {
  .two { grid-template-columns: 1fr; gap: 12px; }
  .cards.three, .roles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) { .cards.three, .roles { grid-template-columns: 1fr; } }
