/*
 * PotentialOS website - follows the app's "Alpenglas" design
 * (ImproveHub-Health docs/KONZEPT_DESIGN.md): the page lies like frosted
 * glass over the mountain landscape, headlines in Instrument Serif with a
 * gold italic accent, body text in Manrope, ink purple as primary colour.
 */

:root {
  --bg: #f3f0f4;
  --surface: #fcfbf8;
  --glass: rgba(255, 253, 251, 0.74);
  --glass-strong: rgba(255, 253, 251, 0.88);
  --glass-edge: rgba(255, 255, 255, 0.7);
  --ink: #241a30;
  --ink-soft: #5b5266;
  --accent: #4a315e;
  --accent-2: #6b4a87;
  --accent-soft: #eee4f4;
  --gold: #9b7427;
  --gold-light: #e2c07a;
  --gold-soft: #fff1d2;
  --border: #e8dced;
  --night: #1d2d52;
  --night-2: #2a4560;
  --night-3: #4b6a74;
  --danger-bg: #fbeee3;
  --danger-ink: #8a4a12;
  --shadow: 0 10px 30px rgba(60, 33, 88, 0.1);
  --max-width: 760px;
  --wide: 1140px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  /* Landscape on top, fading into the milky veil the content sits on. */
  background:
    linear-gradient(180deg, rgba(243, 240, 244, 0) 0, rgba(243, 240, 244, 0.55) 260px, var(--bg) 620px),
    url("assets/landscape_day.webp") center top / 100% auto no-repeat,
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header: floating glass bar like the app's navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 16px 0;
}

.site-header__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 10px 14px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 252, 248, 0.62);
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-block;
  background: url("assets/icon.svg") center / cover no-repeat, var(--accent);
  box-shadow: 0 2px 6px rgba(66, 129, 94, 0.3);
}

.brand__name {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

/* The one way into the app - the App Store. */
.site-nav a.site-nav__cta {
  color: #fff;
  background: var(--night);
  margin-left: 4px;
}

.site-nav a.site-nav__cta:hover,
.site-nav a.site-nav__cta:focus-visible {
  color: #fff;
  background: var(--accent);
}

/* ---------- Text pages (legal etc.): one glass card ---------- */

main {
  max-width: var(--max-width);
  margin: 56px auto 80px;
  padding: 44px 40px 48px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.9rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

h1 em,
h2 em,
.accent {
  font-style: italic;
  color: var(--gold);
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.12;
  margin: 44px 0 12px;
  color: var(--ink);
}

h3 {
  font-size: 1.04rem;
  font-weight: 700;
  margin: 26px 0 8px;
}

p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.lede {
  font-size: 1.12rem;
  color: var(--ink);
  margin-bottom: 28px;
}

.stamp {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: -2px;
  margin-bottom: 32px;
}

ul {
  color: var(--ink-soft);
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}

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

.card {
  background: var(--glass-strong);
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
  padding: 22px 24px;
  margin: 18px 0;
  box-shadow: 0 4px 16px rgba(60, 33, 88, 0.06);
}

.card--pill {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: none;
  margin-bottom: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 20px 0 8px;
}

.grid .card {
  margin: 0;
}

.grid h3 {
  margin-top: 0;
}

.grid p {
  margin: 0;
  font-size: 0.94rem;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

/* Same as the app's GradientButton. */
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 18px rgba(74, 49, 94, 0.3);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.5);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn--light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.placeholder {
  background: var(--danger-bg);
  color: var(--danger-ink);
  border-radius: 8px;
  padding: 1px 8px;
  font-weight: 600;
  font-size: 0.92em;
}

.note {
  font-size: 0.92rem;
  padding: 16px 18px;
  background: var(--gold-soft);
  border-radius: 18px;
  color: var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  vertical-align: top;
}

th {
  color: var(--ink);
  font-weight: 700;
}

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

.site-footer {
  padding: 30px 20px 44px;
  background: var(--night);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  margin-right: 16px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-light);
}

/* =====================================================================
 * Start page
 * ===================================================================== */

.home main {
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home .site-header {
  position: fixed;
  left: 0;
  right: 0;
}

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 14px;
}

.section__intro {
  max-width: 640px;
  font-size: 1.06rem;
  margin-bottom: 44px;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ---------- Hero: night-blue like the store graphics ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 150px 0 0;
  background:
    radial-gradient(1100px 600px at 85% 20%, rgba(75, 106, 116, 0.75), transparent 60%),
    linear-gradient(135deg, var(--night) 0%, #22385a 55%, var(--night-2) 100%);
}

/* The app's pulse line, large and faint, behind the headline. */
.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 240'%3E%3Cpath d='M-20 200h420l70-110 90 140 70-90h600' fill='none' stroke='white' stroke-opacity='.045' stroke-width='14' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center bottom / 100% auto no-repeat;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
}

.hero__text {
  padding-bottom: 110px;
}

.hero .card--pill {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-light);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.98;
  color: #fff;
  margin-bottom: 26px;
}

.hero h1 em {
  color: var(--gold-light);
}

.hero .lede {
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  font-size: 1.15rem;
}

.hero__meta {
  margin-top: 26px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero__phone {
  justify-self: center;
  width: min(360px, 82vw);
  margin-bottom: -150px;
  transform: rotate(4deg);
}

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  border-radius: 46px;
  padding: 11px;
  background: #121826;
  box-shadow:
    0 0 0 1.5px #2b3242,
    0 30px 60px rgba(14, 18, 38, 0.35),
    0 8px 18px rgba(14, 18, 38, 0.25);
}

.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 30%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #121826;
  z-index: 1;
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  object-position: top;
  border-radius: 36px;
  background: #cfd8e6;
}

/* ---------- Highlights below the hero ---------- */

.highlights {
  padding-top: 72px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  background: var(--glass-strong);
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
  padding: 22px 22px 20px;
  box-shadow: 0 4px 16px rgba(60, 33, 88, 0.06);
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Feature rows (screenshot + text) ---------- */

.feature {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  align-items: center;
  padding: 44px 0;
}

.feature + .feature {
  border-top: 1px solid var(--border);
}

.feature--flip {
  grid-template-columns: 1fr 300px;
}

.feature--flip .feature__shot {
  order: 2;
}

.feature__shot {
  width: 100%;
  max-width: 300px;
  justify-self: center;
}

.feature h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1.08;
  margin: 0 0 14px;
}

.feature p {
  font-size: 1.02rem;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.ticks li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 10px;
  color: var(--ink);
}

/* Round tick like the checklist in the app. */
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ---------- Category icon badges (lib/design/category_style.dart) ---------- */

.badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--c, var(--accent));
  background: var(--bgc, var(--accent-soft));
}

.badge svg {
  width: 24px;
  height: 24px;
}

.c-training { --c: #b5602f; --bgc: #f7e2d3; }
.c-supplement { --c: #4a8f5c; --bgc: #e0f2e3; }
.c-sleep { --c: #6a5b96; --bgc: #e8e3f5; }
.c-activity { --c: #2f8fa0; --bgc: #dcf0f3; }
.c-recovery { --c: #2fa07a; --bgc: #dcf3ea; }
.c-heart { --c: #b14d63; --bgc: #f7e0e5; }
.c-nutrition { --c: #6c8f2a; --bgc: #eef4dc; }
.c-gold { --c: #9b7427; --bgc: #fff1d2; }
.c-plan { --c: #4a315e; --bgc: #eee4f4; }

/* ---------- Gallery ---------- */

.gallery-section {
  background:
    linear-gradient(180deg, rgba(29, 45, 82, 0.92), rgba(29, 45, 82, 0.96)),
    url("assets/landscape_night.webp") center / cover no-repeat;
  color: #fff;
}

.gallery-section h2 {
  color: #fff;
}

.gallery-section h2 em {
  color: var(--gold-light);
}

.gallery-section .section__intro {
  color: rgba(255, 255, 255, 0.75);
}

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 230px;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 24px 30px;
  margin: 0 -24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.gallery figure {
  margin: 0;
  scroll-snap-align: start;
}

.gallery .phone {
  border-radius: 36px;
  padding: 8px;
}

.gallery .phone::before {
  top: 15px;
  height: 16px;
}

.gallery .phone img {
  border-radius: 29px;
}

.gallery figcaption {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.gallery figcaption strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 2px;
}

/* ---------- More features grid ---------- */

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

.tile {
  background: var(--glass-strong);
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(60, 33, 88, 0.06);
}

.tile h3 {
  margin: 16px 0 6px;
  font-size: 1.08rem;
}

.tile p {
  margin: 0;
  font-size: 0.94rem;
}

/* ---------- Use cases ---------- */

.usecases-section {
  background: linear-gradient(180deg, var(--bg), #ece5f0);
}

.usecases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.usecase {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--glass-strong);
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 4px 16px rgba(60, 33, 88, 0.06);
}

.usecase h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.1;
  margin: 0 0 8px;
}

.usecase .quote {
  font-style: italic;
  color: var(--ink);
  margin-bottom: 10px;
}

.usecase p {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.usecase .plan {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- Data sources / computed values ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panel {
  background: var(--glass-strong);
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  padding: 30px 30px 18px;
  box-shadow: var(--shadow);
}

.panel h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  margin: 0 0 6px;
}

.panel table {
  margin-bottom: 8px;
}

.panel tr:last-child td {
  border-bottom: none;
}

.fineprint {
  font-size: 0.86rem;
  margin-top: 18px;
}

/* ---------- Privacy principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.principle {
  border-top: 2px solid var(--gold-light);
  padding-top: 16px;
}

.principle h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.principle p {
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- App Store: badge, icon, QR ---------- */

.cta-row--store {
  align-items: center;
}

/* Apple's badge as provided - only scaled, with its clear space. */
.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  transition: transform 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
}

.store-badge img {
  height: 52px;
  width: auto;
}

.download__card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 36px 40px;
  border-radius: 32px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
}

.download__icon {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  box-shadow: 0 8px 22px rgba(36, 26, 48, 0.18);
}

.download__text h2 {
  margin: 6px 0 8px;
}

.download__text p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

.download__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.download__qr img {
  width: 148px;
  height: 148px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
}

/* ---------- Closing ---------- */

.closing {
  position: relative;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(29, 45, 82, 0.55), rgba(29, 45, 82, 0.92)),
    url("assets/landscape_night.webp") center 30% / cover no-repeat;
  text-align: center;
}

.closing h2 {
  color: #fff;
}

.closing h2 em {
  color: var(--gold-light);
}

.closing p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.closing .cta-row {
  justify-content: center;
}

.closing .note {
  max-width: 620px;
  margin: 30px auto 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .download__card {
    grid-template-columns: auto 1fr;
  }

  .download__qr {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__text {
    padding-bottom: 20px;
  }

  .hero__phone {
    width: min(300px, 72vw);
    transform: none;
  }

  .stats,
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }

  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature,
  .feature--flip {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature--flip .feature__shot {
    order: 0;
  }

  .feature__shot {
    max-width: 260px;
  }

  .usecases,
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .download__card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 18px;
    padding: 28px 20px;
  }

  .site-header {
    padding: 10px 10px 0;
  }

  .site-header__inner {
    border-radius: 24px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 12px;
    gap: 6px;
  }

  .site-nav {
    justify-content: center;
  }

  .site-nav a {
    font-size: 0.84rem;
    padding: 4px 9px;
  }

  main {
    margin: 32px 12px 56px;
    padding: 30px 20px 34px;
    border-radius: 24px;
  }

  h1 {
    font-size: 2.3rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .wrap {
    padding: 0 16px;
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    padding-top: 170px;
  }

  .highlights {
    padding-top: 48px;
  }

  .stats,
  .tiles,
  .principles {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-auto-columns: 200px;
    margin: 0 -16px;
    padding: 10px 16px 30px;
  }

  .usecase {
    flex-direction: column;
    padding: 22px;
  }

  .panel {
    padding: 24px 18px 12px;
  }

  th, td {
    padding: 9px 6px;
  }

  /* Wide legal tables scroll sideways instead of leaving the card. */
  main:not(.ks) table {
    display: block;
    overflow-x: auto;
  }

  main:not(.ks) th,
  main:not(.ks) td {
    min-width: 140px;
  }
}

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

  .btn {
    transition: none;
  }
}

/* =====================================================================
 * Plans page (plaene.html, cards from tools/build_plaene.py)
 * ===================================================================== */

.page-hero {
  color: #fff;
  padding: 150px 0 72px;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(75, 106, 116, 0.7), transparent 60%),
    linear-gradient(135deg, var(--night) 0%, #22385a 55%, var(--night-2) 100%);
}

.page-hero .card--pill {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-light);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.6vw, 4.2rem);
  max-width: 820px;
}

.page-hero h1 em {
  color: var(--gold-light);
}

.page-hero .lede {
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin-bottom: 0;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--glass-strong);
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(60, 33, 88, 0.08);
}

.plan-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.plan-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.plan-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.1;
  margin: 0 0 8px;
}

.plan-card p {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.plan-card .btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 20px;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 18px;
}

.chips li {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 11px;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0;
  margin: 32px 0 0;
}

.steps li {
  counter-increment: step;
  margin: 0;
  background: var(--glass-strong);
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
  padding: 24px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
  background: var(--gold-soft);
}

.steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.steps p {
  margin: 0;
  font-size: 0.94rem;
}

/* Plan picture on the use cases of the start page. */
.usecase--image {
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  gap: 0;
}

.usecase--image > img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1.25;
  object-fit: cover;
}

.usecase--image .usecase__body {
  display: flex;
  gap: 18px;
  padding: 22px 26px 26px;
}

.usecase--image .badge {
  margin-top: -46px;
  border: 3px solid var(--surface);
  width: 52px;
  height: 52px;
}

a.plan {
  text-decoration: none;
}

a.plan:hover {
  background: var(--accent);
  color: #fff;
}

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

  .steps {
    grid-template-columns: 1fr;
  }
}

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

  .page-hero {
    padding: 160px 0 52px;
  }

  .usecase--image .usecase__body {
    flex-direction: column;
    padding: 0 22px 22px;
  }
}


/* ================= Warum: gesunde Jahre (DZ31, 04.12.2026) ================= */
.years {
  margin: 0;
  max-width: 760px;
}

.years__bar {
  display: flex;
  gap: 3px;
  height: 22px;
  border-radius: 11px;
  overflow: hidden;
}

.years__healthy,
.years__dot--healthy {
  background: #2f8f5b;
}

.years__limited,
.years__dot--limited {
  background: var(--gold-light);
}

.years__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 12px;
  font-size: 0.95rem;
}

.years__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 8px;
}

.years__sources {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
