/* Qalam Education Platform — public site
   Brand colours are the app's own: green #0eb582, navy #273c66. */

:root {
  --green:      #0eb582;
  --green-dark: #0b9168;
  --green-deep: #086d4e;
  --green-tint: #e6f7f2;
  --navy:       #273c66;
  --navy-deep:  #17243d;
  --navy-soft:  #4f6797;

  --ink:        #15202b;
  --ink-2:      #47566a;
  --ink-3:      #6c7b8f;
  --line:       #e2e8ef;
  --line-soft:  #eef2f6;
  --paper:      #ffffff;
  --shell:      #f6f9fb;

  --radius:     14px;
  --radius-lg:  22px;
  --wrap:       1160px;
  --shadow:     0 1px 2px rgba(23,36,61,.04), 0 8px 28px rgba(23,36,61,.06);
  --shadow-lg:  0 2px 6px rgba(23,36,61,.05), 0 24px 60px rgba(23,36,61,.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--navy-deep); }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }

.lead { font-size: 1.12rem; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.muted-sm { color: var(--ink-3); font-size: .86rem; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy-deep); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 18px; height: 66px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.22rem; color: var(--navy-deep);
  letter-spacing: -.03em; text-decoration: none; flex: 0 0 auto;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand:hover { text-decoration: none; }

.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--ink-2); font-size: .88rem; font-weight: 600;
  padding: 8px 11px; border-radius: 9px; white-space: nowrap;
}
.nav a:hover { background: var(--shell); color: var(--navy-deep); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--green-deep); background: var(--green-tint); }

.head-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.lang {
  font-size: .85rem; font-weight: 700; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
}
.lang:hover { border-color: var(--green); color: var(--green-deep); text-decoration: none; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--navy-deep); border-radius: 2px; }
.burger span + span { margin-top: 5px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fff; font-weight: 700; font-size: .96rem;
  padding: 12px 22px; border-radius: 11px; border: 1px solid transparent;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--green-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 8px 15px; font-size: .88rem; border-radius: 9px; }
.btn-ghost { background: transparent; color: var(--navy-deep); border-color: var(--line); }
.btn-ghost:hover { background: var(--shell); color: var(--navy-deep); border-color: var(--navy-soft); }
.btn-light { background: #fff; color: var(--navy-deep); }
.btn-light:hover { background: #eef5f2; color: var(--navy-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 82% -12%, rgba(14,181,130,.16), transparent 60%),
    radial-gradient(48rem 28rem at 6% 8%,   rgba(39,60,102,.10),  transparent 62%),
    var(--shell);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}
.hero .kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--green-deep);
  background: #fff; border: 1px solid #cdeee1; border-radius: 999px; padding: 6px 15px;
  margin-bottom: 18px;
}
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 62ch; font-size: 1.16rem; }
.hero .btn-row { margin-top: 26px; }

/* ---------- stat strip ---------- */
.stats {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 44px;
}
.stat { background: #fff; padding: 20px 18px; text-align: center; }
.stat strong {
  display: block; font-size: clamp(1.5rem, 3.2vw, 2.05rem); font-weight: 800;
  color: var(--navy-deep); letter-spacing: -.03em; line-height: 1.1;
}
.stat span { display: block; font-size: .83rem; color: var(--ink-3); margin-top: 4px; }

/* ---------- sections ---------- */
section { padding: 62px 0; }
section.tight { padding: 44px 0; }
section.shell { background: var(--shell); border-block: 1px solid var(--line); }
.sec-head { max-width: 680px; margin-bottom: 34px; }
.sec-head.center { margin-inline: auto; text-align: center; }

.band {
  background:
    radial-gradient(52rem 26rem at 88% -20%, rgba(14,181,130,.14), transparent 62%),
    var(--shell);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 46px;
}
.band h1 { margin-bottom: .35em; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card.link:hover { border-color: #b6e5d3; box-shadow: var(--shadow); transform: translateY(-2px); }

.ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--green-tint); color: var(--green-deep); margin-bottom: 14px;
}
.ico svg { width: 21px; height: 21px; }

/* ---------- track / grade cards ---------- */
.track {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px; color: inherit;
}
.track:hover { text-decoration: none; border-color: #b6e5d3; box-shadow: var(--shadow); }
.track h3 { font-size: 1.28rem; margin-bottom: .2em; }
.track .sub { color: var(--ink-3); font-size: .88rem; margin-bottom: 16px; }
.track .figs { display: flex; gap: 20px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.track .figs div strong { display: block; font-size: 1.22rem; color: var(--navy-deep); font-weight: 800; }
.track .figs div span { font-size: .76rem; color: var(--ink-3); }

.gradecard {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; color: inherit;
}
.gradecard:hover { text-decoration: none; border-color: #b6e5d3; box-shadow: var(--shadow); }
.gradecard .num {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em;
}
.gradecard .meta strong { display: block; color: var(--navy-deep); font-size: 1rem; }
.gradecard .meta span { font-size: .82rem; color: var(--ink-3); }

/* ---------- subject list ---------- */
.subject {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; color: inherit;
}
.subject:hover { text-decoration: none; border-color: #b6e5d3; box-shadow: var(--shadow); }
.subject strong { color: var(--navy-deep); font-size: 1.02rem; }
.subject .figs { color: var(--ink-3); font-size: .84rem; white-space: nowrap; }

/* ---------- chapters ---------- */
.chapter { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; overflow: hidden; }
.chapter > summary {
  cursor: pointer; list-style: none; padding: 17px 20px;
  display: flex; align-items: center; gap: 14px; font-weight: 700; color: var(--navy-deep);
}
.chapter > summary::-webkit-details-marker { display: none; }
.chapter > summary:hover { background: var(--shell); }
.chapter > summary .cnum {
  flex: 0 0 auto; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px;
  background: var(--green-tint); color: var(--green-deep);
  display: grid; place-items: center; font-size: .82rem; font-weight: 800;
}
.chapter > summary .ctitle { flex: 1 1 auto; }
.chapter > summary .ccount { font-size: .82rem; font-weight: 600; color: var(--ink-3); }
.chapter[open] > summary { border-bottom: 1px solid var(--line-soft); }

.lessons { list-style: none; margin: 0; padding: 6px 0; counter-reset: l; }
.lessons li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 9px 20px 9px 20px; border-bottom: 1px solid var(--line-soft);
}
.lessons li:last-child { border-bottom: 0; }
.lessons li .ln { flex: 0 0 34px; color: var(--ink-3); font-size: .8rem; font-variant-numeric: tabular-nums; }
.lessons li .lt { flex: 1 1 auto; color: var(--ink); }
.lessons li .ld { flex: 0 0 auto; color: var(--ink-3); font-size: .8rem; font-variant-numeric: tabular-nums; }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 600px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); font-size: .93rem; }
th { background: var(--shell); color: var(--navy-deep); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdfe; }
td .pill {
  display: inline-block; background: var(--green-tint); color: var(--green-deep);
  border-radius: 999px; padding: 2px 11px; font-size: .78rem; font-weight: 700;
}

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 7px 16px; font: inherit; font-size: .86rem; font-weight: 600;
  cursor: pointer;
}
.filters button:hover { border-color: var(--green); color: var(--green-deep); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- prose ---------- */
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); font-size: 1.04rem; }

/* ---------- split ---------- */
.split { display: grid; gap: 40px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 11px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23086d4e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- call to action ---------- */
.cta {
  background:
    radial-gradient(44rem 22rem at 88% 0%, rgba(14,181,130,.30), transparent 60%),
    var(--navy-deep);
  color: #dce6f2; border-radius: var(--radius-lg); padding: 46px 40px;
}
.cta h2 { color: #fff; }
.cta p { color: #b8c7dc; max-width: 58ch; }

.cta-band { background: var(--navy-deep); color: #dce6f2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b8c7dc; }

/* ---------- footer ---------- */
.site-foot { background: var(--navy-deep); color: #9fb2cb; padding: 52px 0 26px; margin-top: 0; }
.foot-grid { display: grid; gap: 30px; grid-template-columns: 2fr 1fr 1fr 1fr; }
.foot-brand p { color: #8fa3bf; font-size: .92rem; max-width: 36ch; }
.brand-foot { color: #fff; margin-bottom: 14px; }
.site-foot h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.site-foot a { display: block; color: #9fb2cb; font-size: .92rem; padding: 4px 0; }
.site-foot a:hover { color: #fff; }
.foot-base {
  border-top: 1px solid rgba(255,255,255,.10); margin-top: 36px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
}
.foot-base p { margin: 0; font-size: .85rem; color: #8fa3bf; }
.site-foot .muted-sm { color: #74889f; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); padding: 0;
}
.social a:hover { background: var(--green); }
.social svg { width: 17px; height: 17px; fill: #fff; }

/* ---------- breadcrumb ---------- */
.crumb { font-size: .87rem; color: var(--ink-3); margin-bottom: 14px; }
.crumb a { color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 66px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 18px 18px; gap: 0;
    box-shadow: var(--shadow-lg);
  }
  .nav.open a { padding: 11px 8px; border-radius: 8px; }
  .burger { display: block; }
  .head-inner { position: relative; }
}
@media (max-width: 620px) {
  section { padding: 46px 0; }
  .hero { padding: 44px 0 40px; }
  .cta { padding: 32px 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .lang { display: none; }
  .subject { flex-direction: column; align-items: flex-start; gap: 6px; }
}

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

/* =====================================================================
   Tablet campaign
   ===================================================================== */

.kicker-soon {
  background: #fff7e6; border-color: #f3dca8; color: #8a5b00;
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; border: 1px solid #f3dca8; border-radius: 999px;
  padding: 6px 15px; margin-bottom: 18px;
}

.soon {
  display: inline-block; background: #fff2cc; color: #7a4f00;
  border: 1px solid #f0d99a; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 11px; white-space: nowrap;
}

/* ---- the offer block, shared by the homepage and /tablet ---- */
.offer { display: grid; gap: 34px; grid-template-columns: 1.35fr 1fr; align-items: center; }
.offer h1, .offer h2 { max-width: 17ch; margin-bottom: .3em; }
.offer .lead { max-width: 54ch; }
.offer .strap {
  font-weight: 700; color: var(--green-deep); font-size: 1.02rem;
  border-left: 3px solid var(--green); padding-left: 13px; margin: 18px 0 4px;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; margin-top: 10px; }

.offer-price {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 26px 22px; box-shadow: var(--shadow-lg);
}
.offer-price-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.offer-price-head strong {
  font-size: 1.1rem; font-weight: 800; color: var(--navy-deep); letter-spacing: -.02em;
}
.bignum { display: flex; align-items: baseline; gap: 9px; }
.bignum .amount {
  font-size: clamp(2.8rem, 8vw, 4rem); font-weight: 800; color: var(--green-deep);
  letter-spacing: -.045em; line-height: 1;
}
.bignum .unit { font-size: .95rem; font-weight: 700; color: var(--ink-3); text-transform: lowercase; }
.plus {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 1.06rem; font-weight: 700; color: var(--navy-deep);
}
.total-note { margin: 12px 0 2px; font-size: .9rem; font-weight: 700; color: var(--ink-2); }
.cash-note  { margin: 0; font-size: .88rem; color: var(--ink-3); }

.hero-tablet { padding-bottom: 46px; }

/* ---- the five-second summary a phone visitor sees first ---- */
.ms-card {
  display: none;                 /* phone only; desktop shows the side panel */
  margin: 18px 0 22px;
  background: #fff; border: 2px solid var(--green); border-radius: var(--radius-lg);
  padding: 20px; text-align: center; box-shadow: var(--shadow);
}
.ms-title { display: block; font-size: .82rem; font-weight: 800; letter-spacing: .14em; color: var(--navy-deep); }
.ms-row { margin-top: 8px; font-size: 1rem; font-weight: 700; color: var(--navy-deep); }
.ms-big { font-size: 2.6rem; font-weight: 800; color: var(--green-deep); letter-spacing: -.04em; }
.ms-card .soon { margin-top: 10px; }
.ms-card .btn { margin-top: 14px; }
.ms-cash { margin: 10px 0 0; font-size: .88rem; color: var(--ink-3); }

/* ---- the two purchase options ---- */
.price-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; position: relative;
}
.price-card-alt { border: 2px solid var(--green); box-shadow: var(--shadow-lg); }
.pc-flag { position: absolute; top: -13px; left: 28px; }
.price-card h3 { font-size: 1.4rem; margin-bottom: .15em; }
.pc-sub { color: var(--ink-2); font-size: .95rem; }
.pc-amount {
  font-size: clamp(2.6rem, 7vw, 3.4rem); font-weight: 800; color: var(--green-deep);
  letter-spacing: -.045em; line-height: 1.05; margin-top: 14px;
}
.pc-amount-note { margin: 2px 0 16px; font-size: .88rem; color: var(--ink-3); }
.pc-then, .pc-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-top: 1px dashed var(--line); font-size: .95rem; color: var(--ink-2);
}
.pc-then strong, .pc-total strong { color: var(--navy-deep); font-weight: 800; }
.pc-total { border-top: 1px solid var(--line); font-weight: 700; }
.pc-total strong { font-size: 1.22rem; }
.price-card .checks { margin: 18px 0 20px; }
.price-card .checks li { font-size: .93rem; }
.pc-note {
  background: var(--shell); border: 1px solid var(--line); border-radius: 11px;
  padding: 13px 15px; font-size: .86rem; color: var(--ink-2); margin-bottom: 16px;
}

.smallprint { font-size: .85rem; color: var(--ink-3); margin-top: 22px; max-width: 70ch; }
.smallprint.center { margin-inline: auto; text-align: center; }
.center { text-align: center; }

/* ---- how it works ---- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.steps li:last-child { border-bottom: 0; }
.stepnum {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1.02rem;
}
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--ink-2); }

/* ---- faq ---- */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 11px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 20px;
  font-weight: 700; color: var(--navy-deep); position: relative; padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 400; color: var(--green-deep);
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { background: var(--shell); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }

/* ---- testimonials ---- */
.testimonial { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tvideo { background: #000; aspect-ratio: 9 / 16; }
.tvideo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial .tposter { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.testimonial blockquote { margin: 0; padding: 18px 20px 6px; color: var(--ink); font-size: .96rem; }
.testimonial figcaption { padding: 6px 20px 18px; }
.testimonial figcaption strong { display: block; color: var(--navy-deep); }
.testimonial figcaption span { font-size: .84rem; color: var(--ink-3); }

/* ---- lead form ---- */
.leadform {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.fields { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.field { margin: 0; }
.field-narrow { max-width: 180px; }
.field label { display: block; font-size: .87rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--ink-3); }
.field input[type=text], .field input[type=tel], .field input[type=number], .field select {
  width: 100%; font: inherit; font-size: .96rem; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .leadform button:focus-visible {
  outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green);
}
.field input[aria-invalid=true], .field select[aria-invalid=true] { border-color: #d14343; }
.field-err { margin: 6px 0 0; font-size: .84rem; color: #b91c1c; }

.field-set { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 16px; margin: 18px 0; }
.field-set legend { font-size: .87rem; font-weight: 700; color: var(--navy-deep); padding: 0 6px; }
.radio, .checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 7px 0; cursor: pointer; font-size: .95rem; color: var(--ink-2); }
.radio input, .checkbox input { margin-top: .28em; accent-color: var(--green); width: 17px; height: 17px; flex: 0 0 auto; }
.field-consent { margin: 18px 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  border-radius: 11px; padding: 12px 16px; font-size: .92rem; font-weight: 600;
  background: var(--green-tint); color: var(--green-deep); margin-bottom: 18px;
}
.form-alert-bad { background: #fdecec; color: #b91c1c; }

.form-done {
  background: #fff; border: 2px solid var(--green); border-radius: var(--radius-lg);
  padding: 34px 28px; text-align: center; box-shadow: var(--shadow);
}
.form-done .tick {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--green-tint); color: var(--green-deep); display: grid; place-items: center;
}
.form-done .tick svg { width: 26px; height: 26px; }
.form-done h3 { font-size: 1.4rem; }

/* ---- floating WhatsApp ---- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  background: #25d366; color: #fff; font-weight: 700; font-size: .92rem;
  padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37,211,102,.38);
}
.wa-float:hover { background: #1fb457; color: #fff; text-decoration: none; }
.wa-float svg { width: 21px; height: 21px; fill: currentColor; }

@media (max-width: 900px) {
  .offer { grid-template-columns: 1fr; gap: 26px; }
  .offer h1, .offer h2 { max-width: none; }
}

@media (max-width: 620px) {
  /* On a phone the offer must be legible in about five seconds, so the
     summary card leads and the fuller hero block follows underneath. */
  .ms-card { display: block; }
  .hero-tablet .offer-price, .hero .offer-price { display: none; }
  .hero .stats { display: none; }        /* the card already carries the offer */
  .offer .strap { margin-top: 4px; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .leadform { padding: 20px 18px; }
  .price-card { padding: 24px 20px; }
  .btn-row .btn { width: 100%; }
}

/* ---- click-to-play films ---- */
.ytbox {
  position: relative; background: #000; border-radius: var(--radius);
  overflow: hidden; line-height: 0;
}
.ytbox-16x9 { aspect-ratio: 16 / 9; }
.ytbox-9x16 { aspect-ratio: 9 / 16; }
.ytbox iframe, .ytbox .ytplay { width: 100%; height: 100%; display: block; border: 0; }
.ytplay { padding: 0; margin: 0; background: none; cursor: pointer; position: relative; }
.ytplay img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s ease, transform .3s ease; }
.ytplay:hover img { opacity: 1; transform: scale(1.02); }
.ytplay-icon {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.ytplay-icon svg { width: 66px; height: 47px; filter: drop-shadow(0 3px 10px rgba(0,0,0,.45)); transition: transform .2s ease; }
.ytplay:hover .ytplay-icon svg { transform: scale(1.08); }
.ytplay:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.filmcard {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.filmcard .ytbox { border-radius: 0; }
.filmcard figcaption { padding: 18px 20px 20px; }
.filmcard h3 { margin-bottom: .3em; }
.filmcard p { margin: 0; color: var(--ink-2); font-size: .94rem; }

.testimonial .tname { padding: 16px 20px 0; margin: 0 0 .2em; font-size: 1rem; }

.film-title { color: var(--green-deep); font-size: 1.06rem; margin-bottom: .5em; }
.split .ytbox { box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); }
