/* Roamify website — one stylesheet for the landing pages and the legal
   pages. Colors mirror the app's `AppColors` (lib/core/theme/app_colors.dart)
   and the type is the app's own font, Cairo. */

/* Cairo (SIL Open Font License), self-hosted so no visitor data goes to a
   font CDN. Variable weight 400–800; Latin + Latin Extended (Turkish). */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/cairo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/cairo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f6f4f0;
  --bg-alt: #ecebe5;
  --surface: #fffefb;
  --ink: #18201d;
  --ink-soft: #4b5550;
  --muted: #68736e;
  --line: #d9ddd7;
  --green: #1f6b57;
  --green-deep: #0f3d31;
  --green-bright: #34c08a;
  --coral: #f26a3d;
  --amber: #ffc107;
  --on-dark: #f3f6f4;
  --on-dark-soft: #b9c6c0;
  --shadow: 0 30px 60px -20px rgba(15, 61, 49, 0.35);
  --radius: 28px;
  --max: 1180px;
  --nav-h: 64px;
  --font: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1311;
    --bg-alt: #151b18;
    --surface: #1b211e;
    --ink: #e7ecea;
    --ink-soft: #c3ccc8;
    --muted: #9aa39e;
    --line: #2a332f;
    --green: #34c08a;
    --green-deep: #0b2a22;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

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

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-inline-start: auto;
  list-style: none;
  padding: 0;
  margin-block: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.lang {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

.lang:hover {
  text-decoration: none;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px -10px var(--green);
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    color: #06231b;
  }
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  margin-inline-start: auto;
  background: none;
  border: 0;
  color: var(--ink);
  width: 44px;
  height: 44px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links,
  .nav .btn-sm {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }

  .nav.open .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 18px;
  }
}

/* ---------- Store buttons ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 20px 8px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--bg);
  transition: transform 0.2s ease;
}

.store:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.store svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store small {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  opacity: 0.8;
}

.store strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}

.store[aria-disabled="true"] {
  cursor: default;
}

.store[aria-disabled="true"]:hover {
  transform: none;
}

.soon {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Phone mockup ---------- */

.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  aspect-ratio: 1080 / 2265;
  border-radius: calc(var(--w) * 0.15);
  padding: calc(var(--w) * 0.035);
  background: linear-gradient(145deg, #3a4440, #101513 60%, #2a322f);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  flex: none;
  max-width: 100%;
}

.phone::before {
  /* camera notch */
  content: "";
  position: absolute;
  top: calc(var(--w) * 0.055);
  left: 50%;
  width: calc(var(--w) * 0.03);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0b0f0d;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
  transform: translateX(-50%);
  z-index: 2;
}

.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--w) * 0.12);
  overflow: hidden;
  background: #f6f4f0;
}

.phone .screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.phone .screen img:not(.active) {
  opacity: 0;
  transform: scale(1.03);
}

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

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 72px);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto;
  height: 900px;
  background:
    radial-gradient(40% 40% at 50% 20%, color-mix(in srgb, var(--green) 22%, transparent), transparent 70%),
    radial-gradient(25% 25% at 78% 30%, color-mix(in srgb, var(--coral) 16%, transparent), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.hero h1 {
  position: relative;
  margin-top: 18px;
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 800;
}

.hero h1 .grad {
  background: linear-gradient(100deg, var(--green) 10%, var(--green-bright) 50%, var(--coral) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  position: relative;
  max-width: 640px;
  margin: 22px auto 0;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--ink-soft);
}

.hero .stores {
  position: relative;
  justify-content: center;
  margin-top: 34px;
}

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 28px;
  margin-top: 64px;
  height: clamp(460px, 62vw, 700px);
  perspective: 1400px;
}

.hero-stage .phone {
  will-change: transform;
}

.hero-stage .phone.main {
  --w: clamp(240px, 26vw, 330px);
  z-index: 2;
  transform: translateY(calc(var(--p, 0) * -40px)) rotateX(calc((1 - var(--p, 0)) * 18deg));
  transform-origin: bottom center;
}

.hero-stage .phone.side {
  --w: clamp(190px, 21vw, 270px);
  opacity: calc(0.5 + var(--p, 0) * 0.5);
}

.hero-stage .phone.left {
  transform: translateX(calc((1 - var(--p, 0)) * 90px)) translateY(40px) rotate(calc(var(--p, 0) * -6deg));
}

.hero-stage .phone.right {
  transform: translateX(calc((1 - var(--p, 0)) * -90px)) translateY(40px) rotate(calc(var(--p, 0) * 6deg));
}

@media (max-width: 720px) {
  .hero-stage .phone.side {
    display: none;
  }
}

/* ---------- Sections ---------- */

section {
  position: relative;
}

.section {
  padding-block: clamp(80px, 12vw, 160px);
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin-top: 12px;
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 800;
}

.section-head p {
  margin-top: 18px;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-soft);
}

/* Statement: words light up as the section scrolls past. */

.statement {
  padding-block: clamp(90px, 14vw, 180px);
}

.statement p {
  max-width: 980px;
  margin-inline: auto;
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-align: center;
}

.statement .w {
  color: color-mix(in srgb, var(--ink) 18%, transparent);
  transition: color 0.35s ease;
}

.statement .w.on {
  color: var(--ink);
}

.statement .w.on.hl {
  color: var(--green);
}

/* Story: a sticky phone whose screen follows the step being read. */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.story-steps {
  display: flex;
  flex-direction: column;
}

.step {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.28;
  transition: opacity 0.5s ease;
}

.step.active {
  opacity: 1;
}

.step .num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.step h3 {
  margin-top: 18px;
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 800;
}

.step p {
  margin-top: 14px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 460px;
}

.step ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.step li {
  display: flex;
  gap: 10px;
  color: var(--ink-soft);
}

.step li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 16%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6b57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.story-visual {
  position: sticky;
  top: calc(var(--nav-h) + 4vh);
  height: calc(100vh - var(--nav-h) - 8vh);
  display: grid;
  place-items: center;
}

.story-visual .phone {
  --w: min(330px, 34vh);
}

.story-visual .glow {
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 28%, transparent), transparent 65%);
  filter: blur(10px);
}

@media (max-width: 860px) {
  .story {
    grid-template-columns: 1fr;
  }

  .story-visual {
    display: none;
  }

  .step {
    min-height: auto;
    padding-block: 36px;
    opacity: 1;
  }

  .step .phone {
    --w: min(280px, 72vw);
    margin: 28px auto 0;
  }
}

@media (min-width: 861px) {
  .step .phone {
    display: none;
  }
}

/* Bento grid of features. */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.tile {
  position: relative;
  grid-column: span 2;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(15, 61, 49, 0.45);
}

.tile.wide {
  grid-column: span 3;
}

.tile.full {
  grid-column: span 6;
}

.tile.dark {
  background: linear-gradient(150deg, var(--green-deep), #134c3d);
  color: var(--on-dark);
  border-color: transparent;
}

.tile.dark p {
  color: var(--on-dark-soft);
}

.tile .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--green) 14%, transparent);
  color: var(--green);
}

.tile.dark .icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--green-bright);
}

.tile .icon svg {
  width: 26px;
  height: 26px;
}

.tile h3 {
  margin-top: 22px;
  font-size: 24px;
  font-weight: 800;
}

.tile p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.tile .badge {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--coral) 16%, transparent);
  color: var(--coral);
}

.tile-media {
  display: flex;
  gap: 24px;
  align-items: center;
}

.tile-media .phone {
  --w: 190px;
  margin-bottom: -120px;
}

@media (max-width: 960px) {
  .tile,
  .tile.wide {
    grid-column: span 3;
  }
}

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

  .tile,
  .tile.wide,
  .tile.full {
    grid-column: auto;
  }

  .tile-media {
    flex-direction: column;
    align-items: flex-start;
  }

  .tile-media .phone {
    margin: 10px auto -140px;
  }
}

/* Category marquee. */

.marquee {
  overflow: hidden;
  padding-block: 8px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee + .marquee .marquee-track {
  animation-direction: reverse;
  animation-duration: 44s;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.chip span {
  font-size: 22px;
}

/* Creator section (dark). */

.creator {
  background: radial-gradient(80% 60% at 80% 10%, #1d6b55, var(--green-deep) 60%);
  color: var(--on-dark);
  border-radius: clamp(0px, 4vw, 48px);
  margin-inline: clamp(0px, 2vw, 24px);
  overflow: hidden;
}

.creator .section-head p,
.creator .muted {
  color: var(--on-dark-soft);
}

.creator .eyebrow {
  color: var(--green-bright);
}

.creator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.wizard {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.wizard li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--green-bright);
  color: #06231b;
  font-size: 18px;
}

.wizard h3 {
  font-size: 20px;
  font-weight: 800;
}

.wizard p {
  margin-top: 4px;
  color: var(--on-dark-soft);
  font-size: 16px;
}

.creator .phone {
  --w: min(320px, 70vw);
  margin-inline: auto;
}

@media (max-width: 860px) {
  .creator-grid {
    grid-template-columns: 1fr;
  }
}

/* Trust row. */

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trust div {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.trust h3 {
  font-size: 20px;
  font-weight: 800;
}

.trust p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 16px;
}

@media (max-width: 860px) {
  .trust {
    grid-template-columns: 1fr;
  }
}

/* About. */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.about .big {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.about .cols {
  display: grid;
  gap: 26px;
}

.about h3 {
  font-size: 20px;
  font-weight: 800;
}

.about .cols p {
  margin-top: 6px;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* FAQ. */

.faq {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 24px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 18px;
  font-weight: 700;
  font-size: 18px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 26px;
  font-weight: 400;
  color: var(--green);
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding-bottom: 20px;
  color: var(--ink-soft);
}

/* Download CTA. */

.cta {
  text-align: center;
}

.cta-card {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 24px;
  border-radius: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(52, 192, 138, 0.35), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(242, 106, 61, 0.35), transparent 60%),
    var(--green-deep);
  color: var(--on-dark);
  overflow: hidden;
}

.cta-card img.logo {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5);
}

.cta-card h2 {
  margin-top: 28px;
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 800;
}

.cta-card p {
  margin: 16px auto 0;
  max-width: 560px;
  color: var(--on-dark-soft);
  font-size: 19px;
}

.cta-card .stores {
  justify-content: center;
  margin-top: 32px;
}

.cta-card .store {
  background: #fff;
  color: #0f3d31;
}

.cta-card .soon {
  color: var(--on-dark-soft);
}

/* Contact. */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
}

.contact-cards {
  display: grid;
  gap: 14px;
  align-content: start;
}

.contact-card {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-card h3 {
  font-size: 17px;
  font-weight: 800;
}

.contact-card p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 16px;
}

.contact-card a {
  font-weight: 700;
  word-break: break-word;
}

.form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form .hint {
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

/* Footer. */

.footer {
  margin-top: 40px;
  padding-block: 56px 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer h4 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--ink);
}

.footer .legal-line {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}

.reveal.zoom {
  transform: scale(0.94);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Without JS nothing is hidden. */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.zoom {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }

  .hero-stage .phone {
    transform: none !important;
    opacity: 1 !important;
  }

  .statement .w {
    color: var(--ink);
  }
}

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

.doc {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 80px;
}

.doc .wrap {
  max-width: 820px;
}

.doc h1 {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
}

.doc .updated {
  margin-top: 10px;
  color: var(--muted);
}

.doc h2 {
  margin-top: 44px;
  font-size: 26px;
  font-weight: 800;
}

.doc h3 {
  margin-top: 26px;
  font-size: 20px;
  font-weight: 800;
}

.doc p,
.doc li {
  color: var(--ink-soft);
}

.doc p {
  margin-top: 14px;
}

.doc ul,
.doc ol {
  margin: 14px 0 0;
  padding-inline-start: 22px;
  display: grid;
  gap: 6px;
}

.doc table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 15px;
}

.doc th,
.doc td {
  text-align: start;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.doc th {
  color: var(--ink);
}

.table-scroll {
  overflow-x: auto;
}

.doc .note {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--bg-alt);
}

.toc {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.toc ol {
  margin-top: 8px;
}

/* Fields the owner still has to fill in before launch. */
.todo {
  background: color-mix(in srgb, var(--amber) 35%, transparent);
  color: var(--ink);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 700;
}

/* Account deletion + route fallback pages. */

.panel {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.panel .form {
  padding: 0;
  border: 0;
  background: none;
}

.status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
}

.status.error {
  background: color-mix(in srgb, #e74c3c 14%, transparent);
  color: #c0392b;
}

.status.ok {
  background: color-mix(in srgb, var(--green) 14%, transparent);
  color: var(--green);
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn-danger {
  background: #c0392b;
  color: #fff;
}

.btn-google {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.route-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.route-card .cover {
  aspect-ratio: 16 / 10;
  background: var(--bg-alt) center / cover no-repeat;
}

.route-card .body {
  padding: 26px;
}

.route-card h1 {
  font-size: clamp(28px, 4vw, 40px);
}

.route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 600;
}
