/* =========================================================
   GoAstr — design tokens (v3: lighter brand blue from reference)
   --brand is the medium indigo used for header/hero (#384686,
   sampled directly from approved reference), distinct from
   --ink which stays dark for body text legibility on light bg.
     ink #161B36 (text only), brand #384686 (header/hero bg),
     brand-deep #2E3A70 (hover/darker step),
     paper near-white #F7F8FB, slate #4A5578 (secondary),
     accent #3D5FE0 (electric blue, CTAs/highlights)
   Type: Inter (display + body), Noto Sans SC (CJK coverage)
   ========================================================= */

:root{
  --ink:        #161B36;
  --brand:      #384686;
  --brand-deep: #2E3A70;
  --panel:      #2C3669;
  --panel-2:    #4654A0;
  --paper:      #F7F8FB;
  --paper-dim:  #ECEFF6;
  --slate:      #4A5578;
  --slate-soft: #7782A3;
  --amber:      #3D5FE0;
  --amber-deep: #2A3776;
  --line:       rgba(22,27,54,0.10);
  --line-dark:  rgba(247,248,251,0.16);
  --text:       #161B36;
  --text-soft:  #4D5673;
  --text-on-dark: #F7F8FB;
  --text-on-dark-soft: #C7CEEA;

  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 1px 2px rgba(22,27,54,0.05), 0 12px 28px -16px rgba(22,27,54,0.16);
  --shadow-card-hover: 0 1px 2px rgba(22,27,54,0.07), 0 22px 40px -18px rgba(22,27,54,0.24);

  --wrap: 1160px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3{ font-family: var(--font-display); margin:0; color: var(--ink); letter-spacing:-0.01em; }
p{ margin:0; }

:focus-visible{
  outline: 2.5px solid var(--amber-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.wrap{ max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap-narrow{ max-width: 760px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight:600;
  font-size: 0.96rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor:pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--amber); color: #fff; }
.btn-primary:hover{ background: var(--amber-deep); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(42,55,118,0.45); }
.btn-ghost{ background: transparent; color: var(--text-on-dark); border-color: var(--line-dark); }
.btn-ghost:hover{ border-color: var(--text-on-dark-soft); background: rgba(247,248,251,0.06); }
.btn-outline{ background: transparent; color: var(--ink); border-color: rgba(22,35,46,0.18); }
.btn-outline:hover{ border-color: var(--amber-deep); color: var(--amber-deep); }
.btn-small{ padding: 9px 18px; font-size: 0.88rem; }
.btn-block{ width:100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: var(--brand);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 76px;
}
.brand{ display:flex; align-items:center; gap:9px; }
.brand-mark{ color: var(--amber); display:flex; }
.brand-text{ font-family: var(--font-display); font-size:1.3rem; font-weight:700; letter-spacing: -0.02em; color: var(--text-on-dark); }

.main-nav{ display:flex; gap:34px; }
.main-nav a{ font-size:0.95rem; font-weight:500; color: var(--text-on-dark-soft); transition: color 0.15s ease; }
.main-nav a:hover{ color: var(--text-on-dark); }

.header-actions{ display:flex; align-items:center; gap:14px; }
.lang-toggle{
  font-family: var(--font-body); font-weight:600; font-size:0.86rem;
  background: transparent; border: 1.5px solid var(--line-dark);
  color: var(--text-on-dark); border-radius: 999px; padding: 7px 14px; cursor:pointer;
  transition: border-color 0.15s ease;
}
.lang-toggle:hover{ border-color: var(--text-on-dark-soft); }
.lang-toggle .lang-zh{ display:none; }
html[lang="zh"] .lang-toggle .lang-en{ display:none; }
html[lang="zh"] .lang-toggle .lang-zh{ display:inline; }

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

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 88px 0 80px;
  overflow:hidden;
  background: linear-gradient(115deg, var(--brand) 0%, var(--panel-2) 100%);
}
.hero-bg{ position:absolute; inset:0; pointer-events:none; }
.route-line{ position:absolute; right:-8%; top:-4%; width:78%; height:auto; opacity:0.9; }

.hero-inner{ position:relative; max-width: 740px; }
.eyebrow{
  font-size: 0.86rem; font-weight:600; letter-spacing:0.04em;
  color: #ffffff; margin-bottom: 18px;
  text-transform: none;
}
.hero h1{
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 22px;
  color: var(--text-on-dark);
}
.hero-sub{
  font-size: 1.12rem;
  color: var(--text-on-dark-soft);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-cta-row{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 56px; }

.trust-strip{ display:flex; gap:40px; flex-wrap:wrap; }
.trust-item{ display:flex; flex-direction:column; gap:4px; }
.trust-item strong{ font-family: var(--font-display); font-size:1.3rem; font-weight:700; color: var(--text-on-dark); }
.trust-item span{ font-size:0.86rem; color: var(--text-on-dark-soft); }

@media (max-width: 640px){
  .hero{ padding: 64px 0 52px; }
  .route-line{ display:none; }
}

/* ---------- Official strip ---------- */
.official-strip{
  background: var(--panel);
  color: var(--text-on-dark-soft);
  padding: 16px 0;
}
.official-inner{
  display:flex; align-items:center; justify-content:center; gap:24px;
  flex-wrap:wrap; text-align:center;
  font-size: 0.9rem; letter-spacing: 0.02em;
}
.official-inner a{ color: var(--amber); font-weight:600; }
.official-inner a:hover{ text-decoration: underline; }
.official-divider{ opacity:0.4; }

/* ---------- Sections ---------- */
.section{ padding: 92px 0; }
.section-tinted{ background: var(--paper-dim); }
.section-eyebrow{
  font-size:0.86rem; font-weight:700; letter-spacing:0.05em;
  color: var(--amber-deep); margin-bottom:14px;
}
.section-eyebrow-light{ color: var(--amber); }
.section h2{
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight:500;
  max-width: 640px;
  margin-bottom: 14px;
}
.section-sub{ color: var(--text-soft); max-width: 560px; margin-bottom: 48px; font-size:1.02rem; }

/* ---------- Why grid ---------- */
.why-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:24px;
  margin-top: 48px;
}
.why-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.why-card:hover{ box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.why-icon{ color: var(--amber-deep); width:40px; height:40px; margin-bottom:18px; }
.why-card h3{ font-size:1.08rem; font-weight:600; margin-bottom:10px; font-family: var(--font-body); }
.why-card p{ font-size:0.92rem; color: var(--text-soft); }

@media (max-width: 980px){
  .why-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .why-grid{ grid-template-columns: 1fr; }
}

/* ---------- Plans ---------- */
.plans-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:22px;
  margin-top: 8px;
  align-items: stretch;
}
.plan-card{
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  display:flex; flex-direction:column;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.plan-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.plan-card-featured{
  border-color: var(--amber-deep);
  background: linear-gradient(180deg, rgba(232,185,92,0.10), var(--paper) 38%);
}
.plan-badge{
  position:absolute; top:-12px; left:26px;
  background: var(--amber-deep); color:#fff;
  font-size:0.74rem; font-weight:700; letter-spacing:0.03em;
  padding: 4px 12px; border-radius: 999px;
}
.plan-card h3{ font-size:1.18rem; font-weight:600; font-family: var(--font-body); margin-bottom:4px; }
.plan-tagline{ font-size:0.86rem; color: var(--text-soft); margin-bottom:20px; }
.plan-price{ font-family: var(--font-display); font-size:2.5rem; font-weight:600; color: var(--ink); line-height:1; }
.plan-price .currency{ font-size:1.3rem; font-weight:500; margin-right:2px; vertical-align: text-top; position:relative; top:6px; }
.plan-period{ font-size:0.82rem; color: var(--slate-soft); margin-top:6px; margin-bottom:22px; }
.plan-features{ display:flex; flex-direction:column; gap:11px; margin-bottom:26px; flex:1; }
.plan-features li{ font-size:0.88rem; color: var(--text-soft); padding-left:22px; position:relative; }
.plan-features li::before{
  content:""; position:absolute; left:0; top:5px; width:13px; height:13px;
  background: var(--amber); border-radius:50%;
  mask: radial-gradient(circle at 30% 30%, transparent 0, transparent 0);
}
.plan-features li::after{
  content:"✓"; position:absolute; left:1px; top:-2px; font-size:0.78rem; color: var(--amber-deep); font-weight:800;
}
.plan-cta{ margin-top:auto; }

.plans-footnote{ margin-top:36px; font-size:0.82rem; color: var(--slate-soft); max-width: 640px; }

@media (max-width: 980px){
  .plans-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .plans-grid{ grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-list{ display:flex; flex-direction:column; gap:12px; margin-top:40px; }
.faq-item{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 22px;
}
.faq-item summary{
  cursor:pointer;
  font-weight:600;
  font-size:1rem;
  padding: 18px 0;
  list-style: none;
  position: relative;
  display:flex; justify-content:space-between; align-items:center;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"+";
  font-size:1.3rem; color: var(--amber-deep); font-weight:400;
  transition: transform 0.2s ease;
  margin-left: 16px;
  flex-shrink:0;
}
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item p{ padding: 0 0 20px; color: var(--text-soft); font-size:0.94rem; max-width: 640px; }

/* ---------- Order / dark section ---------- */
.section-dark{
  background: var(--brand);
  color: var(--text-on-dark);
}
.order-wrap{
  display:grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: start;
}
.order-copy h2{ color: var(--text-on-dark); }
.order-sub{ color: var(--text-on-dark-soft); margin-bottom: 36px; font-size:1.02rem; max-width: 460px; }

.wechat-card{
  display:flex; align-items:center; gap:18px;
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 20px 22px;
  max-width: 380px;
}
.wechat-qr{ flex-shrink:0; border-radius: 8px; overflow:hidden; }
.wechat-text{ display:flex; flex-direction:column; gap:4px; }
.wechat-text strong{ font-size:0.82rem; color: var(--text-on-dark-soft); font-weight:600; text-transform:uppercase; letter-spacing:0.04em; }
.wechat-text span{ font-family: var(--font-display); font-size:1.2rem; color: var(--amber); }

.order-form{
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 32px;
  display:flex; flex-direction:column; gap:18px;
}
.order-form label{ display:flex; flex-direction:column; gap:8px; font-size:0.88rem; font-weight:600; color: var(--text-on-dark-soft); }
.order-form input, .order-form select, .order-form textarea{
  font-family: var(--font-body);
  font-size:0.95rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(246,243,236,0.18);
  background: var(--ink);
  color: var(--text-on-dark);
  resize: vertical;
}
.order-form input:focus, .order-form select:focus, .order-form textarea:focus{
  outline: 2px solid var(--amber);
  border-color: var(--amber);
}
.form-note{ font-size:0.78rem; color: var(--slate-soft); text-align:center; }

@media (max-width: 860px){
  .order-wrap{ grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: var(--text-on-dark-soft); padding-top: 56px; }
.footer-inner{
  display:flex; justify-content:space-between; align-items:flex-start;
  flex-wrap:wrap; gap:24px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand-text{ color: var(--text-on-dark); font-size:1.2rem; }
.footer-brand p{ margin-top:8px; font-size:0.88rem; }
.footer-links{ display:flex; gap:28px; font-size:0.9rem; }
.footer-links a:hover{ color: var(--amber); }
.footer-legal{ padding: 22px 0 30px; }
.footer-legal p{ font-size:0.78rem; color: var(--slate-soft); max-width: 760px; line-height:1.6; }

/* ---------- CJK refinement ---------- */
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3, html[lang="zh"] .brand-text, html[lang="zh"] .plan-price{
  font-family: 'Noto Sans SC', var(--font-body);
  letter-spacing: 0;
}
html[lang="zh"] .eyebrow, html[lang="zh"] .section-eyebrow{ letter-spacing: 0.02em; }


/* ---- How to Buy section (homepage) ---- */
.htb-home-grid{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}
.htb-home-left{ padding-top: 10px; }
.htb-label{
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; color: #B5F23A;
  text-transform: uppercase; margin: 0;
}
.htb-home-right{ border-left: 1px solid rgba(255,255,255,0.1); padding-left: 60px; }
.htb-title{
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800; color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 16px;
}
.htb-step-list{ margin-top: 0; }
.htb-step-row{
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  align-items: start;
}
.htb-step-num{
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.1em; color: #B5F23A;
  padding-top: 6px;
}
.htb-step-title{
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700; color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  font-family: inherit;
}
.htb-step-desc{
  font-size: 0.94rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65; margin: 0;
  max-width: 680px;
}
.htb-cta-bar{
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 32px 0 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-top: 0;
}
.htb-cta-link{
  font-size: 0.9rem; font-weight: 700;
  color: #B5F23A; text-decoration: none;
  letter-spacing: 0.01em;
}
.htb-cta-arrow{ color: rgba(255,255,255,0.5); font-size: 1.1rem; }

@media (max-width: 760px){
  .htb-home-grid{ grid-template-columns: 1fr; }
  .htb-home-left{ margin-bottom: 28px; }
  .htb-home-right{ border-left: none; padding-left: 0; }
  .htb-step-row{ grid-template-columns: 56px 1fr; padding: 28px 0; }
  .htb-title{ font-size: clamp(2rem, 8vw, 3rem); }
}

/* ============================================================
   MOBILE POLISH & BEAUTIFICATION — comprehensive overhaul
   ============================================================ */

/* Better wrap padding on small screens */
@media (max-width: 640px){
  .wrap{ padding: 0 18px; }
}

/* ---- Hero mobile ---- */
@media (max-width: 640px){
  .hero{ padding: 52px 0 44px; }
  .hero h1{ font-size: clamp(2rem, 8vw, 2.8rem); margin-bottom:16px; }
  .hero-sub{ font-size: 0.98rem; margin-bottom:26px; }
  .hero-cta-row{ flex-direction: column; gap:10px; margin-bottom:36px; }
  .hero-cta-row .btn{ width:100%; justify-content:center; }
  .trust-strip{ gap:24px; }
  .trust-item strong{ font-size:1.1rem; }
  .eyebrow{ font-size:0.78rem; margin-bottom:12px; }
}

/* ---- Features strip mobile ---- */
@media (max-width: 640px){
  .official-inner{
    gap:8px 0;
    font-size:0.82rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px 0;
    text-align:center;
  }
  .official-divider{ display:none; }
  .official-strip{ padding: 16px 0; }
}

/* ---- Section padding mobile ---- */
@media (max-width: 640px){
  .section{ padding: 56px 0; }
  .section h2{ font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom:10px; }
  .section-sub{ font-size:0.92rem; margin-bottom:32px; }
}

/* ---- Why grid — better on mobile ---- */
@media (max-width: 640px){
  .why-grid{ grid-template-columns: 1fr 1fr; gap:14px; margin-top:28px; }
  .why-card{ padding: 20px 16px; }
  .why-icon{ width:32px; height:32px; margin-bottom:12px; }
  .why-card h3{ font-size:0.95rem; margin-bottom:6px; }
  .why-card p{ font-size:0.82rem; }
}
@media (max-width: 400px){
  .why-grid{ grid-template-columns: 1fr; }
}

/* ---- Plans grid mobile ---- */
@media (max-width: 640px){
  .plans-grid{ grid-template-columns: 1fr; gap:16px; }
  .plan-card{ padding: 24px 20px 20px; }
  .plan-price{ font-size:2rem; }
  .plan-card h3{ font-size:1.05rem; }
  .plan-features li{ font-size:0.84rem; }
}

/* ---- FAQ mobile ---- */
@media (max-width: 640px){
  .faq-item{ padding: 4px 16px; }
  .faq-item summary{ font-size:0.92rem; padding:14px 0; }
  .faq-item p{ font-size:0.88rem; }
}

/* ---- Header mobile ---- */
@media (max-width: 860px){
  .header-inner{ height: 62px; }
  .brand-text{ font-size:1.15rem; }
  .btn-small{ padding: 8px 14px; font-size:0.82rem; }
}
@media (max-width: 480px){
  /* lang toggle stays visible on mobile */
}

/* ---- Plan card featured gradient updated ---- */
.plan-card-featured{
  border-color: var(--amber-deep);
  background: linear-gradient(160deg, rgba(61,95,224,0.08), var(--paper) 45%);
}

/* ---- Smoother card hover on desktop ---- */
.why-card, .plan-card, .faq-item{
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.faq-item:hover{ box-shadow: var(--shadow-card); }

/* ---- Better button tap targets on mobile ---- */
@media (max-width: 640px){
  .btn{ padding: 13px 22px; font-size:0.94rem; }
  .btn-small{ padding: 9px 16px; }
}

/* ---- Hero route line subtle on mobile ---- */
@media (max-width: 860px){
  .route-line{ width:100%; right:-20%; opacity:0.5; }
}

/* ---- Trust strip better on mobile ---- */
@media (max-width: 480px){
  .trust-strip{ gap:20px; flex-wrap:nowrap; }
  .trust-item{ min-width:0; }
}

/* ---- Plan page mobile ---- */
@media (max-width: 640px){
  .plan-summary-card{ flex-direction:column; gap:10px; padding:20px; }
  .plan-summary-right{ text-align:left; }
  .plan-summary-price{ font-size:1.8rem; }
  .payment-wrap{ padding: 0 4px; }
  .method-tabs{ padding: 4px; gap:8px; }
  .method-tab{ padding: 10px 12px; font-size:0.86rem; }
  .checkout-card{ padding: 22px 18px; }
  .pay-qr-frame{ width:180px; height:180px; }
}

/* ---- Contact page mobile ---- */
@media (max-width: 600px){
  .contact-grid{ grid-template-columns: 1fr !important; max-width:340px; }
  .contact-card{ padding: 24px 20px; }
  .contact-qr{ width:160px; height:160px; }
}

/* ---- Confirm page mobile ---- */
@media (max-width: 640px){
  .confirm-wrap{ max-width:100%; }
  .confirm-card{ padding: 22px 18px; }
  .account-toggle-btn{ font-size:0.82rem; padding: 8px 10px; }
}

/* ---- Download page mobile ---- */
@media (max-width: 640px){
  .download-grid{ grid-template-columns: 1fr 1fr !important; gap:14px; }
  .download-card{ padding: 22px 16px; }
}
@media (max-width: 400px){
  .download-grid{ grid-template-columns: 1fr !important; }
}

/* ---- Section tinted subtle blue tint ---- */
.section-tinted{ background: #F0F2FA; }

/* ---- Footer mobile ---- */
@media (max-width: 640px){
  .footer-inner{ flex-direction:column; gap:16px; padding-bottom:24px; }
  .footer-links{ gap:18px; flex-wrap:wrap; }
  .footer-legal p{ font-size:0.72rem; }
  .site-footer{ padding-top:36px; }
}

/* ---- Overall smooth scrolling and touch improvements ---- */
html{ -webkit-tap-highlight-color: transparent; }
button, a{ -webkit-tap-highlight-color: transparent; }
input, select, textarea{ font-size:16px !important; } /* prevents iOS zoom on focus */

/* ---- Slightly larger line-height for mobile readability ---- */
@media (max-width: 640px){
  body{ line-height: 1.62; }
}

/* ============================================================
   HAMBURGER MENU — mobile navigation
   ============================================================ */

/* Hide hamburger on desktop */
.hamburger{ display:none; }

@media (max-width: 860px){
  /* Show hamburger, hide desktop nav and Get a plan button */
  .hamburger{
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
  }
  .hamburger span{
    display: block;
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    -webkit-transition: transform 0.22s ease, opacity 0.22s ease;
    transition: transform 0.22s ease, opacity 0.22s ease;
    pointer-events: none;
  }
  /* Animate to X when open */
  .hamburger.open span:nth-child(1){ -webkit-transform: translateY(7px) rotate(45deg); transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2){ opacity:0; -webkit-transform: scaleX(0); transform: scaleX(0); }
  .hamburger.open span:nth-child(3){ -webkit-transform: translateY(-7px) rotate(-45deg); transform: translateY(-7px) rotate(-45deg); }

  /* Hide desktop nav and Get a plan on mobile */
  .main-nav{ display:none !important; }
  .header-actions .btn-primary{ display:none; }
}

/* Mobile menu overlay */
/* Mobile menu overlay — hidden by default everywhere */
.mobile-menu-overlay{
  display: none;
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--brand);
  z-index: 40;
  -webkit-flex-direction: column;
  flex-direction: column;
  padding: 32px 24px;
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
  -webkit-transition: -webkit-transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* Only show on mobile */
@media (max-width: 860px){
  .mobile-menu-overlay{ display: -webkit-flex; display: flex; }
}
.mobile-menu-overlay.open{
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

.mobile-menu-nav{
  display:flex; flex-direction:column; gap:0;
}
.mobile-menu-nav a{
  display:block;
  font-size:1.3rem; font-weight:700;
  color: var(--text-on-dark);
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
  letter-spacing:-0.01em;
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.mobile-menu-nav a:first-child{ border-top: 1px solid var(--line-dark); }
.mobile-menu-nav a:active,
.mobile-menu-nav a:hover{ color: var(--amber); padding-left: 6px; }

/* Prevent body scroll when menu open */
body.menu-open{ overflow:hidden; }
