/* ==========================================
   CSS Variables
   ========================================== */
:root {
  --primary: #4B39EF;
  --primary-dark: #3B2CC0;
  --primary-light: rgba(75, 57, 239, 0.18);
  --text-primary: #111111;
  --text-secondary: #545454;
  --bg-page: #F5F4F7;
  --bg-white: #FFFFFF;
  --bg-gray: #F3F4F6;
  --border-subtle: #E5E7EB;
  --version-color: #C7C8D2;
  --font-primary: 'DM Sans', sans-serif;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-secondary: 'Plus Jakarta Sans', sans-serif;
  --max-width: 1100px;
  --header-height: 72px;
  --container-radius: 48px;
  --container-gap: 16px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ==========================================
   Rounded Section Containers
   ========================================== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  margin-top: var(--container-gap);
}

.section-container > section {
  background: var(--bg-white);
  border-radius: var(--container-radius);
  overflow: hidden;
}

.section-container--hero {
  margin-top: 0;
  padding-top: calc(var(--header-height) + var(--container-gap));
}

/* ==========================================
   Scroll Animations
   ========================================== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* ==========================================
   Header
   ========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 28px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sign-in-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 48px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.sign-in-link:hover {
  color: var(--text-primary);
  background: var(--bg-page);
}

.header-nav .btn-cta {
  display: none;
  width: auto;
  max-width: none;
  padding: 7px 16px;
  font-size: 14px;
  white-space: nowrap;
  border-radius: 48px;
}

@media (min-width: 768px) {
  .header-nav .btn-cta {
    display: inline-flex;
  }
}

/* ==========================================
   Hero
   ========================================== */
.section-container > .hero {
  background: linear-gradient(165deg, #5B47FF 0%, #4B39EF 35%, #3B2CC0 70%, #2D1F9E 100%);
  overflow: hidden;
  padding-top: 48px;
  padding-bottom: 370px;
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.hero-bold {
  display: block;
  font-weight: 800;
  color: #FFFFFF;
}

.hero-light {
  display: block;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
}

.hero-image {
  display: none;
}

.hero-mockup {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 48px);
  max-width: 400px;
}

.hero-mockup img {
  width: 100%;
  display: block;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.9);
  max-width: 440px;
  margin-bottom: 8px;
  line-height: 1.6;
}

/* CTA Button */
.btn-cta {
  display: inline-block;
  width: 100%;
  max-width: 400px;
  padding: 18px 40px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  border-radius: 48px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

.btn-cta:active {
  transform: translateY(0);
}

/* Hero CTA — white button on purple */
.hero .btn-cta {
  background: #FFFFFF;
  color: var(--primary);
  font-weight: 700;
}

.hero .btn-cta:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
}

.pricing-text {
  margin-top: 16px;
  font-size: 16px;
  text-align: center;
  line-height: 1.5;
}

.hero-pricing {
  color: rgba(255,255,255,0.8);
  margin-top: 0;
  margin-bottom: 32px;
}

/* ==========================================
   Phone Mockup Component
   ========================================== */
.phone-mockup {
  width: 420px;
  height: 1120px;
  background: #1A1A2E;
  border-radius: 60px;
  padding: 18px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3), 0 10px 20px rgba(0,0,0,0.15);
}

.phone-mockup-screen {
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border-radius: 45px;
  overflow: hidden;
  position: relative;
}

.phone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px 0;
  z-index: 3;
  height: 54px;
}

.phone-status-time {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #000;
  width: 54px;
}

.phone-dynamic-island {
  width: 120px;
  height: 36px;
  background: #000;
  border-radius: 20px;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #000;
  font-size: 15px;
  justify-content: flex-end;
}

.phone-mockup-img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 36px;
}

/* Small variant for inline sections */
.phone-mockup--small {
  width: 220px;
  height: 440px;
  border-radius: 32px;
  padding: 10px;
}

.phone-mockup--small .phone-mockup-screen {
  border-radius: 24px;
}

/* Hero variant */
.hero .phone-mockup {
  box-shadow: 0 25px 60px rgba(0,0,0,0.3), 0 10px 20px rgba(0,0,0,0.15), 0 0 80px rgba(75,57,239,0.3);
}

/* Float animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .phone-mockup {
    animation: none;
  }
}

/* ==========================================
   Schedule Section
   ========================================== */
.schedule {
  padding: 40px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: -32px;
  margin-bottom: 40px;
}

.schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.schedule-card {
  background: var(--bg-page);
  border-radius: 24px;
  padding: 32px;
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.schedule-card:hover {
  transform: translateY(-2px);
}

.schedule-card-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

#weekly-rotation-rows {
  display: contents;
}

.schedule-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.schedule-day-label {
  flex-shrink: 0;
  width: 140px;
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  white-space: nowrap;
  background: rgba(0,0,0,0.04);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.schedule-bar {
  flex: 1;
  height: 34px;
  display: flex;
  align-items: center;
  padding-left: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
}

.schedule-bar.grace {
  background: var(--primary-light);
  color: var(--text-primary);
}

.schedule-bar.paul {
  background: var(--primary);
  color: #fff;
}

.schedule-check {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  font-size: 14px;
  color: var(--text-secondary);
}

.schedule-check svg {
  flex-shrink: 0;
}

/* ==========================================
   How It Works
   ========================================== */
.how-it-works {
  padding: 40px 0;
}

.how-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-it-works-cta {
  text-align: left;
  margin-top: 32px;
}

.how-card {
  background: var(--bg-page);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-card p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.step-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
}

/* ==========================================
   Sign In Banner
   ========================================== */
.signin-banner {
  padding: 24px 0;
}

.signin-banner-inner {
  background: var(--bg-page);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  font-size: 17px;
  font-family: var(--font-primary);
}

.signin-banner-link {
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(75,57,239,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.signin-banner-link:hover {
  text-decoration-color: var(--primary);
}

/* ==========================================
   Benefits List
   ========================================== */
.benefits {
  padding: 40px 0;
}

.benefits .section-title {
  margin-bottom: 32px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.benefits-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  list-style: none;
}

.benefits-item i {
  font-size: 28px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.benefits-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.benefits-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.benefits-blurb {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

@media (min-width: 768px) {
  .benefits-list {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 32px 48px;
  }

  .benefits-item:nth-child(1) { grid-row: 1; grid-column: 1; }
  .benefits-item:nth-child(2) { grid-row: 2; grid-column: 1; }
  .benefits-item:nth-child(3) { grid-row: 3; grid-column: 1; }
  .benefits-item:nth-child(4) { grid-row: 1; grid-column: 2; }
  .benefits-item:nth-child(5) { grid-row: 2; grid-column: 2; }
  .benefits-item:nth-child(6) { grid-row: 3; grid-column: 2; }
}

/* ==========================================
   Shared Notes
   ========================================== */
.shared-notes {
  padding: 40px 0;
}

.notes-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notes-description {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.notes-cards {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 36px 8px 36px 40px;
  margin: -36px -8px -36px -40px;
  cursor: grab;
}

.notes-cards.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.notes-cards::-webkit-scrollbar {
  display: none;
}

.note-card {
  flex-shrink: 0;
  width: 240px;
  min-height: 220px;
  background: var(--bg-page);
  border: none;
  border-radius: 24px;
  padding: 24px;
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  scroll-snap-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

.note-card:hover {
  transform: translateY(-6px) !important;
}

.note-card p + p {
  margin-top: 12px;
}

.note-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.rotate-neg {
  transform: rotate(-9deg);
}

.rotate-pos {
  transform: rotate(11deg);
}

.rotate-neg-lg {
  transform: rotate(-10deg);
}

/* ==========================================
   Final CTA
   ========================================== */
.final-cta {
  padding: 24px 0 28px;
  text-align: center;
}

.final-cta-text {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.final-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-cta .pricing-text {
  color: var(--text-secondary);
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 40px;
  margin-top: var(--container-gap);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

.footer-logo {
  height: 24px;
  width: auto;
  margin-bottom: 8px;
  filter: brightness(0) invert(1);
}

.footer-company-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.footer-company-detail {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

.footer-columns {
  display: flex;
  gap: 48px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}

.footer-col-links a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    gap: 56px;
  }

  .footer-columns {
    gap: 56px;
  }
}

/* ==========================================
   Responsive: Tablet (768px+)
   ========================================== */
@media (min-width: 768px) {
  :root {
    --container-gap: 20px;
  }

  .section-container > .hero {
    padding-bottom: 48px;
    min-height: 520px;
  }

  .hero-headline {
    font-size: 44px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "headline ."
      "sub      ."
      "cta      ."
      "pricing  .";
    column-gap: 48px;
    row-gap: 16px;
    text-align: center;
    align-items: start;
  }

  .hero-headline { grid-area: headline; margin-bottom: 0; }
  .hero-mockup   { position: static; overflow: visible; max-height: none; margin: 0; width: auto; display: block; transform: none; }
  .hero-mockup.fade-up,
  .hero-mockup.fade-up.visible { transform: none; opacity: 1; }
  .hero-mockup img { position: absolute; bottom: 0; right: 5%; width: 380px; }
  .hero-sub      { grid-area: sub; max-width: 480px; margin-bottom: 0; justify-self: center; }
  .hero-cta      { grid-area: cta; max-width: 320px; justify-self: center; }
  .hero-pricing  { grid-area: pricing; text-align: center; margin-top: 0; }

  .schedule {
    padding: 48px 0;
  }

  .schedule-grid {
    flex-direction: row;
    gap: 24px;
  }

  .schedule-card {
    flex: 1;
  }

  .how-it-works {
    padding: 48px 0;
  }

  .how-cards {
    flex-direction: row;
    gap: 16px;
  }

  .how-card {
    flex: 1;
  }

  .shared-notes {
    padding: 48px 0;
  }

  .notes-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 56px;
  }

  .notes-text {
    flex: 0 0 35%;
  }

  .notes-cards {
    flex: 1;
  }

  .section-title {
    font-size: 36px;
  }
}

/* Phone landscape: prevent pricing text overlapping mockup */
@media (min-width: 768px) and (max-height: 500px) {
  .hero-mockup img {
    width: 300px;
  }
}

/* ==========================================
   Responsive: Desktop (1024px+)
   ========================================== */
@media (min-width: 1024px) {
  :root {
    --container-gap: 24px;
  }

  .container {
    padding: 0 40px;
  }

  .section-container > .hero {
    padding-top: 56px;
    padding-bottom: 56px;
    min-height: 570px;
  }

  .hero-mockup img {
    right: 8%;
    width: 420px;
  }

  .hero-headline {
    font-size: 52px;
  }

  .hero-sub {
    font-size: 19px;
  }

  .schedule {
    padding: 56px 0;
  }

  .how-it-works {
    padding: 56px 0;
  }

  .shared-notes {
    padding: 56px 0;
  }

  .section-title {
    font-size: 42px;
  }

  .final-cta {
    padding: 28px 0 36px;
  }

  .how-card p {
    font-size: 19px;
  }

  .notes-description {
    font-size: 19px;
  }

  body {
    font-size: 19px;
  }

}

/* ==========================================
   Responsive: Large (1280px+)
   ========================================== */
@media (min-width: 1280px) {
  .hero-headline {
    font-size: 58px;
  }

  .schedule {
    padding: 64px 0;
  }

  .how-it-works {
    padding: 64px 0;
  }

  .shared-notes {
    padding: 64px 0;
  }

  .final-cta {
    padding: 32px 0 40px;
  }
}

/* ==========================================
   Blog Article Cards (index.html)
   ========================================== */
.articles {
  padding: 40px 0;
}

.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-card {
  background: var(--bg-page);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.article-card:hover {
  transform: none;
}

.article-card-category {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}

.article-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.article-card-abstract {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.article-card-link {
  display: inline-block;
  margin-top: auto;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 48px;
  background: transparent;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.article-card-link:hover {
  background: var(--primary);
  color: #fff;
}

/* ==========================================
   Blog Article Page
   ========================================== */
.blog-article {
  padding: 48px 0 64px;
}

.blog-back-link {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  transition: opacity 0.2s ease;
}

.blog-back-link:hover {
  opacity: 0.7;
}

.blog-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.blog-body {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.blog-body p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.blog-body p:last-child {
  margin-bottom: 0;
}

.blog-body a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(75,57,239,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.blog-body a:hover {
  text-decoration-color: var(--primary);
}

.blog-body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.blog-body h2 a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(75,57,239,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.blog-body h2 a:hover {
  text-decoration-color: var(--primary);
}

.blog-body hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 32px 0;
}

.blog-body ul {
  margin: 0 0 1em 0;
  padding-left: 1.5em;
}

.blog-body li {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5em;
  padding-left: 0.5em;
}

.blog-body blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 3px solid var(--primary);
  background: var(--bg-subtle);
  font-style: italic;
  color: var(--text-secondary);
}

.blog-cta {
  margin-top: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-cta .pricing-text {
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .articles {
    padding: 48px 0;
  }

  .articles-grid {
    flex-direction: row;
    gap: 20px;
  }

  .article-card {
    flex: 1;
  }

  .blog-title {
    font-size: 40px;
  }

  .blog-body p,
  .blog-body li {
    font-size: 18px;
  }
}

@media (min-width: 1024px) {
  .articles {
    padding: 56px 0;
  }

  .blog-article {
    padding: 56px 0 80px;
  }

  .blog-title {
    font-size: 46px;
  }

  .blog-body p,
  .blog-body li {
    font-size: 19px;
  }
}

@media (min-width: 1280px) {
  .articles {
    padding: 64px 0;
  }
}

/* ==========================================
   Mobile container adjustments
   ========================================== */
@media (max-width: 767px) {
  .section-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section-container > section {
    border-radius: 32px;
  }
}

/* Standard and larger iPhones need more hero padding */
@media (min-width: 390px) and (max-width: 767px) {
  .section-container > .hero {
    padding-bottom: 440px;
  }
}

/* Larger mobile phones (iPhone Plus/Pro Max) need even more */
@media (min-width: 414px) and (max-width: 767px) {
  .section-container > .hero {
    padding-bottom: 490px;
  }
}

