/* =====================================================================
   BookMyOrders - COMPONENTS
   Website ke saare tukde (button, card, section, phone...) yahan bane hain.
   Naya section/button banana ho to inhi classes ko jodo - naya CSS tabhi
   likho jab koi bilkul naya tukda chahiye, aur wo bhi tokens.css ke
   var(--...) se. Rules: website/README.md
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s3); }
.section { padding: var(--s6) 0; position: relative; }
.section--tint { background: var(--tile-alt); }
.section--flush-top { padding-top: 0; }
.split h2 { font-size: var(--fs-h2); }
.section--ink { background: var(--ink); color: var(--ink-text); }
.section-head { max-width: 680px; margin: 0 auto var(--s5); text-align: center; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { margin-top: var(--s2); color: var(--muted); font-size: 1.12rem; }
.section--ink .section-head p { color: var(--faint); }
.eyebrow {
  display: inline-block; margin-bottom: var(--s2); padding: 6px 14px;
  border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent);
  font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.section--ink .eyebrow { background: rgba(255,255,255,0.08); color: var(--glow); }
.grid { display: grid; gap: var(--s3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s5); align-items: center; }
.split--flip > :first-child { order: 2; }
.stack > * + * { margin-top: var(--s2); }

/* App jaisa "aura" - neeli roshni, kone par gulabi jhalak */
.aura { position: relative; }
.aura::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 50% at 72% 38%, var(--glow) 0%, transparent 70%),
    radial-gradient(30% 34% at 88% 12%, var(--glow-warm) 0%, transparent 70%),
    radial-gradient(40% 40% at 10% 90%, var(--tile) 0%, transparent 70%);
  opacity: 0.75;
}

/* ---------- Buttons (sirf ye 3 type) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-pill); border: 0;
  font: 600 1rem var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--ink-text); box-shadow: var(--shadow-pod); }
.btn-secondary { background: var(--card); color: var(--ink); box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.btn-link { min-height: auto; padding: 0; color: var(--accent); }
.section--ink .btn-primary { background: var(--ink-text); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Card ---------- */
.card {
  background: var(--card); border-radius: var(--r-tile); padding: var(--s4) var(--s3);
  box-shadow: var(--shadow-card); border: 1px solid var(--line);
}
.card h3 { font-size: var(--fs-h3); margin-bottom: var(--s1); }
.card p { color: var(--muted); }
.icon {
  width: 48px; height: 48px; border-radius: var(--r-field); margin-bottom: var(--s2);
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 24px; height: 24px; }
.section--ink .card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); box-shadow: none; }
.section--ink .card p { color: var(--faint); }

/* Tick list */
.ticks { list-style: none; padding: 0; margin: var(--s3) 0 0; }
.ticks li { position: relative; padding-left: 34px; margin-top: 12px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6BE6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- Phone mockup (iPhone 16 Pro jaisa: titanium frame + Dynamic Island) ---------- */
.phone {
  width: min(300px, 78vw); margin: 0 auto; padding: 9px; border-radius: 52px; position: relative;
  background: linear-gradient(145deg, #4a4b4f 0%, #2b2c30 20%, #5c5d61 46%, #232428 74%, #44454a 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), var(--shadow-pod), 0 30px 80px rgba(46,107,230,0.18);
}
.phone-screen, .phone img { border-radius: 44px; width: 100%; border: 5px solid #05070b; background: #05070b; }
.phone::before { /* side buttons */
  content: ""; position: absolute; right: -3px; top: 26%; width: 3px; height: 70px; border-radius: 0 3px 3px 0;
  background: #3a3b3f; box-shadow: -1px 0 0 rgba(0,0,0,.3);
}
.phone::after { /* Dynamic Island */
  content: ""; position: absolute; top: 24px; left: 50%; width: 31%; height: 24px;
  transform: translateX(-50%); border-radius: 999px; background: #05070b;
}
.phone--tilt { transform: rotate(-4deg); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--s2); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: var(--s3); color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { min-height: 42px; padding: 0 20px; font-size: 0.92rem; }

/* ---------- Hero ---------- */
.hero { padding: var(--s5) 0 var(--s6); overflow: hidden; isolation: isolate; }
.hero h1 { font-size: var(--fs-hero); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: var(--s3) 0 var(--s4); color: var(--muted); font-size: 1.2rem; max-width: 520px; }
.hero-note { margin-top: var(--s3); color: var(--faint); font-size: var(--fs-small); }

/* ---------- Stats ---------- */
.stat strong { display: block; font-size: 2.4rem; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: var(--fs-small); }

/* ---------- Problem -> solution ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.versus .card:first-child { background: var(--tile-alt); box-shadow: none; }
.versus .card:first-child .ticks li::before { background: #FBE3E2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D93A33' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/12px no-repeat; }
.label { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Steps ---------- */
.step-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: var(--s2);
  background: var(--ink); color: var(--ink-text); font-weight: 700;
}

/* ---------- Pricing ---------- */
.price { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; margin: var(--s2) 0; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.pricing { max-width: 760px; margin: 0 auto; }
.card--featured { border: 2px solid var(--ink); box-shadow: var(--shadow-pod); position: relative; }
.badge {
  position: absolute; top: -13px; left: var(--s3); padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--ink-text); font-size: 0.75rem; font-weight: 600;
}
.card .btn { width: 100%; margin-top: var(--s3); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s3) 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: var(--s2); }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: var(--s2); color: var(--muted); }

/* ---------- CTA band ---------- */
.cta { text-align: center; border-radius: calc(var(--r-tile) * 1.5); padding: var(--s5) var(--s3); overflow: hidden; isolation: isolate; position: relative; background: var(--tile-alt); }
.cta h2 { font-size: var(--fs-h2); }
.cta p { color: var(--muted); margin: var(--s2) auto var(--s4); max-width: 520px; }
.cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.footer { padding: var(--s5) 0 var(--s4); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-small); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s4); }
.footer h4 { margin: 0 0 var(--s2); color: var(--ink); font-size: 0.95rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li + li { margin-top: 10px; }
.footer a:hover { color: var(--ink); }
.footer-bottom { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s2); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .split, .grid-2, .grid-3, .versus { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .section { padding: var(--s5) 0; }
  .hero { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
}
@media (max-width: 520px) {
  .container { padding: 0 var(--s2); }
  .btn-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
