/*
Theme Name: Trackery Clarity
Theme URI: https://trackery.app/
Author: Trackery
Description: A minimal WordPress theme for the Trackery subscription tracker.
Version: 2.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: trackery
*/

:root {
  --background: #f7f4ed;
  --surface: #fffdfa;
  --surface-muted: #efebe1;
  --text: #171715;
  --text-soft: #4e4b45;
  --text-muted: #716d65;
  --line: #ddd8cc;
  --accent: #f5a000;
  --accent-hover: #e99200;
  --accent-text: #975600;
  --focus: #775000;
  --space-25: 2px;
  --space-50: 4px;
  --space-75: 8px;
  --space-100: 12px;
  --space-200: 16px;
  --space-300: 24px;
  --space-400: 32px;
  --space-500: 40px;
  --space-600: 48px;
  --space-700: 64px;
  --space-800: 80px;
  --space-900: 96px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 999px;
  --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

.skip-link {
  position: fixed;
  top: var(--space-75);
  left: var(--space-75);
  z-index: 1000;
  padding: var(--space-75) var(--space-200);
  border-radius: var(--radius-lg);
  background: var(--text);
  color: var(--surface);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 250ms var(--ease-fluid);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  padding: var(--space-300) 0;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

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

.nav-content,
.nav-links,
.footer-links {
  display: flex;
  align-items: center;
}

.nav-content {
  gap: var(--space-300);
}

.nav-links,
.footer-links {
  gap: var(--space-300);
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-links a,
.footer-links a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 200ms var(--ease-fluid);
}

.nav-links a:hover,
.footer-links a:hover,
.nav-links a:focus-visible,
.footer-links a:focus-visible,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links a[aria-current='page'] {
  color: var(--text);
}

.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-cta,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
  min-height: 44px;
  padding: var(--space-75) var(--space-100);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 200ms var(--ease-fluid), transform 200ms var(--ease-fluid);
}

.nav-cta {
  min-height: 40px;
  font-size: 14px;
}

.nav-cta:hover,
.button-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.nav-cta:active,
.button-primary:active {
  transform: translateY(1px) scale(0.98);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: var(--radius-full);
  background: currentColor;
  content: '';
  transition: transform 250ms var(--ease-fluid), opacity 200ms var(--ease-fluid);
}

.nav-toggle[aria-expanded='true']::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span {
  opacity: 0;
}

.nav-toggle[aria-expanded='true']::after {
  transform: translateY(-6px) rotate(-45deg);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: var(--space-900);
  align-items: center;
  padding-top: var(--space-700);
  padding-bottom: var(--space-900);
}

.eyebrow {
  margin-bottom: var(--space-200);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 16px;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin-bottom: var(--space-300);
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.hero-lede {
  max-width: 600px;
  margin-bottom: var(--space-400);
  color: var(--text-soft);
  font-size: 18px;
  line-height: 28px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-100);
  padding: 0;
  margin: var(--space-300) 0 0;
  color: var(--text-muted);
  font-size: 14px;
  list-style: none;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
}

.hero-facts li::before {
  width: var(--space-50);
  height: var(--space-50);
  border-radius: var(--radius-full);
  background: var(--accent);
  content: '';
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: var(--space-300);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: var(--surface);
}

.hero-visual picture,
.hero-visual img {
  width: min(100%, 360px);
}

.hero-visual img {
  aspect-ratio: 9 / 16;
  object-fit: contain;
}

.tagline-section {
  padding: var(--space-800) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.tagline {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.tagline-word {
  display: inline-block;
  margin-right: 0.2em;
  color: var(--text-muted);
  transition: color 700ms var(--ease-fluid);
}

.tagline-word.is-visible {
  color: var(--text);
}

.landing-section {
  padding: var(--space-900) 0;
}

.landing-section-muted {
  background: var(--surface-muted);
}

.section-heading {
  max-width: 680px;
  margin-bottom: var(--space-600);
}

.section-heading h2,
.guide-callout h2,
.final-cta h2 {
  margin-bottom: var(--space-200);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.section-heading > p:last-child,
.guide-callout > p,
.final-cta > div > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 24px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.benefit {
  min-height: 256px;
  padding: var(--space-400) var(--space-300);
}

.benefit + .benefit {
  border-left: 1px solid var(--line);
}

.benefit-number {
  margin-bottom: var(--space-600);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
}

.benefit h3,
.steps-list h3 {
  margin-bottom: var(--space-100);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 32px;
}

.benefit p:last-child,
.steps-list p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 24px;
}

.how-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-900);
}

.how-layout .section-heading {
  margin-bottom: 0;
}

.steps-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--space-200);
  padding: var(--space-300) 0;
  border-top: 1px solid var(--line);
}

.steps-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps-list li > span {
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-900);
}

.faq-layout .section-heading {
  margin-bottom: 0;
}

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

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: var(--space-300);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  flex: 0 0 auto;
  color: var(--accent-text);
  font-size: 24px;
  font-weight: 400;
  content: '+';
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  max-width: 640px;
  padding-bottom: var(--space-300);
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 24px;
}

.guide-callout {
  padding-top: var(--space-700);
  padding-bottom: var(--space-700);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.guide-callout h2 {
  font-size: 36px;
  line-height: 40px;
}

.guide-callout > p {
  margin-bottom: var(--space-200);
}

.text-link {
  display: inline-flex;
  gap: var(--space-75);
  color: var(--accent-text);
  font-size: 16px;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

.final-cta-section {
  padding-top: var(--space-700);
  padding-bottom: var(--space-900);
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-600);
  align-items: end;
  padding: var(--space-600);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: var(--surface);
}

.final-cta h2 {
  max-width: 640px;
}

.site-footer {
  padding: var(--space-700) 0 var(--space-400);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-400);
  padding-bottom: var(--space-500);
}

.footer-copy {
  max-width: 320px;
  margin: var(--space-200) 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-200);
  padding-top: var(--space-300);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12px;
}

/* Supporting templates */
.page-hero,
.single-article,
.legal-content,
.not-found {
  padding-top: var(--space-800);
  padding-bottom: var(--space-900);
}

.page-hero {
  border-bottom: 1px solid var(--line);
}

.page-hero h1,
.article-header h1,
.not-found h1 {
  max-width: 760px;
  margin-bottom: var(--space-300);
  font-size: 60px;
}

.page-hero p,
.article-excerpt,
.not-found p {
  max-width: 680px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 28px;
}

.article-header {
  max-width: 800px;
  margin: 0 auto var(--space-600);
  text-align: center;
}

.article-header h1,
.article-excerpt,
.not-found p {
  margin-right: auto;
  margin-left: auto;
}

.article-meta {
  color: var(--text-muted);
  font-size: 14px;
}

.article-featured {
  width: min(960px, 100%);
  max-height: 520px;
  margin: 0 auto var(--space-600);
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.article-content,
.legal-content {
  max-width: 760px;
  margin-inline: auto;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 28px;
}

.article-content h2,
.article-content h3,
.article-content h4,
.legal-content h1,
.legal-content h2,
.legal-content h3 {
  margin: var(--space-600) 0 var(--space-200);
  color: var(--text);
  line-height: 1.15;
}

.article-content h2,
.legal-content h2 {
  font-size: 30px;
}

.article-content h3,
.legal-content h3 {
  font-size: 24px;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
  margin-bottom: var(--space-300);
}

.article-content a,
.legal-content a {
  color: var(--accent-text);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.article-content img {
  margin: var(--space-400) auto;
  border-radius: var(--radius-xl);
}

.article-content blockquote {
  padding: var(--space-300);
  margin-right: 0;
  margin-left: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
}

.archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-75);
  padding: var(--space-500) 0;
}

.filter-button {
  min-height: 44px;
  padding: var(--space-75) var(--space-200);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  transition: background 200ms var(--ease-fluid), color 200ms var(--ease-fluid), border-color 200ms var(--ease-fluid);
}

.filter-button:hover,
.filter-button[aria-selected='true'] {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
}

.archive-grid,
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-300);
  padding-bottom: var(--space-900);
}

.guide-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: var(--space-300);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 200ms var(--ease-fluid), transform 200ms var(--ease-fluid);
}

.guide-card:hover {
  border-color: var(--accent-text);
  transform: translateY(-2px);
}

.guide-card-thumb {
  width: calc(100% + (var(--space-300) * 2));
  margin: calc(var(--space-300) * -1) calc(var(--space-300) * -1) var(--space-200);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--surface-muted);
}

.guide-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-category,
.guide-meta {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-card h3 {
  flex: 1;
  margin: var(--space-100) 0;
  font-size: 24px;
  line-height: 32px;
}

.guide-card p {
  margin-bottom: var(--space-300);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 20px;
}

.guide-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-200);
  padding-top: var(--space-200);
  border-top: 1px solid var(--line);
  letter-spacing: 0;
  text-transform: none;
}

.empty-state {
  display: none;
  grid-column: 1 / -1;
  padding: var(--space-500);
  border: 1px dashed var(--line);
  border-radius: var(--radius-xl);
  color: var(--text-muted);
  text-align: center;
}

.not-found {
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-fluid), transform 700ms var(--ease-fluid);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero,
  .how-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: var(--space-600);
    padding-top: var(--space-600);
  }

  .hero-copy,
  .section-heading {
    max-width: 680px;
  }

  .hero-visual {
    min-height: 0;
    max-width: 480px;
  }

  .how-layout,
  .faq-layout {
    gap: var(--space-600);
  }

  .archive-grid,
  .guides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .section-shell,
  .site-header {
    width: min(100% - 32px, 1120px);
  }

  .site-header {
    padding: var(--space-200) 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-content {
    position: absolute;
    top: calc(100% + var(--space-75));
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: var(--space-200);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
  }

  .nav-content.is-open {
    display: flex;
    flex-direction: column;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links li + li {
    border-top: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: var(--space-200) 0;
  }

  .nav-cta {
    width: 100%;
    margin-top: var(--space-100);
  }

  .hero {
    gap: var(--space-400);
    padding-top: var(--space-400);
    padding-bottom: var(--space-700);
  }

  h1 {
    font-size: 48px;
  }

  .hero-lede {
    margin-bottom: var(--space-300);
    font-size: 16px;
    line-height: 24px;
  }

  .button-primary {
    max-width: 100%;
  }

  .hero-facts {
    gap: var(--space-100) var(--space-200);
    margin-top: var(--space-200);
  }

  .hero-visual {
    width: 100%;
    padding: var(--space-200);
  }

  .hero-visual picture,
  .hero-visual img {
    width: min(100%, 280px);
  }

  .tagline-section,
  .landing-section {
    padding-top: var(--space-700);
    padding-bottom: var(--space-700);
  }

  .tagline,
  .section-heading h2,
  .guide-callout h2,
  .final-cta h2,
  .page-hero h1,
  .article-header h1,
  .not-found h1 {
    font-size: 36px;
    line-height: 40px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .benefit {
    min-height: 0;
    padding: var(--space-300) 0;
  }

  .benefit + .benefit {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .benefit-number {
    margin-bottom: var(--space-300);
  }

  .final-cta {
    grid-template-columns: 1fr;
    gap: var(--space-400);
    padding: var(--space-300);
  }

  .final-cta .button-primary {
    width: 100%;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .archive-grid,
  .guides-grid {
    grid-template-columns: 1fr;
  }

  .article-content,
  .legal-content {
    font-size: 16px;
    line-height: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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

/* Homepage art direction */
.product-hero {
  padding: var(--space-700) 0 var(--space-900);
  overflow: hidden;
}

.product-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: var(--space-900);
  align-items: center;
}

.product-hero-copy {
  padding-bottom: 0;
}

.product-hero h1 {
  max-width: 680px;
  margin-bottom: var(--space-300);
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1;
}

.product-hero .hero-lede {
  max-width: 540px;
}

.hero-proof {
  margin: var(--space-300) 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
}

.hero-phone {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.hero-phone picture,
.hero-phone img {
  display: block;
  width: min(100%, 440px);
}

.hero-phone img {
  aspect-ratio: 9 / 16;
  object-fit: contain;
}

.proof-strip {
  padding: var(--space-300) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.proof-strip p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 600;
}

.tagline-section {
  padding: var(--space-900) 0;
  border: 0;
  background: #131209;
}

.tagline-section .tagline {
  max-width: 900px;
  color: #ffffff;
  font-size: 60px;
  line-height: 1;
}

.tagline-section .tagline-word {
  color: rgba(255, 255, 255, 0.34);
}

.tagline-section .tagline-word.is-visible {
  color: #ffffff;
}

.product-showcase,
.faq-section {
  padding: var(--space-900) 0;
}

.section-heading-wide {
  max-width: 760px;
}

.section-heading-wide h2,
.how-section h2,
.faq-section h2,
.download-section h2,
.guide-callout h2 {
  font-size: 60px;
  line-height: 1;
}

.screen-spread {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-400);
  align-items: start;
}

.screen-feature {
  margin: 0;
}

.screen-feature figure {
  display: flex;
  justify-content: center;
  margin: 0 0 var(--space-300);
}

.screen-feature picture,
.screen-feature img {
  display: block;
  width: min(100%, 270px);
}

.screen-feature img {
  aspect-ratio: 9 / 16;
  object-fit: contain;
}

.screen-feature-spending {
  padding-top: var(--space-800);
}

.screen-feature-detail {
  padding-top: var(--space-400);
}

.screen-feature span {
  display: block;
  margin-bottom: var(--space-100);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
}

.screen-feature h3 {
  margin-bottom: var(--space-100);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 32px;
}

.screen-feature p {
  max-width: 280px;
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 24px;
}

.how-section {
  padding: var(--space-900) 0;
  background: #131209;
  color: #ffffff;
}

.how-section .how-layout,
.faq-section .faq-layout {
  gap: var(--space-800);
}

.how-section .eyebrow {
  color: #f5a000;
}

.how-section .section-heading h2,
.how-section .steps-list h3 {
  color: #ffffff;
}

.how-section .steps-list li {
  border-color: #313131;
}

.how-section .steps-list li > span {
  color: #f5a000;
}

.how-section .steps-list p {
  color: #c9c6be;
}

.faq-section {
  background: var(--surface);
}

.download-section {
  padding: var(--space-900) 0;
  background: var(--accent);
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-600);
  align-items: end;
}

.download-section .eyebrow,
.download-section h2,
.download-section p {
  color: var(--text);
}

.download-section h2 {
  max-width: 680px;
  margin-bottom: var(--space-200);
}

.download-section p:last-child {
  max-width: 560px;
  margin: 0;
  font-size: 18px;
  line-height: 28px;
}

.download-section .button-primary {
  background: var(--text);
  color: var(--surface);
}

.download-section .button-primary:hover {
  background: #313131;
}

.guide-callout {
  padding: var(--space-800) 0;
  border: 0;
  background: var(--background);
}

.guide-callout h2 {
  max-width: 720px;
  margin-bottom: var(--space-200);
}

@media (max-width: 900px) {
  .product-hero-layout,
  .download-layout {
    grid-template-columns: 1fr;
  }

  .product-hero-copy {
    padding-bottom: 0;
  }

  .hero-phone {
    justify-content: center;
  }

  .screen-spread {
    gap: var(--space-600);
  }

  .how-section .how-layout,
  .faq-section .faq-layout {
    grid-template-columns: 1fr;
    gap: var(--space-600);
  }
}

@media (max-width: 680px) {
  .product-hero,
  .product-showcase,
  .faq-section,
  .how-section,
  .download-section {
    padding-top: var(--space-700);
    padding-bottom: var(--space-700);
  }

  .product-hero-layout {
    gap: var(--space-500);
  }

  .product-hero h1 {
    font-size: 48px;
    line-height: 1;
  }

  .hero-phone picture,
  .hero-phone img {
    width: min(100%, 330px);
  }

  .proof-strip p {
    font-size: 14px;
    line-height: 20px;
  }

  .tagline-section {
    padding: var(--space-700) 0;
  }

  .tagline-section .tagline,
  .section-heading-wide h2,
  .how-section h2,
  .faq-section h2,
  .download-section h2,
  .guide-callout h2 {
    font-size: 36px;
    line-height: 40px;
  }

  .screen-spread {
    grid-template-columns: 1fr;
    gap: var(--space-700);
  }

  .screen-feature-spending,
  .screen-feature-detail {
    padding-top: 0;
  }

  .screen-feature figure {
    justify-content: flex-start;
  }

  .screen-feature picture,
  .screen-feature img {
    width: min(100%, 260px);
  }

  .download-layout {
    gap: var(--space-400);
  }

  .download-section .button-primary {
    width: 100%;
  }
}

/* Landing brief: hero CTAs, proof, features, screenshots, pricing, privacy, sticky */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-200);
  margin-top: var(--space-400);
}

.app-badge {
  display: inline-flex;
  border-radius: var(--radius-lg);
  transition: transform 700ms cubic-bezier(0.32, 0.72, 0, 1);
}

.app-badge:hover {
  transform: translateY(-2px);
}

.app-badge img {
  width: 180px;
  height: auto;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.button-secondary:hover {
  border-color: var(--text);
}

.proof-strip-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--space-400);
  align-items: center;
}

.proof-strip blockquote {
  margin: 0;
}

.proof-strip blockquote p {
  margin-bottom: var(--space-100);
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 32px;
}

.proof-strip cite {
  color: var(--text-muted);
  font-size: 14px;
  font-style: normal;
  line-height: 20px;
}

.proof-support {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 24px;
}

.features-section,
.screenshots-section,
.pricing-section,
.privacy-section {
  padding: var(--space-900) 0;
}

.features-section {
  background: var(--surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-300);
}

.feature-card {
  padding: var(--space-400) var(--space-300);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--background);
}

.feature-card h3 {
  margin-bottom: var(--space-100);
  font-size: 20px;
  line-height: 28px;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 24px;
}

.screenshots-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap: var(--space-400);
  padding-bottom: var(--space-200);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.screenshots-scroll figure {
  margin: 0;
  scroll-snap-align: start;
}

.screenshots-scroll img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.screenshots-scroll figcaption {
  margin-top: var(--space-100);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.pricing-section {
  background: var(--surface-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-300);
}

.price-card {
  position: relative;
  padding: var(--space-400) var(--space-300);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: var(--surface);
}

.price-featured {
  border-color: var(--text);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: var(--space-300);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--text);
  color: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.price-card h3 {
  margin-bottom: var(--space-100);
  font-size: 20px;
}

.price {
  margin-bottom: var(--space-200);
}

.price strong {
  font-size: 36px;
  letter-spacing: -0.045em;
  line-height: 40px;
}

.price span {
  color: var(--text-muted);
}

.price-card p:last-child {
  margin: 0;
  color: var(--text-soft);
}

.pricing-note {
  margin: var(--space-300) 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.privacy-section {
  background: #131209;
  color: #fff;
}

.privacy-section .eyebrow {
  color: #f5a000;
}

.privacy-section h2 {
  max-width: 680px;
  margin-bottom: var(--space-200);
  font-size: 60px;
  line-height: 1;
}

.privacy-section p:last-child {
  max-width: 620px;
  margin: 0;
  color: #c9c6be;
  font-size: 18px;
  line-height: 28px;
}

.sticky-cta {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 640px;
  padding: 8px 8px 8px 16px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  font-weight: 600;
}

.sticky-cta[hidden] {
  display: none;
}

.sticky-cta a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .proof-strip-layout,
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .proof-strip-layout,
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .privacy-section h2 {
    font-size: 36px;
    line-height: 40px;
  }

  .hero-ctas {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (min-width: 681px) {
  .sticky-cta {
    display: none;
  }
}
