:root {
  --bg: #f3f0e7;
  --bg-deep: #e8e2d4;
  --ink: #1e1e1e;
  --muted: #6f6a61;
  --line: rgba(30, 30, 30, 0.1);
  --mint: #478568;
  --mint-soft: #70d0a3;
  --mint-press: #5cc292;
  --mustard: #ab812b;
  --card: #ffffff;
  --radius: 18px;
  --display: "Nunito", ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(44rem 44rem at 100% 8%, var(--bg-deep) 0 48%, transparent 49%),
    radial-gradient(40rem 40rem at -8% 72%, var(--bg-deep) 0 46%, transparent 47%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

/* Logo: the app's leaf icon, tinted via mask so it works on any background. */

.logo-leaf {
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  background: currentColor;
  -webkit-mask: url("/img/leaf.png") center / contain no-repeat;
  mask: url("/img/leaf.png") center / contain no-repeat;
}

/* Leaf sits above the "in", like the app logo. */
.brand,
.join-logo {
  position: relative;
  display: inline-block;
  padding-top: 0.42em;
}

/* Wordmark uses a dotless "ı" so the leaf stands in for the dot. */
.brand .logo-leaf,
.join-logo .logo-leaf {
  position: absolute;
  top: 0.06em;
  left: 0.8em;
  width: 0.6em;
  height: 0.6em;
  transform: scaleX(-1);
}

.brand {
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.brand .logo-leaf {
  color: var(--mint-soft);
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(243, 240, 231, 0.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled {
  border-color: var(--line);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  font-weight: 600;
}

.nav-links .nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 18px -8px rgba(71, 133, 104, 0.6);
  transition: background 0.2s, transform 0.15s;
}

.nav-links .nav-cta:hover {
  background: var(--mint-press);
  color: #fff;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 56px) clamp(64px, 8vw, 110px);
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}

h1 {
  font-size: clamp(46px, 6.4vw, 84px);
}

h1 em,
h2 em {
  font-style: normal;
  color: var(--mint-soft);
}

h2 {
  font-size: clamp(32px, 4.2vw, 54px);
}

.lede {
  max-width: 34ch;
  margin: 24px 0 34px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--muted);
}

/* Form — mirrors the app's search pill + Buy Now button */

.signup {
  max-width: 480px;
}

.field {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(30, 30, 30, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field:focus-within {
  border-color: rgba(112, 208, 163, 0.9);
  box-shadow: 0 0 0 4px rgba(112, 208, 163, 0.2), 0 10px 30px -18px rgba(30, 30, 30, 0.35);
}

.field input {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}

.field input::placeholder {
  color: #a39d92;
}

.field button {
  flex-shrink: 0;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--mint-soft);
  color: #fff;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(71, 133, 104, 0.7);
  transition: background 0.2s, transform 0.15s;
}

.field button:hover {
  background: var(--mint-press);
}

.field button:active {
  transform: scale(0.97);
}

.field button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form-note {
  margin: 12px 0 0 18px;
  font-size: 13px;
  color: var(--muted);
  min-height: 1.4em;
  transition: color 0.2s;
}

.form-note.ok {
  color: var(--mint);
  font-weight: 500;
}

.form-note.err {
  color: #c04a33;
}

.signup.done .field,
.signup.done .roles {
  display: none;
}

.signup.done .form-note {
  margin-left: 0;
  font-size: 16px;
}

.hp {
  position: absolute;
  left: -9999px;
}

/* Hero phones (real app screens) */

/* Sized in percentages so the mockup scales with its container instead of a transform. */
.hero-visual {
  position: relative;
  justify-self: center;
  width: min(460px, 100%);
  aspect-ratio: 460 / 640;
}

.phone {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 40px 50px rgba(30, 30, 30, 0.28)) drop-shadow(0 12px 18px rgba(30, 30, 30, 0.12));
}

.phone-back {
  top: 0;
  left: 0;
  width: 62%;
  transform: rotate(-5deg);
}

.phone-front {
  right: 0;
  bottom: 0;
  width: 63%;
  transform: rotate(4deg);
}

.float-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px -20px rgba(30, 30, 30, 0.45);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.float-badge svg {
  width: 15px;
  height: 15px;
  fill: var(--mint);
}

.badge-trust {
  top: 47%;
  left: -40px;
  animation: drift 7s ease-in-out infinite;
}

.badge-rating {
  top: 11%;
  right: -12px;
  animation: drift 8s ease-in-out -3s infinite;
}

.stars {
  color: var(--mustard);
  letter-spacing: 1px;
  font-size: 12px;
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Sections */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--mint-soft);
  color: #fff;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 8px 18px -8px rgba(71, 133, 104, 0.65);
}

h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.steps p,
.aud p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* Audience cards — same white card + mustard pill as listings in the app */

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

.aud {
  padding: 26px 26px 32px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(30, 30, 30, 0.06);
  box-shadow: 0 18px 40px -30px rgba(30, 30, 30, 0.45);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
}

.aud:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -30px rgba(30, 30, 30, 0.5);
}

.tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mustard);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* Join — the app's mint splash screen */

.join {
  max-width: 1104px;
  margin: 0 auto clamp(56px, 8vw, 100px);
  padding: clamp(48px, 7vw, 84px) clamp(24px, 5vw, 72px);
  border-radius: 32px;
  background:
    radial-gradient(30rem 20rem at 85% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    var(--mint-soft);
  color: #fff;
  text-align: center;
  box-shadow: 0 40px 80px -50px rgba(71, 133, 104, 0.9);
}

.join-logo {
  margin-bottom: 22px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.join h2 {
  color: #fff;
}

.join > p {
  margin: 14px auto 30px;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.88);
}

.join .signup {
  margin: 0 auto;
}

.join .field {
  border-color: transparent;
  box-shadow: 0 16px 36px -20px rgba(30, 60, 45, 0.6);
}

.join .field:focus-within {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35), 0 16px 36px -20px rgba(30, 60, 45, 0.6);
}

.join .field button {
  background: var(--ink);
  box-shadow: none;
}

.join .field button:hover {
  background: var(--mint);
}

.join .form-note {
  margin-left: 0;
  color: rgba(255, 255, 255, 0.85);
}

.join .form-note.ok {
  color: #fff;
}

.join .form-note.err {
  color: #7a1f10;
}

.roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.roles label {
  cursor: pointer;
}

.roles input {
  position: absolute;
  opacity: 0;
}

.roles span {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  transition: all 0.2s;
}

.roles input:checked + span {
  background: #fff;
  border-color: #fff;
  color: var(--mint);
}

.roles input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Footer */

.footer {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 56px) 40px;
  font-size: 13px;
  color: var(--muted);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer a {
  text-decoration: none;
}

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

/* Reveal on scroll (only hides once JS is running) */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Legal page */

.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 32px);
}

.legal h1 {
  font-size: clamp(40px, 6vw, 60px);
  margin-bottom: 28px;
}

.legal h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 32px 0 8px;
}

.legal p,
.legal li {
  color: var(--muted);
}

/* Page header (Journal, Newsletter) */

.page-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) clamp(20px, 5vw, 56px) clamp(40px, 6vw, 72px);
}

.page-hero .lede {
  max-width: 46ch;
  margin-bottom: 0;
}

.newsletter-hero .signup {
  margin-top: 34px;
}

/* Journal index */

.posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) clamp(56px, 8vw, 100px);
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(30, 30, 30, 0.06);
  box-shadow: 0 18px 40px -30px rgba(30, 30, 30, 0.45);
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -30px rgba(30, 30, 30, 0.5);
}

.post-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  color: #fff;
}

.cover-mint {
  background: radial-gradient(24rem 14rem at 80% 0%, rgba(255, 255, 255, 0.22), transparent 70%), var(--mint-soft);
}

.cover-mustard {
  background: radial-gradient(24rem 14rem at 80% 0%, rgba(255, 255, 255, 0.18), transparent 70%), var(--mustard);
}

.post-cover .logo-leaf {
  width: 22%;
  height: auto;
  aspect-ratio: 1;
  transform: scaleX(-1);
}

.post-cover-label {
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.post-body {
  padding: 24px 26px 28px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.post-meta .tag {
  margin: 0;
}

.post-body h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.post-body p:not(.post-meta) {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 15.5px;
}

.post-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--mint);
}

.post-link::after {
  content: " \2192";
}

.news-band {
  margin-top: 0;
}

/* Journal article */

.article {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) clamp(20px, 5vw, 32px) clamp(56px, 8vw, 100px);
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.back-link::before {
  content: "\2190  ";
}

.back-link:hover {
  color: var(--ink);
}

.article h1 {
  font-size: clamp(38px, 5.6vw, 60px);
  letter-spacing: -0.03em;
}

.article-lede {
  margin: 18px 0 36px;
  font-size: clamp(18px, 1.7vw, 21px);
  color: var(--muted);
}

.article h2 {
  margin: 40px 0 10px;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.article p,
.article li {
  font-size: 17px;
  line-height: 1.7;
}

.article ul {
  padding-left: 22px;
}

.article li + li {
  margin-top: 6px;
}

.article-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px -10px rgba(71, 133, 104, 0.7);
  transition: background 0.2s;
}

.article-cta:hover {
  background: var(--mint-press);
}

/* Responsive */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero-visual {
    width: min(420px, 78%);
  }
}

@media (min-width: 561px) and (max-width: 960px) {
  .hero-copy {
    justify-self: center;
    text-align: center;
  }

  .hero-copy .lede,
  .hero-copy .signup {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy .form-note {
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  .audiences {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .steps,
  .posts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 24px;
  }

  .nav-links {
    gap: 14px;
    font-size: 13px;
  }

  .nav-links .nav-cta {
    padding: 8px 14px;
  }

  .nav-links a[href$="#how"] {
    display: none;
  }

  .hero {
    gap: 44px;
    padding-top: 32px;
  }

  .hero-visual {
    width: 84%;
  }

  .float-badge {
    padding: 7px 11px;
    font-size: 12px;
  }

  .badge-trust {
    left: -6%;
  }

  .badge-rating {
    right: -6%;
  }

  .join-logo {
    font-size: 40px;
  }

  .steps li {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 16px;
  }

  .steps .step-num {
    grid-row: span 2;
    margin: 0;
  }

  .steps h3 {
    margin-top: 8px;
  }

  .field {
    flex-direction: column;
    border-radius: 22px;
  }

  .field input {
    padding: 12px 14px;
  }

  .form-note {
    margin-left: 4px;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 370px) {
  .nav-links a[href="/newsletter/"] {
    display: none;
  }
}

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

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

  .float-badge {
    animation: none;
  }
}
