/* rivascend.com: the brand's own page (brand/BRAND.md palette, Barlow).
   Built with scripts/build_site.sh; the privacy, data and support pages
   beside it are the app's own (app/web). */

:root {
  --paper: #fbf6ec;
  --card: #ffffff;
  --ink: #0b3e49;
  --teal: #0e5e6f;
  --river: #14798c;
  --mist: #8fc3c8;
  --persimmon: #bf4318;
  --dawn: #ffd2b0;
  --muted: #4d6a70;
  --line: rgba(11, 62, 73, 0.12);
  --shadow: 0 1px 2px rgba(11, 62, 73, 0.06), 0 8px 24px rgba(11, 62, 73, 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a2a31;
    --card: #0f3540;
    --ink: #eef4f2;
    --teal: #8fc3c8;
    --river: #8fc3c8;
    --mist: #3f7e88;
    --persimmon: #ff9b6a;
    --dawn: #5a3a2a;
    --muted: #a9c3c5;
    --line: rgba(238, 244, 242, 0.14);
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.7 "Barlow", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

a { color: var(--river); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; }
/* One word in one colour: "Ascend" is never set apart (brand/BRAND.md). */
.wordmark { font-size: 24px; letter-spacing: 0.01em; color: var(--teal); }
.wordmark b { font-weight: 600; }
.wordmark span { font-weight: 400; }
.lang { font-size: 15px; color: var(--muted); text-decoration: none; }
.lang:hover { color: var(--ink); }

/* Hero */
.hero { padding: 40px 0 8px; text-align: center; }
.descriptor {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--persimmon);
}
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 60px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero .lead {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--muted);
}
.modes {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--teal);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.pill.soon { background: var(--ink); color: var(--paper); }
.pill.ghost { border: 1.5px solid var(--line); color: var(--ink); }
.pill.ghost:hover { border-color: var(--teal); }

.scene {
  display: block;
  width: 100%;
  height: auto;
  margin: 36px 0 0;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* Sections */
section { padding: 64px 0 0; }
.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--persimmon);
}
h2 {
  margin: 0;
  font-size: clamp(26px, 4.4vw, 38px);
  line-height: 1.2;
  font-weight: 600;
}
.intro { max-width: 680px; margin: 12px 0 0; color: var(--muted); }

/* From riverside to ridgelines: three stops along one line. */
.journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: stop;
}
.journey li {
  position: relative;
  padding: 22px 20px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.journey .step {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--river);
}
.journey h3 { margin: 4px 0 6px; font-size: 21px; font-weight: 600; }
.journey p { margin: 0; color: var(--muted); font-size: 16px; }
.journey .rise {
  display: block;
  height: 6px;
  margin: 0 0 16px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--mist), var(--river));
}
.journey li:nth-child(2) .rise { background: linear-gradient(90deg, var(--river), var(--teal)); }
.journey li:nth-child(3) .rise { background: linear-gradient(90deg, var(--teal), var(--persimmon)); }

/* What it does */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 0;
}
.feature {
  padding: 22px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.feature svg { width: 28px; height: 28px; color: var(--river); }
.feature h3 { margin: 10px 0 6px; font-size: 19px; font-weight: 600; line-height: 1.35; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

/* Open data, conditions on site */
.note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 18px;
  align-items: start;
  margin: 28px 0 0;
  padding: 22px 22px;
  border-left: 4px solid var(--persimmon);
  background: var(--card);
  border-radius: 0 16px 16px 0;
}
.note svg { width: 26px; height: 26px; color: var(--persimmon); }
.note p { margin: 0; }
.note .small { color: var(--muted); font-size: 15px; }

/* Footer */
footer {
  margin: 80px 0 0;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.links, .social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
footer a { color: var(--ink); text-decoration: none; }
footer a:hover { color: var(--river); text-decoration: underline; }
.legal { margin: 18px 0 0; }

@media (max-width: 860px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 24px; }
  .journey, .features { grid-template-columns: 1fr; }
  .scene { border-radius: 14px; }
  section { padding-top: 48px; }
}
