/* ==========================================================================
   Akeso showcase — style tokens mirror apps/app/src/theme/tokens.ts
   Warm paper, crisp ink, living greens. Hard offset shadows, organic radii.
   ========================================================================== */

:root {
  --cream: #F6F5E8;
  --paper: #FFFDF4;
  --ink: #1F211D;
  --green: #55AE61;
  --green-dark: #2E6F43;
  --green-soft: #DDEED7;
  --lime: #C9F227;
  --blue: #B7DDF4;
  --yellow: #F4E784;
  --coral: #F6A58C;
  --red: #C74D43;

  --surface-muted: #EDEBDD;
  --text: var(--ink);
  --text-secondary: #4E5149;
  --text-muted: #777A70;
  --border: #D7D5C7;

  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-organic: 38px;

  --shadow-card: 0 4px 0 rgba(31, 33, 29, 0.10);
  --shadow-raised: 0 7px 0 rgba(31, 33, 29, 0.16);

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --quick: 180ms;
  --standard: 320ms;
  --reveal: 420ms;
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
}

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

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

a { color: inherit; }

p { margin: 0; }

h1, h2, h3 { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--lime); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
}

section { scroll-margin-top: 96px; }

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 5.75rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.display-sm { font-size: clamp(2.4rem, 6vw, 4.25rem); }

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.kicker-lime { color: var(--lime); }

.section { padding-block: 72px; }

.section-sub {
  max-width: 34rem;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--quick) ease, box-shadow var(--quick) ease;
  box-shadow: var(--shadow-card);
}

.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-raised); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(31, 33, 29, 0.14); }

.btn-lime { background: var(--lime); color: var(--ink); }

.btn-ghost-paper {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
  box-shadow: none;
}

.btn-ghost-paper:hover { background: rgba(255, 253, 244, 0.1); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; box-shadow: none; }

.btn-ico { width: 15px; height: 15px; flex: none; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--standard) ease;
}

.nav.is-scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wordmark-tile {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--green);
  color: var(--paper);
  border: 2px solid var(--ink);
}

.wordmark-tile svg { width: 22px; height: 22px; }

.wordmark-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.nav-links { display: flex; gap: 26px; }

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--quick) ease;
}

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

@media (max-width: 720px) {
  .nav-links { display: none; }
}

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

.hero { padding-top: 28px; }

.hero-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-organic);
  padding: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(120px, 16vw, 170px);
  box-shadow: var(--shadow-raised);
}

.hero-card .display { color: var(--paper); position: relative; z-index: 2; }

.hero-sub {
  position: relative;
  z-index: 2;
  max-width: 30rem;
  margin-top: 22px;
  color: rgba(255, 253, 244, 0.78);
  font-size: 1.08rem;
}

.hero-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.sticker {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 6vw, 84px);
  top: clamp(18px, 4vw, 56px);
  rotate: 7deg;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  box-shadow: var(--shadow-card);
  animation: sticker-in 600ms cubic-bezier(0.2, 1.4, 0.4, 1) both 300ms;
}

@keyframes sticker-in {
  from { opacity: 0; scale: 0.6; rotate: -6deg; }
  to { opacity: 1; scale: 1; rotate: 7deg; }
}

.sticker-static { position: static; display: inline-block; animation: none; }

/* Below ~760px the headline spans the full card width — reserve a band at the
   top of the hero card so the sticker never overlaps the first line. */
@media (max-width: 760px) {
  .hero-card { padding-top: 104px; }
  .sticker { top: 24px; right: 22px; font-size: 0.72rem; padding: 10px 14px; }
}

.hero-mascot {
  position: absolute;
  z-index: 2;
  right: clamp(8px, 5vw, 72px);
  bottom: 26px;
  width: clamp(130px, 20vw, 220px);
  height: auto;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.25));
}

@keyframes float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -12px; rotate: -2deg; }
}

.hero-curve {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(90px, 14vw, 150px);
  opacity: 0.9;
}

#hero-curve-path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 1.6s ease-out forwards 400ms;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Ticker ---------- */

.ticker {
  margin-top: 56px;
  background: var(--ink);
  color: var(--lime);
  overflow: hidden;
  border-block: 2px solid var(--ink);
  transform: rotate(-1deg) scale(1.02);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker-row {
  padding-block: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

/* ---------- The idea ---------- */

.idea-list {
  margin-top: 40px;
  display: grid;
  gap: 14px;
}

.idea-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-card);
  transition: transform var(--quick) ease, box-shadow var(--quick) ease;
}

.idea-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-raised); }

.idea-row p { margin-top: 6px; color: var(--text-secondary); font-size: 0.98rem; }

.num-chip {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
}

.stat-strip {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  background: var(--green-soft);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 26px;
}

.stat + .stat { border-left: 2px solid var(--ink); }

.stat-big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-unit { font-size: 0.5em; margin-left: 2px; }

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 22ch;
}

@media (max-width: 720px) {
  .stat-strip { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 2px solid var(--ink); }
}

/* ---------- Demo video ---------- */

.video-frame {
  margin-top: 40px;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-raised);
  aspect-ratio: 16 / 9;
}

.video-frame.has-video {
  aspect-ratio: 16 / 9;
}

.video-frame iframe,
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.video-placeholder,
.demo-stage {
  height: 100%;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--paper);
  padding: 24px;
  background:
    radial-gradient(circle at 12% 88%, rgba(85, 174, 97, 0.35), transparent 42%),
    radial-gradient(circle at 88% 14%, rgba(201, 242, 39, 0.16), transparent 40%),
    var(--ink);
}

.video-placeholder img { width: clamp(90px, 12vw, 150px); height: auto; }

.video-placeholder-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.video-placeholder-sub {
  color: rgba(255, 253, 244, 0.72);
  font-size: 0.98rem;
  max-width: 34rem;
}

.video-placeholder .sticker-static { margin-top: 12px; rotate: -3deg; }

.demo-stage {
  --spot-x: 70%;
  --spot-y: 30%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(201, 242, 39, 0.2), transparent 28%),
    radial-gradient(circle at 8% 94%, rgba(85, 174, 97, 0.32), transparent 38%),
    var(--ink);
}

.demo-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 253, 244, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 253, 244, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000, transparent 68%);
}

.demo-copy {
  position: absolute;
  z-index: 5;
  top: clamp(24px, 5vw, 58px);
  left: clamp(24px, 5vw, 58px);
  width: min(38%, 390px);
}

.demo-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.demo-live span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(201, 242, 39, 0.12);
  animation: demo-pulse 1.8s ease-out infinite;
}

.demo-copy .video-placeholder-sub { margin-top: 14px; }

.demo-phones {
  position: absolute;
  inset: 0 0 0 38%;
  perspective: 1100px;
}

.demo-phone {
  position: absolute;
  width: clamp(136px, 18vw, 220px);
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--paper);
  border-radius: 25px;
  background: var(--paper);
  padding: 5px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  transform-style: preserve-3d;
  transition: transform 220ms ease, filter 220ms ease;
}

.demo-phone img { border-radius: 18px; }

.demo-phone-left {
  left: 3%;
  top: 15%;
  rotate: -8deg;
  transform: translateY(8%) rotateY(10deg) scale(0.83);
  filter: brightness(0.7);
}

.demo-phone-main {
  z-index: 3;
  left: 32%;
  top: -16%;
  width: clamp(170px, 23vw, 268px);
  rotate: 3deg;
  animation: demo-drift 5s ease-in-out infinite;
}

.demo-phone-right {
  right: -3%;
  top: 13%;
  rotate: 8deg;
  transform: translateY(7%) rotateY(-10deg) scale(0.86);
  filter: brightness(0.72);
}

.demo-stage:hover .demo-phone-left,
.demo-stage:hover .demo-phone-right { filter: brightness(0.92); }

.demo-sticker {
  position: absolute;
  z-index: 6;
  right: 28px;
  bottom: 24px;
  rotate: -4deg;
  padding: 9px 13px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
  box-shadow: var(--shadow-card);
}

@keyframes demo-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

@keyframes demo-pulse {
  70%, 100% { box-shadow: 0 0 0 12px rgba(201, 242, 39, 0); }
}

@media (max-width: 760px) {
  .video-frame { aspect-ratio: 4 / 5; }
  .demo-copy { top: 24px; left: 24px; width: calc(100% - 48px); }
  .demo-copy .video-placeholder-title { font-size: clamp(1.55rem, 8vw, 2.2rem); }
  .demo-copy .video-placeholder-sub { display: none; }
  .demo-phones { inset: 52% 0 0; }
  .demo-phone-left { left: -7%; top: 11%; }
  .demo-phone-main { left: 27%; top: -3%; width: min(47vw, 210px); }
  .demo-phone-right { right: -8%; top: 11%; }
  .demo-sticker { right: 14px; bottom: 14px; }
}

/* ---------- Screens gallery ---------- */

.screens-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.gallery-nav { display: flex; gap: 10px; }

.gallery-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform var(--quick) ease, background var(--quick) ease;
}

.gallery-btn:hover { background: var(--lime); transform: translateY(-2px); }
.gallery-btn:active { transform: translateY(1px); }

.gallery {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  margin-top: 40px;
  padding: 18px max(24px, calc((100vw - 1120px) / 2 + 24px)) 34px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar { display: none; }

.shot {
  flex: none;
  width: min(300px, 76vw);
  margin: 0;
  scroll-snap-align: center;
}

.shot:nth-child(odd) .phone { rotate: -1.3deg; }
.shot:nth-child(even) .phone { rotate: 1.3deg; }

.phone {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 34px;
  overflow: hidden;
  background: var(--paper);
  padding: 8px;
  box-shadow: var(--shadow-raised);
  transition: rotate var(--standard) ease, transform var(--standard) ease;
}

.phone img { border-radius: 24px; width: 100%; height: auto; }

.shot:hover .phone { rotate: 0deg; transform: translateY(-6px); }

.new-badge {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 17px;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-card);
}

.shot figcaption {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding-inline: 6px;
}

.shot figcaption p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.45; }

.shot-chip {
  flex: none;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  translate: 0 2px;
}

/* ---------- Adapts ---------- */

.adapt { margin-top: 40px; }

.adapt-toggle {
  display: inline-flex;
  gap: 4px;
  background: var(--ink);
  border-radius: 999px;
  padding: 5px;
  border: 2px solid var(--ink);
}

.adapt-tab {
  border: 0;
  background: transparent;
  color: var(--paper);
  border-radius: 999px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--quick) ease, color var(--quick) ease;
}

.adapt-tab.is-active { background: var(--lime); color: var(--ink); }

.adapt-card {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 1.4fr;
  gap: 28px;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-organic);
  padding: clamp(28px, 4vw, 44px);
  padding-right: clamp(150px, 22vw, 240px);
  background: var(--green);
  box-shadow: var(--shadow-raised);
  transition: background 450ms ease;
}

.adapt-card[data-band="low"] { background: var(--coral); }

.adapt-card.is-switching .adapt-swap { opacity: 0; translate: 0 8px; }

.adapt-swap { transition: opacity 220ms ease, translate 220ms ease; }

.adapt-band {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 33, 29, 0.72);
}

.adapt-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4.4rem, 9vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.adapt-denominator { font-size: 0.28em; font-weight: 800; margin-left: 6px; letter-spacing: 0; }

.adapt-line {
  margin-top: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  max-width: 24ch;
  line-height: 1.4;
}

.adapt-plan {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: center;
}

.adapt-plan li {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.plan-tag {
  flex: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--lime);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
}

.adapt-card[data-band="low"] .plan-tag { background: var(--yellow); }

.adapt-mascot {
  position: absolute;
  right: clamp(14px, 3vw, 40px);
  bottom: -6px;
  width: clamp(110px, 16vw, 170px);
  height: auto;
  transition: opacity 220ms ease;
}

.adapt-footnote {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

@media (max-width: 860px) {
  .adapt-card { grid-template-columns: 1fr; padding-right: clamp(28px, 4vw, 44px); padding-bottom: 150px; }
  .adapt-mascot { bottom: -4px; }
}

/* ---------- The receipt ---------- */

.receipt {
  margin-top: 40px;
  max-width: 620px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  box-shadow: var(--shadow-raised);
}

.receipt-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--border);
}

.receipt-rows { padding-block: 8px; }

.receipt-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-block: 9px;
  font-size: 0.95rem;
}

.receipt-row span:first-child { font-weight: 700; flex: none; }

.receipt-row span:last-child { color: var(--text-secondary); text-align: right; }

.receipt-dots {
  flex: 1;
  border-bottom: 2px dotted var(--border);
  translate: 0 -4px;
  min-width: 20px;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.receipt-fine {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ---------- Download ---------- */

.dl-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-organic);
  padding: clamp(40px, 6vw, 76px);
  box-shadow: var(--shadow-raised);
  background-image:
    radial-gradient(circle at 90% 8%, rgba(244, 231, 132, 0.18), transparent 34%),
    radial-gradient(circle at 4% 96%, rgba(183, 221, 244, 0.16), transparent 38%);
}

.dl-card .display { color: var(--paper); }

.dl-sub {
  max-width: 30rem;
  margin-top: 20px;
  color: rgba(255, 253, 244, 0.78);
  font-size: 1.05rem;
}

.dl-fine {
  margin-top: 26px;
  color: rgba(255, 253, 244, 0.6);
  font-size: 0.88rem;
  max-width: 34rem;
}

.dl-fine code {
  background: rgba(255, 253, 244, 0.12);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.82rem;
}

.dl-mascot {
  position: absolute;
  right: clamp(16px, 5vw, 64px);
  bottom: -10px;
  width: clamp(120px, 17vw, 190px);
  height: auto;
  rotate: -4deg;
}

@media (max-width: 860px) {
  .dl-card { padding-bottom: 170px; }
}

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

.footer {
  border-top: 2px solid var(--ink);
  background: var(--surface-muted);
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-block: 44px;
  text-align: center;
}

.footer-note { font-size: 0.9rem; color: var(--text-secondary); }

.footer-note a { font-weight: 700; }

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity var(--reveal) ease, translate var(--reveal) ease;
}

.reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .hero-mascot { animation: none; }
  .demo-phone-main, .demo-live span { animation: none; }
  .sticker { animation: none; }
  #hero-curve-path { animation: none; stroke-dashoffset: 0; }
  .reveal { opacity: 1; translate: 0 0; transition: none; }
  .btn, .idea-row, .phone, .gallery-btn, .demo-phone { transition: none; }
}
