:root {
  color-scheme: light;
  --ink: #171923;
  --ink-soft: #30333e;
  --muted: #6b6f7a;
  --paper: #fafaf8;
  --cream: #fffdf8;
  --line: #e4e5e1;
  --accent: #d8ead4;
  --accent-deep: #315d57;
  --brand-blue: #1689f8;
  --brand-coral: #ff777d;
  --brand-gold: #ffd98b;
  --dark: #171923;
  --dark-soft: #292b37;
  --dark-muted: #b8bac4;
  --shadow: 0 24px 60px rgba(23, 25, 35, .1);
  font-family: "Onest", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@font-face {
  font-display: swap;
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  src: url("/fonts/Unbounded-Variable.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  src: url("/fonts/Onest-Variable.ttf") format("truetype");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 28px 0;
}

.wordmark {
  align-items: center;
  display: inline-flex;
  font-family: "Unbounded", ui-sans-serif, sans-serif;
  font-size: 1rem;
  font-weight: 750;
  gap: 10px;
  letter-spacing: -.06em;
  text-decoration: none;
}

.wordmark-icon {
  background: #fff;
  border-radius: 10px;
  display: block;
  flex: 0 0 34px;
  height: 34px;
  overflow: hidden;
  width: 34px;
}

.wordmark-icon img {
  display: block;
  height: 184%;
  max-width: none;
  transform: translate(-23%, -23%);
  width: 184%;
}

.wordmark-footer { color: var(--ink); }

.header-cta,
.text-link {
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
}

.header-cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 9px 14px;
}

.header-cta:hover,
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.header-cta:hover { background: var(--brand-blue); color: white; text-decoration: none; }

.eyebrow {
  color: var(--accent-deep);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1, h2, h3 {
  font-family: "Unbounded", ui-sans-serif, sans-serif;
  letter-spacing: -.065em;
  line-height: 1.04;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(48px, 7vw, 100px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, .84fr);
  padding: clamp(62px, 10vw, 122px) 0 112px;
}

.hero h1 {
  font-size: clamp(3.15rem, 7vw, 6.35rem);
  margin-bottom: 28px;
  max-width: 730px;
}

.hero h1 span { color: var(--brand-blue); }

.hero-copy {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  line-height: 1.48;
  max-width: 590px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
}

.button {
  border-radius: 999px;
  display: inline-flex;
  font-size: .9rem;
  font-weight: 800;
  gap: 10px;
  padding: 13px 19px;
  text-decoration: none;
}

.button-primary { background: var(--ink); color: white; }

.button-primary:hover { background: #2f473b; }

.hero-demo { min-width: 0; }

.feed-demo {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 auto;
  max-width: 460px;
}

.feed-demo:focus-visible {
  border-radius: 26px;
  outline: 3px solid var(--accent-deep);
  outline-offset: 7px;
}

.feed-cards {
  aspect-ratio: 4 / 5;
  position: relative;
  width: 100%;
}

.feed-card {
  --card-accent: var(--accent-deep);
  --card-background: linear-gradient(135deg, #f2efe9, #dfe4df);
  --card-foreground: var(--ink);
  --card-shadow: rgba(65, 84, 72, .32);
  --editorial-scale: 1;
  background: var(--card-background);
  border-radius: 24px;
  box-shadow: 0 34px 58px -28px var(--card-shadow);
  color: var(--card-foreground);
  display: flex;
  flex-direction: column;
  inset: 0;
  opacity: 0;
  overflow: hidden;
  padding: 32px 24px 36px;
  position: absolute;
  transform: translateX(20px) rotate(1deg);
  transition: opacity .28s ease, transform .28s ease, box-shadow .28s ease;
  visibility: hidden;
}

.feed-card.is-active {
  opacity: 1;
  transform: translateX(0) rotate(0);
  visibility: visible;
}

.feed-card-content {
  display: flex;
  flex-direction: column;
  gap: calc(24px * var(--card-spacing-scale, 1));
  margin: auto 0;
  max-height: 100%;
  min-width: 0;
  width: 100%;
}

.public-card-meta {
  color: var(--muted);
  display: flex;
  font-size: .72rem;
  font-weight: 750;
  justify-content: space-between;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.card-emoji {
  align-self: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: calc(clamp(5.5rem, 14vw, 8.5rem) * var(--emoji-scale, 1));
  line-height: 1;
  margin: 0 0 4px;
  text-align: center;
  width: 100%;
}

.public-emoji {
  font-size: 3.4rem;
  line-height: 1;
  margin: 42px 0 22px;
}

.feed-card-metric {
  color: var(--card-accent);
  font-family: "Unbounded", ui-sans-serif, sans-serif;
  font-size: 84px;
  font-weight: 900;
  letter-spacing: -.07em;
  line-height: .98;
  margin: 0;
  max-width: 100%;
  overflow-wrap: normal;
  transform-origin: left top;
  white-space: nowrap;
}

.feed-card-title {
  color: var(--card-accent);
  font-size: calc(30px * var(--editorial-scale));
  font-weight: 750;
  hyphens: auto;
  line-height: 1.08;
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.has-metric .feed-card-title { color: var(--card-foreground); }

.feed-card-body {
  color: var(--card-body, var(--card-foreground));
  font-size: calc(17px * max(.94, var(--editorial-scale)));
  hyphens: auto;
  line-height: 1.42;
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
}

/* The native renderer walks these same editorial fit levels before hiding an
   emoji as a last resort. The browser version uses a ResizeObserver to pick
   the first level that fits the fixed demo card. */
.feed-card.fit-2 { --card-spacing-scale: .95; --emoji-scale: .92; }
.feed-card.fit-3 { --card-spacing-scale: .9; --emoji-scale: .85; }
.feed-card.fit-4 { --card-spacing-scale: .85; --emoji-scale: .75; }
.feed-card.fit-5 { --card-spacing-scale: .85; --emoji-scale: .75; }
.feed-card.fit-5 .card-emoji { display: none; }

.feed-next {
  align-items: center;
  align-self: center;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 750;
  gap: 12px;
  justify-content: center;
  min-height: 52px;
  padding: 13px 23px;
}

.feed-next:hover,
.feed-next:focus-visible { background: #30333e; }

.feed-next:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 4px; }

.empty-demo {
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: 24px;
  padding: 70px 30px;
  text-align: center;
}

.empty-demo p:first-child { font-size: 1.15rem; font-weight: 750; margin-bottom: 8px; }

.muted { color: var(--muted); font-size: .9rem; }

.reframe-section,
.sweet-spot,
.rabbit-section,
.memory-section {
  border-top: 1px solid var(--line);
  padding: 118px 0;
}

.reframe-section,
.sweet-spot {
  display: grid;
  gap: clamp(42px, 10vw, 150px);
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
}

.section-intro h2,
.memory-section h2 {
  font-size: clamp(2.8rem, 5.6vw, 5.2rem);
  margin-bottom: 0;
  max-width: 680px;
}

.section-copy {
  align-self: end;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.55;
  max-width: 520px;
}

.section-copy .emphasis {
  color: var(--ink);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 750;
  letter-spacing: -.025em;
  margin-bottom: 0;
  padding-top: 14px;
}

.section-copy .emphasis span { color: var(--accent-deep); }

.contrast-grid { display: grid; gap: 16px; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.contrast-panel {
  background: #e9ede4;
  border-radius: 25px;
  min-height: 280px;
  padding: clamp(26px, 4vw, 45px);
}

.contrast-panel-highlight { background: var(--accent); }

.contrast-label {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  margin-bottom: 48px;
  text-transform: uppercase;
}

.contrast-panel-highlight .contrast-label { color: #536313; }

.contrast-panel h3 { font-size: clamp(1.55rem, 3vw, 2.3rem); letter-spacing: -.045em; line-height: 1.05; margin-bottom: 15px; }

.contrast-panel > p:not(.contrast-label):not(.panel-note) { color: var(--muted); max-width: 470px; }

.contrast-panel-highlight > p:not(.contrast-label):not(.panel-note) { color: #384519; }

.panel-note { color: #536313; font-size: .83rem; margin-bottom: 0; margin-top: 28px; }

.rabbit-section {
  align-items: center;
  display: grid;
  gap: clamp(45px, 8vw, 100px);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.rabbit-copy h2 { font-size: clamp(2.7rem, 5vw, 4.7rem); max-width: 620px; }

.rabbit-copy > p:last-child { color: var(--muted); font-size: 1.12rem; max-width: 500px; }

.rabbit-chain {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.rabbit-node {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 104px;
  padding: 16px;
}

.rabbit-node span { color: var(--accent-deep); font-size: .7rem; font-weight: 800; letter-spacing: .1em; }

.rabbit-node strong { font-size: .9rem; line-height: 1.15; }

.rabbit-arrow { color: var(--accent-deep); font-size: 1.4rem; }

.feature-section {
  margin: 0;
  padding: 124px 0;
}

.feature-section-dark { background: var(--dark); color: white; }

.feature-inner { max-width: 1120px; }

.feature-section-dark .eyebrow { color: var(--accent); }

.feature-inner h2 {
  font-size: clamp(2.9rem, 6vw, 6rem);
  max-width: 820px;
}

.feature-inner > p:not(.eyebrow) { color: var(--dark-muted); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; max-width: 625px; }

.feature-inner .feature-secondary { color: white; margin-bottom: 0; margin-top: 28px; }

.memory-section { padding-bottom: 132px; }

.memory-section h2 { max-width: 900px; }

.memory-section > p:last-child { color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.28rem); line-height: 1.55; margin: 32px 0 0; max-width: 620px; }

.closing-cta {
  background: var(--accent);
  border-radius: 28px;
  margin-bottom: 100px;
  padding: clamp(38px, 7vw, 72px);
}

.closing-cta .eyebrow { color: #536313; }

.closing-cta h2 { font-size: clamp(2.8rem, 5.5vw, 5.2rem); max-width: 850px; }

.closing-cta > p:not(.eyebrow) { color: #384519; font-size: 1.08rem; max-width: 470px; }

.closing-cta .button { margin-top: 12px; }

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: .82rem;
  gap: 20px;
  justify-content: space-between;
  padding: 23px 0 35px;
}

.card-page { max-width: 860px; padding: 70px 0 120px; }

.breadcrumb { color: var(--muted); font-size: .82rem; margin-bottom: 42px; }

.breadcrumb a { font-weight: 750; text-decoration: none; }

.breadcrumb span { padding: 0 8px; }

.public-card { background: var(--cream); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); padding: clamp(28px, 7vw, 76px); }

.public-card h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); margin-bottom: 20px; }

.public-card-title { color: var(--muted); font-size: 1.25rem; font-weight: 700; }

.card-body { font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.65; margin-top: 42px; }

.card-body p:last-child { margin-bottom: 0; }

.source-note { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; margin: 44px 0 0; padding-top: 18px; }

.source-note a { color: var(--ink); font-weight: 700; }

.keep-going { border-top: 1px solid var(--line); margin-top: 76px; padding-top: 55px; }

.keep-going h2, .page-cta h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); margin-bottom: 10px; }

.page-cta { background: var(--accent); border-radius: 26px; margin-top: 70px; padding: 45px; }

.page-cta .eyebrow { color: #536313; }

.not-found { padding: 130px 0 220px; }

.not-found h1 { font-size: clamp(3.3rem, 8vw, 7rem); max-width: 820px; }

.not-found p:not(.eyebrow) { color: var(--muted); font-size: 1.15rem; margin-bottom: 28px; }

@media (max-width: 820px) {
  .hero,
  .reframe-section,
  .sweet-spot,
  .rabbit-section { grid-template-columns: 1fr; }

  .hero { gap: 70px; padding-top: 74px; }

  .hero-demo { max-width: 560px; width: 100%; }

  .reframe-section,
  .sweet-spot,
  .rabbit-section { gap: 42px; }

  .section-copy { align-self: auto; }

  .rabbit-chain { justify-content: start; }
}

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

  .site-header { padding-top: 18px; }

  .hero { gap: 52px; padding: 70px 0 84px; }

  .hero h1 { font-size: clamp(3.15rem, 16vw, 5.4rem); }

  .hero-copy { font-size: 1.08rem; }

  .feed-demo { gap: 20px; }

  .feed-card { border-radius: 20px; padding: 27px 24px 31px; }

  .feed-card-metric { font-size: 64px; }

  .feed-card-title { font-size: calc(26px * var(--editorial-scale)); }

  .feed-card-body { font-size: calc(16px * max(.94, var(--editorial-scale))); }

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

  .contrast-panel { min-height: 0; }

  .contrast-label { margin-bottom: 38px; }

  .rabbit-chain { align-items: stretch; flex-direction: column; }

  .rabbit-node { min-width: 0; }

  .rabbit-arrow { line-height: 1; text-align: center; transform: rotate(90deg); }

  .feature-section { padding: 92px 0; }

  .reframe-section,
  .sweet-spot,
  .rabbit-section,
  .memory-section { padding: 86px 0; }

  .closing-cta { margin-bottom: 72px; padding: 38px 25px; }

  .site-footer { align-items: start; flex-direction: column; padding-bottom: 27px; }

  .public-card { border-radius: 22px; padding: 27px; }

  .card-page { padding-top: 35px; }

  .public-emoji { margin-top: 34px; }
}

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

  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
