/* zipp.la — landing page styles.
 *
 * The home page in the app's design language (yellow header bar; a hero with the app's Home drawn
 * in a phone; the services as bold tiles with the app's drawings; app download; the riders card;
 * yellow footer) and the legal pages (terms, privacy).
 * Pages are made by website/build.mjs from website/src; this file is used as it is.
 *
 * Brand: yellow #FFFF00 and black #111111; text on yellow is always black.
 * Base colour: <html data-theme="black"> (default) or data-theme="white".
 * The header and footer stay yellow in both. Preview the white base with ?theme=white.
 */

:root {
  --yellow: #FFFF00;
  --yellow-press: #E6E600;
  --ink: #111111;
  --font: "Inter", "Noto Sans Lao", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

/* Black base (default) */
:root,
[data-theme="black"] {
  --bg: #0B0B0B;
  --bg-2: #181818;
  --text: #FFFFFF;
  --text-2: #C8C8C8;
  --hero-top: #1E1E0C; /* the hero fades from a dark yellow into the page colour */
  --btn-bg: var(--yellow);
  --btn-fg: #111111;
  --btn-hover: var(--yellow-press);
  --surface: #151515;
  --surface-2: #1E1E1E;
  --border: #262626;
  --border-strong: #3A3A3A;
  /* the drawings' theme colours (website/src/partials/sprite.html) */
  --art-wall: #2A2A2A;
  --art-door: #101010;
  --art-glass: #3C3C3C;
  --art-shadow: rgba(0, 0, 0, 0.45);
  --art-muted: #262626;
  --art-muted-2: #333333;
  --art-muted-line: #444444;
  color-scheme: dark;
}

/* White base */
[data-theme="white"] {
  --bg: #FFFFFF;
  --bg-2: #F3F3F3;
  --text: #111111;
  --text-2: #4A4A4A;
  --hero-top: #FFFFE0;
  --btn-bg: #111111;
  --btn-fg: #FFFFFF;
  --btn-hover: #2B2B2B;
  --surface: #FFFFFF;
  --surface-2: #F5F5F5;
  --border: #E5E5E5;
  --border-strong: #CFCFCF;
  --art-wall: #F2F2F2;
  --art-door: #CFCFCF;
  --art-glass: #DCE6F0;
  --art-shadow: rgba(17, 17, 17, 0.10);
  --art-muted: #DADADA;
  --art-muted-2: #C6C6C6;
  --art-muted-line: #B0B0B0;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65; /* Lao stacks vowels and tone marks: keep lines airy */
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
:lang(lo) h1, :lang(lo) h2, :lang(lo) h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0; }
/* Short centred text: even lines, no lone last word (Lao breaks between words too). */
h2, h3, .sub, .card p, .features p, .hero-cities span, .hero h1:lang(lo) { text-wrap: balance; }
.lead { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 16px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-outline { color: var(--text); border-color: currentColor; background: transparent; }
.btn-outline:hover { background: rgba(127, 127, 127, 0.12); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Header: yellow bar ---------- */
.site-header { background: var(--yellow); color: var(--ink); }
.nav { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; color: var(--ink); }
.wordmark { height: 34px; width: auto; aspect-ratio: 500 / 169; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.nav-links a:hover { background: rgba(17, 17, 17, 0.08); }
.lang { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(17, 17, 17, 0.08); }
.lang a { color: var(--ink); font: 700 13px/1 var(--font); padding: 9px 13px; border-radius: 999px; text-decoration: none; }
.lang a:hover { background: rgba(17, 17, 17, 0.08); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--yellow); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--hero-top), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; padding-block: 64px 88px; }
.hero-cities { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; background: var(--yellow); color: var(--ink); padding: 6px 14px; border-radius: 999px; }
.hero-cities .icon { width: 18px; height: 18px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 800; margin-top: 20px; max-width: 15ch; }
:lang(lo) .hero h1 { max-width: 13em; font-size: clamp(32px, 4.2vw, 52px); }
.hero .lead { font-size: 19px; color: var(--text-2); margin-top: 16px; max-width: 32em; }

/* The highlighted words: yellow on the black base, a yellow marker stroke on the white one. */
.mark { color: var(--yellow); }
[data-theme="white"] .hero .mark { color: var(--ink); background: var(--yellow); padding: 0 .12em; border-radius: .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* The app's Home, drawn in a phone (always the app's dark base) */
.hero-visual { position: relative; padding-left: 70px; }
.trails { position: absolute; left: -36px; top: 46%; width: 170px; height: auto; color: var(--yellow); }
.phone { position: relative; width: 312px; border-radius: 46px; padding: 11px; background: var(--ink); box-shadow: 0 0 0 1.5px #3A3A3A, 0 34px 70px rgba(0, 0, 0, 0.45); }
.app {
  border-radius: 36px; overflow: hidden; background: #0A0A0A; color: #F5F5F5; padding: 18px 13px 10px; display: grid; gap: 9px; text-align: left;
  --art-wall: #2A2A2A; --art-door: #101010; --art-glass: #3C3C3C; --art-shadow: rgba(0, 0, 0, 0.45);
  --art-muted: #262626; --art-muted-2: #333333; --art-muted-line: #444444;
}
.app-top { display: flex; align-items: center; gap: 8px; }
.app-wordmark { height: 17px; width: auto; aspect-ratio: 500 / 169; color: var(--yellow); }
.app-city { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font: 700 10px/1 var(--font); padding: 5px 8px; border-radius: 999px; background: #1E1E1E; border: 1px solid #262626; }
.app-city .icon { width: 11px; height: 11px; stroke: var(--yellow); }
.app-avatar { width: 26px; height: 26px; border-radius: 50%; background: #4E6E9A; color: #FFFFFF; font: 800 10px/26px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--yellow); }
.app-hello { font-size: 21px; font-weight: 800; line-height: 1.3; }
.app-hello b { color: var(--yellow); }
.app-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-row.three { grid-template-columns: repeat(3, 1fr); }
.app-tile { position: relative; overflow: hidden; height: 108px; border-radius: 17px; padding: 9px 10px; background: #151515; border: 1px solid #262626; display: flex; flex-direction: column; }
.app-row.three .app-tile { height: 88px; padding: 8px; }
.app-tile b { font-size: 12.5px; font-weight: 800; line-height: 1.25; position: relative; }
.app-row.three .app-tile b { font-size: 11px; }
.app-tile small { font-size: 9.5px; color: #B5B5B5; line-height: 1.35; position: relative; }
.app-tile.is-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); box-shadow: 0 8px 24px rgba(255, 255, 0, 0.14); }
.app-tile.is-yellow small { color: rgba(17, 17, 17, 0.7); }
.app-tile.is-bike { border-color: #45451A; }
.app-tile.is-soon { height: 70px; background: #0A0A0A; border: 1px dashed #3A3A3A; }
.app-tile.is-soon b { color: #B5B5B5; }
.app-art { position: absolute; right: 0; bottom: 0; width: 80%; height: 64%; }
.app-art.center { left: 0; width: 100%; height: 62%; }
.app-tile.is-soon .app-art { width: 52%; height: 78%; }
.app-art text, .branch text { font: 800 13px var(--font); fill: #FFFFFF; }
.app-badge { position: absolute; top: 9px; right: 9px; font: 800 8.5px/1 var(--font); padding: 3px 6px; border-radius: 999px; background: var(--yellow); color: var(--ink); }
.app-badge.soon { background: transparent; color: var(--yellow); border: 1px solid var(--yellow); }
.app-tile:has(.app-badge) > b, .app-tile:has(.app-badge) > small { padding-right: 34px; }
.app-section { font: 800 10.5px/1.2 var(--font); margin-top: 3px; }
.app-tabs { display: flex; justify-content: space-around; align-items: center; height: 34px; margin: 2px -13px 0; border-top: 1px solid #262626; }
.app-tabs i { width: 18px; height: 18px; border-radius: 6px; border: 2px solid #8A8A8A; }
.app-tabs i.on { width: 44px; height: 24px; border: 0; border-radius: 12px; background: var(--yellow); }

/* ---------- Sections ---------- */
.section { padding-block: 72px 16px; }
.section-head { text-align: center; }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.sub { color: var(--text-2); font-size: 18px; max-width: 34em; margin: 12px auto 0; }
.section .cta { justify-content: center; }

/* The services, as the app's tiles */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.card { position: relative; overflow: hidden; grid-column: span 2; min-height: 320px; padding: 30px; border-radius: 30px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
.card h3 { font-size: 30px; font-weight: 800; }
.card p { margin-top: 10px; font-size: 16.5px; color: var(--text-2); }
.card-text { position: relative; z-index: 1; max-width: 62%; }
.card-art { position: absolute; right: -6px; bottom: -8px; width: 60%; height: 64%; }
.card.is-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); box-shadow: 0 18px 40px rgba(255, 255, 0, 0.10); }
.card.is-yellow p { color: rgba(17, 17, 17, 0.72); }
.card.is-bike { background: #151515; border-color: #45451A; color: #F5F5F5; }
.card.is-bike p { color: #B5B5B5; }
[data-theme="white"] .card.is-bike { background: var(--ink); border-color: var(--ink); }
.card.is-wide { grid-column: span 4; min-height: 0; flex-direction: row; align-items: center; gap: 28px; }
.card.is-wide .card-text { flex: 1; max-width: none; }
.card.is-soon { min-height: 240px; background: transparent; border: 1.5px dashed var(--border-strong); }
.card.is-soon h3 { color: var(--text-2); }
.card.is-soon .card-art { width: 42%; height: 72%; right: 8px; bottom: 6px; }
.card-badge { position: absolute; z-index: 2; top: 26px; right: 26px; font: 800 12px/1 var(--font); padding: 7px 11px; border-radius: 999px; background: var(--yellow); color: var(--ink); }
.card-badge.soon { background: transparent; color: var(--text); border: 1.5px solid var(--yellow); }
[data-theme="white"] .card-badge.soon { border-color: var(--ink); }
.branches { display: grid; grid-template-columns: repeat(3, 172px); gap: 14px; }
.branch { margin: 0; padding: 14px 10px 12px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--border); text-align: center; }
.branch svg { width: 100%; height: 112px; }
.branch figcaption { font-weight: 800; font-size: 14px; margin-top: 8px; }

.features { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.features li { padding: 24px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); }
.feature-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); }
.features h3 { font-size: 18px; font-weight: 800; margin-top: 16px; }
.features p { font-size: 15px; color: var(--text-2); margin-top: 4px; }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.store { display: flex; align-items: center; gap: 12px; min-width: 210px; padding: 14px 20px; border-radius: 22px; background: var(--ink); color: #FFFFFF; border: 1px solid #333333; text-align: left; }
.store svg { width: 28px; height: 28px; }
.store small { display: block; font-size: 12px; color: var(--yellow); font-weight: 700; }
.store b { font-size: 18px; }

/* The riders: a dark card in both themes, with the bike and its trails */
.rider-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 360px; align-items: center; gap: 28px; padding: 48px 52px; border-radius: 34px; background: #111111; color: #FFFFFF; border: 1px solid #45451A; }
.rider-card h2 { font-size: clamp(28px, 3.2vw, 42px); }
.rider-card .sub { margin: 14px 0 0; color: #C8C8C8; }
.rider-card .cta { justify-content: flex-start; }
.rider-card .btn-primary { background: var(--yellow); color: var(--ink); }
.rider-card .btn-primary:hover { background: var(--yellow-press); }
.rider-card .btn-outline { color: #FFFFFF; }
.rider-art { width: 100%; height: auto; }
#riders { padding-bottom: 80px; }

/* ---------- Footer: yellow ---------- */
.site-footer { background: var(--yellow); color: var(--ink); padding-block: 56px 28px; }
.foot { display: grid; grid-template-columns: 1fr auto auto; gap: 40px 72px; }
.foot .wordmark { height: 40px; }
.foot-tag { margin-top: 12px; font-weight: 500; }
.foot h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot li { display: flex; align-items: center; gap: 10px; }
.foot li .icon { width: 18px; height: 18px; }
.foot a { font-weight: 600; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(17, 17, 17, 0.2); font-size: 14px; }

/* ---------- Legal pages (terms, privacy) ---------- */
.doc-wrap { max-width: 820px; }
.doc-head { background: linear-gradient(180deg, var(--hero-top), var(--bg)); padding-block: 56px 8px; }
.doc-date { display: inline-flex; font-weight: 700; font-size: 14px; background: var(--yellow); color: var(--ink); padding: 6px 14px; border-radius: 999px; }
.doc-head h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; margin-top: 18px; }
.doc-intro { font-size: 19px; color: var(--text-2); margin-top: 14px; text-wrap: pretty; }
.doc-body { padding-block: 32px 88px; counter-reset: section; }
.doc-body p, .doc-body li { text-wrap: pretty; }
.toc { background: var(--bg-2); border-radius: 20px; padding: 20px 24px; }
.toc h2 { font-size: 15px; font-weight: 800; }
.toc ol { margin: 10px 0 0; padding-left: 1.5em; columns: 2; column-gap: 40px; font-size: 15px; }
.toc li { break-inside: avoid; padding-block: 3px; }
.toc a { font-weight: 600; text-decoration: none; }
.toc a:hover, .doc-contact a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.doc-body section { margin-top: 48px; scroll-margin-top: 16px; }
/* Section numbers come from CSS, so the headings and the contents list stay in step. */
.doc-body section > h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; }
.doc-body section > h2::before {
  counter-increment: section; content: counter(section);
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--yellow); color: var(--ink); font-size: 16px; letter-spacing: 0;
}
.doc-body section > p, .doc-body section > ul { margin-top: 14px; }
.doc-body section > ul { padding-left: 1.3em; display: grid; gap: 10px; }
.doc-body li::marker { color: var(--text-2); }
.doc-body strong { font-weight: 700; }
.doc-body ul.doc-contact { list-style: none; padding: 20px 24px; border-radius: 20px; background: var(--bg-2); }
.doc-contact li { display: flex; align-items: center; gap: 12px; }
.doc-contact .icon { width: 20px; height: 20px; }
.doc-contact a { font-weight: 700; text-decoration: none; }
.doc-related { margin-top: 56px; padding-top: 28px; border-top: 8px solid var(--bg-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card, .card.is-wide { grid-column: span 2; }
  .card.is-soon { grid-column: span 1; }
  .card.is-wide { flex-direction: column; align-items: stretch; }
  .branches { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .rider-card { grid-template-columns: 1fr 260px; padding: 40px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-block: 48px 80px; text-align: center; }
  .hero h1, .hero .lead { margin-inline: auto; }
  .hero h1 { text-wrap: balance; }
  .hero .cta { justify-content: center; }
  .hero-visual { justify-self: center; padding-left: 0; }
  .trails { left: -130px; width: 150px; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 720px) {
  .foot { grid-template-columns: 1fr; gap: 28px; }
  .rider-card { grid-template-columns: 1fr; text-align: left; }
  .rider-art { max-width: 260px; justify-self: end; margin: -8px -12px -20px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .nav { height: 64px; }
  .wordmark { height: 28px; }
  .hero-grid { padding-block: 36px 64px; }
  .hero .lead { font-size: 17px; }
  .cta .btn { flex: 1 1 100%; }
  .trails { display: none; }
  .phone { width: 300px; }
  .section { padding-block: 56px 8px; }
  .sub { font-size: 17px; }
  .bento { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .card, .card.is-wide, .card.is-soon { grid-column: span 1; }
  .card { min-height: 280px; padding: 22px; border-radius: 26px; }
  .card.is-soon { min-height: 190px; }
  .card h3 { font-size: 25px; }
  .card p { font-size: 15.5px; }
  .card-text { max-width: 100%; }
  .card-art { width: 70%; height: 50%; }
  .branches { gap: 8px; }
  .branch { padding: 10px 6px 8px; border-radius: 18px; }
  .branch svg { height: 74px; }
  .branch figcaption { font-size: 12px; }
  .features { grid-template-columns: 1fr; gap: 10px; }
  .features li { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: start; padding: 18px; }
  .features li h3 { margin-top: 0; }
  .features li p { grid-column: 2; }
  .feature-icon { grid-row: span 2; }
  .rider-card { padding: 28px 22px; border-radius: 28px; }
  .doc-head { padding-block: 40px 4px; }
  .doc-intro { font-size: 17px; }
  .toc { padding: 18px 20px; }
  .toc ol { columns: 1; }
  .doc-body section > h2 { font-size: 21px; }
  .doc-body ul.doc-contact { padding: 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
