/* =========================================================
   THEME: Warm daytime (refined)
   Light editorial palette. Green is an ACCENT, not the bg.
   Privacy is the one dark band (inverted text).
   ========================================================= */
:root {
  /* surfaces */
  --bg: #fbfaf6; /* warm off-white */
  --bg-deep: #11241e; /* (kept for reference) */
  --surf: #ffffff; /* cards, store buttons */
  --surf-soft: #f4f1e8; /* warm panel: loop strip, stats, footer */
  --bezel: #0c1a16; /* phone bezel */

  /* text */
  --text: #11241e; /* warm forest near-black */
  --text-soft: #38554b; /* muted forest body */
  --text-faint: #6f8077;

  /* brand + accents */
  --primary: #10b981; /* mint: done / progress */
  --primary-d: #059669;
  --accent: #c9763c; /* clay: warm emphasis (serif-em, labels, underline) */
  --accent-2: #ead9c2; /* oat (pillar bar) */
  --on-primary: #fbfaf6; /* light icon inside mint brand mark */

  /* glows / lines */
  --primary-glow: rgba(16, 185, 129, 0.14);
  --glow: rgba(16, 185, 129, 0.16);
  --line: #e7e2d6; /* warm hairline */
  --line-strong: #d8d0c0;
  --nav-bg: rgba(251, 250, 246, 0.85);

  /* shadows (tuned for light bg) */
  --shadow-primary: 0 16px 40px -22px rgba(17, 36, 30, 0.4);
  --shadow-cap: 0 12px 30px -16px rgba(17, 36, 30, 0.22);
  --shadow-phone: 0 40px 80px -40px rgba(17, 36, 30, 0.45);

  /* primary button = warm ink (dark) with light text */
  --btn-bg: #11241e;
  --btn-text: #fbfaf6;
  --btn-bg-hover: #059669;

  /* privacy band = the one dark section (inverted) */
  --privacy-bg: #11241e;
  --privacy-text: #fbfaf6;
  --privacy-text-soft: rgba(251, 250, 246, 0.74);
  --privacy-accent: #e8a06a; /* lighter clay, reads on dark */
}
/* =========================================================
   Nouri marketing site : SHARED structure + interaction layer
   Color comes 100% from CSS variables. Each theme file
   (theme-green/theme-warm/theme-blue) only redefines tokens,
   so the 3 versions share these bones.
   Type: Fraunces (display) / Hanken Grotesk (body) / Geist Mono (numbers)
   ========================================================= */

:root {
  /* non-color tokens (shared across themes) */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-lg: 28px;

  --nav-h: 72px;
}

/* ---------- reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 460;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-optical-sizing: auto;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- a11y ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 300;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- shared bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 22px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.serif-em {
  font-style: italic;
  font-weight: 420;
  color: var(--accent);
}
.hl {
  position: relative;
  white-space: nowrap;
}
.hl::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.08em;
  height: 0.34em;
  background: var(--accent);
  opacity: 0.5;
  z-index: -1;
  border-radius: 3px;
}
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  max-width: 18ch;
}
.section-lead {
  color: var(--text-soft);
  font-size: 1.08rem;
  max-width: 54ch;
  margin-top: 18px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}
.btn-ghost svg {
  transition: transform 0.2s ease;
}
.btn-ghost:hover svg {
  transform: translateX(3px);
}

/* =========================================================
   NAV — collapses into a floating capsule on scroll
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 16px var(--gutter);
  transition: padding 0.3s ease;
}
.nav-cap {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 6px;
  border: 1px solid transparent;
  border-radius: 16px;
  transition:
    max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}
.nav.scrolled {
  padding-top: 10px;
}
.nav.scrolled .nav-cap {
  max-width: 760px;
  border-radius: 999px;
  background: var(--nav-bg);
  border-color: var(--line);
  box-shadow: var(--shadow-cap);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transform: translateY(2px);
  padding-inline: 12px 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-inline: 8px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
}
.brand-mark.small {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.brand-word {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--text-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  color: var(--btn-text) !important;
  background: var(--btn-bg);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--btn-bg-hover);
}

/* mobile persistent bottom CTA (Stripe-style) */
.mobile-cta {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 60%, transparent);
}
.mobile-cta .btn {
  width: 100%;
  justify-content: center;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(24px, 5vw, 72px));
  padding-bottom: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  letter-spacing: -0.035em;
  line-height: 0.99;
  color: var(--text);
}
.hero-sub {
  margin-top: 26px;
  font-size: 1.16rem;
  color: var(--text-soft);
  max-width: 48ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 32px;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tick {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
}
.hero-device {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
}
.hero-device .phone {
  transform: none;
}
.device-glow {
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(58% 52% at 60% 38%, var(--glow), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

/* ---------- phone frame (shared, holds REAL screenshots) ---------- */
.phone {
  position: relative;
  background: var(--bezel);
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--shadow-phone);
}
.phone-screen {
  position: relative;
  height: min(640px, 72vh);
  aspect-ratio: 1080 / 2460;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
}
.phone-screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- loop marquee strip ---------- */
.loop-strip {
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  background: var(--surf-soft);
}
.loop-track {
  display: flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  width: max-content;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--text);
  animation: marquee 26s linear infinite;
}
.loop-track .sep {
  color: var(--accent);
  font-style: normal;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   SHOWCASE — pinned frame + crossfade + ghost parallax
   (the signature moment)
   ========================================================= */
.showcase {
  position: relative;
  height: 520vh;
  height: 520svh; /* stable under mobile toolbar show/hide (no jitter) */
}
.showcase.is-static {
  height: auto;
}
.showcase-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.showcase-head {
  flex: 0 0 auto;
  padding: clamp(76px, 10vh, 108px) var(--gutter) 0;
  text-align: center;
  z-index: 4;
  pointer-events: none;
}
.showcase-head .eyebrow {
  margin-bottom: 8px;
}
.showcase-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

/* faint duplicate screenshots running behind */
.ghost-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.ghost {
  position: absolute;
  height: min(680px, 76vh);
  aspect-ratio: 1080 / 2460;
  border-radius: 32px;
  object-fit: cover;
  opacity: 0;
  filter: blur(9px) saturate(0.85);
  transform: scale(1.4);
  will-change: opacity, transform;
}

/* stage: [left text] [phone] [right text] */
.showcase-stage {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  align-content: center;
  gap: clamp(24px, 4vw, 64px);
  width: 100%;
}
.showcase-phone {
  z-index: 2;
}
.showcase-phone .phone-screen {
  height: min(600px, 66vh);
}
.showcase-phone .shot {
  opacity: 0;
  will-change: opacity, transform;
}
.showcase-phone .shot:first-child {
  opacity: 1; /* no-JS / first paint */
}

.beats {
  position: relative;
  align-self: center;
  min-height: 220px;
}
.beats.side-left {
  text-align: right;
  justify-items: end;
}
.beat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.side-left .beat {
  transform: translateX(-34px);
  align-items: flex-end;
}
.side-right .beat {
  transform: translateX(34px);
  align-items: flex-start;
}
.beat.is-active {
  opacity: 1;
  transform: none;
}
.beat-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.beat h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--text);
}
.beat p {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 30ch;
}

.showcase-dots {
  position: absolute;
  bottom: clamp(28px, 6vh, 60px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
  z-index: 4;
}
.sdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition:
    background 0.3s ease,
    width 0.3s ease;
}
.sdot.is-active {
  background: var(--primary);
  width: 22px;
  border-radius: 99px;
}

/* reduced-motion / no-JS fallback: stacked cards */
.showcase.is-static .showcase-sticky {
  position: static;
  height: auto;
  display: block;
  padding-block: clamp(40px, 8vw, 90px);
}
.showcase.is-static .ghost-layer,
.showcase.is-static .showcase-dots {
  display: none;
}
.showcase.is-static .showcase-head {
  position: static;
  margin-bottom: 40px;
}
.showcase.is-static .showcase-stage {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 40px;
}
.showcase.is-static .beats {
  position: static;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.showcase.is-static .beat {
  position: static;
  opacity: 1;
  transform: none;
  align-items: center;
  text-align: center;
}
.showcase.is-static .showcase-phone .shot {
  opacity: 0;
}
.showcase.is-static .showcase-phone .shot:first-child {
  opacity: 1;
}

/* =========================================================
   STATS — count-up numbers
   ========================================================= */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surf-soft);
  padding-block: clamp(40px, 6vw, 70px);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat .num {
  font-family: var(--mono);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat .num[data-accent] {
  color: var(--primary);
}
.stat .lbl {
  font-size: 0.92rem;
  color: var(--text-soft);
  max-width: 18ch;
}

/* =========================================================
   PILLARS
   ========================================================= */
.pillars {
  padding-block: clamp(72px, 10vw, 130px);
  background: var(--bg);
}
.pillars-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.pillars-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 32px 26px 36px;
  border-right: 1px solid var(--line);
  position: relative;
}
.pillar:last-child {
  border-right: none;
}
.pillar-index {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 28px;
}
.pillar h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text);
}
.pillar p {
  font-size: 0.95rem;
  color: var(--text-soft);
}
.pillar::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--primary);
}
.pillar:nth-child(2)::before {
  background: var(--accent);
}
.pillar:nth-child(3)::before {
  background: var(--primary-d);
}
.pillar:nth-child(4)::before {
  background: var(--accent-2);
}

/* =========================================================
   PRIVACY — full-bleed deeper band
   ========================================================= */
.privacy {
  padding-block: clamp(80px, 11vw, 140px);
  background: var(--privacy-bg);
  color: var(--privacy-text);
}
.privacy .eyebrow {
  color: var(--privacy-text-soft);
}
.privacy-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.privacy-title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  color: var(--privacy-text);
}
.privacy-title .serif-em {
  color: var(--privacy-accent);
}
.privacy-lead {
  margin-top: 24px;
  color: var(--privacy-text-soft);
  font-size: 1.1rem;
  max-width: 48ch;
}
.privacy-list {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}
.privacy-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--privacy-text-soft);
}
.privacy-list strong {
  color: var(--privacy-text);
}
.pcheck {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 2px;
}
.privacy-visual {
  display: grid;
  place-items: center;
}
.privacy-visual .phone {
  transform: none;
}

/* =========================================================
   CTA / GET
   ========================================================= */
.get {
  padding-block: clamp(80px, 11vw, 150px);
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 0%, var(--glow), transparent 60%),
    var(--bg);
}
.get-inner {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  justify-items: center;
}
.get-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  color: var(--text);
}
.get-lead {
  margin-top: 22px;
  font-size: 1.14rem;
  color: var(--text-soft);
  max-width: 50ch;
}
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 38px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surf);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 13px 24px;
  border-radius: 16px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}
.store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}
.store-btn-text {
  display: grid;
  text-align: left;
  line-height: 1.1;
}
.store-btn-text small {
  font-size: 0.66rem;
  opacity: 0.75;
}
.store-btn-text strong {
  font-size: 1.1rem;
  font-weight: 600;
}
.get-note {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--surf-soft);
  border-top: 1px solid var(--line);
  padding-block: 48px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 40px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-brand .brand-word {
  font-size: 1.3rem;
}
.footer-tag {
  font-family: var(--display);
  font-style: italic;
  color: var(--text-soft);
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  gap: 26px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-soft);
}
.footer-nav a:hover {
  color: var(--text);
}
.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 0.84rem;
  color: var(--text-faint);
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   RESPONSIVE — mobile is a distinct vertical narrative
   ========================================================= */
@media (max-width: 1000px) {
  /* mobile: vertical slide inside the frame; drop the heavy blurred ghost
     backdrop (perf + avoids the scroll jitter) */
  .ghost-layer {
    display: none;
  }
  /* phone on top; BOTH beat columns share the SAME cell below it, so
     whichever beat is active appears at the same spot (no jump / gap).
     Bigger gap from the heading to the phone; tighter to the steps. */
  .showcase-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    align-content: start;
    padding-top: clamp(28px, 6vh, 64px);
    row-gap: 12px;
  }
  .showcase-phone {
    grid-row: 1;
    grid-column: 1;
  }
  .showcase-phone .phone-screen {
    height: min(440px, 50vh);
  }
  .beats {
    grid-row: 2;
    grid-column: 1;
    min-height: 128px;
    width: 100%;
    max-width: 460px;
    text-align: center;
  }
  .beats.side-left,
  .side-left .beat,
  .side-right .beat {
    align-items: center;
    text-align: center;
    justify-items: center;
  }
  /* on mobile the text enters vertically and sits right under the phone */
  .side-left .beat,
  .side-right .beat {
    justify-content: flex-start;
    transform: translateY(22px);
  }
  .beat.is-active {
    transform: none;
  }
  .beat p {
    max-width: 36ch;
    margin-inline: auto;
  }
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .nav.scrolled .nav-cap {
    max-width: 100%;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  /* reorder hero: headline -> device -> sub -> badges */
  .hero-copy {
    display: contents;
  }
  .hero .eyebrow {
    order: 1;
  }
  .hero-title {
    order: 2;
  }
  .hero-device {
    order: 3;
    align-self: center;
    margin-block: 8px 4px;
  }
  .hero-device .phone {
    transform: none;
  }
  .hero-sub {
    order: 4;
  }
  .hero-actions {
    order: 5;
  }
  .hero-meta {
    order: 6;
  }
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .pillars-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillar:nth-child(2) {
    border-right: none;
  }
  .pillar:nth-child(1),
  .pillar:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .privacy-visual {
    order: -1;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .pillars-list {
    grid-template-columns: 1fr;
  }
  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .pillar:last-child {
    border-bottom: none;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .loop-track {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* brand logo (replaces the old heart mark) */
.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}
.brand-logo.small {
  width: 28px;
  height: 28px;
}

/* mobile: step dots become a VERTICAL rail hugging the right of the frame */
@media (max-width: 1000px) {
  .showcase-dots {
    top: 0;
    bottom: 0;
    left: auto;
    right: calc((100vw - (min(440px, 50vh) * 1080 / 2460) - 20px) / 2 - 20px);
    flex-direction: column;
    justify-content: center;
    width: auto;
    gap: 10px;
  }
  .sdot.is-active {
    width: 8px;
    height: 22px;
  }
}

/* hero eyebrow typewriter */
.eyebrow-type {
  display: block;
  white-space: normal;
}
.eyebrow-type .dot {
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}
.typewriter {
  vertical-align: middle;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--accent);
  animation: caret-blink 1.05s step-end infinite;
}
@keyframes caret-blink {
  50% {
    opacity: 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;
}
@media (max-width: 600px) {
  .eyebrow-type {
    min-height: 2.4rem;
  }
}

/* stats section heading (playful) */
.stats-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto clamp(30px, 5vw, 52px);
}
.stats-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}
.stats-head p {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* =========================================================
   LEGAL PAGES (Termos / Privacidade)
   ========================================================= */
.legal {
  padding-top: calc(var(--nav-h) + clamp(36px, 7vw, 88px));
  padding-bottom: clamp(64px, 10vw, 120px);
}
.legal-inner {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 30px;
}
.legal-back:hover {
  color: var(--text);
}
.legal h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.legal h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  margin-top: clamp(40px, 5vw, 56px);
  margin-bottom: 12px;
}
.legal h3 {
  font-family: var(--body);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--text);
}
.legal p {
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal strong {
  color: var(--text);
}
.legal a {
  color: var(--primary-d);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--primary);
  background: var(--surf-soft);
  border-radius: 0 12px 12px 0;
  color: var(--text-soft);
}
.legal blockquote p:last-child {
  margin-bottom: 0;
}

/* legal buttons inside the (dark) privacy band */
.privacy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.privacy-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  color: var(--privacy-text);
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}
.privacy-links a:hover {
  border-color: var(--privacy-text);
  transform: translateY(-2px);
}
.privacy-links svg {
  opacity: 0.85;
}

/* legal links in the footer */
.footer-legal a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal a:hover {
  color: var(--text);
}
