/* Gratefuller Website: Warm Calm Minimalist Lavender Design System */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;1,500&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #FAF8FC;
  --bg-soft: #F3EEF9;
  --surface: #FFFFFF;
  --surface-tint: #F6F2FC;
  --border: #E8E0F2;
  --border-strong: #D6C9E8;

  --primary: #7D67AB;
  --primary-dark: #634E90;
  --primary-soft: #ECE5F8;
  --primary-glow: rgba(125, 103, 171, 0.16);

  --sage-soft: #EAF3EF;
  --sage-text: #3E6B5C;
  --amber-soft: #F8F1E7;
  --amber-text: #8A6943;
  --blush-soft: #F7EEF2;
  --blush-text: #8C5B70;

  --text: #2B2238;
  --text-secondary: #625775;
  --text-muted: #8E83A1;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 16px rgba(75, 58, 107, 0.06);
  --shadow-md: 0 14px 36px rgba(75, 58, 107, 0.09);
  --shadow-lg: 0 24px 56px rgba(75, 58, 107, 0.13);

  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 780px;
}

/* Header & Navigation with SEO Submenu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 252, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-link img {
  width: 34px;
  height: 24px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 2px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.18s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.nav-item:hover .chevron,
.nav-item.open .chevron {
  transform: rotate(180deg);
}

/* Submenu Dropdown */
.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: -16px;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  list-style: none;
  margin: 0;
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu,
.nav-item.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.submenu a:hover {
  background: var(--surface-tint);
}

.submenu-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.submenu-desc {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Single Blog Mega-Menu (Pillars -> Blog Posts) */
.nav-inner {
  position: relative;
}

.nav-item.has-mega {
  position: static;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  width: min(920px, calc(100vw - 48px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 120;
}

.mega-menu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-item.has-mega:hover .mega-menu,
.nav-item.has-mega:focus-within .mega-menu,
.nav-item.has-mega.open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.mega-col {
  display: flex;
  flex-direction: column;
}

.mega-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0 8px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s ease;
}

.mega-heading:hover {
  color: var(--primary-dark);
}

.mega-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-links a {
  display: block;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.mega-links a:hover {
  background: var(--surface-tint);
}

.mega-link-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.mega-link-sub {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.mega-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.mega-footer a {
  font-weight: 600;
  color: var(--primary);
}

.mega-footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.mobile-pillar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  padding: 12px 0 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(125, 103, 171, 0.24);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 26px rgba(99, 78, 144, 0.3);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary-dark);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-tint);
  border-color: var(--primary);
}

.btn-lg {
  padding: 15px 28px;
  font-size: 15.5px;
}

.mobile-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.mobile-drawer {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer a {
  display: block;
  padding: 10px 0;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-drawer .mobile-sub {
  padding-left: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Hero Section (Side-by-Side Above the Fold) */
.hero {
  padding: 44px 0 72px;
  background: radial-gradient(circle at 72% 20%, rgba(213, 198, 240, 0.42) 0%, rgba(250, 248, 252, 0) 64%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 44px;
}

.hero-copy {
  text-align: left;
}

.hero-brand-logo {
  width: 118px;
  height: auto;
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 4.1vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 520px;
  margin: 0 0 18px;
  font-weight: 600;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--text-secondary);
  max-width: 470px;
  margin: 0 0 28px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

/* Dual Realistic iPhone Mockups */
.phone-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.iphone-frame {
  width: 246px;
  background: #1F1A29;
  border-radius: 40px;
  padding: 9px;
  box-shadow: var(--shadow-lg);
  text-align: left;
  flex-shrink: 0;
}

.iphone-frame.offset {
  transform: translateY(20px);
}

.iphone-screen {
  background: var(--bg);
  border-radius: 32px;
  padding: 15px 14px 16px;
  height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.iphone-screen.moment-screen {
  background: linear-gradient(155deg, #FAF8FC 0%, #F1EAF9 55%, #E8DEF6 100%);
}

.dynamic-island {
  width: 82px;
  height: 22px;
  background: #16121E;
  border-radius: 14px;
  margin: 0 auto 18px;
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.mock-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--primary);
  line-height: 1.1;
  font-weight: 600;
}

.mock-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.mock-pill {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 99px;
}

.mock-card {
  background: linear-gradient(145deg, #FFFFFF, #F6F1FC);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.mock-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 99px;
  background: var(--amber-soft);
  color: var(--amber-text);
  margin-bottom: 12px;
}

.mock-tag.sage {
  background: var(--sage-soft);
  color: var(--sage-text);
}

.mock-prompt {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.48;
  color: var(--text);
  margin: 0 0 16px;
}

.mock-btn {
  background: var(--primary);
  color: #FFFFFF;
  text-align: center;
  padding: 11px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}

.mock-write-link {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 9px;
}

.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 8px;
  text-align: center;
  margin-top: 12px;
}

.mock-stat-val {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text);
  display: block;
}

.mock-stat-lbl {
  font-size: 10px;
  color: var(--text-muted);
}

.mock-tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 14px;
}

.mock-tabbar .active {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: 99px;
  padding: 5px 2px;
}

.mock-tabbar span {
  padding: 5px 2px;
}

.moment-center {
  text-align: center;
  padding: 16px 4px;
  position: relative;
}

.moment-aura {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(182, 160, 224, 0.28);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -56%);
  pointer-events: none;
}

.moment-eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  position: relative;
}

.moment-quote {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 18px;
  position: relative;
}

.moment-cue {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 11px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  position: relative;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-tinted {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 14px;
}

.section-header p {
  font-size: 16.5px;
  color: var(--text-secondary);
  margin: 0;
}

/* 3-Step How It Works (Erly style) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-card h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--primary);
  margin: 0 0 10px;
  line-height: 1.3;
}

.step-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.step-preview {
  margin-top: auto;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.notif-banner {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.notif-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.notif-body {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.4;
}

.preset-row-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-chip-demo {
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.preset-chip-demo.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* Interactive Prompt Demo Widget */
.demo-box {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(145deg, #FFFFFF, #F5EFFB);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.demo-tabs {
  display: inline-flex;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.demo-tab {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.16s ease;
}

.demo-tab.active {
  background: var(--primary);
  color: #FFFFFF;
}

.demo-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.45;
  color: var(--text);
  margin: 0 auto 16px;
  max-width: 560px;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-cue {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.demo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-feedback {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sage-text);
  min-height: 22px;
}

/* Features Grid (4-card clean grid like Erly) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--primary);
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.tag-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.tag-badge.sage {
  background: var(--sage-soft);
  color: var(--sage-text);
}

.tag-badge.amber {
  background: var(--amber-soft);
  color: var(--amber-text);
}

.tag-badge.blush {
  background: var(--blush-soft);
  color: var(--blush-text);
}

.blog-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 10px;
}

.blog-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 18px;
  flex: 1;
}

.blog-meta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
}

/* FAQ Accordion */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 22px;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-plus {
  font-size: 20px;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Article & Legal Page Layouts with Sticky SEO Submenu TOC */
.page-hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(236, 229, 248, 0.35) 0%, rgba(250, 248, 252, 0) 100%);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
  color: var(--primary);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 44px;
  padding: 48px 0 88px;
  align-items: start;
}

.toc-sidebar {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.toc-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin: 0 0 12px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list a {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: block;
  padding: 3px 0;
}

.toc-list a:hover {
  color: var(--primary);
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--primary);
  margin: 40px 0 14px;
  line-height: 1.28;
  scroll-margin-top: 96px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--text);
  margin: 26px 0 10px;
}

.prose p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.prose ul, .prose ol {
  margin: 0 0 22px;
  padding-left: 22px;
  color: var(--text-secondary);
}

.prose li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.prose strong {
  color: var(--text);
}

.callout-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 28px 0;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

.cta-banner {
  background: linear-gradient(145deg, #FFFFFF, #F2EBF9);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 36px;
  text-align: center;
  margin-top: 44px;
}

.cta-banner h2,
.cta-banner h3 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin: 0 0 10px;
}

.cta-banner p {
  max-width: 520px;
  margin: 0 auto 22px;
  color: var(--text-secondary);
}

/* Blog Filter Pills */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.16s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* Footer (Erly multi-column clean layout) */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14.5px;
  max-width: 280px;
  margin: 12px 0 20px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Editorial SEO Components */
.direct-answer-box {
  background: linear-gradient(145deg, #FFFFFF, #F5EFFB);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 0 0 32px;
  box-shadow: var(--shadow-sm);
}

.direct-answer-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.direct-answer-box p {
  margin: 0;
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.68;
}

.mid-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface-tint);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 32px 0;
}

.mid-cta-card h3 {
  margin: 0 0 6px !important;
  font-size: 18px !important;
  color: var(--primary) !important;
}

.mid-cta-card p {
  margin: 0 !important;
  font-size: 14.5px !important;
  color: var(--text-secondary);
}

.mid-cta-card .btn {
  flex-shrink: 0;
}

/* Copyable Prompt List */
.prompt-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 28px !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.prompt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  margin-bottom: 0 !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.prompt-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.prompt-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.prompt-num {
  color: var(--primary);
  font-weight: 700;
  margin-right: 6px;
}

.copy-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--primary-dark);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.copy-btn.copied {
  background: var(--sage-soft);
  border-color: var(--sage-text);
  color: var(--sage-text);
}

/* Inline Random Prompt Generator */
.inline-generator {
  background: linear-gradient(145deg, #FFFFFF, #F3ECF9);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin: 28px 0 36px;
  text-align: center;
}

.inline-generator-kicker {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 10px;
}

.inline-generator-quote {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.45;
  color: var(--text);
  margin: 0 auto 18px !important;
  max-width: 560px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inline-generator-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Comparison Tables */
.comparison-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 560px;
}

.comparison-table th,
.comparison-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.comparison-table th {
  background: var(--surface-tint);
  color: var(--text);
  font-weight: 700;
  font-size: 13.5px;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .highlight-col {
  background: rgba(236, 229, 248, 0.35);
}

.comparison-table th.highlight-col {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* Interactive 30-Day Challenge Grid */
.challenge-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0 24px;
}

.challenge-progress-text {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-dark);
}

.challenge-bar-track {
  width: 100%;
  height: 8px;
  background: var(--primary-soft);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}

.challenge-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 99px;
  transition: width 0.25s ease;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0 32px;
}

.challenge-day {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.challenge-day:hover {
  border-color: var(--primary);
}

.challenge-day.done {
  background: var(--sage-soft);
  border-color: var(--sage-text);
}

.challenge-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--surface);
}

.challenge-day.done .challenge-check {
  background: var(--sage-text);
  border-color: var(--sage-text);
}

.challenge-day-num {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 3px;
}

.challenge-day.done .challenge-day-num {
  color: var(--sage-text);
}

.challenge-day-text {
  display: block;
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
}

/* Silo Hub & Related Articles */
.silo-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 28px 0;
}

.related-silo {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-silo h2 {
  margin-top: 0 !important;
  font-size: 22px !important;
}

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

.related-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.related-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 16.5px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}

.related-card span {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: block;
}

/* Responsive */
@media (max-width: 1060px) {
  .hero-grid {
    gap: 24px;
  }

  .phone-showcase {
    gap: 12px;
  }

  .iphone-frame {
    width: 198px;
    border-radius: 34px;
    padding: 7px;
  }

  .iphone-screen {
    height: 436px;
    border-radius: 28px;
    padding: 12px 11px 12px;
  }

  .dynamic-island {
    width: 66px;
    height: 18px;
    margin-bottom: 12px;
  }

  .mock-title {
    font-size: 17px;
  }

  .mock-prompt {
    font-size: 13.5px;
    margin-bottom: 12px;
  }

  .mock-card {
    padding: 12px;
    border-radius: 16px;
  }

  .mock-btn {
    padding: 9px 10px;
    font-size: 11px;
  }

  .mock-stats {
    padding: 9px 6px;
  }

  .mock-stat-val {
    font-size: 17px;
  }

  .moment-quote {
    font-size: 15.5px;
    margin-bottom: 12px;
  }

  .moment-cue {
    font-size: 10.5px;
    padding: 9px 10px;
  }
}

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

  .features-grid,
  .challenge-grid,
  .silo-cards-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .mid-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .toc-sidebar {
    position: static;
  }

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

@media (max-width: 880px) {
  .nav-menu,
  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 840px) {
  .hero {
    padding: 24px 0 44px;
  }

  .hero-grid {
    gap: 18px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 3.6vw, 2.35rem);
  }

  .hero-sub {
    font-size: 0.94rem;
    margin-bottom: 20px;
  }

  .iphone-frame {
    width: 182px;
    border-radius: 30px;
    padding: 6px;
  }

  .iphone-frame.offset {
    transform: translateY(12px);
  }

  .iphone-screen {
    height: 416px;
    border-radius: 24px;
    padding: 10px 9px 10px;
  }

  .dynamic-island {
    width: 56px;
    height: 15px;
    margin-bottom: 10px;
  }

  .mock-header {
    margin-bottom: 10px;
    gap: 4px;
  }

  .mock-title {
    font-size: 15px;
  }

  .mock-sub {
    font-size: 9.5px;
  }

  .mock-pill {
    font-size: 9px;
    padding: 3px 7px;
    white-space: nowrap;
  }

  .mock-card {
    padding: 10px;
    border-radius: 14px;
  }

  .mock-tag {
    font-size: 9px;
    padding: 3px 7px;
    margin-bottom: 8px;
  }

  .mock-prompt {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .mock-btn {
    padding: 7px 10px;
    font-size: 10.5px;
  }

  .mock-write-link {
    font-size: 9.5px;
    margin-top: 6px;
  }

  .mock-stats {
    padding: 7px 4px;
    margin-top: 8px;
    border-radius: 12px;
  }

  .mock-stat-val {
    font-size: 15px;
  }

  .mock-stat-lbl {
    font-size: 8.5px;
  }

  .mock-tabbar {
    font-size: 7.5px;
    margin-top: 8px;
    padding: 4px;
  }

  .moment-quote {
    font-size: 14px;
    line-height: 1.4;
  }

  .moment-cue {
    font-size: 9.5px;
    padding: 8px;
  }
}

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

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

  .hero-copy {
    text-align: center;
  }

  .hero-brand-logo {
    margin: 0 auto 16px;
  }

  .hero h1,
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

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

  .phone-showcase {
    flex-wrap: wrap;
    gap: 14px;
  }

  .iphone-frame {
    width: 220px;
  }

  .iphone-screen {
    height: 460px;
  }

  .iphone-frame.offset {
    transform: none;
  }
}

/* Clean Print / Save PDF Styling for Challenges, Lists & Prompts */
@media print {
  .site-header,
  .site-footer,
  .toc-sidebar,
  .mid-cta-card,
  .cta-banner,
  .inline-generator,
  .copy-btn,
  .related-silo,
  .breadcrumbs,
  .no-print {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    color: #111111;
    font-size: 12pt;
  }

  .article-layout {
    display: block;
    padding: 0;
  }

  .page-hero {
    padding: 12px 0;
    background: none;
    border-bottom: 1px solid #CCCCCC;
  }

  .challenge-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .challenge-day,
  .prompt-item {
    break-inside: avoid;
    border: 1px solid #CCCCCC;
    padding: 8px 10px;
  }
}
