:root {
  --cream: #f5f2ee;
  --card: #fffdf8;
  --forest-dark: #1f4d38;
  --forest: #2e5844;
  --leaf: #3f7a5a;
  --mint: #e8f1e8;
  --mist: #8d99a6;
  --stone: #26332f;
  --border: rgba(46, 88, 68, 0.1);
  --honey: #c99846;
  --honey-soft: #f8ebcb;
  --shadow: 0 24px 58px rgba(31, 77, 56, 0.1);
  --shadow-soft: 0 14px 34px rgba(31, 77, 56, 0.07);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --display: "Iowan Old Style", "Baskerville", "Georgia", serif;
  --sans: "Inter", "Avenir Next", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone);
  background:
    radial-gradient(circle at 88% 8%, rgba(232, 241, 232, 0.78), transparent 25rem),
    radial-gradient(circle at 6% 38%, rgba(248, 235, 203, 0.52), transparent 24rem),
    var(--cream);
  font-family: var(--sans);
  line-height: 1.56;
}

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

a {
  color: inherit;
}

.shell {
  width: min(1200px, calc(100% - 56px));
  margin-inline: auto;
}

.narrow-shell {
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(46, 88, 68, 0.07);
  background: rgba(245, 242, 238, 0.95);
  backdrop-filter: blur(10px);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--forest-dark);
  font-family: var(--display);
  font-size: 1.28rem;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.brand-mark svg path:first-child {
  fill: none;
  stroke: var(--forest);
  stroke-width: 3.2;
  stroke-linecap: round;
}

.brand-mark svg path:nth-child(2) {
  fill: var(--leaf);
  opacity: 0.84;
}

.brand-mark svg path:nth-child(3) {
  fill: var(--forest);
  opacity: 0.9;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 16px;
  color: rgba(38, 51, 47, 0.72);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--forest-dark);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.nav-toggle {
  display: none;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--forest-dark);
  background: var(--card);
  font: inherit;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 8vw, 108px) 0 clamp(72px, 7vw, 98px);
}

.botanical-hero::before {
  content: "";
  position: absolute;
  top: 64px;
  right: max(-8vw, -86px);
  width: min(38vw, 460px);
  aspect-ratio: 1;
  opacity: 0.14;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='500' height='500' viewBox='0 0 500 500' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%233F7A5A' stroke-linecap='round'%3E%3Cpath d='M168 438C194 318 263 214 379 82' stroke-width='5' opacity='.35'/%3E%3C/g%3E%3Cpath d='M246 284C192 281 151 248 132 195C188 194 229 227 246 284Z' fill='%233F7A5A' opacity='.26'/%3E%3Cpath d='M286 234C353 231 404 190 426 125C360 122 309 164 286 234Z' fill='%233F7A5A' opacity='.24'/%3E%3Cpath d='M325 162C278 158 245 130 231 84C277 83 311 114 325 162Z' fill='%233F7A5A' opacity='.18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(300px, 0.62fr);
  gap: clamp(44px, 6vw, 82px);
  align-items: center;
}

.hero-visual {
  justify-self: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--forest-dark);
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.032em;
}

h1 {
  font-size: clamp(3.2rem, 5.4vw, 5.35rem);
}

h2 {
  font-size: clamp(2.15rem, 3.8vw, 3.35rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 18px;
}

.lede {
  max-width: 640px;
  margin-top: 22px;
  color: rgba(38, 51, 47, 0.85);
  font-size: clamp(1.12rem, 1.65vw, 1.3rem);
}

.section-copy {
  max-width: 680px;
  color: rgba(38, 51, 47, 0.74);
  font-size: 1.05rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  color: var(--card);
  background: var(--forest);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button.secondary {
  color: var(--forest-dark);
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid rgba(46, 88, 68, 0.18);
  box-shadow: none;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-pills span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  color: rgba(38, 51, 47, 0.75);
  background: rgba(255, 253, 248, 0.78);
  font-size: 0.92rem;
}

.phone-frame {
  overflow: hidden;
  margin: 0;
  border: 9px solid rgba(255, 253, 248, 0.96);
  border-radius: 38px;
  background: var(--card);
  box-shadow: 0 24px 64px rgba(31, 77, 56, 0.14);
}

.primary-phone {
  width: min(330px, 76vw);
}

.phone-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.crop-system-bars img {
  clip-path: inset(0 0 7% 0);
  margin-bottom: -7%;
}

.section {
  padding: clamp(96px, 8vw, 118px) 0;
}

.section-head {
  margin-bottom: 34px;
}

.soft {
  position: relative;
}

.soft::before {
  content: "";
  position: absolute;
  inset: 30px 0;
  z-index: -1;
  border-block: 1px solid rgba(46, 88, 68, 0.06);
  background: rgba(255, 253, 248, 0.52);
}

.card,
.prose-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 34px);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-soft);
}

.trust-section {
  padding-top: 0;
  padding-bottom: clamp(88px, 7vw, 108px);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(46, 88, 68, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(46, 88, 68, 0.08);
  box-shadow: var(--shadow-soft);
}

.trust-grid article {
  min-height: 128px;
  padding: 24px 24px;
  background: rgba(255, 253, 248, 0.9);
}

.trust-grid span,
.feature-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--honey);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.trust-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--forest-dark);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
}

.trust-grid p,
.feature-card p,
.prose-card p,
.prose-card li {
  color: rgba(38, 51, 47, 0.72);
}

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

.feature-card {
  min-height: 214px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  margin-bottom: 0;
}

.app-preview-section {
  padding-top: clamp(96px, 7vw, 112px);
  padding-bottom: clamp(96px, 7vw, 112px);
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(42px, 5vw, 72px);
  align-items: center;
}

.screen-row {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 0.9fr;
  gap: 18px;
  align-items: center;
}

.app-screen-card {
  height: clamp(360px, 35vw, 470px);
  overflow: hidden;
  margin: 0;
  border: 8px solid rgba(255, 253, 248, 0.96);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.app-screen-card img,
.app-screen-card.large img {
  width: 100%;
  height: calc(100% - 42px);
  max-height: none;
  object-fit: cover;
  object-position: top center;
}

.app-screen-card figcaption {
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: rgba(38, 51, 47, 0.64);
  background: var(--card);
  font-size: 0.84rem;
  text-align: center;
}

.growth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
}

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

.growth-grid article {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.growth-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(245, 242, 238, 0.72));
}

.growth-grid span {
  display: block;
  padding: 12px 10px;
  color: rgba(38, 51, 47, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.forest-section {
  position: relative;
  overflow: hidden;
  margin: 0;
  color: var(--card);
  background:
    radial-gradient(circle at 82% 18%, rgba(248, 235, 203, 0.16), transparent 22rem),
    linear-gradient(135deg, var(--forest-dark), #17382b);
}

.forest-section::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: min(46vw, 520px);
  aspect-ratio: 1;
  opacity: 0.12;
  background: url("data:image/svg+xml,%3Csvg width='470' height='470' viewBox='0 0 470 470' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M160 420C188 304 250 218 370 92' stroke='%23FFFDF8' stroke-width='5' stroke-linecap='round' fill='none'/%3E%3Cpath d='M232 278C176 270 141 238 126 190C178 188 216 220 232 278Z' fill='%23FFFDF8' opacity='.48'/%3E%3Cpath d='M274 228C336 226 383 188 404 128C341 126 295 166 274 228Z' fill='%23FFFDF8' opacity='.4'/%3E%3C/svg%3E") center/contain no-repeat;
}

.forest-inner {
  position: relative;
  z-index: 1;
  max-width: 850px;
  padding-block: clamp(92px, 8vw, 112px);
}

.forest-section .eyebrow,
.forest-section h2,
.forest-section p {
  color: var(--card);
}

.forest-section p {
  max-width: 720px;
  color: rgba(255, 253, 248, 0.82);
  font-size: 1.08rem;
}

.cream-button {
  color: var(--forest-dark);
  background: var(--card);
}

.compact-forest {
  margin-top: 0;
}

.coming-soon-card {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.58fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(30px, 5vw, 46px);
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(232, 241, 232, 0.66));
  box-shadow: var(--shadow-soft);
}

.status-card {
  border: 1px solid rgba(46, 88, 68, 0.12);
  border-radius: 28px;
  padding: 24px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.status-card span {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--forest-dark);
  background: var(--honey-soft);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-card strong {
  display: block;
  color: var(--forest-dark);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
}

.status-card p {
  margin: 8px 0 0;
  color: rgba(38, 51, 47, 0.7);
}

.founder-teaser {
  max-width: 780px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 42px);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow-soft);
}

.founder-teaser p {
  max-width: 620px;
  color: rgba(38, 51, 47, 0.74);
}

.text-link {
  color: var(--forest-dark);
  font-weight: 800;
  text-decoration-color: rgba(46, 88, 68, 0.35);
  text-underline-offset: 0.24em;
}

.page-hero {
  padding: clamp(78px, 8vw, 108px) 0 36px;
}

.letter-hero {
  padding-bottom: 0;
}

.letter-card {
  font-size: 1.08rem;
}

.letter-card p {
  color: rgba(38, 51, 47, 0.78);
}

.signature {
  margin-top: 28px;
  color: var(--forest-dark) !important;
  font-family: var(--display);
  font-size: 1.28rem;
}

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

.prose-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.prose-card ul {
  margin: 0;
  padding-left: 20px;
}

.prose-card li + li {
  margin-top: 8px;
}

.support-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.contact-card,
.disclaimer-card {
  grid-column: 1 / -1;
}

.disclaimer-card {
  border-left: 4px solid var(--honey);
}

.site-footer {
  padding: 34px 0 42px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.footer-brand {
  margin-bottom: 8px;
}

.footer-grid p,
.footer-note {
  color: rgba(38, 51, 47, 0.66);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: start;
}

.footer-links a {
  color: rgba(38, 51, 47, 0.74);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--forest-dark);
}

.footer-note {
  margin-top: 20px;
  font-size: 0.92rem;
}

@media (max-width: 1040px) {
  .hero-grid,
  .preview-layout,
  .growth-layout,
  .coming-soon-card {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: center;
  }

  .primary-phone {
    width: min(330px, 76vw);
  }

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

  .screen-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1200px);
  }

  .site-header {
    position: static;
  }

  .nav-shell {
    min-height: 72px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 10px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 62px;
  }

  h1 {
    font-size: clamp(2.85rem, 14vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .primary-phone {
    width: min(330px, 86vw);
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .trust-section {
    padding-top: 0;
    padding-bottom: 64px;
  }

  .trust-grid,
  .feature-grid,
  .screen-row,
  .growth-grid,
  .policy-grid,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .trust-grid article {
    min-height: 0;
    padding: 20px;
  }

  .feature-card {
    min-height: 0;
  }

  .app-screen-card {
    height: 420px;
    max-width: 350px;
    margin-inline: auto;
  }

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

  .forest-inner {
    padding-block: 68px;
  }

  .coming-soon-card {
    padding: 24px;
  }

  .footer-grid {
    display: grid;
  }
}

@media (max-width: 430px) {
  .hero,
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .app-screen-card {
    height: 390px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Keep botanical growth-stage artwork fully visible in homepage tiles */
.growth-grid article {
  display: flex;
  flex-direction: column;
}
.growth-grid img {
  width: 100%;
  height: clamp(280px, 24vw, 360px);
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 10px;
  background:
    radial-gradient(circle at 50% 48%, rgba(232, 241, 232, 0.72), transparent 62%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(245, 242, 238, 0.72));
}
.growth-grid span {
  margin-top: auto;
}
@media (max-width: 760px) {
  .growth-grid img {
    height: clamp(240px, 60vw, 340px);
    padding: 8px;
  }
}

/* Targeted rhythm pass: remove dead space between hero, trust, and features */
.hero {
  padding-top: clamp(72px, 7vw, 96px);
  padding-bottom: clamp(64px, 5vw, 76px);
}
.trust-section {
  padding-top: 0;
  padding-bottom: 0;
}
.feature-section {
  padding-top: clamp(72px, 6vw, 88px);
  padding-bottom: clamp(88px, 7vw, 108px);
}
.section:not(.trust-section):not(.feature-section) {
  padding-top: clamp(88px, 7vw, 112px);
  padding-bottom: clamp(88px, 7vw, 112px);
}
.app-preview-section {
  padding-top: clamp(88px, 7vw, 104px);
  padding-bottom: clamp(88px, 7vw, 104px);
}
.growth-section {
  padding-top: clamp(88px, 7vw, 104px);
  padding-bottom: clamp(88px, 7vw, 104px);
}
.coming-soon-section {
  padding-top: clamp(88px, 7vw, 104px);
  padding-bottom: clamp(88px, 7vw, 104px);
}
.founder-teaser-section {
  padding-top: clamp(88px, 7vw, 104px);
  padding-bottom: clamp(88px, 7vw, 104px);
}
.forest-inner {
  padding-block: clamp(88px, 7vw, 108px);
}
@media (max-width: 760px) {
  .hero {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .trust-section {
    padding-top: 0;
    padding-bottom: 0;
  }
  .feature-section {
    padding-top: 56px;
    padding-bottom: 64px;
  }
  .section:not(.trust-section):not(.feature-section),
  .app-preview-section,
  .growth-section,
  .coming-soon-section,
  .founder-teaser-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .forest-inner {
    padding-block: 64px;
  }
}
@media (max-width: 430px) {
  .hero,
  .section:not(.trust-section):not(.feature-section),
  .app-preview-section,
  .growth-section,
  .coming-soon-section,
  .founder-teaser-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .feature-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

/* ════════════════════════════════════════════════════════════════════
   STILLWATER UPGRADE — realistic device frame, hero depth, scroll reveals
   ════════════════════════════════════════════════════════════════════ */

/* ── Realistic Android device frame ─────────────────────────────────
   A proper phone silhouette: dark bezel, punch-hole camera, side button,
   multi-layer ambient + contact shadows. Replaces the flat white-card
   look. Use <div class="device"> wrapping a screen element. */
.device {
  position: relative;
  width: min(340px, 80vw);
  aspect-ratio: 9 / 20; /* matches 720x1600 screenshots exactly — no crop */
  padding: 11px;
  border-radius: 46px;
  background:
    linear-gradient(160deg, #1d211e 0%, #0e1311 55%, #161a17 100%);
  box-shadow:
    /* outer ambient */
    0 60px 110px -40px rgba(20, 36, 28, 0.55),
    0 30px 50px -18px rgba(20, 36, 28, 0.35),
    /* contact shadow */
    0 8px 18px -6px rgba(15, 25, 20, 0.45),
    /* edge highlight */
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(0, 0, 0, 0.5);
  transition: transform 600ms cubic-bezier(.2, .7, .2, 1);
}

.device::before {
  /* top edge specular highlight — catches imaginary light */
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 28px;
  border-radius: 46px 46px 50% 50% / 46px 46px 100% 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent);
  pointer-events: none;
}

.device::after {
  /* right side power button */
  content: "";
  position: absolute;
  top: 22%;
  right: -2px;
  width: 3px;
  height: 56px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, #0a0d0b, #1d211e, #0a0d0b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.device-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.device-screen::before {
  /* punch-hole camera */
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #2a2e2b 0%, #050706 65%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.8),
    0 0 8px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.device-screen::after {
  /* subtle screen reflection sheen */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0) 62%
  );
  pointer-events: none;
  z-index: 2;
}

/* Hero device — subtle 3D tilt, only on wide screens */
.hero .device.tilt {
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg) translateZ(0);
}

.hero .device.tilt:hover {
  transform: perspective(1400px) rotateY(-3deg) rotateX(1.5deg) translateZ(0);
}

@media (max-width: 760px) {
  .hero .device.tilt {
    transform: none;
  }
}

/* Smaller device variants for the screen-row preview section */
.device.compact {
  width: min(260px, 70vw);
  padding: 9px;
  border-radius: 36px;
}
.device.compact .device-screen {
  border-radius: 28px;
}
.device.compact .device-screen::before {
  top: 10px;
  width: 8px;
  height: 8px;
}

/* ── Hero: stronger atmosphere ─────────────────────────────────────── */
.botanical-hero {
  background:
    radial-gradient(ellipse at 75% 12%, rgba(63, 122, 90, 0.10), transparent 50%),
    radial-gradient(ellipse at 12% 78%, rgba(201, 152, 70, 0.07), transparent 45%);
}

.hero-copy h1 {
  letter-spacing: -0.035em;
  font-weight: 500;
}

.hero-copy .lede {
  font-size: clamp(1.18rem, 1.7vw, 1.42rem);
  line-height: 1.45;
  color: rgba(38, 51, 47, 0.92);
}

.hero .button {
  min-height: 54px;
  padding: 0 28px;
  font-size: 1.02rem;
}

.hero-visual {
  position: relative;
}

/* Watercolor leaf behind the hero device — soft botanical wash */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -8% -14%;
  background:
    radial-gradient(circle at 30% 35%, rgba(63, 122, 90, 0.18), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(232, 241, 232, 0.45), transparent 60%);
  filter: blur(8px);
  z-index: -1;
}

/* ── App preview section: switch to realistic devices ─────────────── */
.screen-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: end;
}

.screen-row .device {
  width: 100%;
  max-width: 240px;
  margin-inline: auto;
  transition: transform 500ms cubic-bezier(.2, .7, .2, 1);
}

.screen-row .device:hover {
  transform: translateY(-6px);
}

.screen-row figcaption {
  margin-top: 14px;
  color: rgba(38, 51, 47, 0.62);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

@media (max-width: 1040px) {
  .screen-row {
    gap: 18px;
  }
  .screen-row .device {
    max-width: 200px;
  }
}

@media (max-width: 760px) {
  .screen-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .screen-row .device {
    max-width: 260px;
  }
}

/* ── Trust grid — refine ──────────────────────────────────────────── */
.trust-grid {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.6), rgba(232, 241, 232, 0.4));
  border-color: rgba(46, 88, 68, 0.10);
}

.trust-grid article {
  position: relative;
  transition: background 200ms ease;
}

.trust-grid article:hover {
  background: rgba(255, 253, 248, 0.98);
}

/* ── Feature cards — tighten ──────────────────────────────────────── */
.feature-card {
  border-radius: var(--radius-lg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ── Scroll reveal — fade up on intersection ──────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms cubic-bezier(.2, .7, .2, 1),
    transform 700ms cubic-bezier(.2, .7, .2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal][data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero .device.tilt {
    transform: none;
  }
}

/* ── Feature tiles — concrete capabilities grid ──────────────────────
   Companion to the high-level Track/Reflect/Return cards. These call out
   specific named features so visitors can see what's actually inside. */
.tiles-section {
  padding-top: clamp(72px, 6vw, 96px);
  padding-bottom: clamp(72px, 6vw, 96px);
}

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

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 253, 248, 0.96), rgba(232, 241, 232, 0.42));
  box-shadow: var(--shadow-soft);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
  overflow: hidden;
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(46, 88, 68, 0.18);
}

.tile::before {
  /* subtle botanical wash, top-right */
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(63, 122, 90, 0.10), transparent 70%);
  pointer-events: none;
}

.tile-glyph {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--forest-dark);
  background: rgba(232, 241, 232, 0.9);
  border: 1px solid rgba(46, 88, 68, 0.10);
}

.tile-glyph svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.tile p {
  margin: 0;
  color: rgba(38, 51, 47, 0.74);
  font-size: 0.98rem;
  line-height: 1.55;
}

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

@media (max-width: 560px) {
  .tiles-grid {
    grid-template-columns: 1fr;
  }
  .tile {
    padding: 22px 20px;
  }
}
