/* ==========================================================================
   DOT9T IPTV — one stylesheet, numbered sections.
   Design "B — Warm Daylight": cream page, DOT9T orange, warm ink.
   ========================================================================== */

/* 1. Font + tokens ------------------------------------------------------- */
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/jakarta-var.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --bg: #fbf6f0;
  --bg-2: #f4ece2;
  --card: #ffffff;
  --line: #eee2d4;
  --ink: #24160d;
  --ink-2: #6e5b4b;
  --ink-3: #8f7c6b;
  --orange: #f0600f;
  --orange-2: #c2470a;
  --orange-soft: #ffe6d3;
  --dark: #24160d;
  --dark-2: #3a1f0e;
  --radius: 22px;
  --shadow: 0 18px 40px -22px rgb(58 31 14 / .35);
  --wrap: 1160px;
}

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 "Jakarta", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--orange-2); }
img, svg { max-width: 100%; }
.ico { flex: none; vertical-align: middle; }
em.hl { font-style: normal; color: var(--orange); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 680px; margin-bottom: 36px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head p { color: var(--ink-2); font-size: 1.05rem; }

.kicker {
  display: inline-block;
  background: var(--orange-soft);
  color: var(--orange-2);
  font-size: .8rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 30px;
  margin-bottom: 14px;
  letter-spacing: .02em;
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* 3. Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -12px var(--orange); }
.btn--primary:hover { background: var(--orange-2); }
.btn--outline { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--block { display: flex; width: 100%; }

/* 4. Header + nav -------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 246 240 / .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }

.logo {
  display: inline-flex; align-items: baseline; gap: 0;
  font-weight: 800; font-size: 1.55rem; letter-spacing: .02em;
  color: var(--ink); text-decoration: none;
}
.logo i { font-style: normal; color: var(--orange); }
.logo small { font-size: .62rem; font-weight: 700; letter-spacing: .18em; margin-left: 8px; color: var(--ink-3); }
.logo--light { color: #fff; }
.logo--light small { color: #c9b6a4; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--orange); }

.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 6px 0; border-radius: 2px; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* 5. Currency tabs (fixed, right edge — like starshareiptv.com) ---------- */
.cur-switch {
  position: fixed; right: 0; top: 32%; z-index: 60;
  display: flex; flex-direction: column; gap: 6px;
}
.cur-switch a {
  display: block; width: 54px; padding: 11px 0;
  text-align: center; text-decoration: none;
  font-size: .78rem; font-weight: 800; letter-spacing: .06em;
  background: var(--dark); color: #fff;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 6px 16px -8px rgb(0 0 0 / .5);
  transition: background .15s, width .15s;
}
.cur-switch a:hover { width: 60px; }
.cur-switch a.is-on { background: var(--orange); }

/* Show only the chosen currency's figures */
.cur { display: none; }
.cur-usd .cur--usd, .cur-inr .cur--inr { display: inline; }

/* 6. Hero ---------------------------------------------------------------- */
.hero { padding: 64px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 540px; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: var(--ink-2); font-size: .93rem; font-weight: 600; }
.chips li { display: flex; align-items: center; gap: 8px; }
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.screen {
  position: relative; aspect-ratio: 16 / 10.5;
  border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, var(--dark), var(--dark-2));
  box-shadow: 0 40px 70px -30px rgb(58 31 14 / .7);
  color: #fff; padding: 7%;
}
.screen::after {
  content: ""; position: absolute; right: -20%; top: -30%; width: 70%; height: 90%;
  background: radial-gradient(closest-side, rgb(240 96 15 / .45), transparent);
}
.screen__live { display: inline-block; background: #fff; color: var(--orange-2); font-size: .7rem; font-weight: 800; letter-spacing: .14em; padding: 5px 11px; border-radius: 30px; }
.screen__title { font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 800; margin: 14px 0 2px; position: relative; z-index: 1; }
.screen__sub { font-size: .85rem; opacity: .7; position: relative; z-index: 1; }
.screen__row { position: absolute; left: 7%; right: 7%; bottom: 8%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; z-index: 1; }
.screen__row span { aspect-ratio: 16 / 10; border-radius: 10px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); }
.screen__row span:first-child { background: var(--orange); border-color: var(--orange); }

/* 7. Feature cards ------------------------------------------------------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card__ico { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 14px; background: var(--orange-soft); color: var(--orange-2); margin-bottom: 14px; }
.card p { color: var(--ink-2); margin: 0; font-size: .97rem; }

/* 8. Plans --------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plans--packs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.plans--packs .plan { padding: 26px 18px 20px; }
.plans--packs .plan__price { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.plans--packs .btn { padding: 12px 10px; font-size: .92rem; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 22px 22px;
}
.plan--hot { background: var(--dark); border-color: var(--dark); color: #fff; box-shadow: var(--shadow); }
.plan__tag { position: absolute; top: -12px; left: 22px; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 30px; }
.plan__name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.plan__price { font-size: 2.5rem; font-weight: 800; line-height: 1; margin: 0 0 6px; letter-spacing: -.03em; }
.plan__per { color: var(--ink-3); font-size: .9rem; margin: 0; }
.plan__save { display: inline-block; align-self: flex-start; margin: 12px 0 0; font-size: .8rem; font-weight: 800; color: var(--orange-2); background: var(--orange-soft); padding: 4px 10px; border-radius: 20px; }
.plan__save--muted { color: var(--ink-2); background: var(--bg-2); }
.plan--hot .plan__per { color: #d6c4b3; }
.plan--hot .plan__save { background: rgb(240 96 15 / .2); color: #ffb98a; }
.plan .ticks { margin: 18px 0 22px; flex: 1; }
.plan .btn { margin-top: auto; }
.plans--packs .plan .btn { margin-top: 20px; }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; padding: 4px 0; color: var(--ink-2); }
.ticks .ico { color: var(--orange); width: 18px; height: 18px; margin-top: 3px; }
.plan--hot .ticks li { color: #e9dccf; }
.plans__note { margin-top: 18px; color: var(--ink-3); font-size: .9rem; text-align: center; }

/* 9. Steps --------------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.step { display: flex; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step__n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-2); }

/* 10. Answer box (short direct answer for AI engines) -------------------- */
.answer { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 14px; padding: 20px 22px; margin: 0 0 28px; }
.answer p { margin: 0; color: var(--ink); }

/* 11. Table -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* 12. App cards (setup) -------------------------------------------------- */
.app { display: flex; flex-direction: column; gap: 6px; }
.app__code { font-size: 2rem; font-weight: 800; letter-spacing: .06em; color: var(--orange); margin: 4px 0; }
.app small { color: var(--ink-3); }

/* 13. FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq__item summary { cursor: pointer; list-style: none; font-weight: 700; padding: 18px 28px 18px 0; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--orange); }
.faq__item[open] summary::after { content: "–"; }
.faq__a { color: var(--ink-2); padding-bottom: 18px; }
.faq__a p:last-child { margin: 0; }

/* 14. CTA band ----------------------------------------------------------- */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  color: #fff; border-radius: 28px; padding: 44px;
  position: relative; overflow: hidden;
}
.cta::after { content: ""; position: absolute; right: -10%; top: -60%; width: 50%; height: 200%; background: radial-gradient(closest-side, rgb(240 96 15 / .35), transparent); pointer-events: none; }
.cta h2 { margin-bottom: 6px; }
.cta p { margin: 0; color: #d6c4b3; max-width: 520px; }
.cta__btns { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* 15. Page head + breadcrumbs + prose ------------------------------------ */
.page-head { padding: 48px 0 24px; }
.page-head p.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 720px; }
.crumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs .sep { margin: 0 8px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }

/* 16. Footer ------------------------------------------------------------- */
.footer { background: var(--dark); color: #d6c4b3; padding: 60px 0 28px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer nav a { display: block; color: #d6c4b3; text-decoration: none; padding: 4px 0; font-size: .93rem; }
.footer nav a:hover { color: #fff; }
.footer__about { font-size: .93rem; margin: 14px 0; max-width: 320px; }
.footer__wa { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; text-decoration: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgb(255 255 255 / .1); margin-top: 40px; padding-top: 22px; font-size: .82rem; color: #a8957f; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -8px rgb(0 0 0 / .45); }
.wa-float .ico { width: 28px; height: 28px; }

/* 17. Reveal on scroll (added by main.js only) --------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* 18. Responsive --------------------------------------------------------- */
@media (max-width: 1020px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plans--packs { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .hero { padding: 36px 0 52px; }
  .hero__grid, .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .cta { padding: 30px 22px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .plans, .plans--packs { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__btns .btn { flex: 1; }
  .cur-switch { top: auto; bottom: 90px; }
  .cur-switch a { width: 48px; padding: 9px 0; }
}
