/*
Theme Name: Wandelbar
Theme URI: https://wandelbar.app
Author: Wandelbar
Author URI: https://wandelbar.app
Description: Landing page theme for the Wandelbar workout app. Hardcoded front page, clean subpage layout for SEO content pages, and a styled blog. Near-black studio surfaces, pulse yellow, lowercase Unbounded display type.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wandelbar
Tags: one-column, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   wandelbar — design tokens taken from the app: near-black studio surfaces,
   pulse yellow, lowercase unbounded display type, white pill actions.
   ========================================================================== */

:root {
  --ink: #141412;          /* page background, like the app studio */
  --ink-raised: #1c1c19;   /* cards */
  --ink-deep: #0e0e0d;     /* nav / footer */
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f4f0;
  --muted: #a3a29b;
  --yellow: #f4c724;       /* the pulse line */
  --yellow-soft: rgba(244, 199, 36, 0.14);
  --pink: #d6218f;         /* the heart — used sparingly */
  --paper: #f4f3ef;        /* the app's light workout mode */
  --paper-ink: #171715;
  --paper-muted: #6d6c66;

  --font-display: "Unbounded", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-card: 28px;
  --radius-pill: 999px;

  --w-content: 1120px;
  --w-prose: 720px;
}

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

/* the nav is sticky and 76px tall, so an anchor jump would otherwise park
   its target underneath it. push every jump target down past the nav. */
section[id],
article[id],
div[id] {
  scroll-margin-top: 96px;
}

/* the store badges get extra room, so "get the app" lands with the headline
   still in frame instead of stranding the buttons at the top edge */
#get {
  scroll-margin-top: clamp(130px, 22vh, 210px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--yellow);
  color: #171200;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   type
   -------------------------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.7rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: 1.05rem;
  font-weight: 500;
}

p {
  margin: 0 0 1em;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 34em;
}

/* yellow marker highlight, like "home workouts." in the store assets.
   no vertical padding — with tight display line-heights it would paint
   over the line above when the phrase wraps */
.mark {
  background: var(--yellow);
  color: #171200;
  padding: 0 0.18em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* --------------------------------------------------------------------------
   layout helpers
   -------------------------------------------------------------------------- */

.container {
  width: min(var(--w-content), 100% - 3rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section-head {
  max-width: 620px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* --------------------------------------------------------------------------
   buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 0.9em 1.9em;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:active {
  transform: scale(0.97);
}

/* white pill, like "start session" in the app */
.btn-primary {
  background: var(--text);
  color: #131311;
}

.btn-primary:hover {
  background: var(--yellow);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   store badges
   -------------------------------------------------------------------------- */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.store-badges a {
  display: inline-block;
  border-radius: 10px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.store-badges a:hover {
  transform: translateY(-2px);
}

.store-badges img {
  height: 52px;
  width: auto;
}

.store-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

.store-note .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  margin-right: 0.45em;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* --------------------------------------------------------------------------
   nav
   -------------------------------------------------------------------------- */

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

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

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

.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .nav-links a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links .current-menu-item a {
  color: var(--text);
}

.site-nav .btn {
  padding: 0.65em 1.5em;
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .site-nav .nav-links {
    display: none;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at 82% -10%, rgba(244, 199, 36, 0.07), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(214, 33, 143, 0.05), transparent 60%),
    var(--ink);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 0.55em;
  line-height: 1.22; /* room for the marker highlight if the phrase wraps */
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 2rem 0 2.4rem;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-stats strong {
  color: var(--text);
  font-weight: 600;
}

/* the pulse line — drawn across the hero on load */
.ekg {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(1rem, 6vw, 3.5rem);
  width: 100%;
  height: 120px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

.ekg path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: ekg-draw 2.4s ease-out 0.3s forwards;
  filter: drop-shadow(0 0 12px rgba(244, 199, 36, 0.35));
}

@keyframes ekg-draw {
  to { stroke-dashoffset: 0; }
}

/* --------------------------------------------------------------------------
   phone frame
   -------------------------------------------------------------------------- */

.phone {
  position: relative;
  border-radius: 46px;
  border: 9px solid #262622;
  background: #000;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  aspect-ratio: 1206 / 2622;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-phone {
  width: min(320px, 78vw);
  margin-inline: auto;
  transform: rotate(2.5deg);
  transition: transform 0.5s ease;
}

.hero-phone:hover {
  transform: rotate(0deg) scale(1.015);
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-phone {
    order: 2;
  }
  .ekg {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   how it works — a real sequence, so steps are numbered
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  counter-reset: step;
}

.step {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 2rem 1.8rem 1.9rem;
  counter-increment: step;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 199, 36, 0.35);
}

.step::before {
  content: "0" counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: #171200;
  background: var(--yellow);
  border-radius: 10px;
  padding: 0.45em 0.7em;
  margin-bottom: 1.4rem;
}

.step h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

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

/* --------------------------------------------------------------------------
   curve section — the 90-day transformation chart
   -------------------------------------------------------------------------- */

.curve-section .container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.curve-card {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.curve-card svg {
  width: 100%;
  height: auto;
  display: block;
}

/* chart wrapper — anchors the photo chips to the svg area */
.curve-chart {
  position: relative;
}

/* before/after photo chips. html overlays, not svg images: sized in
   clamped px so they stay readable when the chart shrinks on mobile.
   positions are the curve endpoints as percentages of the viewBox. */
.curve-chip {
  position: absolute;
  width: clamp(52px, 6vw, 76px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 0;
  transform: translate(-50%, -50%);
  border: 3px solid #8b8a83;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.curve-chip.is-after {
  border-color: var(--yellow);
}

.chip-before-m { left: 10%;   top: 69.5%; }
.chip-before-f { left: 18.4%; top: 79%; }
.chip-after-f  { left: 82.5%; top: 24.5%; }
.chip-after-m  { left: 91%;   top: 36.5%; }

.curve-path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 5;
  stroke-linecap: round;
}

.curve-fill {
  fill: url(#curveGradient);
  opacity: 0.35;
}

.curve-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  fill: var(--text);
}

.curve-sub {
  font-family: var(--font-body);
  font-size: 15px;
  fill: var(--muted);
}

.curve-list {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.curve-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.curve-list .phase-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--yellow-soft);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.curve-list h3 {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
}

.curve-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

/* --------------------------------------------------------------------------
   light section — the app flips to light for workouts, so does the page
   -------------------------------------------------------------------------- */

.session-section {
  background: var(--paper);
  color: var(--paper-ink);
}

.session-section .eyebrow {
  color: var(--paper-muted);
}

.session-section .lead {
  color: var(--paper-muted);
}

.session-section .container {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.session-phone {
  width: min(300px, 74vw);
  margin-inline: auto;
  border-color: #d9d7d0;
  box-shadow: 0 34px 70px -24px rgba(23, 23, 21, 0.35);
  transform: rotate(-2deg);
}

.session-features {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}

.session-features li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.session-features .f-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #171715;
  color: var(--yellow);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.session-features h3 {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
}

.session-features p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.93rem;
}

@media (max-width: 860px) {
  .session-section .container {
    grid-template-columns: 1fr;
  }
  .session-phone {
    order: 2;
  }
}

/* --------------------------------------------------------------------------
   gallery — a look inside the studio
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.gallery figure {
  margin: 0;
}

.gallery .phone {
  border-width: 6px;
  border-radius: 34px;
  transition: transform 0.3s ease;
}

.gallery figure:hover .phone {
  transform: translateY(-6px);
}

.gallery figcaption {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  text-align: center;
  margin-top: 0.9rem;
}

@media (max-width: 960px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem 1.2rem;
  }
}

/* --------------------------------------------------------------------------
   final cta
   -------------------------------------------------------------------------- */

.cta-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 50% 120%, rgba(244, 199, 36, 0.1), transparent 65%),
    var(--ink-deep);
  text-align: center;
}

.cta-section .container {
  max-width: 680px;
}

.cta-logo {
  width: 76px;
  margin: 0 auto 1.6rem;
  animation: heart-beat 2.6s ease-in-out infinite;
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.07); }
  24% { transform: scale(1); }
  36% { transform: scale(1.05); }
  48% { transform: scale(1); }
}

.cta-section .store-badges {
  justify-content: center;
  margin-top: 2.2rem;
}

.cta-section .store-note {
  text-align: center;
}

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

.site-footer {
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.6rem, 5vw, 3.8rem);
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 780px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
}

.footer-blurb {
  max-width: 34ch;
  margin: 1rem 0 1.4rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-badges img {
  height: 40px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text);
  margin: 0 0 1rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: clamp(2.2rem, 4vw, 3rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--muted);
  text-underline-offset: 3px;
}

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

.footer-links {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.18s ease;
}

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

.site-footer .brand {
  font-size: 1rem;
}

.site-footer .brand img {
  height: 28px;
}

/* --------------------------------------------------------------------------
   subpage layout — pages, posts, archives
   -------------------------------------------------------------------------- */

.subpage-hero {
  background:
    radial-gradient(800px 400px at 85% -20%, rgba(244, 199, 36, 0.06), transparent 60%),
    var(--ink);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.subpage-hero .container {
  max-width: var(--w-prose);
}

.subpage-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.subpage-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.article {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.article .container {
  max-width: var(--w-prose);
}

.article h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-top: 2.2em;
}

.article h3 {
  font-size: 1.05rem;
  margin-top: 1.8em;
  color: var(--text);
}

.article p,
.article li {
  color: #cfceca;
}

.article ul,
.article ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}

.article li {
  margin-bottom: 0.45em;
}

.article a {
  color: var(--yellow);
  text-decoration-color: rgba(244, 199, 36, 0.4);
  text-underline-offset: 3px;
}

.article blockquote {
  margin: 2em 0;
  padding: 1.4em 1.6em;
  background: var(--ink-raised);
  border-left: 3px solid var(--yellow);
  border-radius: 0 16px 16px 0;
  font-size: 1.05rem;
}

.article blockquote p {
  margin: 0;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   guide articles — answer box, pros/cons, app cards
   -------------------------------------------------------------------------- */

/* the short answer, right at the top — what search engines and ai lift */
.answer-box {
  background: var(--ink-raised);
  border: 1px solid rgba(244, 199, 36, 0.35);
  border-radius: var(--radius-card);
  padding: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
}

.answer-box h2 {
  font-size: 0.72rem !important;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin: 0 0 0.8rem !important;
}

.answer-box p {
  margin: 0;
  color: var(--text) !important;
  font-size: 1.02rem;
}

.answer-box p + p {
  margin-top: 0.8rem;
}

/* honest pros and cons */
.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 1.8rem 0 2.2rem;
}

@media (max-width: 640px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

.pros-cons > div {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
}

.pros-cons h3 {
  font-size: 0.72rem !important;
  letter-spacing: 0.18em;
  margin: 0 0 0.9rem !important;
  color: var(--muted);
}

.pros-cons ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: grid;
  gap: 0.6rem;
}

.pros-cons li {
  font-size: 0.93rem;
  padding-left: 1.5em;
  position: relative;
  margin: 0 !important;
}

.pros-cons .is-pro li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
  transform: rotate(-45deg);
}

.pros-cons .is-con li::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 0.68em;
  width: 10px;
  height: 2px;
  background: var(--muted);
}

/* one app in a comparison article */
.app-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.4rem, 3vw, 2rem);
  margin: 1.6rem 0 2.4rem;
}

.app-card.is-ours {
  border-color: rgba(244, 199, 36, 0.35);
  background: var(--ink-raised);
}

.app-card h3 {
  margin-top: 0 !important;
  font-size: 1.15rem !important;
}

.app-best-for {
  font-size: 0.88rem;
  color: var(--yellow);
  margin-bottom: 0.9rem;
}

.app-card .pros-cons {
  margin-bottom: 0;
}

.app-card .pros-cons > div {
  background: transparent;
  border-color: var(--line);
}

/* small print — disclosure, last-updated */
.guide-note {
  font-size: 0.82rem;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 1rem;
  margin: 2rem 0;
}

/* inline cta banner for subpages */
.article-cta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
}

.article-cta h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.article-cta .store-badges {
  justify-content: center;
  margin-top: 1.4rem;
}

.article-cta .store-badges img {
  height: 46px;
}

/* --------------------------------------------------------------------------
   scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   wordpress
   ========================================================================== */

/* accessibility helper used by wp core */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip-path: none;
  background: var(--yellow);
  color: #171200;
  display: block;
  font-size: 0.9rem;
  height: auto;
  left: 5px;
  top: 5px;
  padding: 0.6em 1em;
  width: auto;
  z-index: 100000;
}

/* classes wp expects a theme to style */
.sticky {
  border-color: rgba(244, 199, 36, 0.35);
}

.bypostauthor .comment-body {
  border-color: rgba(244, 199, 36, 0.35);
}

/* entry content media */
.article img {
  height: auto;
  border-radius: 16px;
}

.article figure {
  margin: 2em 0;
}

.article figcaption,
.wp-caption-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

.wp-caption {
  max-width: 100%;
}

.alignleft {
  float: left;
  margin: 0.4em 1.4em 1em 0;
}

.alignright {
  float: right;
  margin: 0.4em 0 1em 1.4em;
}

.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.article .wp-block-embed iframe {
  max-width: 100%;
  border-radius: 16px;
}

.article .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.article .wp-block-table td,
.article .wp-block-table th {
  border: 1px solid var(--line);
  padding: 0.6em 0.8em;
}

/* page links (paginated posts) */
.page-links {
  margin-top: 2rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   blog index — post cards
   -------------------------------------------------------------------------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

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

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

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 199, 36, 0.35);
}

.post-card .post-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.post-card .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.post-card-body {
  padding: 1.6rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.post-meta {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.post-card h2 {
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 0;
}

.post-card h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.18s ease;
}

.post-card h2 a:hover {
  color: var(--yellow);
}

.post-card .post-excerpt {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   pagination
   -------------------------------------------------------------------------- */

.pagination {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.9em;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.pagination a.page-numbers:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.pagination .page-numbers.current {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #171200;
}

/* --------------------------------------------------------------------------
   post navigation (prev / next)
   -------------------------------------------------------------------------- */

.post-navigation {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.post-navigation a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.post-navigation a:hover {
  color: var(--yellow);
}

.post-navigation .nav-next {
  text-align: right;
}

/* --------------------------------------------------------------------------
   comments
   -------------------------------------------------------------------------- */

.comments-area {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  padding-top: 2.2rem;
}

.comments-title,
.comment-reply-title {
  font-size: 1.15rem;
}

.comment-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.comment-list .children {
  list-style: none;
  padding-left: 1.5rem;
}

.comment-body {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.comment-body p {
  color: #cfceca;
}

.comment-meta {
  margin-bottom: 0.6rem;
}

.comment-author {
  font-weight: 600;
  color: var(--text);
}

.comment-author .avatar {
  border-radius: 50%;
  margin-right: 0.6rem;
  vertical-align: middle;
  display: inline-block;
}

.comment-metadata {
  font-size: 0.8rem;
}

.comment-metadata a {
  color: var(--muted);
  text-decoration: none;
}

.comment-body .reply a {
  font-size: 0.82rem;
  color: var(--yellow);
  text-decoration: none;
}

.comment-form label {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.9em;
  margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 0;
  border-color: transparent;
}

.comment-form .submit {
  display: inline-flex;
  align-items: center;
  background: var(--text);
  color: #131311;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: 0.9em 1.9em;
  transition: background 0.18s ease;
}

.comment-form .submit:hover {
  background: var(--yellow);
}

/* --------------------------------------------------------------------------
   positioning band — what it is, in one sentence
   -------------------------------------------------------------------------- */

.oneliner {
  border-block: 1px solid var(--line);
  background: var(--ink-deep);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.oneliner p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  line-height: 1.45;
  max-width: 22em;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   who it's for
   -------------------------------------------------------------------------- */

/* three across so six cards make two even rows */
.audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 900px) {
  .audience {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.audience li {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.3rem 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.audience strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.audience .not-for {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
}

/* --------------------------------------------------------------------------
   the walls — problem / answer pairs
   -------------------------------------------------------------------------- */

.walls {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.wall {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 4vw, 3rem);
  background: var(--ink);
  padding: 1.6rem clamp(1.3rem, 3vw, 2.2rem);
  align-items: start;
}

.wall-problem {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0;
}

.wall-answer {
  margin: 0;
  font-size: 0.97rem;
}

.wall-answer strong {
  color: var(--yellow);
  font-weight: 600;
}

@media (max-width: 720px) {
  .wall {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   feature groups
   -------------------------------------------------------------------------- */

/* two across so four blocks make an even 2x2 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

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

.feature-block {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.7rem;
}

.feature-block h3 {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.feature-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.93rem;
  color: var(--muted);
}

.feature-block li {
  padding-left: 1.4em;
  position: relative;
}

.feature-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--yellow);
}

/* --------------------------------------------------------------------------
   comparison — library vs plan
   -------------------------------------------------------------------------- */

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.compare-col {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  padding: 1.8rem 1.7rem;
}

.compare-col.is-them {
  background: transparent;
  border-style: dashed;
}

.compare-col.is-us {
  background: var(--ink-raised);
  border-color: rgba(244, 199, 36, 0.35);
}

.compare-col h3 {
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.compare-col.is-them h3 {
  color: var(--muted);
}

.compare-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  font-size: 0.93rem;
}

.compare-col.is-them li {
  color: var(--muted);
}

.compare-col li {
  padding-left: 1.6em;
  position: relative;
}

.compare-col.is-them li::before {
  content: "·";
  position: absolute;
  left: 0.35em;
  top: -0.1em;
  font-size: 1.3em;
  color: var(--muted);
}

.compare-col.is-us li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
  transform: rotate(-45deg);
}

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

/* --------------------------------------------------------------------------
   science
   -------------------------------------------------------------------------- */

.science-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}

.science-card {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.7rem;
}

.science-figure {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.science-card p {
  font-size: 0.94rem;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.science-source {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

.science-source a {
  color: var(--muted);
  text-underline-offset: 3px;
}

.science-source a:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   pricing
   -------------------------------------------------------------------------- */

.pricing-card {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 620px;
}

.pricing-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.pricing-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.pricing-list li {
  padding-left: 1.5em;
  position: relative;
}

.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
  transform: rotate(-45deg);
}

.pricing-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 1.4rem 0 0;
}

/* --------------------------------------------------------------------------
   faq — plain blocks, fully extractable (no accordion)
   -------------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-item p + p {
  margin-top: 0.7rem;
}

.faq-item a {
  color: var(--yellow);
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   guides teaser
   -------------------------------------------------------------------------- */

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.guide-card {
  display: block;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.6rem 1.7rem;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 199, 36, 0.35);
}

.guide-card .guide-kicker {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0 0 0.7rem;
}

.guide-card h3 {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   support page — contact form (slug: support)
   -------------------------------------------------------------------------- */

.support-form {
  display: grid;
  gap: 1.1rem;
  max-width: 560px;
  margin-top: 2.2rem;
}

.support-form .form-field label {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.support-form input[type="text"],
.support-form input[type="email"],
.support-form textarea {
  width: 100%;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.9em;
}

.support-form input:focus,
.support-form textarea:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 0;
  border-color: transparent;
}

.support-form .form-field-check input {
  max-width: 130px;
}

.support-form .btn {
  border: 0;
  cursor: pointer;
  justify-self: start;
}

/* honeypot — visually removed, still in the dom for bots */
.wb-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-notice {
  border-radius: 14px;
  padding: 0.9em 1.2em;
  margin: 2rem 0 0.5rem;
  font-size: 0.95rem;
}

.form-notice.is-ok {
  background: var(--yellow-soft);
  border: 1px solid rgba(244, 199, 36, 0.4);
  color: var(--text);
}

.form-notice.is-error {
  background: rgba(214, 33, 143, 0.1);
  border: 1px solid rgba(214, 33, 143, 0.35);
  color: var(--text);
}

.support-alt {
  margin-top: 2.2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   download page — standalone ad landing (slug: download).
   one screen, one decision: tap a store button.
   -------------------------------------------------------------------------- */

/* no overflow:hidden here — the class sits on <body>, and clipping it
   would make the page unscrollable on short phone screens */
.dl {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: max(6vh, 2.5rem) 1.5rem 1.5rem;
  background:
    radial-gradient(120vw 55vh at 50% -12%, rgba(244, 199, 36, 0.09), transparent 62%),
    radial-gradient(80vw 40vh at 50% 112%, rgba(214, 33, 143, 0.06), transparent 60%),
    var(--ink);
}

.dl-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  width: 100%;
}

.dl-logo {
  width: 88px;
  height: 88px;
}

.dl-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0.9rem 0 2rem;
}

.dl h1 {
  font-size: clamp(1.65rem, 7.2vw, 2.4rem);
  line-height: 1.22;
  max-width: 14em;
  margin-bottom: 0.55em;
}

.dl-sub {
  color: var(--muted);
  font-size: clamp(0.98rem, 4vw, 1.1rem);
  max-width: 26em;
  margin: 0;
}

.dl-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: min(340px, 100%);
  margin-top: 2.2rem;
}

.dl-badges a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem;
  border-radius: 18px;
  transition: transform 0.18s ease;
}

.dl-badges a:active {
  transform: scale(0.97);
}

.dl-badges img {
  height: 62px;
  width: auto;
}

/* platform detection: the matching store comes first, the other steps back */
.dl-badges .is-primary {
  order: -1;
}

.dl-badges .is-secondary img {
  height: 48px;
}

.dl-badges .is-secondary {
  opacity: 0.8;
}

.dl-trust {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 1.8rem 0 0;
}

.dl-trust strong {
  color: var(--text);
  font-weight: 600;
}

/* the pulse line, quiet at the bottom */
.dl .ekg {
  bottom: max(11vh, 4.5rem);
}

.dl-footer {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  margin-top: 3rem;
  font-size: 0.78rem;
}

.dl-footer a {
  color: var(--muted);
  text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ekg path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .cta-logo {
    animation: none;
  }
  .store-note .dot {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .step,
  .post-card,
  .gallery .phone,
  .hero-phone,
  .store-badges a {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   store badges are Apple's/Google's standardized marks — never restyle
   them. Overrides the .article img prose rounding wherever a CTA banner
   sits inside article content (guide pages, exercise pages).
   -------------------------------------------------------------------------- */
.article .store-badges img,
.store-badges img {
  border-radius: 0;
}
