:root {
  --bg-main: #fdfbf7;
  --bg-soft: #fffbf0;
  --accent: #dd9933;
  --accent-hover: #c28422;
  --accent-bright: #ffc400;
  --text-main: #3e2723;
  --text-soft: #5d4037;
  --border: #e6dcca;
  --shadow-warm: 0 4px 20px rgba(221, 153, 51, 0.1);
  --shadow-warm-lg: 0 8px 32px rgba(221, 153, 51, 0.15);
  --radius: 12px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  line-height: 1.5;
}

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  line-height: inherit;
}

.page-subscribe main {
  padding-top: 16px;
}

h1,
h2,
h3,
h4 {
  font-family: "Noto Serif Kannada", serif;
  color: var(--text-main);
  font-weight: var(--fw-bold);
}

.font-kannada {
  font-family: "Noto Serif Kannada", serif;
}

.font-kannada-body {
  font-family: "Noto Sans Kannada", sans-serif;
}

.font-heading {
  font-family: "Cormorant Garamond", serif;
}

.font-body {
  font-family: "Manrope", sans-serif;
}

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

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--accent);
  border-bottom: 1px solid rgba(62, 39, 35, 0.08);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-warm);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: "Noto Serif Kannada", serif;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.4px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.desktop-nav a,
.mobile-nav a {
  font-family: "Noto Sans Kannada", sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--text-main);
  font-weight: var(--fw-medium);
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #8b0000;
}

.footer-grid a:hover {
  color: var(--accent-bright);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--text-main);
  margin: 6px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 16px 4vw;
  border-top: 1px solid #c28422;
  background: var(--accent);
}

.mobile-nav a {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: var(--fw-regular);
}

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

.hero-section {
  padding: 80px 0 64px;
  position: relative;
}

.hero-top-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 22px;
  align-items: end;
}

.saint-card,
.krishna-card,
.pontiff-card {
  margin: 0;
  text-align: center;
}

.saint-card img {
  width: min(170px, 75%);
  margin: 0 auto;
}

.krishna-card img {
  width: min(290px, 100%);
  margin: 0 auto;
}

.saint-card figcaption,
.pontiff-card figcaption {
  margin-top: 10px;
  font-family: "Noto Sans Kannada", sans-serif;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--text-soft);
}

.banner-strip {
  margin: 26px 0;
  background: var(--accent-bright);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 16px 4vw;
}

.banner-strip img {
  margin: 0 auto;
  width: min(540px, 90vw);
}

.logo-row {
  display: flex;
  justify-content: center;
  margin: 10px 0 28px;
}

.logo-row img {
  width: 98px;
}

.pontiff-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
}

.pontiff-card img {
  width: min(420px, 100%);
  margin: 0 auto;
}

.blessing-card {
  max-width: 430px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-warm);
}

.blessing-card p {
  margin: 0;
  font-family: "Noto Serif Kannada", serif;
  font-size: 0.875rem;
  line-height: 1.625;
}

.blessing-card p + p {
  margin-top: 6px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Sans Kannada", sans-serif;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(221, 153, 51, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 16px rgba(221, 153, 51, 0.4);
}

.btn-secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.content-container,
.form-container {
  width: min(920px, 92vw);
}

.text-block h2,
.card h2,
.section-title-wrap h2 {
  margin: 0;
  font-family: "Noto Serif Kannada", serif;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: var(--fw-bold);
}

.text-block p,
.card p,
.card li,
.subtitle {
  font-family: "Noto Sans Kannada", sans-serif;
  color: var(--text-soft);
  font-weight: var(--fw-regular);
}

.text-block p,
.card p {
  font-size: 1rem;
  line-height: 1.625;
  margin-top: 14px;
}

.ornament {
  width: 88px;
  height: 4px;
  border-radius: 999px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.card {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-warm);
  padding: 24px;
}

.card-highlight,
.card-top-accent {
  border-top: 5px solid var(--accent);
}

.card ul {
  margin: 14px 0;
  padding-left: 18px;
}

.card li {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.card li + li {
  margin-top: 8px;
}

.legacy-slogan {
  margin: 28px 0 0;
  text-align: center;
  font-family: "Noto Serif Kannada", serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--text-soft);
  font-weight: var(--fw-regular);
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 20px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.editor-grid h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: "Noto Serif Kannada", serif;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: var(--fw-bold);
  color: var(--accent);
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: "Noto Sans Kannada", sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: var(--fw-regular);
}

.subtitle {
  font-size: 1rem;
  line-height: 1.5rem;
  margin-top: 10px;
}

.plans {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.plan-card {
  text-align: center;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  padding: 1.5rem;
  color: var(--text-main);
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.plan-card strong {
  display: block;
  font-family: "Noto Serif Kannada", serif;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: var(--fw-bold);
}

.plan-card span {
  display: block;
  font-family: "Noto Sans Kannada", sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: var(--fw-semibold);
  margin-top: 4px;
}

.plan-card small {
  display: block;
  font-family: "Noto Sans Kannada", sans-serif;
  font-size: 0.75rem;
  line-height: 1rem;
  margin-top: 3px;
  color: var(--text-soft);
}

.plan-card.selected {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(221, 153, 51, 0.2);
}

.plan-card.selected::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
}

.subscription-form {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-warm);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-family: "Noto Sans Kannada", sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-weight: var(--fw-regular);
}

.field input:not([type="radio"]) {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  border-radius: 0;
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5rem;
}

.field select {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  border-radius: 0;
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5rem;
}

.field input:not([type="radio"]):focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: none;
}

.radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Noto Sans Kannada", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5rem;
  color: var(--text-main);
  font-weight: var(--fw-medium);
  cursor: pointer;
}

.radio-option input[type="radio"] {
  margin: 0;
  accent-color: var(--accent);
}

.selected-plan-box {
  grid-column: 1 / -1;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.selected-plan-box p {
  font-family: "Noto Sans Kannada", sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin: 0;
}

#selected-plan-text {
  font-family: "Noto Serif Kannada", serif;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: var(--fw-semibold);
  color: var(--text-main);
  margin-top: 4px;
}

.form-submit {
  grid-column: 1 / -1;
  width: 100%;
}

.site-footer {
  background: var(--text-main);
  color: rgba(255, 255, 255, 0.84);
}

.footer-border {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright), var(--accent));
}

.footer-grid {
  padding: 56px 0 38px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-row img {
  width: 48px;
}

.footer-logo-row h3,
.footer-grid h4 {
  font-family: "Noto Serif Kannada", serif;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: var(--fw-semibold);
  color: var(--accent-bright);
  margin: 0 0 12px;
}

.footer-brand p,
.footer-grid p {
  font-family: "Noto Sans Kannada", sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin: 7px 0;
}

.footer-slogan {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--accent-bright);
  font-weight: var(--fw-regular);
}

.footer-links h4 {
  font-size: 1rem;
  line-height: 1.5rem;
}

.footer-links {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  padding: 16px 0 20px;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Noto Sans Kannada", sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1400;
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(460px, 100%);
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-warm);
  padding: 24px;
  text-align: center;
}

.modal-panel h3 {
  margin: 0;
  font-family: "Noto Serif Kannada", serif;
  font-size: 1.5rem;
  line-height: 2rem;
}

.modal-panel p {
  font-family: "Noto Sans Kannada", sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  margin: 12px 0 20px;
  color: var(--text-soft);
}

@media (min-width: 768px) {
  .header-inner {
    min-height: 80px;
  }

  .section {
    padding: 96px 0;
  }

  .brand {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .saint-card figcaption {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .pontiff-card figcaption {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .blessing-card p {
    font-size: 1rem;
    line-height: 2;
  }

  .btn {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .text-block h2,
  .card h2,
  .section-title-wrap h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .text-block p,
  .card p {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .card li {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .editor-grid h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .subtitle {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .plan-card strong {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .plan-card span {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .plan-card small {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .form-submit {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .footer-logo-row h3 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .footer-brand p:first-of-type {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .desktop-nav a {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .pontiff-card figcaption {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .blessing-card p {
    font-size: 1.125rem;
    line-height: 2;
  }

  .section-title-wrap h2 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

@media (max-width: 1024px) {
  .hero-top-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

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

  .blessing-card {
    order: -1;
    margin: 0 auto;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }
}

@media (max-width: 767px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 64px;
  }

  .brand {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .hero-section {
    padding-top: 80px;
  }

  .logo-row img {
    width: 86px;
  }

  .editor-grid,
  .plans,
  .subscription-form {
    grid-template-columns: 1fr;
  }

  .section,
  .hero-section {
    padding-bottom: 64px;
  }

  .subscription-form {
    padding: 18px;
  }
}
