@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@400;500;600&display=swap');

/* ============================================================
   ONEHABIT — Design System
   ============================================================ */

:root {
  /* Brand Colours */
  --accent:        #e8c547;
  --accent-dark:   #d4a72c;
  --bg:            #080C14;
  --bg-mid:        #0e1f3d;
  --bg-card:       #1A2540;
  --bg-card-deep:  #0C1120;

  /* Text */
  --text:          #eae6d8;
  --text-muted:    #8892a4;
  --text-dim:      rgba(234, 230, 216, 0.6);

  /* UI */
  --border:        rgba(232, 197, 71, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);

  /* Typography */
  --font-body:     'Nunito', sans-serif;
  --font-display:  'Playfair Display', serif;
  --font-ui:       'Poppins', sans-serif;

  /* Layout */
  --nav-h:         72px;
  --r:             12px;
  --r-sm:          8px;
  --r-lg:          20px;
  --max-w:         1200px;
  --pad:           clamp(20px, 5vw, 60px);
  --section-pad:   clamp(64px, 9vw, 108px);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- Layout ---- */
.container {
  width: min(var(--max-w), 100% - 2 * var(--pad));
  margin-inline: auto;
}
.section { padding: var(--section-pad) 0; }
.divider { height: 1px; background: var(--border); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
              color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0a0d12;
  box-shadow: 0 4px 20px rgba(232, 197, 71, 0.22);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(232, 197, 71, 0.42); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(234, 230, 216, 0.2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 8px 20px; font-size: 0.8rem; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(8, 12, 20, 0.97);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 14px var(--pad);
    font-size: 1rem;
  }
  .nav-cta { display: none; }
  .nav-links .nav-cta {
    display: inline-flex;
    align-self: flex-start;
    margin: 8px var(--pad) 0;
    padding: 8px 18px;
  }
}

/* ---- Hero (Homepage) ---- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 1.2s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 12, 20, 0.92) 0%,
    rgba(8, 12, 20, 0.58) 55%,
    rgba(14, 31, 61, 0.72) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
  max-width: 760px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  background: rgba(232, 197, 71, 0.05);
}
.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(234, 230, 216, 0.62);
  max-width: 500px;
  margin-bottom: 44px;
  line-height: 1.78;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(136, 146, 164, 0.55);
  font-size: 0.68rem;
  font-family: var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: scrollPulse 2.6s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(136, 146, 164, 0.45), transparent);
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;    transform: translateX(-50%) translateY(7px); }
}

/* ---- Section typography ---- */
.section-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.78;
}

/* ---- Feature cards ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: rgba(232, 197, 71, 0.28);
  transform: translateY(-4px);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  background: rgba(232, 197, 71, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.72; }

/* ---- Featured article (homepage) ---- */
.featured-article {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  text-decoration: none;
  margin-top: 24px;
}
.featured-article:hover {
  border-color: rgba(232, 197, 71, 0.3);
  transform: translateY(-4px);
}
.featured-article-img {
  height: 280px;
  width: 100%;
}
.featured-article-body {
  padding: 40px 40px 40px 0;
}
.featured-article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 10px 0 16px;
}
.featured-article-body p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.74;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .featured-article { grid-template-columns: 1fr; }
  .featured-article-img { height: 200px; }
  .featured-article-body { padding: 24px; }
}

/* ---- Article cards ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: block;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  border-color: rgba(232, 197, 71, 0.3);
}
/* Card image zones with gradient */
.card-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;

  position: relative;
  overflow: hidden;
}
.card-img-productivity { 
  background-image: url('../images/harper-sunday-66t3nnXut6E-unsplash.jpg');
  background-size: cover;
  background-position: 50% 37%;
}
.card-img-fitness      { background: linear-gradient(135deg, #0c1a2e, #0d2a40); }
.card-img-mind         { background: linear-gradient(135deg, #16082c, #270c44); }
.card-img-food         { background: linear-gradient(135deg, #081f0d, #0d2e14); }

.card-body { padding: 24px; }
.card-category {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}
.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.68;
  margin-bottom: 20px;
}
.card-meta {
  font-size: 0.78rem;
  color: rgba(136, 146, 164, 0.65);
  font-family: var(--font-ui);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
/* hide filtered cards */
.card[data-hidden] { display: none; }

/* ---- Card status badges ---- */
.card-img { position: relative; }

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
}

.card-badge-live {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0a0d12;
  box-shadow: 0 2px 12px rgba(232, 197, 71, 0.35);
}

.card-badge-soon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.card-badge-new {
  background: rgba(14, 31, 61, 0.85);
  color: var(--accent);
  border: 1px solid rgba(232, 197, 71, 0.35);
  backdrop-filter: blur(8px);
}

.card-badge-next {
  background: rgba(14, 31, 61, 0.85);
  color: var(--accent);
  border: 1px solid rgba(232, 197, 71, 0.35);
  backdrop-filter: blur(8px);
}

/* ---- Filter chips ---- */
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  padding: 8px 20px;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid rgba(234, 230, 216, 0.12);
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.chip:hover { border-color: rgba(232, 197, 71, 0.4); color: var(--text); }
.chip.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: transparent;
  color: #0a0d12;
  font-weight: 600;
}

/* ---- Page header (non-hero pages) ---- */
.page-header {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 48px;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.page-header p { font-size: 1.05rem; color: var(--text-muted); max-width: 520px; line-height: 1.74; }

/* ---- App download section ---- */
.app-section {
  background: linear-gradient(135deg, var(--bg-card-deep) 0%, rgba(14, 31, 61, 0.45) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.app-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}
.app-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-sm);
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.badge:hover { border-color: var(--accent); background: rgba(232, 197, 71, 0.04); transform: translateY(-2px); }
.badge-icon { font-size: 1.6rem; flex-shrink: 0; }
.badge-text-small { font-size: 0.68rem; font-family: var(--font-ui); color: var(--text-muted); line-height: 1; margin-bottom: 2px; }
.badge-text-main  { font-size: 0.9rem;  font-family: var(--font-ui); font-weight: 600; line-height: 1; }

.app-mockup { display: flex; justify-content: center; align-items: center; }
.mockup-phone {
  width: 220px;
  height: 440px;
  background: var(--bg-card);
  border: 1px solid rgba(232, 197, 71, 0.14);
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.025);
}
.mockup-phone::before {
  content: '';
  position: absolute;
  top: 14px;
  width: 72px;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}
.mockup-phone::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(232,197,71,0.05), transparent 60%);
  pointer-events: none;
}
.mockup-label { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.mockup-label span { color: var(--accent); }
.mockup-sub { font-size: 0.72rem; font-family: var(--font-ui); color: var(--text-muted); }

/* ---- Article hero ---- */
.article-hero {
  position: relative;
  min-height: 38vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(20px, 2.5vw, 32px);
  overflow: hidden;
}
.article-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 12, 20, 0.99) 0%,
    rgba(8, 12, 20, 0.72) 40%,
    rgba(8, 12, 20, 0.28) 100%
  );
}
.article-hero-content { position: relative; z-index: 1; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-meta-item {
  font-size: 0.82rem;
  font-family: var(--font-ui);
  color: var(--text-muted);
}
.article-meta-sep { color: rgba(136, 146, 164, 0.35); }
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 820px;
}

/* ---- Article light mode ---- */
.article-page {
  background: #f8f8f6;
  color: #1a1612;
}
.article-page .nav.scrolled {
  background: rgba(248, 248, 246, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: rgba(26, 22, 18, 0.08);
}
.article-page .nav-logo { color: #1a1612; }
.article-page .nav-logo span { color: var(--accent-dark); }
.article-page .nav-links a { color: #7a7570; }
.article-page .nav-links a:hover { color: #1a1612; }
.article-page .nav-links a.active { color: #1a1612; }
.article-page .article-hero {
  background: #f8f8f6;
  min-height: 0;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: clamp(20px, 2.5vw, 32px);
}
.article-page .article-hero-bg { display: none; }
.article-page .article-hero-overlay { display: none; }
.article-page .article-meta-item,
.article-page .article-meta-sep { color: #9c9387; }
.article-page .article-hero h1 { color: #1a1612; }
.article-page .article-container p { color: #3a3530; }
.article-page .article-container h2 { color: #1a1612; }
.article-page .article-container h3 { color: var(--accent-dark); }
.article-page .article-container li { color: #3a3530; }
.article-page .article-divider { background: rgba(26, 22, 18, 0.1); }
.article-page .callout {
  border-left-color: var(--accent-dark);
  background: rgba(212, 167, 44, 0.06);
  color: #2e2a24;
}
.article-page .step-card {
  background: #ffffff;
  border-color: rgba(26, 22, 18, 0.07);
}
.article-page .step-body h4 { color: #1a1612; }
.article-page .step-body p { color: #7a7570 !important; }
.article-page .method-box {
  background: linear-gradient(135deg, rgba(212,167,44,0.07), rgba(232,197,71,0.03));
  border-color: rgba(212, 167, 44, 0.25);
}
.article-page .method-box p { color: #7a7570; }
.article-page .cta-section { background: #f0f0ed; }
.article-page .cta-section h2 { color: #1a1612; }
.article-page .cta-section p { color: #7a7570; }
.article-page .section-label { color: var(--accent-dark); }
.article-page .section-title { color: #1a1612; }
.article-page .card { background: #ffffff; border-color: rgba(26, 22, 18, 0.07); }
.article-page .card:hover { border-color: rgba(212, 167, 44, 0.4); }
.article-page .card h3 { color: #1a1612; }
.article-page .card p { color: #7a7570; }
.article-page .card-meta { color: #9c9387; border-top-color: rgba(26,22,18,0.07); }
.article-page footer { border-top-color: rgba(26, 22, 18, 0.08); background: #f0f0ed; }
.article-page .footer-logo { color: #1a1612; }
.article-page .footer-brand p { color: #7a7570; }
.article-page .footer-col h4 { color: #9c9387; }
.article-page .footer-col a { color: #7a7570; }
.article-page .footer-col a:hover { color: var(--accent-dark); }
.article-page .footer-bottom { color: #9c9387; border-top-color: rgba(26,22,18,0.08); }
.article-page .btn-outline { border-color: rgba(26, 22, 18, 0.18); color: #1a1612; }
.article-page .btn-outline:hover { border-color: var(--accent-dark); color: var(--accent-dark); }

/* ---- Info card light-mode overrides ---- */
.article-page .db-definition,
.article-page .db-stat-table,
.article-page .db-timeline,
.article-page .db-mistake-list,
.article-page .db-fit { background: #ffffff; }

.article-page .db-action {
  background: #ffffff;
  border-color: rgba(26,22,18,0.1);
  color: #1a1612;
}

/* Fix: db-fit list items must not inherit article-container bullet/size */
.article-page .article-container .db-fit ul { padding-left: 0; }
.article-page .article-container .db-fit ul li { list-style: none; font-size: 0.77rem; margin-bottom: 0; }

/* Fix: diary-text font-size overridden by .article-container p specificity */
.article-page .article-container .diary-text { font-size: 0.84rem; line-height: 1.7; margin-bottom: 0; }
.article-page .divider { background: rgba(26,22,18,0.08); }
.article-container {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(24px, 3vw, 40px) var(--pad) clamp(40px, 6vw, 72px);
}
.article-container h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 40px;
  margin-bottom: 14px;
}
.article-container h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 36px;
  margin-bottom: 12px;
}
.article-container p {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.84;
  color: rgba(234, 230, 216, 0.82);
  margin-bottom: 20px;
}
.article-container ul,
.article-container ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-container ul li { list-style: disc; }
.article-container ol li { list-style: decimal; }
.article-container li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(234, 230, 216, 0.82);
  margin-bottom: 8px;
}
.callout {
  border-left: 3px solid var(--accent);
  padding: 22px 28px;
  background: rgba(232, 197, 71, 0.05);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 36px 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.68;
  color: var(--text);
}
.article-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}
/* Step cards inside articles */
.steps-grid {
  display: grid;
  gap: 16px;
  margin: 24px 0 32px;
}
.step-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0a0d12;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-body h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.step-body p {
  font-size: 0.9rem !important;
  margin-bottom: 0 !important;
  line-height: 1.65 !important;
}

/* Method highlight box */
.method-box {
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(232,197,71,0.07), rgba(212,167,44,0.03));
  border: 1px solid rgba(232, 197, 71, 0.2);
  border-radius: var(--r);
  margin: 20px 0;
}
.method-box h3 {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 4px;
  color: var(--accent-dark);
}
.method-box p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0; }

/* ---- CTA section ---- */
.cta-section {
  text-align: center;
  padding: var(--section-pad) 0;
  background: linear-gradient(to bottom, transparent, rgba(14, 31, 61, 0.25));
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.cta-section p { color: var(--text-muted); font-size: 1rem; margin-bottom: 36px; line-height: 1.74; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 14px;
}
.footer-logo span { color: var(--accent); }
.footer-tagline {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent) !important;
  opacity: 0.85;
  margin-bottom: 6px !important;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.72;
  max-width: 280px;
}
.app-hero-tagline {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent) !important;
  opacity: 0.9;
  margin-top: -16px;
  margin-bottom: 28px !important;
}
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-col li + li { margin-top: 10px; }
.footer-col a {
  font-size: 0.875rem;
  color: rgba(234, 230, 216, 0.5);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   METHODS INDEX PAGE
   ============================================================ */

/* Featured OneHabit Method block */
.methods-featured {
  display: block;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-mid) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 56px);
  margin-top: 28px;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.methods-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(232,197,71,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.methods-featured:hover {
  border-color: rgba(232, 197, 71, 0.35);
  transform: translateY(-2px);
}
.methods-featured-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.methods-featured h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}
.methods-featured p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 24px;
}
.methods-featured-link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* Methods numbered list */
.methods-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.method-row {
  display: grid;
  grid-template-columns: 64px 1fr 32px;
  gap: 0;
  align-items: center;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  transition: background 0.18s;
}
.method-row:last-child { border-bottom: none; }
.method-row:hover { background: var(--bg-card); }
.method-row-soon { opacity: 0.6; cursor: default; }
.method-row-soon:hover { background: transparent; }
.method-row-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(232, 197, 71, 0.35);
  line-height: 1;
}
.method-row-body {
  padding: 0 24px;
}
.method-row-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.method-row-top h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.method-row-body p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.method-row-meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(136, 146, 164, 0.6);
  letter-spacing: 0.02em;
}
.method-row-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.18s, transform 0.18s;
}
.method-row:not(.method-row-soon):hover .method-row-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ============================================================
   APP PAGE
   ============================================================ */
.app-page-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(16px, 2vw, 24px);
  background: radial-gradient(ellipse at 60% 0%, rgba(14,31,61,0.9) 0%, var(--bg) 70%);
  position: relative;
  overflow: hidden;
}
.app-page-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,197,71,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.app-page-hero .container { position: relative; z-index: 1; }
.app-hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.app-hero-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 760px) {
  .app-hero-cols {
    grid-template-columns: 2fr 3fr;
    gap: 64px;
    align-items: start;
  }
  .app-hero-right {
    border-left: 1px solid var(--border);
    padding-left: 48px;
  }
}
.app-hero-left {
  text-align: right;
}
.app-hero-left .app-hero-eyebrow {
  justify-content: flex-end;
}
.app-hero-left h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin: 0;
}
.app-hero-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 32px;
}
.app-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 520px;
}
.app-page-hero p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 28px;
}
.app-hero-bullets li {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}
.app-hero-bullets li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.7;
}
.app-hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.app-hero-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}
.feature-card.feature-card-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-mid) 100%);
  border-color: var(--border);
  position: relative;
  overflow: hidden;
}
.feature-card.feature-card-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(232,197,71,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: rgba(232, 197, 71, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.feature-card.feature-card-featured h3 {
  font-size: 1.45rem;
}
.feature-card p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.feature-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  background: rgba(232,197,71,0.1);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* App download section */
.app-download {
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 0;
}
.app-download h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.app-download p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.download-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .app-inner { grid-template-columns: 1fr; gap: 48px; }
  .app-mockup { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .feature-card.feature-card-featured { grid-column: span 1; }
}
@media (max-width: 768px) {
  .method-row { grid-template-columns: 48px 1fr; padding: 20px 20px; }
  .method-row-arrow { display: none; }
  .method-row-body { padding: 0 16px; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .features-grid { grid-template-columns: 1fr; }
}
