/* 1. Design tokens */
:root {
  --cream: #f7efe1;
  --cream-2: #fffaf0;
  --surface: #fffdf7;
  --emerald: #1e5a46;
  --dark-emerald: #103f32;
  --text: #242426;
  --muted: #756f68;
  --border: #eadcc7;
  --line: #d9ceb9;
  --shadow: 0 18px 44px rgba(31, 50, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(31, 50, 42, 0.08);
  --radius-sm: 10px;
  --radius-card: 24px;
  --radius-lg: 42px;
  --section: clamp(72px, 10vw, 132px);
  --width: 1160px;
  --fast: 180ms ease;
  --slow: 700ms cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* 2. Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255, 250, 240, 0.95), transparent 34rem),
    var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(30, 90, 70, 0.45);
  outline-offset: 4px;
}

/* 3. Typography */
h1,
h2,
.app-wordmark,
.brand span {
  font-family: ui-serif, "New York", Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 11vw, 8.8rem);
  line-height: 0.88;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.96;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  font-size: 1.08rem;
}

/* 4. Utilities */
.wrap {
  width: min(calc(100% - 40px), var(--width));
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 40px;
}

.section-heading p:last-child,
.section-copy p:last-child {
  max-width: 680px;
}

.eyebrow {
  color: var(--emerald);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: var(--cream-2);
  background: var(--emerald);
  font-weight: 800;
  cursor: pointer;
  max-width: 100%;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--fast), background var(--fast), box-shadow var(--fast);
}

.button:hover {
  background: var(--dark-emerald);
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--emerald);
  background: rgba(255, 253, 247, 0.82);
  border: 1px solid var(--border);
}

.button-small {
  min-height: 44px;
  padding-inline: 18px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--dark-emerald);
  color: white;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--slow), transform var(--slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 5. Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 239, 225, 0);
  transition: background var(--fast), box-shadow var(--fast), border-color var(--fast);
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(247, 239, 225, 0.92);
  border-bottom: 1px solid rgba(234, 220, 199, 0.72);
  box-shadow: 0 10px 28px rgba(31, 50, 42, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.8rem;
}

.brand img {
  border-radius: 13px;
  box-shadow: var(--shadow-soft);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-weight: 720;
}

.nav-menu a:hover {
  color: var(--emerald);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.nav-toggle-line {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--dark-emerald);
}

/* 6. Hero */
.hero {
  padding-top: clamp(54px, 9vw, 118px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: clamp(36px, 6vw, 76px);
}

.hero-text {
  max-width: 690px;
  font-size: clamp(1.14rem, 2vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 18px;
}

.promise-line {
  color: var(--dark-emerald);
  font-weight: 850;
}

.cta-note {
  min-height: 1.5em;
  color: var(--emerald);
  font-weight: 750;
}

.hero-art {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
}

.card-cloud {
  position: absolute;
  width: 260px;
  height: 170px;
  border-radius: var(--radius-card);
  background: rgba(255, 253, 247, 0.76);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.card-cloud-one {
  left: 0;
  top: 80px;
  transform: rotate(-8deg);
}

.card-cloud-two {
  right: 4px;
  bottom: 92px;
  transform: rotate(7deg);
}

.phone-frame {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 0.48;
  padding: 13px;
  border-radius: 54px;
  background: #191b1b;
  box-shadow: 0 32px 80px rgba(16, 63, 50, 0.26);
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 42px;
  padding: 42px 22px;
  background: var(--cream);
}

.app-head {
  display: grid;
  grid-template-columns: 64px 1fr 46px;
  align-items: center;
  gap: 14px;
}

.app-wordmark {
  color: var(--text);
  font-size: 2.4rem;
  line-height: 0.92;
  font-weight: 900;
  margin-bottom: 3px;
}

.app-head p:not(.app-wordmark) {
  font-size: 0.88rem;
  line-height: 1.18;
}

.round-control {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--cream-2);
  background: var(--emerald);
  font-size: 1.8rem;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  margin: 28px 0;
  padding-inline: 16px;
  border-radius: 22px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}

.search-bar span {
  width: 18px;
  height: 18px;
  border: 3px solid var(--muted);
  border-radius: 999px;
  box-shadow: 10px 10px 0 -7px var(--muted);
}

.stack-card,
.index-card {
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.stack-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  margin-bottom: 16px;
}

.stack-card span {
  color: var(--muted);
}

.stack-card-hot .mini-card::before {
  background: #f85d00;
}

.mini-card {
  position: relative;
  height: 56px;
  border-radius: 16px;
  background: #fffdf7;
  box-shadow: inset 0 6px 0 var(--emerald);
}

.mini-card::before {
  content: "🔥";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 16px 16px 0 0;
}

.mini-card-green::before {
  content: "💰";
}

.index-card {
  padding: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  margin: 0 6px 12px 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--emerald);
  background: #e9eee7;
  font-size: 0.8rem;
  font-weight: 850;
}

.chip-dark {
  color: white;
  background: #050505;
}

/* 7. Problem */
.two-column {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.source-flow {
  min-height: 420px;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 247, 0.72);
  box-shadow: var(--shadow);
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-list span,
.ticker span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 999px;
  color: var(--emerald);
  background: #eef1e8;
  font-weight: 820;
}

.flow-line {
  height: 72px;
  width: 2px;
  margin: 20px auto;
  background: linear-gradient(var(--border), var(--emerald));
}

.flow-stack {
  display: grid;
  gap: 14px;
}

.flow-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.flow-card span {
  color: var(--emerald);
  font-size: 0.85rem;
  font-weight: 850;
}

.flow-card strong {
  display: block;
  font-size: 1.2rem;
}

/* 8. How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  padding: 26px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border-radius: 999px;
  color: var(--cream-2);
  background: var(--emerald);
  font-weight: 900;
}

.step-visual {
  min-height: 130px;
  margin-top: 26px;
  padding: 18px;
  border-radius: 22px;
  background: var(--cream);
  border: 1px solid var(--border);
}

.share-sheet span,
.share-sheet small,
.search-preview span,
.search-preview strong {
  display: block;
}

.share-sheet span,
.search-preview strong {
  color: var(--text);
  font-weight: 850;
  font-size: 1.25rem;
}

.share-sheet small,
.search-preview span {
  color: var(--muted);
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 10px;
}

.chips-row span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  font-weight: 820;
}

/* 9. Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 230px;
  padding: 26px;
  border-radius: var(--radius-card);
  background: rgba(255, 253, 247, 0.78);
  border: 1px solid var(--border);
}

.feature-card span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  border-radius: 16px;
  color: var(--cream-2);
  background: var(--emerald);
  font-size: 1.5rem;
  font-weight: 900;
}

/* 10. Content types */
.content-types {
  overflow: hidden;
}

.ticker {
  position: relative;
  margin-top: 34px;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: ticker 34s linear infinite;
}

.ticker:hover .ticker-track,
.ticker.is-paused .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-40%); }
}

/* 11. Product showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.showcase-panel {
  padding: 14px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.showcase-panel h3 {
  margin: 16px 8px 6px;
}

.mock-screen {
  position: relative;
  height: 360px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--cream);
}

.mock-screen::before,
.mock-screen::after {
  content: "";
  position: absolute;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.stacks-screen::before {
  inset: 34px 24px auto;
  height: 108px;
  box-shadow: 0 140px 0 var(--surface), 0 280px 0 var(--surface);
}

.stacks-screen::after {
  left: 42px;
  top: 52px;
  width: 54px;
  height: 54px;
  background: #f85d00;
  box-shadow: 0 140px 0 var(--emerald), 0 280px 0 #fff;
}

.stack-screen::before {
  inset: 28px 18px auto;
  height: 132px;
  box-shadow: 0 156px 0 var(--surface);
}

.stack-screen::after {
  right: 34px;
  top: 76px;
  width: 70px;
  height: 70px;
  background: #eadcc7;
  box-shadow: 0 156px 0 #d8e9e0;
}

.card-screen::before {
  inset: 36px 24px auto;
  height: 122px;
}

.card-screen::after {
  left: 44px;
  right: 44px;
  bottom: 46px;
  height: 86px;
  background: #eef1e8;
}

.save-screen::before {
  inset: 34px 22px auto;
  height: 170px;
}

.save-screen::after {
  left: 34px;
  right: 34px;
  bottom: 48px;
  height: 58px;
  background: var(--emerald);
}

.showcase-tabs {
  display: none;
  margin-top: 18px;
  gap: 8px;
}

.showcase-tabs button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding-inline: 14px;
  background: var(--surface);
  color: var(--emerald);
  font-weight: 800;
}

.showcase-tabs button[aria-selected="true"] {
  background: var(--emerald);
  color: var(--cream-2);
}

/* 12. Emotional promise */
.emotional-panel {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  align-content: center;
  padding: clamp(34px, 7vw, 78px);
  border-radius: var(--radius-lg);
  background: var(--dark-emerald);
  box-shadow: var(--shadow);
}

.emotional-panel h2 {
  max-width: 850px;
  color: var(--cream-2);
}

.emotional-panel p {
  color: #d9e8de;
  font-weight: 820;
}

.layered-cards span {
  position: absolute;
  right: clamp(-80px, -5vw, -30px);
  width: 310px;
  height: 190px;
  border-radius: 28px;
  background: rgba(255, 253, 247, 0.12);
  border: 1px solid rgba(255, 253, 247, 0.18);
}

.layered-cards span:nth-child(1) {
  top: 48px;
  transform: rotate(8deg);
}

.layered-cards span:nth-child(2) {
  top: 160px;
  transform: rotate(-5deg);
}

.layered-cards span:nth-child(3) {
  bottom: 38px;
  transform: rotate(4deg);
}

/* 13. FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: 0.68fr 1fr;
  gap: clamp(28px, 5vw, 64px);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
}

.faq-item h3 {
  margin: 0;
}

.faq-item button {
  width: 100%;
  min-height: 68px;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
}

.faq-item button::after {
  content: "+";
  float: right;
  color: var(--emerald);
}

.faq-item button[aria-expanded="true"]::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 22px 20px;
}

.faq-item button[aria-expanded="true"] + .faq-answer {
  display: block;
}

.faq-answer p {
  margin-bottom: 0;
}

/* 14. Final CTA */
.final-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(26px, 5vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.final-panel h2 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  margin-bottom: 10px;
}

.final-panel img {
  border-radius: 24px;
}

/* 15. Footer */
.site-footer {
  padding-block: 42px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

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

.footer-meta {
  text-align: right;
}

.footer-meta p {
  margin-bottom: 6px;
}

/* 16. Responsive rules */
@media (max-width: 980px) {
  .hero-grid,
  .two-column,
  .faq-wrap {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 600px;
  }

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

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

  .final-panel {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(calc(100% - 28px), var(--width));
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 78px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .nav-menu a,
  .nav-menu button {
    justify-content: center;
    min-height: 48px;
  }

  .brand span {
    font-size: 1.5rem;
  }

  h1 {
    max-width: 8.8ch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-art {
    min-height: 500px;
  }

  .phone-frame {
    width: min(310px, 100%);
  }

  .card-cloud {
    width: 190px;
    height: 124px;
  }

  .showcase-grid {
    display: block;
  }

  .showcase-panel {
    display: none;
  }

  .showcase-panel.is-active {
    display: block;
  }

  .showcase-tabs {
    display: flex;
    flex-wrap: wrap;
  }

  .footer-grid {
    display: grid;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 380px) {
  .button {
    padding-inline: 16px;
  }

  .phone-screen {
    padding-inline: 16px;
  }

  .app-head {
    grid-template-columns: 54px 1fr 42px;
  }

  .app-wordmark {
    font-size: 2rem;
  }

  .mock-screen {
    height: 300px;
  }
}

/* 17. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
