:root {
  --primary: #D90429;     /* Crimson Red */
  --dark: #1F1F1F;        /* Charcoal */
  --muted: #6C757D;       /* Soft Gray */
  --bg: #FFFFFF;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background: var(--bg);
}

/* ------------------------------------------------------------- */
/* Mobile-first responsive */
/* ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 1rem;
  gap: 1rem;
}

.site-nav {
  display: none;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 4px;
}

.hamburger-btn span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 999px;
  transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  overflow-y: auto;
  animation: slideInMenu 0.3s ease;
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
}

@keyframes slideInMenu {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

.mobile-menu-content {
  flex: 1;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
}

.mobile-menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s ease;
}

.mobile-menu-link:active {
  background: #f9fafb;
}

/* ------------------------------------------------------------- */
/* Home (mobile-first layout) */
/* ------------------------------------------------------------- */

.home-main {
  padding: 0;
  margin: 0;
}

.home-layout {
  display: block;
}

.home-sidebar {
  display: none;
}

@media (min-width: 768px) {
  .hamburger-btn {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .site-nav {
    display: flex !important;
  }

  .hero {
    padding: 3rem 1rem 2.5rem;
    min-height: 420px;
    justify-content: center;
  }

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

  .hero-actions {
    gap: 1rem;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .hero-btn {
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
    width: auto;
  }
}

@media (min-width: 1024px) {
  .home-main {
    max-width: none;
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 1.25rem;
  }

  .home-layout {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 1.25rem;
    align-items: start;
  }

  .home-content {
    min-width: 0;
  }

  .home-sidebar {
    display: block;
    position: sticky;
    top: 80px;
    height: calc(100dvh - 100px);
    border-radius: 14px;
    border: 1px solid #eee;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .hero {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .plans-section {
    margin-top: 2.5rem;
  }

  .section-title {
    margin-top: 2.25rem;
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
.site-header {
  border-bottom: 2px solid var(--primary);
  background: var(--bg);
}

.header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  row-gap: 0.5rem;
  min-height: 56px;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  flex-wrap: wrap;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-120%);
  background: var(--dark);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  z-index: 2000;
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo:hover {
  opacity: 0.95;
}

.logo-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 90px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-name {
  color: var(--dark);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #eee;
  background: var(--bg);
  line-height: 1;
}

.site-nav a:hover {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
}

.site-nav a:active {
  transform: translateY(1px);
}

.site-nav a:focus-visible,
.footer-nav a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 560px) {
  .brand-name {
    font-size: 1.05rem;
  }

  .site-nav a {
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  color: var(--muted);
  font-size: 0.9rem;
  width: 100%;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-tagline {
  margin: 0;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-tagline::before {
  content: "✓";
  color: var(--primary);
}

.footer-copy {
  margin: 0;
}

.footer-dev {
  margin: 0;
}

.developer-name {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.developer-name:hover {
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0.4rem;
  border-radius: 8px;
}

.footer-nav a:hover {
  color: var(--dark);
  background: rgba(0,0,0,0.04);
}

@media (min-width: 560px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .site-nav {
    width: auto;
    justify-content: flex-end;
  }

  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-nav {
    justify-content: flex-end;
  }
}

/* Buttons (for later) */
.btn-primary {
  background: linear-gradient(135deg, #D90429, #b9031f);
  color: #fff;
  border: none;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(217, 4, 41, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  opacity: 1;
  box-shadow: 0 8px 24px rgba(217, 4, 41, 0.4);
  transform: translateY(-3px);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 4, 41, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #D90429;
  border: 2px solid #D90429;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(217, 4, 41, 0.08);
  box-shadow: 0 4px 12px rgba(217, 4, 41, 0.15);
  transform: translateY(-2px);
}

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

/* ================================= header and footer */



/* Hero */
.hero {
  text-align: center;
  padding: clamp(2rem, 8vw, 3.5rem) 1rem;
  min-height: clamp(280px, 60vh, 480px);
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.75));
  pointer-events: none;
}

.hero-inner {
  max-width: 36rem;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  line-height: 1.5;
  margin: 0 auto 1.5rem;
  max-width: 32ch;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.28s ease;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #D90429, #b9031f);
  color: #fff;
  box-shadow: 0 6px 20px rgba(217, 4, 41, 0.35);
}

.hero-btn-primary:hover {
  box-shadow: 0 10px 28px rgba(217, 4, 41, 0.45);
  transform: translateY(-2px);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: #D90429;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-btn-secondary:hover {
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Sections */
.section-title {
  margin-top: 0.45rem;
  margin-bottom: 0.35rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.section-subtitle {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1rem;
}

/* Plans grid */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

/* How it works */
.how-it-works {
  margin-top: 4rem;
  text-align: center;
  border-top: 1px solid rgba(226, 232, 240, 0.55);
  padding-top: 2.25rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.step {
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.72);
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  padding: 1rem 1rem 0.95rem 3rem;
  border-radius: 14px;
  text-align: left;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.step:hover {
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
  border-color: rgba(217, 4, 41, 0.12);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.95rem;
  top: 1rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #D90429, #991b1b);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(217, 4, 41, 0.18);
}

.step-title {
  font-weight: 750;
  color: #0f172a;
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.step-text {
  color: #64748b;
  margin: 0;
  line-height: 1.45;
  font-size: 0.92rem;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }

  .step {
    padding: 1rem 0.95rem 0.95rem 3rem;
  }
}

/* Location gate */
.location-gate {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background:
    radial-gradient(circle at top, rgba(217, 4, 41, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.74));
  backdrop-filter: blur(14px) saturate(1.1);
  animation: locationGateFadeIn 0.3s ease-out both;
}

.location-gate-card {
  width: min(100%, 28rem);
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #0f172a;
  padding: 1.4rem 1.2rem 1.2rem;
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.2), 0 8px 24px rgba(217, 4, 41, 0.1);
  text-align: center;
  transform-origin: center;
  animation: locationGateCardIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
  position: relative;
  overflow: hidden;
}

.location-gate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(217, 4, 41, 0.03), transparent 35%);
  pointer-events: none;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(3px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.location-gate.is-leaving {
  animation: locationGateFadeOut 0.2s ease-in forwards;
}

.location-gate.is-leaving .location-gate-card {
  animation: locationGateCardOut 0.2s ease-in forwards;
}

.location-gate-kicker {
  margin: 0 0 0.75rem;
  color: #D90429;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.location-gate-title {
  margin: 0;
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.location-gate-copy {
  margin: 0.85rem auto 0;
  max-width: 28ch;
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.55;
}

.location-choice-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
  position: relative;
  z-index: 1;
}

.location-choice-btn {
  appearance: none;
  border: 1px solid rgba(217, 4, 41, 0.12);
  background: linear-gradient(180deg, #ffffff, #fafafa);
  color: #0f172a;
  border-radius: 16px;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.location-choice-btn:hover,
.location-choice-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12), 0 10px 20px rgba(217, 4, 41, 0.1);
  border-color: rgba(217, 4, 41, 0.28);
  background: linear-gradient(180deg, #ffffff, #fff7f8);
  outline: none;
}

.location-choice-name {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

@keyframes locationGateFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes locationGateFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes locationGateCardIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes locationGateCardOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}

.plans-hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  filter: blur(6px);
  user-select: none;
}

/* Notice / Toast component */
.notice-root {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.notice {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  background: #ffffff;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(3,7,18,0.12);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  transform-origin: top right;
  opacity: 0;
  transform: translateY(-8px) scale(0.995);
  transition: transform 0.22s cubic-bezier(.2,.9,.25,1), opacity 0.22s ease;
}
.notice.show { opacity:1; transform: translateY(0) scale(1); }
.notice .icon { width:36px; height:36px; border-radius:8px; display:grid; place-items:center; font-weight:900; font-size:0.95rem; color:#fff; }
.notice .content { flex:1; }
.notice .title { font-weight:800; font-size:0.95rem; margin:0 0 2px; }
.notice .msg { margin:0; color:#475569; font-size:0.92rem; line-height:1.2; }
.notice .close { background:transparent; border:none; cursor:pointer; color:#64748b; padding:6px; border-radius:6px; font-size:1.1rem; }
.notice .action { background:transparent; border:1px solid rgba(0,0,0,0.06); padding:6px 10px; border-radius:8px; font-weight:700; margin-left:6px; cursor:pointer; }
.notice.info .icon { background:#0ea5e9; }
.notice.success .icon { background:#10b981; }
.notice.warning .icon { background:#f59e0b; }
.notice.error .icon { background:#d90429; }
.notice.error { border-left:4px solid #d90429; }
.notice.success { border-left:4px solid #10b981; }
.notice.warning { border-left:4px solid #f59e0b; }

/* PWA install prompt */
.pwa-install {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 12000;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.pwa-install.hidden {
  display: none;
}

.pwa-install__title {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.pwa-install__body {
  color: #475569;
  font-size: 0.92rem;
}

.pwa-install__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.pwa-install__btn {
  background: #0f172a;
  color: #fff;
  border: none;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.pwa-install__dismiss {
  background: transparent;
  color: #475569;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 700px) {
  .pwa-install {
    flex-direction: column;
    align-items: flex-start;
  }
  .pwa-install__actions {
    width: 100%;
  }
}

.selected-location-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.9rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid #eee;
}

.change-location-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
}

.change-location-link:hover {
  text-decoration: underline;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.modal-content input {
  width: 100%;
  padding: 0.7rem;
  margin: 1rem 0;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.btn-secondary {
  margin-top: 0.5rem;
  background: #eee;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}


body.modal-open {
  overflow: hidden;
}

/* ----------------------------------------------------------------------------------
   IMPROVED MOBILE STYLING
   ---------------------------------------------------------------------------------- */

/* Mobile polish */
@media (max-width: 600px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .plans-grid {
    gap: 0.8rem;
  }

  .plan-card {
    padding: 0.5rem;
  }

  .btn-primary {
    width: 100%;
  }

  .steps {
    flex-direction: column;
  }

  .step {
    width: 100%;
    padding: 0.95rem 0.9rem 0.9rem 2.8rem;
  }
}

/* ------------------------------------------------------------- */

@media (max-width: 767px) {
  .home-content {
    padding: 0 1rem;
  }

  .hero {
    padding: 0.75rem 1rem 2rem;
    min-height: clamp(280px, 55vh, 400px);
    background-attachment: scroll;
    justify-content: flex-end;
  }

  .hero-inner {
    max-width: 100%;
    text-align: left;
    align-self: flex-end;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7.5vw, 2.6rem);
    color: #fff;
  }

  .hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
  }

  .hero-actions {
    gap: 0.6rem;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-top: 1.2rem;
    flex-wrap: nowrap;
  }

  .hero-btn {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    width: auto;
    flex: 1;
    min-width: 0;
    border-radius: 12px;
  }

  .plans-section {
    margin-top: 0.45rem;
    padding-top: 0.25rem;
  }

  .section-title {
    margin-top: 0;
    margin-bottom: 0.25rem;
    text-align: left;
    font-size: clamp(1.35rem, 5vw, 1.8rem);
  }

  .plans-grid {
    gap: 0.8rem;
  }

  .step {
    padding: 1rem 0.95rem 0.95rem 3rem;
  }
}

/* ===================== Payment status page ===================== */
.status-page {
  padding: 1.5rem 0 0.5rem;
}

.status-card {
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 1.25rem;
  background: var(--bg);
}

.status-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid #eee;
  border-top-color: var(--primary);
  display: inline-block;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-title {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 1.35rem;
  line-height: 1.2;
}

.status-subtitle {
  margin: 0 auto 1rem;
  text-align: center;
  color: var(--muted);
  line-height: 1.5;
  max-width: 46ch;
}

.status-result {
  margin-top: 0.9rem;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid #eee;
}

.status-label {
  color: var(--muted);
  font-weight: 700;
}

.status-value {
  color: var(--dark);
  font-weight: 800;
  text-align: right;
}

.voucher-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.copy-btn {
  width: 100%;
  margin-top: 0.9rem;
  min-height: 44px;
}

.status-actions {
  margin-top: 1rem;
  display: flex;
}

.status-actions .btn-primary {
  width: 100%;
}

@media (min-width: 560px) {
  .status-card {
    padding: 1.5rem;
  }

  .status-title {
    font-size: 1.5rem;
  }
}



/* 
---------------------------------------------
PAYMENT SUCCESS PAGE: [DISPLAY VOUCHER]
---------------------------------------------- */

.success-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.03);
}

.success-card {
  background: var(--bg);
  width: 100%;
  max-width: 28rem;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid #eee;
  text-align: center;
}

.success-title {
  color: var(--primary);
  font-size: clamp(1.25rem, 5.5vw, 1.6rem);
  line-height: 1.15;
  margin: 0 0 0.4rem;
}

.success-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.voucher-box {
  background: rgba(217, 4, 41, 0.06);
  border: 1px dashed rgba(217, 4, 41, 0.55);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.voucher-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.success-card .voucher-code {
  display: block;
  font-size: clamp(1.25rem, 6vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--dark);
  margin-bottom: 0.85rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.15;
}

.success-card .copy-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
}

.success-card .copy-btn:hover {
  opacity: 0.9;
}

.voucher-details {
  text-align: left;
  margin-bottom: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.detail-row:last-child {
  border-bottom: none;
}

.warning {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid #eee;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.success-card .btn-primary {
  width: 100%;
}

@media (min-width: 560px) {
  .success-wrapper {
    padding: 1.25rem;
  }

  .success-card {
    padding: 1.5rem;
  }
}