/* Lungo landing page — Apple-clean UI, pixel art only for the buddy world.
   Tokens mirror clearday/src/theme/colors.ts */

/* Bitcount Single is self-hosted to avoid a browser connection to Google Fonts. */
@font-face {
  font-family: "Bitcount Single";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/bitcount-single/static/bitcount-single-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bitcount Single";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/bitcount-single/static/bitcount-single-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* Dedicated, unsplit face for Lungo's speech bubbles. The TTF source avoids
   Mobile Safari falling back while resolving unicode-range WOFF2 faces. */
@font-face {
  font-family: "Lungo Speech";
  font-style: normal;
  font-display: block;
  font-weight: 600;
  src: url("/assets/fonts/bitcount-single/static/bitcount-single-latin-600-normal.ttf?v=20260718-speech-1") format("truetype");
}

@font-face {
  font-family: "Bitcount Single";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/assets/fonts/bitcount-single/static/bitcount-single-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bitcount Single";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/assets/fonts/bitcount-single/static/bitcount-single-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bitcount Single";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/assets/fonts/bitcount-single/static/bitcount-single-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bitcount Single";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/assets/fonts/bitcount-single/static/bitcount-single-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --bg: #F3F3F6;
  --surface: #FFFFFF;
  --paper: #F9F9FB;
  --ink: #1C1C1E;
  --ink-soft: #3A3A3C;
  --muted: #6B7280;
  --secondary: #9296A1;
  --line: #EAEAEF;
  --mint: #E4F8EC;
  --mint-strong: #34C759;
  --mint-deep: #1FA34A;
  --peach: #FFB38A;
  --peach-strong: #FF7E55;
  --yellow: #FFD976;
  --blue: #007AFF;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.07);
  --shadow-soft: 0 4px 14px rgba(11, 18, 32, 0.05);
  --radius: 24px;
  --radius-sm: 16px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- savings calculator ---------- */

.savings-section {
  padding-bottom: 0;
}

.savings-alternate-link {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.savings-alternate-link a {
  color: var(--mint-deep);
}

.savings-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.calculator-form,
.calculator-results {
  padding: 38px;
}

.calculator-form {
  background: var(--paper);
  border-right: 1px solid var(--line);
}

.calculator-form-head {
  margin-bottom: 26px;
}

.calculator-form-head p:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.calculator-form-eyebrow {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.calculator-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calculator-fields label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.calculator-fields input,
.calculator-fields select {
  width: 100%;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #e2e4e9;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.calculator-fields input:focus,
.calculator-fields select:focus {
  outline: none;
  border-color: rgba(31, 163, 74, 0.55);
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.13);
}

.calculator-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 50px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e2e4e9;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.calculator-input-wrap span {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-width: 68px;
  padding: 0 11px;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
}

.calculator-input-wrap input {
  min-width: 0;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  padding: 0 14px;
  box-shadow: none;
}

.calculator-input-wrap:focus-within {
  border-color: rgba(31, 163, 74, 0.55);
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.13);
}

.calculator-input-wrap input:focus { box-shadow: none; }

.calculator-note {
  margin-top: 23px;
  color: var(--muted);
  font-size: 0.82rem;
}

.calculator-reset {
  margin-top: 15px;
  padding: 7px 11px;
  border: 1px solid #dcebe1;
  border-radius: 999px;
  color: #19713a;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.calculator-reset:hover { background: var(--mint); }

.calculator-results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  color: var(--ink);
  background: var(--surface);
}

.calculator-eyebrow {
  align-self: flex-start;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  color: #19713a;
  background: var(--mint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calculator-primary {
  margin: 18px 0 20px;
}

.calculator-total {
  display: grid;
  gap: 2px;
  margin: 0;
}

.calculator-total output {
  color: var(--ink);
  font-size: clamp(2.75rem, 4.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.calculator-total span { color: var(--muted); font-size: 0.95rem; font-weight: 600; }

.calculator-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calculator-details p {
  display: grid;
  gap: 1px;
}

.calculator-details output {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.calculator-details span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.calculator-join {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 66px;
  padding: 9px 10px;
  margin-top: 18px;
  border: 1px solid #d6eee0;
  border-radius: 16px;
  color: var(--ink);
  background: var(--mint);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.calculator-join:hover { border-color: #b8dfc6; background: #d8f2e1; }

.calculator-join > span:first-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.calculator-join strong { font-size: 0.78rem; line-height: 1.15; }
.calculator-join small { color: #39754d; font-size: 0.69rem; font-weight: 700; }
.calculator-join-arrow { color: #19713a; font-size: 1.25rem; font-weight: 800; line-height: 1; }

/* ---------- dedicated calculator page ---------- */

.calculator-page-hero { padding: 62px 0 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--secondary);
  font-size: 0.86rem;
  font-weight: 600;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

.calculator-page-intro { max-width: 720px; }

.calculator-page h1 {
  margin-top: 10px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.calculator-page-intro > p:last-child {
  max-width: 660px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.calculator-page-hero .savings-calculator { margin-top: 42px; }

.calculator-page-info { padding: 64px 0 0; }

.calculator-page-layout {
  max-width: 700px;
}

.calculator-prose { max-width: 700px; }

.calculator-prose h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.calculator-prose h2:not(:first-child) { margin-top: 46px; }

.calculator-prose p {
  margin-top: 15px;
  color: var(--ink-soft);
  line-height: 1.72;
}

.calculator-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.calculator-benefits div {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.calculator-benefits strong { color: var(--mint-deep); font-size: 0.9rem; }
.calculator-benefits span { color: var(--muted); font-size: 0.84rem; line-height: 1.45; }

.calculator-prose .faq-list { margin-top: 22px; }

@media (max-width: 560px) {
  .calculator-page-hero { padding-top: 42px; }
  .breadcrumb { margin-bottom: 25px; }
  .calculator-page h1 { font-size: clamp(2.25rem, 12vw, 3.2rem); }
  .calculator-page-intro > p:last-child { font-size: 1rem; }
  .calculator-page-info { padding-top: 46px; }
  .calculator-benefits { grid-template-columns: 1fr; }
}

/* ---------- blog index ---------- */

.blog-index-hero {
  padding: 70px 0 44px;
}

.blog-index-intro {
  max-width: 760px;
}

.blog-index-intro h1 {
  margin-top: 10px;
  max-width: 720px;
  font-size: clamp(2.65rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.blog-index-intro > p:last-child {
  max-width: 650px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.blog-index-content {
  padding: 18px 0 30px;
}

.blog-section-head h2 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.blog-feature-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.blog-feature-visual {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 390px;
  padding: 34px;
  background: var(--mint);
  text-decoration: none;
}

.blog-feature-visual > p {
  margin-top: 24px;
  font-family: "Bitcount Single", monospace;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.craving-wave-mini {
  display: grid;
  place-items: center;
  width: min(100%, 260px);
  height: 170px;
}

.craving-wave-mini img {
  width: 112px;
  height: 112px;
  image-rendering: pixelated;
}

.vape-feature-visual {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.92), transparent 31%),
    var(--mint);
}

.vape-pattern-mini {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  grid-template-rows: repeat(3, 55px);
  place-items: center;
}

.vape-pattern-mini span {
  display: grid;
  place-items: center;
  min-width: 62px;
  padding: 8px 10px;
  border: 1px solid #c8ead4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #39754d;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vape-pattern-mini span:nth-child(1) { grid-column: 1; grid-row: 1; }
.vape-pattern-mini span:nth-child(2) { grid-column: 3; grid-row: 1; }
.vape-pattern-mini span:nth-child(4) { grid-column: 1; grid-row: 3; }
.vape-pattern-mini span:nth-child(5) { grid-column: 3; grid-row: 3; }

.vape-pattern-mini strong {
  grid-column: 2;
  grid-row: 2;
  color: var(--ink);
  font-family: "Bitcount Single", monospace;
  font-size: 0.84rem;
  line-height: 1.1;
  text-align: center;
}

.smoke-feature-visual {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.92), transparent 40%),
    var(--mint);
}

.trigger-feature-visual {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.94), transparent 34%),
    var(--mint);
}

.trigger-map-mini {
  display: grid;
  grid-template-columns: repeat(3, 68px);
  grid-template-rows: repeat(3, 48px);
  place-items: center;
}

.trigger-map-mini span {
  display: grid;
  place-items: center;
  min-width: 60px;
  padding: 7px 9px;
  border: 1px solid #c8ead4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #39754d;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trigger-map-mini span:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.trigger-map-mini span:nth-of-type(2) { grid-column: 3; grid-row: 1; }
.trigger-map-mini span:nth-of-type(3) { grid-column: 1; grid-row: 3; }
.trigger-map-mini span:nth-of-type(4) { grid-column: 3; grid-row: 3; }
.trigger-map-mini span:nth-of-type(5) { grid-column: 2; grid-row: 3; }

.trigger-map-mini strong {
  grid-column: 2;
  grid-row: 2;
  color: var(--ink);
  font-family: "Bitcount Single", monospace;
  font-size: 0.7rem;
  line-height: 1.08;
  text-align: center;
}

.smoke-recovery-mini {
  display: grid;
  gap: 7px;
  width: min(100%, 250px);
}

.smoke-recovery-mini > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid #c8ead4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.smoke-recovery-mini span {
  color: var(--ink);
  font-family: "Bitcount Single", monospace;
  font-size: 0.84rem;
  font-weight: 700;
}

.smoke-recovery-mini em {
  color: #39754d;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.smoke-recovery-tiny {
  display: grid;
  grid-template-columns: repeat(2, 46px);
  gap: 7px;
}

.smoke-recovery-tiny span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #c8ead4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #39754d;
  font-family: "Bitcount Single", monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.vape-pattern-tiny {
  display: grid;
  grid-template-columns: repeat(3, 46px);
  grid-template-rows: repeat(3, 38px);
  place-items: center;
}

.vape-pattern-tiny span {
  display: grid;
  place-items: center;
  min-width: 42px;
  padding: 5px 6px;
  border: 1px solid #c8ead4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #39754d;
  font-size: 0.5rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vape-pattern-tiny span:nth-child(1) { grid-column: 1; grid-row: 1; }
.vape-pattern-tiny span:nth-child(2) { grid-column: 3; grid-row: 1; }
.vape-pattern-tiny span:nth-child(4) { grid-column: 1; grid-row: 3; }
.vape-pattern-tiny span:nth-child(5) { grid-column: 3; grid-row: 3; }

.vape-pattern-tiny strong {
  grid-column: 2;
  grid-row: 2;
  color: var(--ink);
  font-family: "Bitcount Single", monospace;
  font-size: 0.62rem;
  line-height: 1.1;
  text-align: center;
}

.blog-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 66px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
}

.blog-feature-copy h2 {
  margin-top: 20px;
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.blog-feature-copy h2 a {
  text-decoration: none;
}

.blog-feature-copy > p {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--mint-deep);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: #16783a;
}

.blog-archive-head {
  margin-top: 70px;
}

.blog-archive-head h2 {
  margin-top: 8px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.blog-article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.blog-article-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.blog-article-visual {
  display: grid;
  place-items: center;
  min-height: 180px;
  background: var(--mint);
}

.blog-article-visual img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  image-rendering: pixelated;
}

.blog-article-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.blog-article-copy h3 {
  margin-top: 16px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.blog-article-copy h3 a {
  text-decoration: none;
}

.blog-article-copy > p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-article-copy .text-link {
  margin-top: 18px;
}

/* ---------- blog article ---------- */

.article-hero {
  padding: 62px 0 64px;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: clamp(38px, 7vw, 82px);
}

.article-heading h1 {
  margin-top: 10px;
  max-width: 760px;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.article-lead {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.68;
}

.article-heading .article-meta {
  margin-top: 25px;
}

.craving-wave-card {
  padding: 28px;
  border: 1px solid #ccebd7;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.95), transparent 37%),
    var(--mint);
  box-shadow: var(--shadow);
}

.craving-hourglass {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 8px;
  object-fit: contain;
  image-rendering: pixelated;
}

.craving-wave-chart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 8px;
  height: 100px;
  margin-top: 16px;
  padding: 0 8px;
}

.craving-segment {
  display: block;
  border-radius: 12px 12px 5px 5px;
  background: var(--mint-strong);
}

.segment-rise { height: 42%; opacity: 0.55; }
.segment-peak { height: 100%; background: var(--peach-strong); }
.segment-pass { height: 28%; opacity: 0.38; }

.craving-wave-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
  color: #39754d;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.craving-wave-card > p {
  margin-top: 24px;
  font-family: "Bitcount Single", monospace;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.vape-pattern-card {
  padding: 28px;
  border: 1px solid #ccebd7;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95), transparent 32%),
    var(--mint);
  box-shadow: var(--shadow);
}

.vape-pattern-card .vape-pattern-label {
  margin: 0;
  color: var(--mint-deep);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.vape-pattern-map {
  display: grid;
  grid-template-columns: repeat(3, 88px);
  grid-template-rows: repeat(3, 65px);
  justify-content: center;
  place-items: center;
  margin-top: 15px;
}

.vape-pattern-map span {
  display: grid;
  place-items: center;
  min-width: 72px;
  padding: 9px 11px;
  border: 1px solid #c8ead4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #39754d;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vape-pattern-map span:nth-child(1) { grid-column: 1; grid-row: 1; }
.vape-pattern-map span:nth-child(2) { grid-column: 3; grid-row: 1; }
.vape-pattern-map span:nth-child(4) { grid-column: 1; grid-row: 3; }
.vape-pattern-map span:nth-child(5) { grid-column: 3; grid-row: 3; }

.vape-pattern-map strong {
  grid-column: 2;
  grid-row: 2;
  font-family: "Bitcount Single", monospace;
  font-size: 0.9rem;
  line-height: 1.15;
  text-align: center;
}

.vape-pattern-card > p:last-child {
  margin-top: 14px;
  font-family: "Bitcount Single", monospace;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.smoke-recovery-card {
  padding: 28px;
  border: 1px solid #ccebd7;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.95), transparent 42%),
    var(--mint);
  box-shadow: var(--shadow);
}

.smoke-recovery-card .smoke-recovery-label {
  margin: 0;
  color: var(--mint-deep);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.smoke-recovery-ladder {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.smoke-recovery-ladder > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #c8ead4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.smoke-recovery-ladder span {
  color: var(--ink);
  font-family: "Bitcount Single", monospace;
  font-size: 0.92rem;
  font-weight: 700;
}

.smoke-recovery-ladder em {
  color: #39754d;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.smoke-recovery-card > p:last-child {
  margin-top: 16px;
  font-family: "Bitcount Single", monospace;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.trigger-map-card {
  padding: 28px;
  border: 1px solid #ccebd7;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.95), transparent 34%),
    var(--mint);
  box-shadow: var(--shadow);
}

.trigger-map-card .trigger-map-label {
  margin: 0;
  color: var(--mint-deep);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.trigger-map {
  display: grid;
  grid-template-columns: repeat(3, 88px);
  grid-template-rows: repeat(3, 62px);
  justify-content: center;
  place-items: center;
  margin-top: 14px;
}

.trigger-map span {
  display: grid;
  place-items: center;
  min-width: 74px;
  padding: 9px 11px;
  border: 1px solid #c8ead4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #39754d;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trigger-map span:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.trigger-map span:nth-of-type(2) { grid-column: 3; grid-row: 1; }
.trigger-map span:nth-of-type(3) { grid-column: 1; grid-row: 3; }
.trigger-map span:nth-of-type(4) { grid-column: 3; grid-row: 3; }
.trigger-map span:nth-of-type(5) { grid-column: 2; grid-row: 3; }

.trigger-map strong {
  grid-column: 2;
  grid-row: 2;
  font-family: "Bitcount Single", monospace;
  font-size: 0.86rem;
  line-height: 1.12;
  text-align: center;
}

.trigger-map-card > p:last-child {
  margin-top: 16px;
  font-family: "Bitcount Single", monospace;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.game-loop-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: 28px;
  border: 1px solid #ccebd7;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.96) 0 22%, transparent 23%),
    linear-gradient(145deg, #e2f7e9 0%, #fff4ed 100%);
  box-shadow: var(--shadow);
}

.game-loop-card::before,
.game-loop-card::after {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px dashed rgba(52, 199, 89, 0.28);
  border-radius: 50%;
  content: "";
}

.game-loop-card::before { top: -70px; right: -42px; }
.game-loop-card::after { bottom: -82px; left: -34px; }

.game-loop-label {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #39754d;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.game-loop-board {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 270px;
  margin-top: 8px;
}

.game-loop-frog {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(52, 199, 89, 0.25);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.game-loop-frog img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  image-rendering: pixelated;
}

.game-loop-path span {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.game-loop-path span:nth-child(1) { top: 18px; left: 50%; transform: translateX(-50%); }
.game-loop-path span:nth-child(2) { top: 50%; right: 1px; transform: translateY(-50%); }
.game-loop-path span:nth-child(3) { bottom: 17px; left: 50%; transform: translateX(-50%); }
.game-loop-path span:nth-child(4) { top: 50%; left: 1px; transform: translateY(-50%); }

.game-loop-reward {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 3px;
}

.game-loop-reward span {
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.74);
  color: #4a7659;
  font-family: "Bitcount Single", monospace;
  font-size: 0.72rem;
  font-weight: 600;
}

.game-loop-feature-visual {
  background: linear-gradient(145deg, #dff6e7 0%, #fff1e8 100%);
}

.game-loop-mini {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 38px 64px;
  place-items: center;
}

.game-loop-mini::before {
  position: absolute;
  width: 126px;
  height: 126px;
  border: 2px dashed rgba(52, 199, 89, 0.35);
  border-radius: 50%;
  content: "";
}

.game-loop-mini span {
  position: relative;
  z-index: 2;
  min-width: 74px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.game-loop-mini strong {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
  font-family: "Bitcount Single", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
}

.evidence-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
  padding: 12px;
  border: 1px solid #ccebd7;
  border-radius: var(--radius);
  background: var(--mint);
  box-shadow: var(--shadow-soft);
}

.evidence-stat-strip > div {
  padding: 18px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  text-align: center;
}

.evidence-stat-strip strong {
  display: block;
  color: var(--ink);
  font-family: "Bitcount Single", monospace;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1;
}

.evidence-stat-strip span {
  display: block;
  margin-top: 7px;
  color: #39754d;
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.gamification-mechanics-grid article > span {
  color: var(--mint-deep);
}

.article-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 720px);
  justify-content: center;
  align-items: start;
  gap: 54px;
}

.article-toc {
  position: sticky;
  top: 102px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(249, 249, 251, 0.86);
}

.article-toc > p {
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.article-toc ol {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  list-style: none;
}

.article-toc a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}

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

.article-content {
  min-width: 0;
}

.article-content section {
  scroll-margin-top: 104px;
}

.article-content section:not(:first-child) {
  margin-top: 58px;
}

.article-content h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.13;
}

.article-content h3 {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.012em;
}

.article-content p {
  margin-top: 17px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.78;
}

.article-content a:not(.article-cta) {
  color: #16783a;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content ul {
  margin: 18px 0 0 24px;
  color: var(--ink-soft);
}

.article-content li {
  margin-top: 8px;
  line-height: 1.65;
}

.quick-answer {
  padding: 30px;
  border: 1px solid #ccebd7;
  border-radius: var(--radius);
  background: var(--mint);
  box-shadow: var(--shadow-soft);
}

.quick-answer .quick-answer-label {
  margin-top: 0;
  color: var(--mint-deep);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.quick-answer p {
  color: #275238;
}

.article-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.craving-timeline {
  display: grid;
  gap: 0;
  margin-top: 26px;
  padding-left: 23px;
  border-left: 2px solid #bfe8ce;
}

.craving-timeline > div {
  position: relative;
  padding: 2px 0 23px 22px;
}

.craving-timeline > div:last-child {
  padding-bottom: 2px;
}

.craving-timeline > div::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -34px;
  width: 12px;
  height: 12px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--mint-strong);
  box-sizing: content-box;
}

.craving-timeline span {
  color: var(--mint-deep);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.craving-timeline p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.article-comparison > div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.article-comparison .comparison-label {
  margin-top: 0;
  color: var(--peach-strong);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-comparison h3 {
  margin-top: 8px;
}

.article-comparison p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.62;
}

.article-steps {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  list-style: none;
}

.article-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.article-steps li > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--mint-deep);
  font-weight: 850;
}

.article-steps p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.6;
}

.article-note {
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: #fff4ed;
}

.article-note p {
  margin: 0;
  color: #70402f;
  font-size: 0.91rem;
  line-height: 1.55;
}

.article-note--mint {
  background: var(--mint);
}

.article-note--mint p {
  color: #275238;
}

.article-waitlist-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 28px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.quick-answer + .article-waitlist-prompt {
  margin-top: 28px !important;
}

.article-waitlist-prompt h2 {
  margin-top: 6px;
  font-size: 1.45rem;
}

.article-waitlist-prompt p:not(.kicker) {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.62;
}

.article-waitlist-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.article-waitlist-action .article-cta {
  margin-top: 0;
}

.article-waitlist-action small {
  margin-top: 9px;
  color: var(--secondary);
  font-size: 0.7rem;
  line-height: 1.45;
}

.trigger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 25px;
}

.trigger-grid div {
  display: grid;
  gap: 6px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.trigger-grid strong {
  font-size: 0.9rem;
}

.trigger-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.trigger-type-grid > div:last-child {
  grid-column: 1 / -1;
}

.trigger-planner {
  overflow: hidden;
  margin-top: 26px;
  border: 1px solid #ccebd7;
  border-radius: var(--radius);
  background: var(--mint);
  box-shadow: var(--shadow-soft);
}

.trigger-planner-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 20px;
}

.trigger-planner-head .kicker {
  margin: 0;
}

.trigger-planner-head h3 {
  margin-top: 6px;
  font-size: 1.15rem;
}

.trigger-planner-head > span {
  max-width: 190px;
  color: #4a7659;
  font-size: 0.7rem;
  line-height: 1.45;
  text-align: right;
}

.trigger-planner-scroll {
  overflow-x: auto;
  padding: 0 12px 12px;
  -webkit-overflow-scrolling: touch;
}

.trigger-planner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 8px;
  min-width: 760px;
  padding: 4px 0;
}

.trigger-planner-labels {
  padding-inline: 4px;
  color: #39754d;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trigger-planner-grid label {
  position: relative;
}

.trigger-planner-grid label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.trigger-planner-grid input {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #c8ead4;
  border-radius: 13px;
  outline: none;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
}

.trigger-planner-grid input::placeholder {
  color: #8a9c91;
}

.trigger-planner-grid input:focus {
  border-color: var(--mint-strong);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.14);
}

.trigger-scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.trigger-scenario-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.trigger-scenario-grid article > span {
  color: var(--peach-strong);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trigger-scenario-grid h3 {
  margin-top: 8px;
}

.trigger-scenario-grid p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.58;
}

@media (min-width: 761px) {
  .blog-article-card--wide {
    grid-column: 1 / -1;
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .blog-article-card--wide .blog-article-visual {
    min-height: 260px;
  }

}

.quit-week-plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.quit-week-plan > div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.quit-week-plan span {
  color: var(--mint-deep);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quit-week-plan h3 {
  margin-top: 8px;
}

.quit-week-plan p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.58;
}

.compact-steps li {
  padding-block: 16px;
}

.quit-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.quit-method-grid > div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.quit-method-grid .method-label {
  margin-top: 0;
  color: var(--peach-strong);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quit-method-grid h3 {
  margin-top: 8px;
}

.quit-method-grid p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.62;
}

.pack-math {
  margin-top: 26px;
  padding: 28px;
  border: 1px solid #ccebd7;
  border-radius: var(--radius);
  background: var(--mint);
  box-shadow: var(--shadow-soft);
}

.pack-math-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
}

.pack-math-row > div {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 108px;
  padding: 16px 18px;
  border: 1px solid #c8ead4;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.pack-math-row strong {
  color: var(--ink);
  font-family: "Bitcount Single", monospace;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.pack-math-row > div span {
  color: #39754d;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pack-math-op {
  color: var(--mint-deep);
  font-family: "Bitcount Single", monospace;
  font-size: 1.3rem;
  font-weight: 700;
}

.pack-math-result {
  border-color: #ffd7c2 !important;
  background: #fff4ed !important;
}

.pack-math-result span {
  color: #b45a37 !important;
}

.pack-math > p {
  margin-top: 20px;
  font-family: "Bitcount Single", monospace;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.article-faq details {
  border-bottom: 1px solid var(--line);
}

.article-faq details:first-of-type {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.article-faq summary {
  padding: 18px 4px;
  font-weight: 800;
  cursor: pointer;
}

.article-faq details p {
  margin: -4px 4px 19px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.article-lungo {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-lungo h2 {
  margin-top: 7px;
}

.article-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 23px;
  padding: 11px 17px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.article-cta:hover {
  background: #000;
}

.article-lungo .article-cta-note {
  margin-top: 10px;
  color: var(--secondary);
  font-size: 0.75rem;
  line-height: 1.45;
}

.article-sources {
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.article-sources > p {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-sources ul {
  margin-left: 0;
  list-style: none;
}

.article-sources li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .article-shell {
    grid-template-columns: minmax(0, 720px);
  }

  .article-toc {
    position: static;
    display: none;
  }
}

@media (max-width: 760px) {
  .blog-feature-card,
  .article-hero-grid {
    grid-template-columns: 1fr;
  }

  .blog-feature-visual {
    min-height: 300px;
  }

  .craving-wave-card {
    max-width: 430px;
  }

  .vape-pattern-card,
  .smoke-recovery-card,
  .trigger-map-card,
  .game-loop-card {
    max-width: 430px;
  }

  .blog-article-grid {
    grid-template-columns: 1fr;
  }

  .blog-article-card {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .blog-article-visual {
    min-height: 240px;
  }
}

@media (max-width: 560px) {
  .blog-index-hero,
  .article-hero {
    padding-top: 42px;
  }

  .blog-index-intro h1,
  .article-heading h1 {
    font-size: clamp(2.45rem, 13vw, 3.5rem);
  }

  .blog-index-intro > p:last-child,
  .article-lead {
    font-size: 1rem;
  }

  .blog-feature-copy,
  .quick-answer,
  .article-lungo {
    padding: 24px;
  }

  .article-comparison,
  .trigger-grid,
  .quit-week-plan,
  .quit-method-grid,
  .trigger-scenario-grid,
  .evidence-stat-strip {
    grid-template-columns: 1fr;
  }

  .game-loop-card {
    min-height: 350px;
    padding: 22px;
  }

  .game-loop-board { min-height: 245px; }
  .game-loop-frog { width: 108px; height: 108px; }
  .game-loop-frog img { width: 84px; height: 84px; }

  .trigger-type-grid > div:last-child {
    grid-column: auto;
  }

  .trigger-map {
    grid-template-columns: repeat(3, 76px);
  }

  .trigger-planner-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .trigger-planner-head > span {
    max-width: none;
    text-align: left;
  }

  .pack-math {
    padding: 24px 18px;
  }

  .pack-math-row {
    gap: 10px 12px;
  }

  .pack-math-row > div {
    min-width: 92px;
    padding: 13px 14px;
  }

  .article-waitlist-prompt {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
  }

  .blog-article-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .blog-article-visual {
    min-height: 230px;
  }

  .blog-article-copy {
    padding: 22px 18px;
  }

  .blog-article-copy h3 {
    font-size: 1.15rem;
  }

  .blog-article-copy .article-meta {
    gap: 6px 10px;
    font-size: 0.7rem;
  }

  .blog-article-copy > p {
    font-size: 0.84rem;
  }

  .vape-pattern-map {
    grid-template-columns: repeat(3, 76px);
  }

}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 243, 246, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

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

/* Give the header wordmark a stronger visual anchor without enlarging footer branding. */
.site-header .brand {
  gap: 12px;
  font-size: 1.4rem;
}

.header-logo-mark {
  position: relative;
  display: block;
  width: 64px;
  height: 48px;
  overflow: hidden;
  flex: 0 0 64px;
}

.site-header .brand .header-logo-mark img {
  position: absolute;
  top: -43px;
  left: -32px;
  width: 128px;
  max-width: none;
  height: 128px;
  image-rendering: pixelated;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
}

.lang-switch a {
  text-decoration: none;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 8px;
}

.lang-switch a:hover { background: var(--line); color: var(--ink); }

.lang-switch .active {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 8px;
}

.header-cta {
  text-decoration: none;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.header-cta:hover { background: #000; }

@media (max-width: 980px) {
  .site-nav { display: none; }
  .lang-switch { margin-left: auto; }
  .header-cta { margin-left: auto; }
}

/* Keep every header action reachable on narrow phone screens. */
@media (max-width: 560px) {
  .site-header .container {
    gap: 8px;
    height: 64px;
  }

  .site-header .brand {
    gap: 8px;
    font-size: 1.15rem;
  }

  .header-logo-mark {
    width: 64px;
    height: 42px;
    flex-basis: 64px;
  }

  .site-header .brand .header-logo-mark img {
    top: -42px;
    left: -32px;
  }

  .lang-switch {
    gap: 2px;
    font-size: 0.78rem;
  }

  .lang-switch a { padding: 4px 5px; }
  .lang-switch .active { padding: 3px 5px; }

  .header-cta {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
}

/* ---------- hero ---------- */

.hero { padding: 84px 0 40px; }

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-strong);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 6vw, 3.9rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.accent { color: var(--mint-deep); }

.hero .lead {
  margin-top: 20px;
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 34em;
}

.audience-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: var(--mint-deep);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.audience-switch:hover {
  color: #16783a;
}

.store-badges {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 9px 20px 10px;
  min-width: 190px;
  line-height: 1.25;
  opacity: 0.92;
}

.badge .small {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge .big {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--secondary);
}

.waitlist {
  margin-top: 28px;
  max-width: 35rem;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.waitlist-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.waitlist-copy {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.waitlist-founder {
  max-width: 43rem;
  padding: 20px;
}

.waitlist-founder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: center;
  gap: 20px;
}

.waitlist-founder-content { min-width: 0; }

.waitlist-headline {
  margin-top: 7px;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.founder-reward {
  /* CSS px per source px of the 512px sprite cells; 0.5 = 8px per 16px art pixel */
  --fg-px: 0.5;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 163, 74, 0.18);
  border-radius: 17px;
  background: linear-gradient(180deg, #F2FFF6 0%, var(--mint) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-align: center;
}

/* Composition box: the goose content (224x208 source px, measured from the
   goose sheet: x 144-368, y 144-352 per 512 cell). */
.founder-reward-visual {
  position: relative;
  width: calc(224 * var(--fg-px) * 1px);
  height: calc(208 * var(--fg-px) * 1px);
  margin: 16px auto 6px;
}

/* one 512 cell of the 9x1 goose sheet; goose bottom edge sits 160 source px above the cell bottom */
.founder-reward-goose {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: calc(-160 * var(--fg-px) * 1px);
  width: calc(512 * var(--fg-px) * 1px);
  height: calc(512 * var(--fg-px) * 1px);
  transform: translateX(-50%);
  background-image: url('/assets/founder-goose-sheet.png');
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 900% 100%;
  image-rendering: pixelated;
  animation: founder-goose-frames 5s step-end 5s infinite;
}

.founder-reward figcaption {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 11px 10px 13px;
  border-top: 1px solid rgba(31, 163, 74, 0.12);
  background: rgba(255, 255, 255, 0.54);
}

.founder-reward figcaption strong {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.founder-reward figcaption span {
  margin-top: 2px;
  color: var(--mint-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.founder-reward figcaption small {
  margin-top: 4px;
  color: var(--secondary);
  font-size: 0.62rem;
  line-height: 1.2;
}

@keyframes founder-goose-frames {
  0% { background-position: 12.5% 0; }
  2.4% { background-position: 25% 0; }
  4.8% { background-position: 37.5% 0; }
  7.2% { background-position: 50% 0; }
  9.6% { background-position: 62.5% 0; }
  12% { background-position: 75% 0; }
  14.4% { background-position: 87.5% 0; }
  16.8% { background-position: 100% 0; }
  19.2%, 100% { background-position: 0% 0; }
}

.waitlist-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-row:focus-within {
  border-color: rgba(31, 163, 74, 0.5);
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.12);
}

.waitlist-row input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  padding: 11px 10px;
  font: inherit;
  font-size: 0.92rem;
}

.waitlist-row input::placeholder { color: var(--secondary); }

.waitlist-row button {
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 11px 14px;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.waitlist-row button:hover { background: #000; transform: translateY(-1px); }
.waitlist-row button:disabled { cursor: wait; opacity: 0.72; }

.waitlist-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  color: var(--secondary);
  font-size: 0.74rem;
  line-height: 1.4;
}

.waitlist-consent input {
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  border: 1px solid #C8CBD1;
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
}

.waitlist-consent input:checked { border-color: var(--mint-deep); background: var(--mint-deep); }
.waitlist-consent input:checked::after { content: "✓"; position: absolute; top: -3px; left: 2px; color: #fff; font-size: 12px; font-weight: 800; }
.waitlist-consent a { color: inherit; }
.waitlist-consent a:hover { color: var(--ink); }

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

.waitlist-status {
  margin-top: 12px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.86rem;
  line-height: 1.4;
}

.waitlist-status.is-success { background: var(--mint); color: #16783A; }
.waitlist-status.is-error { background: #FFF0ED; color: #A13B26; }

/* hero visual */

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 20px 0;
}

.hero-disc {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #EDFBF2 0%, var(--mint) 62%, #D8F3E3 100%);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

.hero-frog {
  position: relative;
  width: 70%;
}

/* animated sprite sheet: 12x3 grid, 32 frames of 304x352 */
.frog-anim {
  width: 100%;
  aspect-ratio: 304 / 352;
  background-image: url('/assets/lungo-smoking-sheet.png');
  background-repeat: no-repeat;
  background-size: 1200% 300%;
  background-position: 0 0;
  image-rendering: pixelated;
  animation: frog-frames 3.6s infinite;
  animation-timing-function: step-end;
}

/* Normal Lungo idle animation: 8x2 sprite sheet, 10 frames in 512px cells.
   The wrapper crops each cell to the hand-pixelled frog bounds. */
.hero-frog-blink {
  aspect-ratio: 272 / 288;
  overflow: hidden;
}

.frog-blink-anim {
  position: absolute;
  top: -41.6667%;
  left: -44.1176%;
  width: 188.2353%;
  aspect-ratio: 1;
  background-image: url('/assets/lungo-blink-sheet.png');
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 800% 200%;
  image-rendering: pixelated;
  animation: frog-blink-frames 4.6s step-end infinite;
}

@keyframes frog-blink-frames {
  0%, 70% { background-position: 0% 0%; }
  72% { background-position: 14.2857% 0%; }
  74% { background-position: 28.5714% 0%; }
  76% { background-position: 42.8571% 0%; }
  78% { background-position: 57.1429% 0%; }
  80% { background-position: 71.4286% 0%; }
  82% { background-position: 85.7143% 0%; }
  84% { background-position: 100% 0%; }
  86% { background-position: 0% 100%; }
  88% { background-position: 14.2857% 100%; }
  90%, 100% { background-position: 0% 0%; }
}

.speech {
  position: absolute;
  top: 12px;
  right: -72px;
  max-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  font-family: "Lungo Speech", "Bitcount Single", ui-monospace, monospace;
  font-size: 1.05rem;
  font-weight: 600;
  font-synthesis: none;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}

@keyframes frog-frames {
  0% { background-position: 0% 0%; }
  3.125% { background-position: 9.0909% 0%; }
  6.25% { background-position: 18.1818% 0%; }
  9.375% { background-position: 27.2727% 0%; }
  12.5% { background-position: 36.3636% 0%; }
  15.625% { background-position: 45.4545% 0%; }
  18.75% { background-position: 54.5455% 0%; }
  21.875% { background-position: 63.6364% 0%; }
  25% { background-position: 72.7273% 0%; }
  28.125% { background-position: 81.8182% 0%; }
  31.25% { background-position: 90.9091% 0%; }
  34.375% { background-position: 100% 0%; }
  37.5% { background-position: 0% 50%; }
  40.625% { background-position: 9.0909% 50%; }
  43.75% { background-position: 18.1818% 50%; }
  46.875% { background-position: 27.2727% 50%; }
  50% { background-position: 36.3636% 50%; }
  53.125% { background-position: 45.4545% 50%; }
  56.25% { background-position: 54.5455% 50%; }
  59.375% { background-position: 63.6364% 50%; }
  62.5% { background-position: 72.7273% 50%; }
  65.625% { background-position: 81.8182% 50%; }
  68.75% { background-position: 90.9091% 50%; }
  71.875% { background-position: 100% 50%; }
  75% { background-position: 0% 100%; }
  78.125% { background-position: 9.0909% 100%; }
  81.25% { background-position: 18.1818% 100%; }
  84.375% { background-position: 27.2727% 100%; }
  87.5% { background-position: 36.3636% 100%; }
  90.625% { background-position: 45.4545% 100%; }
  93.75% { background-position: 54.5455% 100%; }
  96.875% { background-position: 63.6364% 100%; }
  100% { background-position: 63.6364% 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frog-anim, .frog-blink-anim, .cal-anim, .founder-reward-goose { animation: none; }
}

@media (max-width: 860px) {
  .hero { padding-top: 56px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-stage { order: -1; }
  .speech { top: 6px; right: -12px; }
}

/* ---------- quit vaping landing page ---------- */

.vape-landing-hero {
  padding: 62px 0 38px;
}

.vape-landing-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: clamp(42px, 7vw, 80px);
}

.vape-hero-copy .breadcrumb {
  margin-bottom: 28px;
}

.vape-hero-copy h1 {
  max-width: 700px;
  margin-top: 10px;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.99;
}

.vape-hero-copy .lead {
  max-width: 610px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.68;
}

.vape-hero-copy .store-badges {
  margin-top: 24px;
}

.vape-landing-hero .speech {
  top: -20px;
}

.vape-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.vape-problem-grid article {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.vape-problem-grid article > span {
  color: var(--mint-deep);
  font-family: "Bitcount Single", monospace;
  font-size: 0.83rem;
  font-weight: 700;
}

.vape-problem-grid h3 {
  margin-top: 13px;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.vape-problem-grid p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

.vape-pattern-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(36px, 7vw, 80px);
  padding: clamp(32px, 6vw, 60px);
  border: 1px solid #ccebd7;
  border-radius: 32px;
  background:
    radial-gradient(circle at 82% 45%, rgba(255, 255, 255, 0.88), transparent 32%),
    var(--mint);
  box-shadow: var(--shadow-soft);
}

.vape-pattern-panel h2 {
  max-width: 520px;
}

.vape-pattern-panel > div:first-child > p:not(.kicker) {
  max-width: 570px;
  margin-top: 15px;
  color: #3d6650;
  line-height: 1.72;
}

.vape-context-list {
  display: grid;
  gap: 10px;
}

.vape-context-list div {
  display: grid;
  gap: 4px;
  padding: 17px 19px;
  border: 1px solid rgba(31, 163, 74, 0.13);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.8);
}

.vape-context-list span {
  color: var(--secondary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.vape-context-list strong {
  font-size: 1.02rem;
}

.vape-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 880px;
  margin: 42px auto 0;
}

.vape-tools-grid > a {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.vape-tools-grid > a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.vape-tool-tag {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--mint-deep);
  background: var(--mint);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.vape-tools-grid h3 {
  margin-top: 24px;
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.vape-tools-grid p {
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.vape-tools-grid a > strong {
  margin-top: auto;
  padding-top: 24px;
  color: var(--mint-deep);
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .vape-landing-hero .container {
    grid-template-columns: 1fr;
  }

  .vape-landing-hero .hero-stage {
    order: -1;
    width: min(100%, 480px);
    margin-inline: auto;
  }

  .vape-landing-hero .speech {
    right: -12px;
  }

  .vape-hero-copy .breadcrumb {
    margin-top: 8px;
  }

  .vape-problem-grid {
    grid-template-columns: 1fr;
  }

  .vape-pattern-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .vape-landing-hero {
    padding-top: 32px;
  }

  .vape-landing-hero .container {
    gap: 24px;
  }

  .vape-hero-copy h1 {
    font-size: clamp(2.45rem, 13vw, 3.5rem);
  }

  .vape-hero-copy .lead {
    font-size: 1rem;
  }

  .vape-pattern-panel {
    padding: 28px 22px;
  }

  .vape-tools-grid {
    grid-template-columns: 1fr;
  }

  .vape-tools-grid > a {
    min-height: 240px;
    padding: 25px;
  }
}

/* ---------- clarity strip ---------- */

.clarity {
  padding: 26px 0 0;
}

.clarity p {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

/* ---------- sections ---------- */

.section { padding: 88px 0 0; }

.section-head { max-width: 640px; }

.section-head.center { margin-inline: auto; text-align: center; }

.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--mint-deep);
}

.section h2 {
  margin-top: 10px;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section .sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* steps */

.steps {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

.step .num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--mint-deep);
  font-weight: 800;
  font-size: 0.95rem;
}

.step h3 {
  margin-top: 14px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step p {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

.note-card {
  margin-top: 20px;
  background: var(--mint);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  font-size: 0.9rem;
  color: #1B5E31;
}

@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* features */

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

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

.feature .px {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}

.feature h3 {
  margin-top: 16px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature p {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- app scenes / phone frames ---------- */

.screens-carousel {
  margin-top: 48px;
}

.screens-viewport {
  cursor: grab;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-y pinch-zoom;
}

.screens-viewport::-webkit-scrollbar { display: none; }

.screens-viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.screens {
  display: flex;
  gap: 28px;
}

.screen {
  flex: 0 0 calc((100% - 56px) / 3);
  scroll-snap-align: start;
  text-align: center;
}

.phone {
  margin-inline: auto;
  width: min(240px, 100%);
  aspect-ratio: 9 / 19;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 38px;
  box-shadow: var(--shadow);
  padding: 12px;
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 18px;
  background: var(--bg);
  border-radius: 999px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--bg) 100%);
  border: 1px dashed var(--line);
  display: grid;
  place-content: center;
  gap: 10px;
  justify-items: center;
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 20px;
  text-align: center;
}

.phone-screen .px { width: 21px; height: 21px; opacity: 0.9; }

.phone-real {
  padding: 6px;
  overflow: hidden;
}

.phone-real::before { display: none; }

.phone-screen.app-screen-wrap {
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--bg);
}

.app-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  user-select: none;
}

.screen h3 {
  margin-top: 18px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.screen p {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 26em;
  margin-inline: auto;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.carousel-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

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

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 48px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: #D8DBE3;
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.carousel-dot.is-active {
  width: 20px;
  background: var(--mint-strong);
}

@media (max-width: 860px) {
  .screen { flex-basis: 100%; }
}

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

/* ---------- trust ---------- */

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

.trust-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
}

.trust-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.trust-item p {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

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

/* ---------- FAQ ---------- */

.faq-list {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list details:last-child { border-bottom: none; }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--secondary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list .answer {
  padding: 0 26px 22px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 62em;
}

/* ---------- final CTA ---------- */

.cta-final { padding: 96px 0 30px; }

.cta-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 64px 32px;
  text-align: center;
}

.cta-card .cta-frog {
  width: 108px;
  margin: 0 auto 22px;
}

/* animated calendar sprite sheet: 12x3 grid, 34 frames of 288x304 */
.cal-anim {
  aspect-ratio: 288 / 304;
  background-image: url('/assets/lungo-calendar-sheet.png');
  background-repeat: no-repeat;
  background-size: 1200% 300%;
  background-position: 0 0;
  image-rendering: pixelated;
  animation: cal-frames 3.8s infinite;
  animation-timing-function: step-end;
}

@keyframes cal-frames {
  0% { background-position: 0% 0%; }
  2.9412% { background-position: 9.0909% 0%; }
  5.8824% { background-position: 18.1818% 0%; }
  8.8235% { background-position: 27.2727% 0%; }
  11.7647% { background-position: 36.3636% 0%; }
  14.7059% { background-position: 45.4545% 0%; }
  17.6471% { background-position: 54.5455% 0%; }
  20.5882% { background-position: 63.6364% 0%; }
  23.5294% { background-position: 72.7273% 0%; }
  26.4706% { background-position: 81.8182% 0%; }
  29.4118% { background-position: 90.9091% 0%; }
  32.3529% { background-position: 100% 0%; }
  35.2941% { background-position: 0% 50%; }
  38.2353% { background-position: 9.0909% 50%; }
  41.1765% { background-position: 18.1818% 50%; }
  44.1176% { background-position: 27.2727% 50%; }
  47.0588% { background-position: 36.3636% 50%; }
  50% { background-position: 45.4545% 50%; }
  52.9412% { background-position: 54.5455% 50%; }
  55.8824% { background-position: 63.6364% 50%; }
  58.8235% { background-position: 72.7273% 50%; }
  61.7647% { background-position: 81.8182% 50%; }
  64.7059% { background-position: 90.9091% 50%; }
  67.6471% { background-position: 100% 50%; }
  70.5882% { background-position: 0% 100%; }
  73.5294% { background-position: 9.0909% 100%; }
  76.4706% { background-position: 18.1818% 100%; }
  79.4118% { background-position: 27.2727% 100%; }
  82.3529% { background-position: 36.3636% 100%; }
  85.2941% { background-position: 45.4545% 100%; }
  88.2353% { background-position: 54.5455% 100%; }
  91.1765% { background-position: 63.6364% 100%; }
  94.1176% { background-position: 72.7273% 100%; }
  97.0588% { background-position: 81.8182% 100%; }
  100% { background-position: 81.8182% 100%; }
}

.cta-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cta-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-card .store-badges { justify-content: center; }

.cta-card .waitlist { margin-inline: auto; background: var(--paper); text-align: left; }
.cta-card .waitlist-copy { color: var(--muted); }

/* ---------- footer ---------- */

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 56px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

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

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 24em;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--secondary);
}

.footer-bottom .legal-note { max-width: 46em; }

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

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .waitlist { padding: 14px; }
  .waitlist-founder-layout { grid-template-columns: 1fr; }
  .founder-reward {
    width: min(100%, 220px);
    margin-inline: auto;
  }
  .waitlist-row { align-items: stretch; flex-direction: column; }
  .waitlist-row button { width: 100%; }
  .hero .store-badges {
    width: 100%;
    margin: 12px auto 0;
    justify-content: center;
  }

  .calculator-fields { grid-template-columns: 1fr; }

  .calculator-fields label,
  .calculator-fields label:nth-child(-n + 3) { grid-column: 1 / -1; }

  .calculator-form,
  .calculator-results { padding: 22px; }
}

@media (max-width: 760px) {
  .savings-calculator { grid-template-columns: 1fr; }
  .calculator-form { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .calculator-fields { grid-template-columns: 1fr; }

  .calculator-fields label,
  .calculator-fields label:nth-child(-n + 3) { grid-column: 1 / -1; }
}

/* ---------- subpages (privacy / imprint / support) ---------- */

.subpage { padding: 72px 0 40px; min-height: 55vh; }

.subpage .prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 44px 40px;
  max-width: 760px;
  margin-inline: auto;
}

.subpage h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.subpage .prose p { margin-top: 16px; color: var(--ink-soft); }

.subpage .prose p.muted { color: var(--muted); font-size: 0.95rem; }

.subpage .prose h2 {
  margin-top: 32px;
  font-size: 1.15rem;
  font-weight: 700;
}

.subpage .prose ul { margin: 12px 0 0 20px; color: var(--ink-soft); }

.subpage .prose li { margin-bottom: 6px; }

.placeholder-flag {
  display: inline-block;
  background: #FFF4E2;
  color: #9A6B15;
  border: 1px solid #F5E3C2;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

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

/* ---------- a11y ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  z-index: 100;
}

.skip-link:focus { left: 0; }

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
