/* ==========================================================================
   templatein10 — India APK/App Download Template
   Design language: "Ticket Stub" — a warm, editorial, single-column layout
   inspired by long-form APK review pages. The signature element is the
   download panel styled like a torn cinema ticket stub, fitting an
   entertainment/streaming-app download subject. Serif display type gives
   the page an editorial, trustworthy voice; a single coral-red accent
   marks anything actionable (download / verified / rating).
   Mobile-first. No UI framework. System fonts only (perf on Indian mobile
   networks). No sidebar — content is single column throughout.
   ========================================================================== */

:root{
  --paper:      #fbf7f2;
  --surface:    #ffffff;
  --ink:        #1a1712;
  --ink-dim:    #6b6153;
  --ink-faint:  #a89d8c;
  --line:       #e7ded2;

  --accent:      #e0472f;   /* download / play / action */
  --accent-dim:  #c53c26;
  --accent-ink:  #fffaf6;
  --amber:       #b8811c;   /* rating */
  --paper-notch: var(--paper);

  --font-display: Georgia, "Times New Roman", "Noto Serif", serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, "SFMono-Regular", "Roboto Mono", Consolas, monospace;

  --maxw: 760px;
  --maxw-wide: 900px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --header-h: 60px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font: inherit; }
h1,h2,h3{ margin: 0 0 .5em; line-height: 1.2; font-family: var(--font-display); font-weight: 700; }
p{ margin: 0 0 1em; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container{
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link{
  position: absolute;
  left: -999px; top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus{ left: 0; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(251,247,242,.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.brand{
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.brand img{ width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0; }
.brand-name{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav{ display: none; }
.main-nav ul{ display: flex; gap: 2px; }
.main-nav a{
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dim);
}
.main-nav a:hover, .main-nav a[aria-current]{ color: var(--accent); }

.header-cta{
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 15px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
}
.header-cta:hover{ background: var(--accent-dim); }

.menu-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle svg{ width: 19px; height: 19px; }
.menu-toggle .icon-close{ display: none; }
.menu-toggle[aria-expanded="true"] .icon-open{ display: none; }
.menu-toggle[aria-expanded="true"] .icon-close{ display: block; }

.mobile-nav{
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--paper);
  z-index: 39;
  padding: 22px 20px;
  overflow-y: auto;
  display: none;
}
.mobile-nav.is-open{ display: block; }
.mobile-nav ul{ display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a{
  display: block;
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .header-cta{
  display: flex;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
}

@media (min-width: 860px){
  .main-nav{ display: block; }
  .header-cta{ display: inline-flex; }
  .menu-toggle{ display: none; }
  .mobile-nav{ display: none !important; }
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb{ padding: 14px 0 0; }
.breadcrumb ol{
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 13px; color: var(--ink-faint);
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.breadcrumb li:not(:last-child)::after{ content: "/"; margin-left: 6px; color: var(--ink-faint); }
.breadcrumb a{ color: var(--ink-dim); }
.breadcrumb a:hover{ color: var(--accent); }
.breadcrumb [aria-current]{ color: var(--ink); font-weight: 600; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{ padding: 36px 0 8px; }
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 12px;
}
.eyebrow .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.hero h1{
  font-size: clamp(28px, 6vw, 42px);
  letter-spacing: -.01em;
}
.hero-desc{
  color: var(--ink-dim);
  font-size: 17px;
  max-width: 62ch;
}
.hero-media{ margin: 22px 0 0; }
.hero-media img{
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

/* ==========================================================================
   TICKET STUB — signature download component
   ========================================================================== */
.ticket{
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin: 26px 0;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(26,23,18,.04);
}
.ticket-main{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
}
.ticket-main img{
  width: 64px; height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.ticket-app-name{ font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.ticket-meta{
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 4px; font-size: 13px; color: var(--ink-dim);
}
.rating-chip{ display: inline-flex; align-items: center; gap: 3px; color: var(--amber); font-weight: 700; }

.ticket-divider{
  position: relative;
  height: 1px;
  background: transparent;
  border-top: 2px dashed var(--line);
  margin: 0 20px;
}
.ticket-divider::before, .ticket-divider::after{
  content: "";
  position: absolute;
  top: -11px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--paper-notch);
  border: 1px solid var(--line);
}
.ticket-divider::before{ left: -31px; }
.ticket-divider::after{ right: -31px; }

.ticket-cta{
  padding: 18px 20px 22px;
}
.ticket-cta .download-note{
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 10px;
  line-height: 1.5;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15.5px;
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
}
.btn-primary{ background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover{ background: var(--accent-dim); }
.btn-ghost{
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: var(--ink-faint); }
.btn-icon{ width: 17px; height: 17px; }

@media (min-width: 640px){
  .btn{ width: auto; }
}

/* ==========================================================================
   SPEC LIST (App Information)
   ========================================================================== */
.section{ padding: 30px 0; }
.section-head{ margin-bottom: 18px; }
.section-title{ font-size: clamp(20px, 3.4vw, 25px); }
.section-sub{ color: var(--ink-dim); font-size: 14px; }

.spec-list{
  border-top: 1px solid var(--line);
}
.spec-row{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.spec-row-label{
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.spec-row-label .glyph{
  width: 8px; height: 8px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: var(--accent);
  flex-shrink: 0;
}
.spec-row-value{ font-weight: 700; text-align: right; }
.spec-row-value.is-accent{ color: var(--accent-dim); }

/* ==========================================================================
   INSTALL STEPS
   ========================================================================== */
.steps{ counter-reset: step; display: grid; gap: 4px; }
.step{
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child{ border-bottom: none; }
.step::before{
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent-dim);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12.5px;
  display: flex; align-items: center; justify-content: center;
}
.step p{ margin: 0; color: var(--ink-dim); font-size: 15px; }

/* ==========================================================================
   ARTICLE / MAIN CONTENT (AI generated body)
   ========================================================================== */
.article-body{ font-size: 16.5px; color: var(--ink-dim); }
.article-body h2{ color: var(--ink); font-size: 23px; margin-top: 1.7em; }
.article-body h3{ color: var(--ink); font-size: 18.5px; margin-top: 1.4em; font-family: var(--font-body); font-weight: 800; }
.article-body p{ margin-bottom: 1.1em; }
.article-body ul{ list-style: none; padding-left: 0; margin-bottom: 1.1em; }
.article-body li{
  position: relative;
  padding-left: 20px;
  margin-bottom: .5em;
}
.article-body li::before{
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 7px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: var(--accent);
}
.article-body figure{ margin: 1.6em 0; }
.article-body figure img{ border-radius: var(--radius-md); border: 1px solid var(--line); }
.article-body figcaption{ font-size: 12.5px; color: var(--ink-faint); text-align: center; margin-top: 6px; }
.article-body a{ color: var(--accent-dim); text-decoration: underline; }

/* ==========================================================================
   MORE FROM US (optional, full-width — no sidebar)
   ========================================================================== */
.more-strip{ border-top: 1px solid var(--line); padding-top: 26px; }
.card-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.post-card{
  display: flex; gap: 12px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.post-card img{
  width: 64px; height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.post-card-title{ font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.post-card:hover .post-card-title{ color: var(--accent-dim); }
.post-card-meta{ font-size: 12px; color: var(--ink-faint); margin-top: 4px; }

@media (min-width: 640px){
  .card-row{ grid-template-columns: repeat(2, 1fr); column-gap: 22px; }
  .post-card{ border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 36px 0 30px;
  margin-top: 10px;
  background: var(--surface);
}
.footer-grid{ display: grid; gap: 22px; margin-bottom: 22px; }
.footer-brand{
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700;
  margin-bottom: 8px;
}
.footer-brand img{ width: 26px; height: 26px; border-radius: 6px; }
.footer-desc{ color: var(--ink-faint); font-size: 13.5px; max-width: 42ch; }
.footer-col-title{
  font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ink-faint); margin-bottom: 10px;
}
.footer-col ul{ display: grid; gap: 8px; }
.footer-col a{ font-size: 14px; color: var(--ink-dim); }
.footer-col a:hover{ color: var(--accent-dim); }

.footer-bottom{
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: 12.5px; color: var(--ink-faint);
}
.footer-disclosure{
  font-size: 11.5px; color: var(--ink-faint); line-height: 1.5; margin-top: 14px;
}

@media (min-width: 760px){
  .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ==========================================================================
   MISC
   ========================================================================== */
.sticky-dl-bar{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(100%);
  transition: transform .25s ease;
}
.sticky-dl-bar.is-visible{ transform: translateY(0); }
.sticky-dl-bar strong{ font-size: 14px; font-family: var(--font-display); }
.sticky-dl-bar span{ display: block; font-size: 12px; color: var(--ink-dim); }
.sticky-dl-bar .btn{ padding: 10px 18px; font-size: 14px; width: auto; }

@media (min-width: 860px){
  .sticky-dl-bar{ display: none !important; }
}

.back-to-top{
  position: fixed; right: 16px; bottom: 16px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  display: none; align-items: center; justify-content: center;
  z-index: 30; cursor: pointer;
}
.back-to-top.is-visible{ display: flex; }
.back-to-top svg{ width: 17px; height: 17px; }
