/* PURPOSE: Trailhead product page theme (forest, amber, painted landscape). */
:root {
  --forest-900: #0b1411;
  --forest-800: #13251e;
  --forest-600: #23523d;
  --forest-500: #2f6b4f;
  --sage: #4a9a6f;
  --amber: #e0a44b;
  --amber-soft: #f3d9a8;
  --cream: #f4f3ee;
  --paper: #fbfaf6;
  --ink: #14181a;
  --muted: #5d6460;
  --line: rgba(20, 24, 26, 0.09);
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(12, 20, 17, 0.06), 0 12px 40px -12px rgba(12, 20, 17, 0.18);
  --radius: 28px;
  --display: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #0f1513;
    --paper: #121917;
    --ink: #ecefe9;
    --muted: #97a09b;
    --line: rgba(236, 239, 233, 0.08);
    --card: #18201d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 48px -16px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--display); font-style: italic; font-weight: 400; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 50; width: min(1080px, calc(100% - 32px));
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: rgba(14, 22, 19, 0.55); color: #fff;
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(14, 22, 19, 0.78); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.logo-icon { width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.logo-word { font-family: "Pacifico", cursive; font-weight: 400; font-size: 20px; color: var(--amber); line-height: 1; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  white-space: nowrap; padding: 8px 16px; border-radius: 999px; font-size: 15px; color: rgba(255, 255, 255, 0.8);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav-links .nav-cta { background: #fff; color: var(--forest-900); font-weight: 600; }
.nav-links .nav-cta:hover { background: var(--amber-soft); color: var(--forest-900); }

/* ---------- Shared ---------- */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 20px;
}
.eyebrow.dark { color: var(--amber-soft); display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; transition: transform 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--forest-900); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.grain {
  position: absolute; inset: 0; opacity: 0.08; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Showcase ---------- */
.showcase { position: relative; overflow: hidden; background: var(--forest-900); color: #fff; }
.showcase-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.showcase-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--forest-900) 0%, rgba(11, 20, 17, 0.35) 22%, rgba(11, 20, 17, 0.1) 50%, rgba(11, 20, 17, 0.85) 100%),
    linear-gradient(90deg, rgba(11, 20, 17, 0.75) 0%, rgba(11, 20, 17, 0) 60%);
}
.showcase-inner {
  position: relative; max-width: 1180px; margin: 0 auto; padding: 160px 24px 120px;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #6fe0a0;
  box-shadow: 0 0 0 0 rgba(111, 224, 160, 0.6); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(111, 224, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 224, 160, 0); } }
.wordmark {
  font-family: "Pacifico", cursive; font-weight: 400; font-size: clamp(56px, 7.5vw, 100px);
  line-height: 1.1; color: var(--amber); text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}
.tagline { font-family: var(--display); font-style: italic; font-size: clamp(24px, 2.6vw, 34px); margin: 4px 0 24px; }
.showcase-text { max-width: 440px; color: rgba(255, 255, 255, 0.8); font-size: 18px; }

.phones { position: relative; height: 640px; }
.phone {
  position: absolute; width: 270px; aspect-ratio: 1206 / 2622;
  padding: 9px; border-radius: 46px; background: #0c0f0e;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.12), 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 20px 30px -10px rgba(0, 0, 0, 0.4);
  will-change: transform;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 38px; }
.p-left   { left: 0;   top: 70px;  --r: -9deg; transform: rotate(var(--r)); }
.p-center { left: 50%; top: 0;     width: 300px; margin-left: -150px; z-index: 2; --r: 0deg; }
.p-right  { right: 0;  top: 90px;  --r: 9deg; transform: rotate(var(--r)); }

/* ---------- Core theses (visuals mirror the app's intro cards and tokens) ---------- */
.wit, .app {
  --app-bg: #f5f5f2; --app-card: #ffffff; --app-text: #111311; --app-muted: #5f635f;
  --app-accent: #1f4d3a; --app-disabled: #c4c6c2; --app-tile: #f2f3f0; --app-hairline: #e2e2dc;
  font-family: "DM Sans", var(--sans); color: var(--app-text);
}
.wit {
  background: var(--app-bg); color: var(--app-text); padding: 140px 24px;
}
.wit-label {
  max-width: 1080px; margin: 0 auto 24px; font-size: 20px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--app-accent);
}
.idea {
  max-width: 1080px; margin: 0 auto; padding: 56px 0 96px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.idea h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 18px; }
.idea-copy p { font-size: 19px; line-height: 1.55; color: var(--app-text); max-width: 480px; }
.idea-copy p + p { margin-top: 14px; }

/* PreviewCard: depth.raised, radius 16, padding 14 */
.th-card {
  background: var(--app-card); border-radius: 16px; padding: 14px;
  box-shadow: 0 0 0 1px rgba(17,19,17,0.09), inset 0 1px 0 #fff, 0 1px 1px rgba(17,19,17,0.06), 0 3px 6px rgba(17,19,17,0.06), 0 16px 32px -12px rgba(17,19,17,0.24);
}
.tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; background: var(--app-tile);
  color: var(--app-accent); font-size: 16px;
}

.ph { width: 1em; height: 1em; display: block; fill: currentColor; }

/* Idea 1: connections map */
.map { --h: 240px; --tile: 44px; position: relative; height: var(--h); max-width: 480px; width: 100%; justify-self: center; }
.map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .tile {
  width: var(--tile); height: var(--tile); border-radius: 12px; font-size: 22px; background: var(--app-card);
  box-shadow: 0 0 0 1px rgba(17,19,17,0.09), inset 0 1px 0 #fff, 0 1px 1px rgba(17,19,17,0.06), 0 3px 6px rgba(17,19,17,0.06), 0 12px 24px -10px rgba(17,19,17,0.22);
}
.node { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100px; margin-left: -50px; }
.node-label { font-size: 14px; line-height: 18px; font-weight: 600; }
.node.tl, .node.bl { left: 15%; }
.node.tr, .node.br { left: 85%; }
/* Tile centres sit on the SVG's line ends (30% and 70% of the height). */
.node.tl, .node.tr { top: calc(var(--h) * 0.3 - var(--tile) / 2 - 24px); }
.node.bl, .node.br { top: calc(var(--h) * 0.7 - var(--tile) / 2); flex-direction: column-reverse; }

/* Idea 2: three result cards (ResultPreview) */
.idea-wide { grid-template-columns: 1fr; gap: 40px; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.result { padding-top: 12px; }
.result-head { display: flex; align-items: center; gap: 5px; }
.result .tile { width: 22px; height: 22px; font-size: 12px; border-radius: 6px; }
.times { font-size: 12px; font-weight: 500; color: var(--app-muted); }
.yours { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--app-muted); }
.result-headline { margin-top: 6px; font-size: 15px; line-height: 30px; font-weight: 600; }
.gain { font-size: 26px; font-weight: 700; color: var(--app-accent); letter-spacing: -0.5px; }
.result-when { font-size: 14px; line-height: 19px; margin-bottom: 14px; min-height: 38px; }
.th-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; }
.th-bar span { width: 86px; flex: none; font-weight: 500; color: var(--app-muted); }
.th-bar b { width: 48px; flex: none; text-align: right; font-weight: 500; }
.th-bar.strong b { font-weight: 700; }
.th-track { flex: 1; height: 8px; border-radius: 4px; overflow: hidden; background: #e2e2dd; box-shadow: inset 0 1px 2px rgba(17,19,17,0.12); }
.th-fill { height: 100%; width: 0; border-radius: 4px; background: var(--app-accent); transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s; }
.th-fill.muted { background: var(--app-disabled); }
.in .th-fill { width: var(--w); }

/* Idea 3: community feed (FeedPostCard), scrolling upward on a loop */
.feed-wrap { margin: 0; max-width: 420px; width: 100%; justify-self: center; }
.feed-note { margin-top: 24px; text-align: center; font-size: 12px; font-style: italic; color: var(--app-muted); }
.feed {
  position: relative; height: 480px;
  overflow: hidden; padding: 0 12px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.feed-track { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.feed.looping .feed-track { animation: feed-scroll var(--loop, 40s) linear infinite; }
.feed:hover .feed-track { animation-play-state: paused; }
/* The list is doubled, so -50% lands exactly on the copy's first card. */
@keyframes feed-scroll { to { transform: translateY(-50%); } }
.post header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--av, var(--app-tile));
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700;
}
.author { flex: 1; min-width: 0; }
.who { font-size: 14px; font-weight: 600; }
.group { font-size: 13px; font-weight: 600; color: var(--app-accent); }
.ago { font-size: 12px; color: var(--app-muted); }
.kind { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--app-accent); }
.kind .ph { font-size: 14px; }
.say { margin-top: 8px; font-size: 14px; line-height: 20px; }
.quote {
  margin-top: 8px; padding: 12px; border-radius: 12px; background: #eeefeb;
  box-shadow: inset 0 1px 2px rgba(17,19,17,0.10), inset 0 0 0 1px rgba(17,19,17,0.04);
}
.quote p { font-size: 14px; line-height: 20px; font-weight: 600; }
.quote b { display: block; margin-top: 6px; font-size: 12px; color: var(--app-accent); }
.post footer { display: flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--app-muted); }
.post footer .ph { font-size: 16px; }

/* ---------- Bento ---------- */
.bento-section { background: var(--cream); padding: 40px 24px 140px; }
.bento {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 420px; gap: 20px;
}
.card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow); padding: 32px;
  display: flex; flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
}
.card:hover { transform: translateY(-6px); }
.card h3 { font-size: 24px; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 8px; }
.card-copy p { color: var(--muted); font-size: 18px; line-height: 1.5; max-width: 360px; }
.c-wide { grid-column: span 2; flex-direction: row; gap: 32px; }
.c-wide .card-copy { flex: 1; align-self: center; }
.c-tall { grid-row: span 2; background: linear-gradient(180deg, var(--card) 40%, #e8f2ec); }
.c-dark { background: var(--forest-800); color: #fff; }
.c-dark .card-copy p { color: rgba(255, 255, 255, 0.65); }
.c-amber { background: linear-gradient(160deg, #f6e3bf, #efc983); color: var(--forest-900); }
.c-amber .card-copy p { color: rgba(19, 37, 30, 0.7); }
.c-areas { grid-column: span 2; justify-content: space-between; }
.areas { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; }
.areas li {
  font-family: "Pacifico", cursive; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.5;
  color: var(--c); transition: transform 0.3s;
}
.areas li:hover { transform: translateY(-4px) rotate(-2deg); }
/* Bento visuals: the app component each card is about, not a phone screenshot */
.card-ui {
  margin: auto -8px -14px; padding-top: 28px; width: calc(100% + 16px);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card:hover .card-ui { transform: translateY(-10px); }
.card-ui .th-card { text-align: left; }
.ui-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; margin-bottom: -40px; }
.ui-title { font-size: 15px; font-weight: 700; }
.ui-head { display: flex; justify-content: space-between; align-items: baseline; }
.ui-head span { white-space: nowrap; font-size: 13px; color: var(--app-muted); }
.ui-head span b { color: var(--app-text); }
.card-ui p { color: var(--app-text); }
.card-ui .group, .card-ui .kind, .card-ui .fyd-label { color: var(--app-accent); }
.card-ui .lvl { color: var(--app-muted); }

/* Day by day scatter */
.scatter { display: block; width: 100%; height: auto; margin-top: 6px; font: 9px "DM Sans", sans-serif; }
.scatter text { fill: var(--app-muted); }
.scatter .g { stroke: var(--app-hairline); stroke-width: 1; }
.scatter .cut { stroke: #6b706b; stroke-width: 1; stroke-dasharray: 3 3; }
.scatter .lo { fill: #cfd1cc; opacity: 0.85; }
.scatter .hi { fill: #2f6b4f; opacity: 0.9; }
.scatter .avg { stroke: #111311; stroke-width: 2; }

/* How sure we are */
.seg { display: flex; margin: 10px 0 4px; padding: 3px; border-radius: 10px; background: #e2e2dd; box-shadow: inset 0 1px 2px rgba(17,19,17,0.12); }
.seg span { flex: 1; text-align: center; font-size: 13px; padding: 6px 0; color: #8a8e8a; border-radius: 8px; }
.seg .on { background: #fff; color: var(--app-text); font-weight: 700; box-shadow: 0 1px 2px rgba(17,19,17,0.12), 0 2px 6px rgba(17,19,17,0.08); }
.checks, .plan { list-style: none; }
.checks li, .plan li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; }
.checks li + li, .plan li + li { border-top: 1px solid var(--app-hairline); }
.checks p, .plan p { font-size: 14px; font-weight: 600; line-height: 19px; }
.checks span, .plan li > div > span { font-size: 12px; color: var(--app-muted); line-height: 16px; }
.ok { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.ok circle { fill: var(--app-accent); }

/* Today plan */
.plan li { align-items: center; }
.plan li > div { flex: 1; min-width: 0; }
.ring { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #b9bcb7; }
.yn { display: flex; gap: 6px; }
.yn b {
  font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 9px; color: var(--app-muted);
  background: #fff; box-shadow: 0 0 0 1px rgba(17,19,17,0.12), 0 1px 2px rgba(17,19,17,0.08);
}
.yn b.on { color: var(--app-accent); font-weight: 700; box-shadow: 0 0 0 1.5px var(--app-accent), 0 1px 2px rgba(17,19,17,0.08); }

/* This week grid */
.week { display: grid; grid-template-columns: 30px repeat(7, 1fr); gap: 5px; margin-top: 10px; align-items: center; }
.week > b { text-align: center; font-size: 12px; font-weight: 600; color: var(--app-muted); }
.week > b.now { color: var(--app-text); font-weight: 700; }
.week > span { font-size: 10px; font-weight: 700; color: var(--app-muted); }
.week i {
  display: flex; align-items: center; justify-content: center; gap: 1px; aspect-ratio: 1.15;
  border-radius: 8px; background: #e7e8e4; box-shadow: inset 0 1px 2px rgba(17,19,17,0.10); font-size: 13px; color: var(--app-accent);
}
.week i.done { background: #f1f2ee; box-shadow: 0 0 0 1px rgba(17,19,17,0.10), 0 1px 2px rgba(17,19,17,0.08); }
.week i.today { background: #f1f2ee; box-shadow: 0 0 0 1.5px var(--app-accent); }
.week .faint { color: #b9bcb7; display: flex; }
.ui-foot { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.ui-foot .ph { font-size: 15px; color: var(--app-muted); }

/* From your data (pattern card) */
.ui-wide { margin: 0 -12px -70px 0; padding-top: 0; width: 360px; flex: none; align-self: flex-end; transform: rotate(3deg); }
.c-wide:hover .ui-wide { transform: rotate(1.5deg) translateY(-10px); }
.fyd { background: #e6efe9; border-radius: 16px; padding: 14px 16px 16px; box-shadow: 0 0 0 1px rgba(31,77,58,0.10), 0 16px 32px -12px rgba(17,19,17,0.30); }
.fyd-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pat { padding: 10px 0 12px; }
.pat + .pat { border-top: 1px solid rgba(31,77,58,0.14); }
.pat-title { font-size: 15px; font-weight: 600; line-height: 21px; margin-bottom: 8px; }
.pbar { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-top: 4px; }
.pbar span { width: 100px; flex: none; color: var(--app-muted); }
.pbar b { width: 52px; flex: none; text-align: right; font-weight: 600; }
.ptrack { flex: 1; height: 7px; border-radius: 4px; background: #d5ddd7; overflow: hidden; }
.ptrack div { height: 100%; border-radius: 4px; background: var(--app-accent); }
.pbar.soft .ptrack div { background: #8fb3a0; }
.card-ui .lvl { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12px; }
.lvl b { color: var(--app-accent); font-size: 13px; }
.sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sig i { width: 3px; background: var(--app-accent); border-radius: 1px; }
.sig i:nth-child(1) { height: 5px; } .sig i:nth-child(2) { height: 8px; } .sig i:nth-child(3) { height: 12px; }
.sig i.dim { background: #b9c9bf; }
@media (prefers-color-scheme: dark) {
  .c-tall { background: linear-gradient(180deg, var(--card) 40%, #1c2d25); }
  .c-dark { background: #0b1411; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
}

/* ---------- Closer ---------- */
.closer {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: var(--forest-900); padding: 160px 24px;
}
.g3 { width: 700px; height: 400px; background: var(--forest-500); opacity: 0.5; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.closer-inner { position: relative; }
.closer-icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 32px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6); }
.closer h2 { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.04em; font-weight: 600; line-height: 1; }
.closer p { margin-top: 20px; color: rgba(255, 255, 255, 0.65); font-size: 19px; }

.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 28px max(24px, calc((100% - 1180px) / 2)); font-size: 14px;
  background: var(--forest-900); color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.closer h2 em { color: var(--amber-soft); }
.hero-btn { margin-top: 28px; }
.footer a:hover { color: #fff; }
.closer-actions { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.closer-actions .btn { width: 280px; max-width: 100%; justify-content: center; }

/* ---------- Trailhead page hero ---------- */
.showcase-hero { min-height: 100vh; display: flex; align-items: center; }
.showcase-hero .showcase-inner { width: 100%; }
.showcase-hero .showcase-shade {
  background:
    linear-gradient(180deg, rgba(11, 20, 17, 0.55) 0%, rgba(11, 20, 17, 0.05) 30%, rgba(11, 20, 17, 0.15) 60%, var(--forest-900) 100%),
    linear-gradient(90deg, rgba(11, 20, 17, 0.75) 0%, rgba(11, 20, 17, 0) 60%);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .showcase-inner { grid-template-columns: 1fr; padding-top: 120px; text-align: center; }
  .showcase-copy .eyebrow { justify-content: center; }
  .showcase-text { margin: 0 auto; }
  .phones { height: 560px; max-width: 520px; width: 100%; margin: 0 auto; }
  .phone { width: 210px; }
  .p-center { width: 240px; margin-left: -120px; }
  .idea { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 64px; }
  .map, .feed-wrap { justify-self: start; }
  .bento { grid-template-columns: 1fr 1fr; }
  .c-tall { grid-row: span 1; }
  .ui-stack .th-card + .th-card { display: none; }
  .ui-stack { margin-top: auto; margin-bottom: -14px; }
}
@media (max-width: 640px) {
  .nav-links a { padding: 8px 12px; }
  .nav-links a[href="#features"] { display: none; }
  .phones { height: 440px; }
  .phone { width: 150px; padding: 6px; border-radius: 30px; }
  .phone img { border-radius: 25px; }
  .p-center { width: 180px; margin-left: -90px; }
  .p-left, .p-right { top: 60px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 400px; }
  .c-wide, .c-areas { grid-column: span 1; flex-direction: column; }
  .ui-wide { width: auto; margin: 20px -8px -70px; align-self: stretch; transform: none; }
  .c-wide:hover .ui-wide { transform: translateY(-10px); }
  .wit { padding: 100px 20px; }
  .results { grid-template-columns: 1fr; max-width: 480px; }
  .showcase-hero .showcase-shade {
    background: linear-gradient(180deg, rgba(11, 20, 17, 0.8) 0%, rgba(11, 20, 17, 0.55) 45%, rgba(11, 20, 17, 0.2) 70%, var(--forest-900) 100%);
  }
  .bento-section, .closer { padding-top: 100px; padding-bottom: 100px; }
}
@media (max-width: 400px) {
  .nav-links a[href="index.html"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .th-fill { width: var(--w); }
  .feed { overflow-y: auto; }
}
