/* ==========================================================================
   TeenBide — Global stylesheet
   Design tokens, layout primitives, shared header/footer, page sections.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --primary: #009ed6; /* brand blue — sampled from the logo */
  --primary-dark: #0079a8;
  --primary-soft: #e3f4fc;
  --green: #88bc45; /* brand green — sampled from the logo */
  --blue: #009ed6; /* brand blue — nav active underline */
  --grey-soft: #f1f1f5; /* light grey — nav hover background */

  --ink: #17162e;
  --ink-soft: #4b4a66;
  --muted: #7a7995;

  --bg: #ffffff;
  --bg-soft: #f1f7fc;
  --line: #ddeef7;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 6px 18px rgba(23, 22, 46, 0.06);
  --shadow: 0 18px 40px rgba(23, 22, 46, 0.1);
  --shadow-lg: 0 30px 70px rgba(23, 22, 46, 0.16);

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --header-h: 104px;
  --logo-h: 65px; /* shared logo height (header); the footer chip adds padding */
  --brand-h: 81px; /* header brand block: logo (65) + 4px gap + tagline line (12) */
  --container: 1140px;
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section--soft {
  background: var(--bg-soft);
}

/* The CTA band sits in a tightly padded section so the gradient card is not
   surrounded by large empty space above and below (top padding is smaller
   because the previous block's own bottom margin adds ~16.5px) */
.section--cta {
  padding-top: 8px;
  padding-bottom: 16px;
}

/* The section directly above the CTA band gets a tight bottom padding too,
   so the empty space above the card matches the space below (~48px).
   Class-based (not :has()) so it works in every browser and webview */
.section--pre-cta {
  padding-bottom: 24px;
}

/* Our Story page: the main story and the Postscript sit close together
   (~64px apart) instead of the default double section padding */
.section--story {
  padding-bottom: 24px;
}

.section--story + .section {
  padding-top: 24px;
}

/* Long-form narrative text (e.g. Our Story) — comfortable reading column */
.story {
  max-width: 750px;
  margin: 0 auto;
}

.story p {
  line-height: 1.85;
}

/* Postscript (Our Story page): image sits above the heading, framed like the hero media */
.story-media {
  margin-bottom: 32px;
}

.story-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Privacy policy page — long-form legal text (text only, no images) */
.policy {
  max-width: 860px;
  margin: 0 auto;
}

.policy h2 {
  font-size: 1.3rem;
  margin: 2.2em 0 0.5em;
}

.policy h2:first-child {
  margin-top: 0;
}

.policy p {
  line-height: 1.85;
}

.policy ul {
  list-style: disc;
  margin: 0 0 1em;
  padding-left: 22px;
}

.policy li {
  line-height: 1.85;
}

.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 22px;
  font-size: 0.95rem;
}

.policy th,
.policy td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.policy th {
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
}

.policy td {
  color: var(--ink-soft);
}

/* Wide tables can scroll sideways on small screens instead of breaking
   the page layout */
.table-scroll {
  overflow-x: auto;
}

.table-scroll--wide table {
  min-width: 560px;
}

.policy-closing {
  margin-top: 30px;
  color: var(--ink);
}

/* FAQ page — bold question lines sit tight above their answers */
.faq-q {
  color: var(--ink);
  margin-bottom: 4px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  color: var(--muted);
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 158, 214, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 158, 214, 0.42);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Text + image split block */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split--reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.split-media--tilt img {
  transform: rotate(-1.5deg);
}

.split-media::after {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 140px;
  height: 140px;
  border-radius: 32px;
  background: radial-gradient(circle at 30% 30%, var(--green), transparent 70%);
  opacity: 0.35;
  z-index: -1;
}

.check-list {
  margin: 26px 0 30px;
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 38px;
  font-weight: 500;
  color: var(--ink);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2e26' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.97rem;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--primary-soft);
  color: var(--primary);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-icon--mint {
  background: #edf5dd;
  color: #5f8f28;
}

.card-icon--sun {
  background: #f1f7e3;
  color: #6e9a2b;
}

/* Home value-point banners: full-width rows echoing the hero layout */
.feature-rows {
  display: grid;
  gap: 96px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}

/* Stacked variant: centered copy above a centered image (Real-World Financial Life) */
.feature-row--stacked {
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: center;
}

.feature-row--stacked .feature-copy p {
  max-width: 80vw;
  margin-inline: auto;
}

.feature-row--stacked .feature-visual {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  min-height: 0;
}

.feature-row--stacked .feature-visual img {
  position: static;
  width: 100%;
  height: auto;
}

.feature-copy h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.feature-copy p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0;
  max-width: 520px;
}

.feature-copy p + p {
  margin-top: 1em;
}

/* Three panel skins keep the eight banners from feeling monotonous:
   blue (default), green (-mint) and lime (-sun) */
.feature-visual {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background:
    radial-gradient(340px 240px at 18% 8%, rgba(0, 158, 214, 0.18), transparent 62%),
    radial-gradient(320px 240px at 88% 94%, rgba(136, 188, 69, 0.12), transparent 64%),
    linear-gradient(150deg, #ddf2fb, #f7fcff 72%);
}

.feature-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(0, 158, 214, 0.1);
}

.feature-visual svg {
  position: relative;
  width: 80px;
  height: 80px;
  stroke-width: 1.5;
  color: var(--primary);
}

/* The visual itself is a JPG image (assets/img/feature-*.jpg) filling the frame */
.feature-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Green skin: green field with a ring decoration */
.feature-visual--mint {
  background:
    radial-gradient(360px 260px at 84% 10%, rgba(136, 188, 69, 0.22), transparent 64%),
    radial-gradient(300px 240px at 10% 92%, rgba(0, 158, 214, 0.1), transparent 62%),
    linear-gradient(150deg, #ebf4d9, #fafdf3 72%);
}

.feature-visual--mint::before {
  width: 190px;
  height: 190px;
  background: transparent;
  border: 20px solid rgba(136, 188, 69, 0.16);
}

.feature-visual--mint svg {
  color: #5f8f28;
}

/* Lime skin: lime field with a tilted rounded-square decoration */
.feature-visual--sun {
  background:
    radial-gradient(360px 260px at 50% 0%, rgba(150, 195, 80, 0.2), transparent 66%),
    radial-gradient(280px 220px at 92% 90%, rgba(136, 188, 69, 0.12), transparent 62%),
    linear-gradient(160deg, #f4f8de, #fdfef6 72%);
}

.feature-visual--sun::before {
  border-radius: 44px;
  transform: translate(-50%, -50%) rotate(14deg);
  background: rgba(136, 188, 69, 0.1);
}

.feature-visual--sun svg {
  color: #6e9a2b;
}

/* Numbered steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* How it Works page: the ten steps read best as an even two-column grid */
.steps--two {
  grid-template-columns: repeat(2, 1fr);
}

.step {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--primary);
  opacity: 0.22;
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}

.step p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.97rem;
}

/* Values grid (About page) */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.value {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}

.value h4 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.value p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Timeline (Our Story page) */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--primary), var(--green));
  border-radius: 2px;
  opacity: 0.35;
}

.timeline-item {
  position: relative;
  padding: 0 0 34px 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--primary);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-year {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.timeline-item p {
  margin: 4px 0 0;
  color: var(--muted);
}

/* Placeholder zone for content that will be added later */
.placeholder {
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 54px 40px;
  text-align: center;
  background: repeating-linear-gradient(
    -45deg,
    #fff,
    #fff 14px,
    var(--bg-soft) 14px,
    var(--bg-soft) 28px
  );
}

.placeholder h3 {
  margin-bottom: 8px;
}

.placeholder p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 480px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--primary), #33b5e5 55%, var(--green));
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 10px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 520px;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: none;
  flex-shrink: 0;
}

.cta-band .btn-primary:hover {
  background: var(--ink);
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(23, 22, 46, 0.06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* The nav sits lower than centre so its bottom edge lines up with the
   bottom of the brand block (the tagline under the logo). */
.main-nav {
  align-self: flex-end;
  margin-bottom: calc((var(--header-h) - var(--brand-h)) / 2);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: var(--logo-h);
  width: auto;
}

/* Header brand: the tagline stacks directly under the logo; the flex column
   also keeps the two lines tight together. */
.site-header .brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.brand-tagline {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
}

/* The footer sits on a dark background while the shared logo file has a
   light background, so the same file is shown on a white rounded chip
   there. One logo file drives both header and footer. */
.brand--light .brand-logo {
  height: calc(var(--logo-h) + 20px);
  padding: 10px 18px;
  background: #fff;
  border-radius: 14px;
}

/* The brand link is inline-flex; inside the block-level footer column its
   text baseline would add extra space under the logo. Block-level flex
   keeps the logo → badges → socials gaps at an exact 26px. */
.footer-brand .brand {
  display: flex;
  width: max-content;
}

/* Logo + the two text links share one row; on narrow screens the links
   drop below the logo instead of overflowing */
.footer-logo-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

/* The stacked plain-text links to the right of the footer logo:
   Privacy Policy, FAQ and the contact email */
.footer-quick-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-quick-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-quick-links a:hover,
.footer-quick-links a:focus-visible {
  color: #fff;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  --nav-pad-x: 16px;
  position: relative;
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink-soft);
  padding: 10px var(--nav-pad-x);
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link.is-active {
  color: var(--ink);
  background: transparent;
  font-weight: 600;
}

/* Hover / keyboard focus: light grey pill with blue text. Placed after
   .is-active so it also applies to the current page's item. */
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--blue);
  background: var(--grey-soft);
}

/* Blue underline under the text of the current page's nav item. */
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: var(--nav-pad-x);
  right: var(--nav-pad-x);
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}

/* --------------------------------------------------------------------------
   5. Home hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 26px;
  /* Tinted to match the hero image palette (periwinkle field + azure accents) */
  background:
    radial-gradient(720px 460px at 88% 8%, rgba(140, 138, 228, 0.20), transparent 62%),
    radial-gradient(820px 520px at 6% 4%, rgba(0, 144, 240, 0.13), transparent 60%),
    #efebfc;
}

/* Stacked layout: centered headline block above a centered image */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.hero-copy {
  text-align: center;
}

.hero-copy h1 {
  margin-bottom: 0.3em;
}

.hero-copy .lead {
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 80vw;
  margin: 0 auto;
}

.hero-actions {
  margin-top: 34px;
}

.hero-meta {
  margin-top: 38px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.hero-stat span {
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-media {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   6. Page hero (subpages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 32px;
  background:
    radial-gradient(640px 380px at 90% 0%, rgba(136, 188, 69, 0.14), transparent 60%),
    radial-gradient(720px 420px at 4% 0%, rgba(0, 158, 214, 0.15), transparent 58%),
    var(--bg-soft);
  text-align: center;
}

.page-hero p.lead {
  max-width: 80vw;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

/* Left-aligned variant (How it Works hero intro, aligns with the steps list) */
.page-hero .lead--left {
  text-align: left;
}

/* Our Story hero lead: the statement takes the logo blue (weight stays normal) */
.page-hero .lead span {
  color: var(--primary);
}

/* Hero image below the copy (mirrors the home hero's 8px copy-to-image gap) */
.page-hero .hero-media {
  margin-top: 8px;
}

/* Three-step numbered list inside the page hero (How it Works) */
.page-hero .hero-steps {
  max-width: 80vw;
  margin: 1.1em auto;
  padding-left: 1.5em;
  text-align: left;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.page-hero .hero-steps li {
  margin-bottom: 0.55em;
}

.page-hero .hero-steps li:last-child {
  margin-bottom: 0;
}

.page-hero .hero-steps strong {
  color: var(--ink);
  font-weight: 600;
}

/* Tighten the gap between the page hero and the first section below it */
.page-hero + .section {
  padding-top: 32px;
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 48px 0 0;
  margin-top: 32px;
}

.footer-top {
  padding-bottom: 56px;
}

/* App store badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.store-badge {
  display: inline-block;
  border-radius: 9px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.store-badge svg {
  height: 46px;
  width: auto;
}

.store-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

/* Social icons */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 24px 36px;
  font-size: 0.8rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom p {
  margin: 0 0 12px;
  max-width: 920px;
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   8. Reveal animation
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split--reverse .split-media {
    order: 0;
  }

  .card-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --logo-h: 57px;
    --brand-h: 73px; /* logo (57) + 4px gap + tagline line (12) */
  }

  .nav-list {
    gap: 2px;
  }

  .nav-link {
    --nav-pad-x: 12px;
    padding: 9px var(--nav-pad-x);
    font-size: 0.92rem;
  }
}

/* Narrow screens: stack the value-point banners (copy above visual) */
@media (max-width: 860px) {
  .feature-rows {
    gap: 64px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-row--stacked {
    gap: 16px;
  }

  .feature-visual {
    min-height: 220px;
  }

  .feature-copy p {
    max-width: none;
  }
}

/* Below ~820px the five nav items no longer fit on one row next to the
   logo and tagline, so the nav wraps to its own row under the brand. */
@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
    padding-top: 12px;
    padding-bottom: 10px;
    row-gap: 4px;
  }

  .main-nav {
    width: 100%;
    align-self: auto;
    margin-bottom: 0;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav-link {
    --nav-pad-x: 10px;
    padding: 8px var(--nav-pad-x);
    font-size: 0.88rem;
  }

  .section {
    padding: 64px 0;
  }

  .section--cta {
    padding-top: 8px;
    padding-bottom: 16px;
  }

  .section--story,
  .section--pre-cta {
    padding-bottom: 24px;
  }

  .hero {
    padding: 64px 0 18px;
  }

  .card-grid,
  .steps,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    text-align: center;
    padding: 48px 30px;
  }

  .cta-band p {
    max-width: none;
  }

  .hero-meta {
    gap: 24px;
  }

  .split-media img {
    min-height: 240px;
  }

  .page-hero {
    padding: 36px 0 28px;
  }

  .page-hero + .section {
    padding-top: 28px;
  }
}
