/* ============================================
   Ridma Landing Page — Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Background */
  --bg-start: #F2F6FA;
  --bg-end: #E0F0F0;

  /* Accents */
  --teal: #009999;
  --green: #33B366;
  --teal-light: #00b3b3;
  --green-light: #40c080;

  /* Logo */
  --logo-line: #596565;
  --logo-glow: #80B299;

  /* Text */
  --text-primary: #2A2A2A;
  --text-secondary: #6B7B7B;
  --text-inverse: #FFFFFF;

  /* Cards */
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: rgba(0, 0, 0, 0.08);

  /* Nav */
  --nav-bg: rgba(242, 246, 250, 0.8);
  --nav-bg-solid: rgba(242, 246, 250, 0.95);

  /* Misc */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.10);
  --transition: 0.3s ease;
}

/* --- Dark Mode --- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-start: #000000;
    --bg-end: #003333;
    --text-primary: #E8EAEA;
    --text-secondary: #8FA0A0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(0, 0, 0, 0.6);
    --nav-bg-solid: rgba(0, 0, 0, 0.9);
    --logo-line: #B3BFB8;
    --logo-glow: #99CC99;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.4);
  }
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Visually hidden but accessible to screen readers & crawlers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--teal-light);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* --- Scroll Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.nav.scrolled {
  background: var(--nav-bg-solid);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--teal);
  color: var(--text-inverse) !important;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--teal-light);
  color: var(--text-inverse) !important;
  transform: translateY(-1px);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

.nav-mobile-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nav-bg-solid);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-mobile-toggle {
    display: block;
  }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-meaning {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-style: italic;
}

.hero-meaning em {
  color: var(--teal);
  font-style: normal;
  font-weight: 600;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--teal);
  color: var(--text-inverse);
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(0, 153, 153, 0.25);
}

.hero-cta:hover {
  background: var(--teal-light);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 153, 153, 0.35);
}

.hero-cta svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Breathing gradient orb */
.hero-orb {
  position: absolute;
  top: 50%;
  right: 10%;
  width: 500px;
  height: 500px;
  transform: translate(20%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 153, 153, 0.2) 0%, rgba(51, 179, 102, 0.1) 50%, transparent 70%);
  animation: breathe 6s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes breathe {
  0%, 100% {
    transform: translate(20%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(20%, -50%) scale(1.15);
    opacity: 1;
  }
}

/* Phone mockup */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  height: 580px;
  background: var(--card-bg);
  border: 3px solid var(--card-border);
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: var(--text-primary);
  border-radius: 0 0 20px 20px;
  z-index: 3;
  opacity: 0.15;
}

.phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--bg-start), var(--bg-end));
  border-radius: 37px;
  flex-direction: column;
  gap: 12px;
}

.phone-screen-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.phone-screen-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--green));
  opacity: 0.3;
}

/* Phone mockup with actual screenshot */
.phone-mockup img.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 37px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

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

  .hero-orb {
    top: 20%;
    right: -20%;
    width: 300px;
    height: 300px;
  }

  .phone-mockup {
    width: 220px;
    height: 460px;
  }
}

/* ============================================
   Features Showcase
   ============================================ */
.features {
  overflow: hidden;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.feature-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 440px;
}

.feature-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.feature-tag {
  padding: 6px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup-sm {
  width: 240px;
  height: 500px;
  background: var(--card-bg);
  border: 3px solid var(--card-border);
  border-radius: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.phone-mockup-sm .phone-notch {
  width: 100px;
  height: 26px;
}

.phone-mockup-sm .phone-screen {
  border-radius: 33px;
}

.phone-mockup-sm img.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 33px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

/* Pulse ring hint */
.pulse-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--teal);
  opacity: 0.3;
  animation: pulse-ring-anim 3s ease-in-out infinite;
}

@keyframes pulse-ring-anim {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.15); opacity: 0.4; }
}

@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
  }

  .feature-row.reverse {
    direction: ltr;
  }

  .feature-content {
    text-align: center;
  }

  .feature-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-tags {
    justify-content: center;
  }

  .phone-mockup-sm {
    width: 200px;
    height: 420px;
  }
}

/* ============================================
   How It Works
   ============================================ */
.how-it-works {
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 60px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  padding: 40px 28px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

/* ============================================
   What Makes Ridma Different
   ============================================ */
.differentiators {
  text-align: center;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.diff-card {
  padding: 36px 28px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
}

.diff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.diff-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(0, 153, 153, 0.1), rgba(51, 179, 102, 0.1));
}

.diff-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.diff-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

/* ============================================
   Privacy Promise
   ============================================ */
.privacy-section {
  text-align: center;
}

.privacy-content {
  max-width: 640px;
  margin: 0 auto;
}

.privacy-content > p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  text-align: left;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.privacy-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  margin-top: 2px;
}

.privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 1rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 153, 153, 0.03) 100%);
}

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

.faq-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 20px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(0, 153, 153, 0.35);
  box-shadow: 0 4px 20px rgba(0, 153, 153, 0.08);
}

.faq-item summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #1a1a1a;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--teal);
  transition: transform 0.2s ease;
  line-height: 1;
}

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

.faq-item p {
  margin: 14px 0 0;
  color: #4a4a4a;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .faq {
    padding: 80px 0;
  }
  .faq-item {
    padding: 18px 20px;
  }
  .faq-item summary {
    font-size: 1rem;
  }
}

/* ============================================
   Final CTA
   ============================================ */
.final-cta {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.final-cta-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 153, 153, 0.12) 0%, rgba(51, 179, 102, 0.06) 50%, transparent 70%);
  animation: breathe 6s ease-in-out infinite;
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.final-cta .hero-sub {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.final-cta .hero-cta {
  position: relative;
  z-index: 1;
}

.final-cta-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--card-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-brand-name img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand-name span {
  font-size: 1.15rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

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

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

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-made {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Sub-pages (Privacy, Terms)
   ============================================ */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.page-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.page-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
}

.page-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-content ul {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 8px;
}

.page-content a {
  font-weight: 500;
}

/* ============================================
   404 Error page
   ============================================ */
.error-page {
  min-height: calc(100vh - 280px);
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
}

.error-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.error-code {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(4rem, 10vw, 6.5rem);
  font-weight: 600;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.error-page h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.error-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
}

.error-links {
  margin-bottom: 56px;
}

.error-suggested {
  text-align: left;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.error-suggested h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.error-suggested ul {
  list-style: none;
  padding: 0;
}

.error-suggested li {
  padding: 10px 0;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.error-suggested li:last-child {
  border-bottom: none;
}

.error-suggested a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
}

.error-suggested a:hover {
  color: var(--teal);
}

/* ============================================
   Homepage Journal Preview & diff-card links
   ============================================ */
.diff-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}

.diff-link:hover {
  color: var(--teal-light);
}

.journal-preview {
  padding: 120px 0 80px;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 48px auto 0;
}

@media (max-width: 760px) {
  .journal-grid {
    grid-template-columns: 1fr;
  }
  .journal-preview {
    padding: 80px 0 40px;
  }
}

.journal-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.journal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 153, 153, 0.35);
  box-shadow: var(--shadow-hover);
}

.journal-card-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--teal);
}

.journal-card h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--text-primary);
}

.journal-card-read {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
}

.journal-all {
  text-align: center;
  margin-top: 36px;
}

.journal-all a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
}

.journal-all a:hover {
  color: var(--teal-light);
}

/* ============================================
   Blog (Journal)
   ============================================ */
.blog-header {
  padding: 140px 0 60px;
}

.blog-header-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.blog-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 18px;
}

.blog-header-inner h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  color: var(--text-primary);
}

.blog-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto;
}

.blog-index {
  padding: 40px 0 120px;
}

.blog-index .container {
  max-width: 760px;
}

.blog-card {
  padding: 32px 0;
  border-bottom: 1px solid var(--card-border);
}

.blog-card:last-child {
  border-bottom: none;
}

.blog-card-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.blog-card h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.blog-card h2 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card h2 a:hover {
  color: var(--teal);
}

.blog-card p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.blog-readmore {
  display: inline-block;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.blog-readmore:hover {
  transform: translateX(3px);
}

/* --- Individual Post --- */
.post {
  padding: 140px 0 80px;
}

.post-inner {
  max-width: 720px;
  margin: 0 auto;
}

.post-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 16px;
}

.post h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.post-meta {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--card-border);
}

.post-body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.post-body p {
  margin-bottom: 22px;
}

.post-body h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 44px 0 18px;
  line-height: 1.3;
}

.post-body h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 32px 0 12px;
  text-transform: none;
  letter-spacing: -0.005em;
}

.post-body ul, .post-body ol {
  padding-left: 24px;
  margin-bottom: 22px;
}

.post-body li {
  margin-bottom: 10px;
}

.post-body a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.post-body a:hover {
  color: var(--teal-light);
}

.post-body blockquote {
  border-left: 3px solid var(--teal);
  padding: 4px 0 4px 22px;
  margin: 28px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.post-body em {
  font-style: italic;
}

.post-body strong {
  font-weight: 700;
}

.post-cta {
  margin-top: 56px;
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  text-align: center;
}

.post-cta p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.post-cta .hero-cta {
  display: inline-flex;
}

.post-related {
  max-width: 720px;
  margin: 72px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--card-border);
}

.post-related h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.post-related ul {
  list-style: none;
  padding: 0;
}

.post-related li {
  margin-bottom: 12px;
}

.post-related a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.post-related a:hover {
  color: var(--teal);
}

@media (max-width: 640px) {
  .blog-header {
    padding: 120px 0 40px;
  }
  .post {
    padding: 110px 0 60px;
  }
  .post-body {
    font-size: 1.05rem;
  }
}
