/* omgdeals — worksheet store
   Mobile-first. Single stylesheet, no build step, no dependencies. */

:root {
  --ink:        #1c2340;
  --ink-soft:   #4a5578;
  --paper:      #ffffff;
  --cream:      #fff8f0;
  --brand:      #d94215;
  --brand-dark: #b83610;
  --mint:       #e6f7f1;
  --sky:        #e8f1fd;
  --blush:      #fdeaf3;
  --butter:     #fff4d6;
  --line:       #e7e3dc;
  --radius:     16px;
  --radius-lg:  24px;
  --shadow:     0 8px 30px rgba(28, 35, 64, .08);
  --wrap:       1180px;
  --pad:        20px;
  --tap:        48px;          /* minimum touch target */
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;   /* stop iOS inflating text in landscape */
}

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;               /* never scroll sideways */
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(217, 66, 21, .15);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: var(--brand); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* screen-reader only */
.sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- announcement bar ---------- */

.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  padding: 10px 16px;
  line-height: 1.4;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--ink);
}
.logo span { color: var(--brand); }

.nav-toggle {
  width: var(--tap);
  height: var(--tap);
  margin-right: -10px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
  border-radius: 12px;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 6px var(--pad) 14px;
}
.site-nav.open { display: flex; }

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 4px;              /* generous tap target */
  border-bottom: 1px solid var(--line);
}
.site-nav a:last-child { border-bottom: 0; }

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--butter) 0%, var(--cream) 50%, var(--mint) 100%);
  padding: 36px 0 44px;
}

.hero .wrap {
  display: grid;
  gap: 28px;
  grid-template-areas:
    "copy"
    "offer"
    "figure";                      /* price + button BEFORE the photo on mobile */
}

.hero-copy   { grid-area: copy; }
.hero-offer  { grid-area: offer; }
.hero-figure { grid-area: figure; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: .82rem;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2rem, 8.5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  font-weight: 900;
  overflow-wrap: break-word;
}

.lede {
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 34em;
}

.hero-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.hero-figure img { width: 100%; }

/* ---------- price / offer card ---------- */

.hero-offer {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.price {
  font-size: clamp(2.6rem, 12vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
}

.price-was {
  font-size: 1.1rem;
  color: var(--ink-soft);
  text-decoration: line-through;
}

.badge-save {
  background: var(--mint);
  color: #0d6b4f;
  font-weight: 800;
  font-size: .82rem;
  padding: 5px 12px;
  border-radius: 999px;
}

.price-note {
  color: var(--ink-soft);
  font-size: .95rem;
  margin: 8px 0 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
}
.chip:nth-child(1) { background: var(--butter); }
.chip:nth-child(2) { background: var(--sky); }
.chip:nth-child(3) { background: var(--mint); }
.chip:nth-child(4) { background: var(--blush); }

.btn-buy {
  display: block;
  width: 100%;
  min-height: var(--tap);
  border: 0;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  box-shadow: 0 10px 24px rgba(217, 66, 21, .3);
  transition: transform .15s ease, background .15s ease;
}
.btn-buy:active { transform: scale(.985); }

.btn-buy strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.25;
}
.btn-buy small {
  display: block;
  font-size: .85rem;
  opacity: .92;
  margin-top: 3px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: .85rem;
  font-weight: 600;
}

/* ---------- sticky mobile buy bar ---------- */

.buybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(28, 35, 64, .1);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.buybar.show { transform: translateY(0); }

.buybar-price {
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1.1;
  white-space: nowrap;
}
.buybar-price small {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: line-through;
}

.buybar .btn-buy {
  flex: 1;
  padding: 13px 16px;
  box-shadow: none;
}
.buybar .btn-buy strong { font-size: 1rem; }
.buybar .btn-buy small  { display: none; }

/* ---------- sections ---------- */

section { padding: 52px 0; }

.section-head {
  max-width: 40em;
  margin: 0 auto 30px;
  text-align: center;
}

h2 {
  font-size: clamp(1.6rem, 6.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  line-height: 1.18;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0;
}

.alt { background: var(--cream); }

/* ---------- pack grid ---------- */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
}

.card .count {
  display: inline-block;
  font-weight: 800;
  font-size: .78rem;
  color: var(--brand);
  background: #fdeee8;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .95rem;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;   /* number beside text on mobile */
  gap: 16px;
  align-items: start;
  text-align: left;
}

.step .num {
  counter-increment: step;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
}
.step .num::before { content: counter(step); }

.step h3 { margin: 0 0 4px; font-size: 1.08rem; }
.step p  { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- samples: swipeable on mobile ---------- */

.samples {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 76%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px var(--pad) 14px;
  margin: 0 calc(var(--pad) * -1);
  scrollbar-width: none;
}
.samples::-webkit-scrollbar { display: none; }

.samples figure {
  margin: 0;
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.samples figcaption {
  padding: 12px 16px;
  font-weight: 700;
  font-size: .9rem;
}

.swipe-hint {
  text-align: center;
  color: var(--ink-soft);
  font-size: .85rem;
  margin: 4px 0 0;
}

/* ---------- FAQ ---------- */

.faq { max-width: 800px; margin: 0 auto; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 4px 18px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  list-style: none;
  padding: 16px 34px 16px 0;    /* tall tap target, room for the sign */
  position: relative;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 1.5rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: .95rem;
}

/* ---------- final CTA ---------- */

.final-cta {
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.final-cta h2 { color: #fff; }
.final-cta p  { color: #c3cae4; font-size: 1rem; }
.final-cta .btn-buy { max-width: 460px; margin: 24px auto 0; }
.final-cta .trust   { color: #c3cae4; }

/* ---------- footer ---------- */

.site-footer {
  background: #12172c;
  color: #98a1c0;
  padding: 32px 0 calc(96px + env(safe-area-inset-bottom)); /* clear the buy bar */
  font-size: .88rem;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}
.site-footer a {
  color: #cdd4ea;
  text-decoration: none;
  padding: 8px 0;          /* tap target */
}

/* =========================================================
   TABLET  ≥ 640px
   ========================================================= */
@media (min-width: 640px) {
  :root { --pad: 24px; }

  .announce { font-size: .92rem; }
  section   { padding: 68px 0; }

  .grid   { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps  { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  .samples {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
    margin: 0;
    padding: 0;
    gap: 18px;
  }
  .swipe-hint { display: none; }

  .hero-offer { padding: 26px; }
  .trust { font-size: .92rem; }
}

/* =========================================================
   DESKTOP  ≥ 960px
   ========================================================= */
@media (min-width: 960px) {
  .announce { padding: 12px 16px; }

  .site-header .wrap { min-height: 74px; }
  .logo { font-size: 1.6rem; }

  .nav-toggle { display: none; }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 30px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav a {
    padding: 0;
    border: 0;
    font-size: 1rem;
  }
  .site-nav a:hover { color: var(--brand); }

  .hero { padding: 60px 0 76px; }
  .hero .wrap {
    grid-template-columns: 1.05fr .95fr;
    grid-template-areas:
      "copy   offer"
      "figure offer";
    gap: 30px 52px;
    align-items: start;
  }

  .hero-offer { background: none; border: 0; box-shadow: none; padding: 0; }

  .lede { font-size: 1.15rem; }
  .pill { font-size: .95rem; padding: 10px 20px; }

  .btn-buy { padding: 20px 28px; }
  .btn-buy strong { font-size: 1.3rem; }
  .btn-buy small  { font-size: .95rem; }

  .grid   { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps  { grid-template-columns: repeat(4, 1fr); }
  .step   { grid-template-columns: 1fr; text-align: center; gap: 12px; }
  .step .num { margin: 0 auto; }

  .samples { grid-template-columns: repeat(4, 1fr); }

  .btn-buy:hover { background: var(--brand-dark); transform: translateY(-2px); }

  .buybar { display: none; }          /* desktop keeps the inline CTA */

  .site-footer { padding: 40px 0; }
  .site-footer .wrap {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .site-footer nav { justify-content: flex-end; }
  .site-footer a { padding: 0; }
  .site-footer a:hover { color: #fff; }
}

/* ---------- legal pages ---------- */

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px var(--pad) 70px;
}
.legal h1 { font-size: clamp(1.7rem, 7vw, 2.6rem); margin-bottom: 6px; }
.legal .updated { color: var(--ink-soft); font-size: .9rem; margin: 0 0 30px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); font-size: .97rem; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a  { font-weight: 700; }
.legal .back { display: inline-block; margin-bottom: 22px; font-weight: 800; text-decoration: none; padding: 8px 0; }
.legal .note { background: var(--butter); border-radius: var(--radius); padding: 16px 18px; margin: 26px 0; }
.legal .note p { margin: 0; color: var(--ink); }
.legal code { word-break: break-word; }

/* ---------- motion preference ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- hero photo gallery ---------- */

.hero-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
}
.hero-gallery::-webkit-scrollbar { display: none; }

.hero-gallery figure {
  margin: 0;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.hero-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.gallery-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 35, 64, .22);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.gallery-dots button[aria-current="true"] {
  background: var(--brand);
  transform: scale(1.35);
}

.hero-figure figcaption {
  padding: 14px 18px;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.5;
}

@media (min-width: 960px) {
  .hero-gallery { grid-auto-columns: 100%; }
  .hero-figure figcaption { font-size: 1rem; }
}

/* ---------- first-screen tuning (v5) ----------
   Smaller hero photos so the headline, the promise and the price
   all land above the fold on a phone. */

.hero { padding: 22px 0 34px; }
.hero .wrap { gap: 20px; }

.pill {
  font-size: .78rem;
  padding: 7px 14px;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(1.55rem, 6.4vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 10px;
}

.hero-copy .lede {
  font-size: .95rem;
  line-height: 1.5;
  margin: 0 0 16px;
}

/* the carousel: wide-format and height-capped on small screens */
.hero-gallery img {
  aspect-ratio: 4 / 3;
  max-height: 34vh;
}

.gallery-dots { margin-top: 10px; }

.hero-offer { padding: 18px 18px 20px; }
.price-note { margin: 6px 0 14px; }
.chips { gap: 7px; margin-bottom: 16px; }

@media (min-width: 640px) {
  .hero-gallery img { aspect-ratio: 16 / 10; max-height: 46vh; }
}

@media (min-width: 960px) {
  .hero { padding: 52px 0 68px; }
  .hero .wrap { gap: 28px 52px; }
  .hero-gallery img { aspect-ratio: 4 / 3; max-height: none; }
  .hero-copy .lede { font-size: 1.08rem; margin-bottom: 22px; }
  .pill { font-size: .95rem; padding: 10px 20px; margin-bottom: 20px; }
}

/* ---------- real download count ---------- */

.orders-line {
  margin: 0 0 12px;
  font-size: .9rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.orders-line strong {
  color: var(--brand);
  font-weight: 900;
  font-size: 1.05rem;
}

/* ---------- recent-purchase notification ---------- */

.proof {
  position: fixed;
  left: 14px;
  bottom: 82px;                 /* clear of the sticky buy bar */
  z-index: 65;
  max-width: min(320px, calc(100vw - 28px));
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  box-shadow: 0 10px 30px rgba(28, 35, 64, .16);
  transform: translateY(160%);
  opacity: 0;
  pointer-events: none;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.proof.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.proof-avatar {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--butter);
  color: var(--brand);
  font-weight: 900;
  font-size: .95rem;
}
.proof-body { min-width: 0; }
.proof-title { font-weight: 800; font-size: .87rem; line-height: 1.3; }
.proof-meta  { font-size: .76rem; color: var(--ink-soft); margin-top: 1px; }

.proof-close {
  margin-left: auto;
  background: none;
  border: 0;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 960px) {
  .proof { bottom: 20px; }      /* no buy bar on desktop */
}

/* ---------- skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 800;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- hide the sub-headline on phones ----------
   Kept in the DOM (clipped, not display:none) so search engines
   and screen readers still get it; simply not shown on small screens. */

.hero-copy .lede {
  position: absolute;
  width: 1px; height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (min-width: 960px) {
  .hero-copy .lede {
    position: static;
    width: auto; height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    margin: 0 0 22px;
  }
}

/* Razorpay checkout error message */
.buy-error{display:block;margin-top:8px;padding:8px 12px;background:#fdecea;color:#b3261e;border-radius:6px;font-size:14px;}
