:root {
  --cream: #fff3dc;
  --paper: #ffe9c2;
  --ink: #1a120c;
  --ink-soft: #5a4030;
  --calm: #34c759;
  --calm-deep: #1fa24a;
  --warn: #ff9f0a;
  --stress: #ff3b30;
  --peach: #ffb38a;
  --sky: #7ec8e3;
  --banana: #ffe56a;
  --brown: #c47a3a;
  --white: #fffdf8;
  --shadow: 0 18px 0 rgba(26, 18, 12, 0.14);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
  min-height: 100dvh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.blob {
  position: fixed;
  z-index: 0;
  filter: blur(8px);
  pointer-events: none;
  border-radius: 50%;
}

.blob-lime {
  width: 42vw;
  height: 42vw;
  background: var(--calm);
  top: -8vw;
  right: -8vw;
  opacity: 0.55;
}

.blob-peach {
  width: 28vw;
  height: 28vw;
  background: var(--peach);
  bottom: 12vh;
  left: -10vw;
  opacity: 0.5;
}

.blob-sky {
  width: 22vw;
  height: 22vw;
  background: var(--sky);
  top: 48vh;
  right: 6vw;
  opacity: 0.35;
}

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

.nav,
.hero,
.moods,
.buy,
.bloat,
.foot {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 4px 0 rgba(26, 18, 12, 0.18);
}

.nav-links,
.foot-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 800;
}

.nav-links a,
.foot-links a,
.legal-page a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 800;
  background: var(--white);
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 var(--ink);
  }
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ink);
}

.btn-buy {
  background: var(--calm);
  color: var(--ink);
}

.btn-lg {
  font-size: 1.15rem;
  padding: 0.95rem 1.5rem;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  background: var(--banana);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 800;
  margin: 12px 0 14px;
}

.lede {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34rem;
}

.lede em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  color: var(--ink);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.fine {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-stage {
  position: relative;
  background: linear-gradient(160deg, #7ae3ff 0%, #3bd16a 42%, #ffe56a 100%);
  border: 4px solid var(--ink);
  border-radius: 36px;
  min-height: 460px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 18px 28px;
}

.sun {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #fff38a;
  border: 4px solid var(--ink);
  top: 78px;
  right: 36px;
  box-shadow: 0 0 0 12px rgba(255, 243, 138, 0.35);
}

.menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: rgba(255, 253, 248, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-weight: 800;
  font-size: 0.86rem;
}

.mb-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mb-stat {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.strike {
  text-decoration: line-through;
  opacity: 0.45;
}

.capy {
  display: block;
  overflow: visible;
}

.capy .mouth-tense,
.capy .mouth-stressed,
.capy .sweat {
  display: none;
}

.capy.tense .mouth-relaxed,
.capy.stressed .mouth-relaxed,
.capy.stressed .mouth-tense {
  display: none;
}

.capy.tense .mouth-tense,
.capy.stressed .mouth-stressed,
.capy.stressed .sweat {
  display: inline;
}

.capy-sm {
  width: 26px;
  height: 22px;
  color: var(--calm);
}

.capy-hero {
  width: min(78%, 340px);
  height: auto;
  color: var(--calm);
  filter: drop-shadow(0 18px 0 rgba(26, 18, 12, 0.16));
  z-index: 1;
}

.mood-label {
  z-index: 1;
  margin-top: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
}

.bloat {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: center;
  max-width: 1120px;
  margin: 8px auto 0;
  padding: 8px 24px 0;
  font-weight: 800;
  color: var(--ink-soft);
}

.bloat span {
  text-decoration: line-through;
  opacity: 0.45;
  font-variant-numeric: tabular-nums;
}

.bloat strong {
  color: var(--ink);
  background: var(--banana);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
}

.moods {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  overflow: visible;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 28px;
}

.section-head p:last-child {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink-soft);
}

.customize {
  display: grid;
  gap: 18px;
}

.swatch-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 58px;
}

.well {
  position: relative;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 8px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.well.is-open {
  z-index: 5;
  transform: translateY(-4px);
  box-shadow: 0 12px 0 var(--ink);
}

@media (hover: hover) {
  .well:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 0 var(--ink);
  }
}

.well-hit {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.well-chip {
  width: 46px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(26, 18, 12, 0.18);
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(26, 18, 12, 0.12);
}

[data-chip="calm"] { background: var(--calm); }
[data-chip="warning"] { background: var(--warn); }
[data-chip="critical"] { background: var(--stress); }

.well-copy {
  display: grid;
  gap: 2px;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.25;
}

.well-copy strong {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
  font-weight: 800;
}

.well-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 4;
  display: none;
  transform: translateX(-50%);
  gap: 10px;
  padding: 10px 12px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--ink);
}

.well-pop.is-open {
  display: flex;
}

.well-pop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 7px);
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--white);
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(45deg);
}

.dot {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(26, 18, 12, 0.12);
  cursor: pointer;
  background: #ccc;
  -webkit-tap-highlight-color: transparent;
}

.dot.is-on {
  border: 2.5px solid var(--ink);
}

.blend {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 28px;
  padding: 22px 24px 20px;
  box-shadow: 0 10px 0 var(--ink);
}

.capy-blend {
  width: 100%;
  height: auto;
  color: var(--calm);
  filter: drop-shadow(0 10px 0 rgba(26, 18, 12, 0.12));
}

.blend-kicker {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.metric-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.metric-tab {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 36px;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.metric-tab.is-on {
  background: var(--calm);
}

.blend-status {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  margin: 0 0 14px;
}

.track-well {
  background: #2c2c2e;
  border-radius: 16px;
  padding: 18px 16px;
}

.track {
  position: relative;
  height: 30px;
  touch-action: none;
  --thumb: 16px;
}

.track-bar {
  position: absolute;
  left: calc(var(--thumb) / 2);
  right: calc(var(--thumb) / 2);
  top: 50%;
  height: 6px;
  display: flex;
  overflow: hidden;
  border-radius: 99px;
  transform: translateY(-50%);
}

.track-seg {
  height: 100%;
  opacity: 0.7;
}

.track-current {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 18px;
  margin-left: -1px;
  background: #f5f5f7;
  border-radius: 99px;
  transform: translateY(-50%);
  pointer-events: none;
}

.track-thumb {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 50%;
  width: var(--thumb);
  height: var(--thumb);
  margin: calc(var(--thumb) / -2) 0 0 calc(var(--thumb) / -2);
  padding: 0;
  border-radius: 50%;
  background: #2c2c2e;
  cursor: grab;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  -webkit-tap-highlight-color: transparent;
}

.track-thumb:active {
  cursor: grabbing;
}

.track-thumb[data-thumb="warning"] {
  border: 3px solid var(--warn);
}

.track-thumb[data-thumb="critical"] {
  border: 3px solid var(--stress);
}

.track-caption {
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.buy {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.buy-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  background: #ff7a59;
  border: 4px solid var(--ink);
  border-radius: 36px;
  padding: 36px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.buy-copy h2,
.buy-copy p,
.buy-copy li,
.buy-copy .fine {
  color: #2a120c;
}

.buy-copy .eyebrow {
  background: var(--banana);
}

.buy-copy p {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  max-width: 36rem;
}

.perks {
  list-style: none;
  margin: 20px 0 24px;
  display: grid;
  gap: 8px;
}

.perks li {
  font-weight: 800;
  padding-left: 1.6rem;
  position: relative;
}

.perks li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--banana);
}

.buy-copy > .btn {
  margin-bottom: 20px;
}

.buy-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.capy-buy {
  width: min(100%, 280px);
  color: var(--banana);
  filter: drop-shadow(0 14px 0 rgba(26, 18, 12, 0.2));
  transform: rotate(-8deg);
}

.price-bubble {
  position: absolute;
  top: 12px;
  right: 8px;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 28px;
  padding: 10px 16px 12px;
  text-align: center;
  transform: rotate(8deg);
  z-index: 1;
  box-shadow: 0 8px 0 var(--ink);
}

.price {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
}

.price-sub {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-weight: 700;
}

.legal-page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 56px;
}

.legal-page h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.05;
  margin: 10px 0 18px;
}

.legal-page h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 28px 0 10px;
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 1.2rem;
}

@media (max-width: 860px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .nav,
  .hero,
  .moods,
  .buy,
  .bloat,
  .foot {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .nav {
    padding-top: max(14px, env(safe-area-inset-top));
    gap: 10px;
  }

  .brand {
    font-size: 1.15rem;
    min-width: 0;
    white-space: nowrap;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .nav .btn-buy {
    flex-shrink: 0;
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .hero,
  .buy-card,
  .swatch-row,
  .blend {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 22px;
    padding-bottom: 12px;
    gap: 20px;
  }

  .hero-stage {
    order: -1;
    min-height: 0;
    border-radius: 28px;
    padding: 12px 12px 18px;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
    margin-bottom: 12px;
  }

  h2 {
    font-size: clamp(1.7rem, 7.5vw, 2.4rem);
  }

  .lede,
  .section-head p:last-child,
  .buy-copy p {
    font-size: 1.05rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn,
  .buy-copy .btn,
  .thanks .hero-actions .btn {
    width: 100%;
  }

  .thanks .hero-actions {
    align-items: stretch;
  }

  .sun {
    width: 92px;
    height: 92px;
    top: 52px;
    right: 18px;
    border-width: 3px;
    box-shadow: 0 0 0 8px rgba(255, 243, 138, 0.32);
  }

  .menubar {
    height: 34px;
    font-size: 0.78rem;
    padding: 0 10px;
  }

  .mb-stat {
    display: none;
  }

  .capy-hero {
    width: min(58%, 200px);
    margin-top: 28px;
    filter: drop-shadow(0 10px 0 rgba(26, 18, 12, 0.14));
  }

  .mood-label {
    font-size: 1.15rem;
  }

  .bloat {
    padding-top: 4px;
    gap: 6px 10px;
    font-size: 0.78rem;
    justify-content: flex-start;
  }

  .bloat span:nth-child(n + 4) {
    display: none;
  }

  .moods {
    padding-top: 28px;
    padding-bottom: 8px;
  }

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

  .swatch-row {
    padding-top: 68px;
    gap: 18px;
  }

  .well-hit {
    padding: 18px 16px;
    min-height: 72px;
  }

  .dot {
    width: 36px;
    height: 36px;
  }

  .well-pop {
    max-width: calc(100vw - 40px);
  }

  .blend {
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
  }

  .capy-blend {
    width: 92px;
    filter: drop-shadow(0 6px 0 rgba(26, 18, 12, 0.1));
  }

  .blend-status {
    font-size: 1.25rem;
  }

  .metric-tabs {
    margin: 8px 0 10px;
  }

  .metric-tab {
    min-height: 40px;
    padding: 0.35rem 0.72rem;
  }

  .track {
    height: 44px;
    --thumb: 28px;
  }

  .track-bar {
    height: 8px;
  }

  .track-current {
    height: 22px;
  }

  .buy {
    padding-top: 24px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .buy-card {
    gap: 8px;
    padding: 22px 20px 20px;
    border-radius: 28px;
    overflow: visible;
  }

  .buy-visual {
    min-height: 150px;
    order: -1;
  }

  .capy-buy {
    width: 150px;
  }

  .price-bubble {
    top: 0;
    right: 0;
    padding: 8px 12px 10px;
  }

  .price {
    font-size: 1.8rem;
  }

  .foot {
    flex-direction: column;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    font-size: 0.92rem;
  }

  .blob-lime,
  .blob-peach,
  .blob-sky {
    width: 78vw;
    height: 78vw;
    filter: blur(18px);
  }
}

@media (max-width: 480px) {
  .blend {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .capy-blend {
    width: 108px;
  }

  .well-pop {
    gap: 8px;
    padding: 8px 10px;
  }

  .hero-stage {
    padding-top: 8px;
  }

  .sun {
    width: 72px;
    height: 72px;
    top: 44px;
    right: 12px;
  }
}

.thanks .hero {
  min-height: 100dvh;
  grid-template-columns: 1fr;
  align-content: center;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

.thanks .hero-copy {
  margin: auto;
  text-align: center;
  max-width: 36rem;
}

.thanks .lede {
  margin-inline: auto;
}

@media (min-width: 861px) {
  .thanks .hero-actions {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .well,
  .capy-hero,
  .capy-blend {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
