/* Planto — palette mirrors Planto/Views/Theme.swift */

@font-face {
  font-family: "Unbounded";
  src: url("../assets/fonts/Unbounded.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/SpaceGrotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --fantasy: #F5F4ED;
  --paper-mid: #EDEBDE;
  --paper-dark: #E2DFCE;
  --gold: #FFDA57;
  --smoky: #100F06;
  --malibu: #7DCAF6;
  --lavender: #A293FF;
  --teal: #00917A;
  --pink: #FFBBF4;
  --coral: #F47575;

  /* Stroke system — only two widths */
  --outline: 2px solid var(--smoky);
  --outline-thin: 1.5px solid var(--smoky);

  /* Radii */
  --radius-card: 32px;
  --radius-tile: 40px;
  --radius-pill: 999px;

  /* Spacing scale (4px base) */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;

  /* Drop-shadow elevation system (chunky offset look) */
  --shadow-xs: 0 2px 0 var(--smoky);
  --shadow-sm: 0 3px 0 var(--smoky);
  --shadow-md: 0 5px 0 var(--smoky);
  --shadow-lg: 0 8px 0 var(--smoky);
  --shadow-card: var(--shadow-md);
  --shadow-card-hover: var(--shadow-lg);
  --shadow-soft: 0 24px 60px -22px rgba(16, 15, 6, 0.35);

  /* Easing */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1240px;
  --pad-y: clamp(72px, 8.5vw, 112px);

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* Accessible focus rings for keyboard users only */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.get-started:focus-visible,
.pill:focus-visible,
.tile:focus-visible,
.nav-inner a:focus-visible {
  outline-offset: 4px;
}

/* Skip link — keyboard users land here first */
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  background: var(--smoky);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

html { scroll-behavior: smooth; }
section[id], [id] { scroll-margin-top: 130px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper-mid);
  color: var(--smoky);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Subtle paper texture — SVG fiber noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.06  0 0 0 0 0.06  0 0 0 0 0.02  0 0 0 0.07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  mix-blend-mode: multiply;
  opacity: 0.85;
}
main, header, footer { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 0.4em;
}

h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); letter-spacing: -0.04em; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s5);
}
@media (min-width: 1100px) {
  .container { padding: 0 var(--s7); }
}

section {
  position: relative;
  padding: var(--pad-y) 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--smoky);
  background: var(--fantasy);
  border: var(--outline-thin);
  border-radius: var(--radius-pill);
  padding: var(--s2) var(--s4);
  margin-bottom: var(--s5);
}
.eyebrow--dark {
  background: var(--gold);
  color: var(--smoky);
  border-color: var(--smoky);
}

.section-head {
  text-align: center;
  margin: 0 auto 80px;
}

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

.nav {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--fantasy);
  border: var(--outline);
  border-radius: var(--radius-pill);
  padding: 12px 24px 12px 16px;
  box-shadow: var(--shadow-card);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
}
.nav-brand img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1.5px solid var(--smoky);
}
.nav-links {
  display: flex;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
}
.nav-links a { opacity: 0.78; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }

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

/* ---------- Get-started style pill ---------- */

.get-started {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--fantasy);
  border: var(--outline);
  border-radius: var(--radius-pill);
  padding: 10px 28px 10px 10px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--smoky);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.get-started:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.get-started:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--smoky); }
.get-started__icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--fantasy);
  border: var(--outline);
  display: grid;
  place-items: center;
}
.get-started__icon svg { width: 22px; height: 22px; }
.get-started--gold { background: var(--gold); }
.get-started--gold .get-started__icon { background: var(--smoky); color: var(--gold); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; justify-content: center; }

/* ---------- Decorations ---------- */

.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.deco--sparkle {
  width: 28px; height: 28px;
  background: var(--smoky);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 0 L13.5 9 L24 12 L13.5 15 L12 24 L10.5 15 L0 12 L10.5 9 Z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 0 L13.5 9 L24 12 L13.5 15 L12 24 L10.5 15 L0 12 L10.5 9 Z'/></svg>") center/contain no-repeat;
  animation: twinkle 3.6s ease-in-out infinite;
}
.deco--squiggle {
  width: 110px; height: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 36' fill='none' stroke='%23FFDA57' stroke-width='8' stroke-linecap='round'><path d='M5 18 Q 18 4 30 18 T 55 18 T 80 18 T 105 18'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}
.deco--dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--lavender);
  border: var(--outline-thin);
}
.deco--tl { top: 60px; left: 6%; transform: rotate(-12deg); }
.deco--tr { top: 80px; right: 6%; transform: rotate(8deg); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 36' fill='none' stroke='%23F47575' stroke-width='8' stroke-linecap='round'><path d='M5 18 Q 18 4 30 18 T 55 18 T 80 18 T 105 18'/></svg>"); }
.deco--bl { bottom: 80px; left: 8%; transform: rotate(6deg); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 36' fill='none' stroke='%23FFDA57' stroke-width='8' stroke-linecap='round'><path d='M5 18 Q 18 4 30 18 T 55 18 T 80 18 T 105 18'/></svg>"); }
.deco--br { bottom: 60px; right: 7%; transform: rotate(-8deg); }
.deco--s1 { top: 18%;  left: 14%; }
.deco--s2 { top: 30%;  right: 12%; width: 22px; height: 22px; animation-delay: 0.6s; }
.deco--s3 { bottom: 22%; left: 22%; width: 18px; height: 18px; animation-delay: 1.2s; }
.deco--s4 { top: 14%;  left: 8%; }
.deco--s5 { bottom: 18%; right: 10%; width: 22px; height: 22px; animation-delay: 0.8s; }
.deco--s6 { top: 22%;  left: 16%; background: var(--gold); }
.deco--s7 { top: 28%;  right: 18%; background: var(--gold); width: 22px; height: 22px; animation-delay: 0.5s; }
.deco--d1 { top: 24%;  right: 22%; background: var(--coral); }
.deco--d2 { bottom: 28%; left: 12%; background: var(--malibu); }

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

.hero {
  position: relative;
  background: var(--paper-mid);
  padding: 120px 0 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  overflow-y: visible;
}
.hero > .container.hero-stack {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  position: relative;
  z-index: 2;
}
.hero-copy {
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .eyebrow { margin: 0 0 var(--s5); }     /* eyebrow → h1: 24px */
.hero h1       { margin: 0 0 var(--s4); }     /* h1 → lede: 16px (tight) */
.hero p.lede   { margin: 0 0 var(--s9); }     /* lede → button: 96px (lots of air) */
.hero .cta-row { margin: 0; }
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: 900;
  margin: 0 0 24px;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .hero h1 { white-space: normal; font-size: clamp(2.2rem, 9vw, 3.6rem); }
}
.hero p.lede {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  max-width: 50ch;
  opacity: 0.72;
  font-weight: 500;
  /* margin set by .hero-copy spacing rules above */
}
.hero .scene-card {
  width: min(460px, 92%);
}

/* ---------- Scene card ---------- */

.scene-card {
  position: relative;
  width: min(360px, 80%);
  border-radius: 38px;
  border: var(--outline);
  overflow: hidden;
  box-shadow: 0 18px 0 var(--smoky), 0 30px 60px -20px rgba(16, 15, 6, 0.4);
  background: var(--fantasy);
}
.scene-card img { width: 100%; height: auto; display: block; }
.sky { position: absolute; inset: 0; animation: sky-phase 24s linear infinite; }
.sun {
  position: absolute;
  top: 14%;
  left: -10%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold);
  border: var(--outline);
  box-shadow: 0 0 28px rgba(255, 218, 87, 0.6);
  animation: drift-sun 24s linear infinite;
}
.cloud {
  position: absolute;
  background: #F2F5FA;
  border: var(--outline-thin);
  border-radius: 999px;
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: #F2F5FA;
  border: var(--outline-thin);
  border-radius: 50%;
}
.cloud--a { top: 22%; width: 96px; height: 30px; animation: drift-cloud-a 32s linear infinite; }
.cloud--a::before { width: 38px; height: 38px; top: -20px; left: 14px; }
.cloud--a::after { width: 30px; height: 30px; top: -16px; left: 48px; }
.cloud--b { top: 38%; width: 74px; height: 24px; animation: drift-cloud-b 46s linear infinite; }
.cloud--b::before { width: 32px; height: 32px; top: -18px; left: 10px; }
.cloud--b::after { width: 24px; height: 24px; top: -14px; left: 38px; }

/* Planter — pot + plant + face. Plant and pot share the SAME width
   so their centers line up (PNGs are both 400px wide, content centered). */
.planter {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 52%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.planter-plant {
  width: 100%;
  transform-origin: 50% 100%;
  animation: sway 4.2s ease-in-out infinite;
  margin-bottom: -32%;
  z-index: 1;
  pointer-events: none;
}
.planter-plant img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 6px 0 rgba(16, 15, 6, 0.18));
}
.planter-pot {
  position: relative;
  width: 100%;
  z-index: 2;
}
.planter-pot img { width: 100%; display: block; }
.pot-face {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12%;
  width: 46%;
  justify-content: center;
}
.pot-face .eye {
  width: 14%;
  aspect-ratio: 1;
  background: var(--smoky);
  border-radius: 50%;
  position: relative;
}
.pot-face .eye::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 18%;
  width: 38%;
  height: 38%;
  background: #fff;
  border-radius: 50%;
}
.pot-face .mouth {
  position: absolute;
  bottom: -28%;
  left: 50%;
  transform: translateX(-50%);
  width: 16%;
  height: 8%;
  border: 1.5px solid var(--smoky);
  border-top: none;
  border-radius: 0 0 50% 50%;
}
.bubble {
  position: absolute;
  bottom: 52%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fantasy);
  border: var(--outline);
  border-radius: 22px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  transition: opacity .35s ease, transform .35s ease;
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px;
  background: var(--fantasy);
  border-right: var(--outline);
  border-bottom: var(--outline);
}
.weather-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--malibu);
  border: var(--outline);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--smoky);
  box-shadow: var(--shadow-card);
}

/* ---------- Cast / tile row ---------- */

.cast { background: var(--fantasy); }

.tile-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.tile {
  position: relative;
  aspect-ratio: 4 / 5.4;
  perspective: 1400px;
}
.tile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.85s var(--ease-out-expo);
}
.tile:hover .tile-inner { transform: rotateY(180deg); }

.tile-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-tile);
  border: var(--outline);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
.tile-front { /* color modifier classes still apply background */ }
.tile-back {
  transform: rotateY(180deg);
  background: var(--fantasy);
  color: var(--smoky);
  padding: 84px 22px 22px;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.tile-back .tile-bubble { background: var(--gold); }
.back-mood {
  display: inline-block;
  align-self: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--smoky);
  color: var(--fantasy);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  margin-bottom: 14px;
}
.back-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  opacity: 0.72;
  margin: 0 0 14px;
  font-weight: 500;
}
.back-traits {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  text-align: left;
  letter-spacing: -0.005em;
}
.back-traits li {
  border-top: 1.4px solid rgba(16, 15, 6, 0.12);
  padding-top: 6px;
}

.tile-plant {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  filter: drop-shadow(0 8px 0 rgba(16, 15, 6, 0.18));
}

.tile--gold     { background: var(--gold); }
.tile--malibu   { background: var(--malibu); }
.tile--lavender { background: var(--lavender); }
.tile--pink     { background: var(--pink); }
.tile--coral    { background: var(--coral); }

.tile-bubble {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fantasy);
  border: 1.5px solid var(--smoky);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  z-index: 2;
}

.spark {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--smoky);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 0 L13.5 9 L24 12 L13.5 15 L12 24 L10.5 15 L0 12 L10.5 9 Z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 0 L13.5 9 L24 12 L13.5 15 L12 24 L10.5 15 L0 12 L10.5 9 Z'/></svg>") center/contain no-repeat;
  animation: twinkle 3.4s ease-in-out infinite;
}
.spark--a { top: 30%; left: 12%; }
.spark--b { top: 50%; right: 12%; width: 14px; height: 14px; animation-delay: 0.7s; }

@media (max-width: 980px) {
  .tile-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .tile-row { grid-template-columns: 1fr; }
}

/* ---------- Marquee ---------- */

.marquee-section {
  background: var(--smoky);
  color: var(--gold);
  padding: 36px 0;
  border-top: var(--outline);
  border-bottom: var(--outline);
  overflow: hidden;
}
.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: -0.02em;
  will-change: transform;
}
.marquee-track span { color: var(--fantasy); }
.marquee-track .m-star { color: var(--gold); font-size: 0.7em; }

/* ---------- Features (split layout: copy left, screenshot right) ---------- */

.features-section { background: var(--fantasy); }

.features-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.features-col h2 { margin-top: 24px; margin-bottom: 40px; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1.5px solid rgba(16, 15, 6, 0.1);
}
.feature-list li:last-child { border-bottom: none; padding-bottom: 0; }
.feature-list .feature-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.2px solid var(--smoky);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 0 var(--smoky);
  color: var(--smoky);
  overflow: hidden;
  background: var(--fantasy);
}
.feature-list .ic {
  width: 30px;
  height: 30px;
  display: block;
}

/* Sun rays — punchy spin */
.ic-sun .ic-rays {
  transform-origin: 12px 12px;
  animation: sun-spin 6s linear infinite;
}
@keyframes sun-spin { to { transform: rotate(360deg); } }

/* Water — droplet drips on a quick loop */
.ic-water { overflow: visible; }
.ic-water .ic-droplet {
  animation: water-drip 1.4s ease-in infinite;
  transform-origin: center;
}
@keyframes water-drip {
  0%   { transform: translateY(-3px); opacity: 0; }
  15%  { opacity: 1; }
  75%  { transform: translateY(8px);  opacity: 1; }
  100% { transform: translateY(11px); opacity: 0; }
}

/* Sparkle — scale up & down only, no rotation */
.ic-spark {
  transform-origin: 12px 12px;
  animation: spark-pulse 1.6s ease-in-out infinite;
}
@keyframes spark-pulse {
  0%, 100% { transform: scale(0.78); }
  50%      { transform: scale(1.18); }
}

/* Clock — fast sweep */
.ic-clock .ic-hand-min {
  transform-origin: 12px 12px;
  animation: clock-min 3s linear infinite;
}
.ic-clock .ic-hand-hr {
  transform-origin: 12px 12px;
  animation: clock-hr 36s linear infinite;
}
@keyframes clock-min { to { transform: rotate(360deg); } }
@keyframes clock-hr  { to { transform: rotate(360deg); } }

.reduced-motion .ic-sun .ic-rays,
.reduced-motion .ic-water .ic-droplet,
.reduced-motion .ic-spark,
.reduced-motion .ic-clock .ic-hand-min,
.reduced-motion .ic-clock .ic-hand-hr { animation: none !important; }
.feature-list h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  margin: 4px 0 6px;
  letter-spacing: -0.01em;
}
.feature-list p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.7;
  font-weight: 500;
}

.features-shot {
  display: flex;
  justify-content: center;
}
.features-shot img {
  width: 100%;
  max-width: 280px;
  border-radius: 32px;
  border: var(--outline);
  box-shadow: 0 14px 0 var(--smoky), 0 28px 50px -22px rgba(16, 15, 6, 0.4);
  transform: rotate(2deg);
  transition: transform .5s var(--ease-out-quart);
}
.features-shot:hover img { transform: rotate(0deg) translateY(-6px); }

@media (max-width: 880px) {
  .features-split { grid-template-columns: 1fr; gap: 56px; }
  .features-shot { order: -1; }
}

/* ---------- Hero plants strip ---------- */

.hero-plants {
  position: relative;
  width: 100%;
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0;
  pointer-events: none;
  z-index: 1;
  flex-shrink: 0;
}
.hero-plants img {
  width: clamp(80px, 8.5vw, 130px);
  height: auto;
  filter: drop-shadow(0 8px 0 rgba(16, 15, 6, 0.18));
  margin: 0 -22px;
  transform-origin: 50% 95%;
  animation: hero-sway 5s ease-in-out infinite;
}
.hero-plants img:nth-child(odd)  { transform: translateY(8px); }
.hero-plants img:nth-child(3n)   { transform: translateY(-6px); }
.hero-plants img:nth-child(1)  { animation-delay: 0.0s;  animation-duration: 5.2s; }
.hero-plants img:nth-child(2)  { animation-delay: 0.4s;  animation-duration: 4.8s; }
.hero-plants img:nth-child(3)  { animation-delay: 0.8s;  animation-duration: 5.6s; }
.hero-plants img:nth-child(4)  { animation-delay: 0.2s;  animation-duration: 4.4s; }
.hero-plants img:nth-child(5)  { animation-delay: 0.6s;  animation-duration: 5.0s; }
.hero-plants img:nth-child(6)  { animation-delay: 0.1s;  animation-duration: 5.4s; }
.hero-plants img:nth-child(7)  { animation-delay: 0.5s;  animation-duration: 4.6s; }
.hero-plants img:nth-child(8)  { animation-delay: 0.9s;  animation-duration: 5.8s; }
.hero-plants img:nth-child(9)  { animation-delay: 0.3s;  animation-duration: 4.7s; }
.hero-plants img:nth-child(10) { animation-delay: 0.7s;  animation-duration: 5.1s; }
.hero-plants img:nth-child(11) { animation-delay: 0.2s;  animation-duration: 5.3s; }
.hero-plants img:nth-child(12) { animation-delay: 0.5s;  animation-duration: 4.9s; }
.hero-plants img:nth-child(13) { animation-delay: 0.8s;  animation-duration: 5.5s; }
.hero-plants img:nth-child(14) { animation-delay: 0.0s;  animation-duration: 4.7s; }
.hero-plants img:nth-child(15) { animation-delay: 0.6s;  animation-duration: 5.1s; }
.hero-plants img:nth-child(16) { animation-delay: 0.4s;  animation-duration: 5.6s; }
.hero-plants img:nth-child(17) { animation-delay: 0.7s;  animation-duration: 4.8s; }
.hero-plants img:nth-child(18) { animation-delay: 0.1s;  animation-duration: 5.0s; }
.hero-plants img:nth-child(19) { animation-delay: 0.9s;  animation-duration: 4.5s; }
.hero-plants img:nth-child(20) { animation-delay: 0.3s;  animation-duration: 5.4s; }

@keyframes hero-sway {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(3deg)  translateY(-3px); }
}

/* ---------- Install ---------- */

.install {
  position: relative;
  background: var(--smoky);
  color: var(--fantasy);
  overflow: hidden;
}
.install-smiley {
  position: absolute;
  bottom: 40px;
  right: 56px;
  width: clamp(80px, 11vw, 160px);
  height: auto;
  z-index: 2;
  animation: smiley-bob 4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes smiley-bob {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50%      { transform: rotate(6deg)  translateY(-8px); }
}
@media (max-width: 720px) {
  .install-smiley { right: 24px; bottom: 24px; width: 72px; }
}
.install .eyebrow {
  background: var(--gold);
  color: var(--smoky);
  border-color: var(--smoky);
}
.install h2 {
  color: var(--fantasy);
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
}
.install-caption {
  margin: var(--s8) auto 0;
  max-width: 48ch;
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.55;
}
.install-caption strong { color: var(--gold); font-weight: 700; }
.install-caption code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82em;
  background: rgba(255,255,255,0.08);
  padding: 1px 6px;
  border-radius: 4px;
}
.install .lede {
  opacity: 0.7;
  max-width: 44ch;
  margin: var(--s5) auto var(--s7);
  font-size: 1.05rem;
}
.install-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}
.install .deco--sparkle { background: var(--gold); }

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

footer {
  position: relative;
  background: var(--paper-dark);
  padding: 100px 0 0;
  text-align: center;
  overflow-x: clip;
}

.footer-plants {
  width: 100%;
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0;
  pointer-events: none;
}
.footer-plants img {
  width: clamp(70px, 7.5vw, 120px);
  height: auto;
  filter: drop-shadow(0 8px 0 rgba(16, 15, 6, 0.2));
  margin: 0 -22px;
  transform-origin: 50% 95%;
  animation: hero-sway 5s ease-in-out infinite;
}
.footer-plants img:nth-child(odd) { transform: translateY(8px); }
.footer-plants img:nth-child(3n)  { transform: translateY(-6px); }
.footer-plants img:nth-child(1)  { animation-delay: 0.0s; animation-duration: 5.2s; }
.footer-plants img:nth-child(2)  { animation-delay: 0.4s; animation-duration: 4.8s; }
.footer-plants img:nth-child(3)  { animation-delay: 0.8s; animation-duration: 5.6s; }
.footer-plants img:nth-child(4)  { animation-delay: 0.2s; animation-duration: 4.4s; }
.footer-plants img:nth-child(5)  { animation-delay: 0.6s; animation-duration: 5.0s; }
.footer-plants img:nth-child(6)  { animation-delay: 0.1s; animation-duration: 5.4s; }
.footer-plants img:nth-child(7)  { animation-delay: 0.5s; animation-duration: 4.6s; }
.footer-plants img:nth-child(8)  { animation-delay: 0.9s; animation-duration: 5.8s; }
.footer-plants img:nth-child(9)  { animation-delay: 0.3s; animation-duration: 4.7s; }
.footer-plants img:nth-child(10) { animation-delay: 0.7s; animation-duration: 5.1s; }
.footer-plants img:nth-child(11) { animation-delay: 0.2s; animation-duration: 5.3s; }
.footer-plants img:nth-child(12) { animation-delay: 0.5s; animation-duration: 4.9s; }
.footer-plants img:nth-child(13) { animation-delay: 0.8s; animation-duration: 5.5s; }
.footer-plants img:nth-child(14) { animation-delay: 0.0s; animation-duration: 4.7s; }
.footer-plants img:nth-child(15) { animation-delay: 0.6s; animation-duration: 5.1s; }
.footer-plants img:nth-child(16) { animation-delay: 0.4s; animation-duration: 5.6s; }
.footer-plants img:nth-child(17) { animation-delay: 0.7s; animation-duration: 4.8s; }
.footer-plants img:nth-child(18) { animation-delay: 0.1s; animation-duration: 5.0s; }
.footer-plants img:nth-child(19) { animation-delay: 0.9s; animation-duration: 4.5s; }
.footer-plants img:nth-child(20) { animation-delay: 0.3s; animation-duration: 5.4s; }
footer .signoff {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 28px;
}
footer .footer-links {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  margin: 0 0 14px;
  opacity: 0.75;
}
footer .footer-links a { transition: opacity .2s; }
footer .footer-links a:hover { opacity: 0.6; }
footer .copyright { font-size: 0.82rem; opacity: 0.55; }
footer .copyright a { text-decoration: underline; text-underline-offset: 3px; }

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

.legal {
  padding: 180px 0 120px;
  background: var(--paper-mid);
}
.legal-inner {
  max-width: 720px;
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 18px 0 32px;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 36px 0 10px;
  letter-spacing: -0.01em;
}
.legal p {
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.8;
  margin: 0 0 14px;
}
.legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.legal-meta {
  margin-top: 48px !important;
  font-size: 0.82rem !important;
  opacity: 0.5 !important;
}

/* ---------- 404 page ---------- */

.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  background: var(--paper-mid);
  padding: 140px 0 80px;
}
.not-found .container { display: flex; flex-direction: column; align-items: center; gap: var(--s5); }
.not-found h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}
.not-found p {
  max-width: 38ch;
  opacity: 0.7;
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Sticky float CTA ---------- */

.float-cta {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 60;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.float-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out-quart), transform .8s var(--ease-out-quart);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Pre-hide animated hero elements when JS is enabled — kills FOUC.
   GSAP flips visibility back on once it's locked the from-state. */
.js-anim .hero .eyebrow,
.js-anim .hero h1,
.js-anim .hero .lede,
.js-anim .hero .cta-row,
.js-anim .hero .deco {
  visibility: hidden;
}

/* Hero word stagger — overflow clip so word-inner can slide up */
.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 0.95;
}
.hero h1 .word-inner { display: inline-block; will-change: transform; }

/* Feature icon micro-interaction */
.feature-icon {
  transition: transform .35s var(--ease-out-quart);
}
.feature:hover .feature-icon {
  transform: rotate(-8deg) scale(1.08);
}

/* Tile bubble nudge */
.tile-bubble {
  transition: transform .35s var(--ease-out-quart);
}
.tile:hover .tile-bubble {
  transform: translateX(-50%) translateY(-4px);
}

/* Get-started icon spin on hover */
.get-started__icon {
  transition: transform .4s var(--ease-out-quart), background .3s ease;
}
.get-started:hover .get-started__icon {
  transform: rotate(-12deg) scale(1.05);
}

/* Scene card tilt — set via JS mouse move */
.scene-card {
  transition: transform .5s var(--ease-out-quart);
  transform-style: preserve-3d;
  will-change: transform;
}
