/* OpperTech landing page styles. Mobile-first, RTL-aware (logical properties). */

:root {
  /* Brand palette (derived from the logo) */
  --navy: #153E73;
  --navy-deep: #0B2240;
  --orange: #F07828;
  --orange-hover: #F27F33;      /* hover lightens so navy text keeps >5:1 */
  --orange-text: #A34A0C;      /* orange tone that passes AA as text on cream */
  --sky: #44B4E0;              /* light blue sampled from the icon */
  --sky-soft: #E3F3FA;
  --cream: #FAF5EC;
  --cream-deep: #F3EADB;
  --white: #FFFFFF;
  --ink: #1B2433;
  --ink-soft: #4A5568;
  --line: #E7DCCB;
  --wa: #167C3C;               /* WhatsApp green, darkened for white-text contrast */
  --wa-hover: #11692F;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(21, 62, 115, .06), 0 8px 24px rgba(21, 62, 115, .08);
  --shadow-lg: 0 2px 4px rgba(21, 62, 115, .06), 0 18px 48px rgba(21, 62, 115, .14);

  --font: "Heebo", "Assistant", "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: 16px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-start: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { inset-block-start: 12px; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Brand orange with deep-navy text: 5:1 contrast (white on this orange fails AA). */
.btn-primary {
  background: var(--orange);
  color: var(--navy-deep);
  box-shadow: 0 6px 18px rgba(240, 120, 40, .32);
}
.btn-primary:hover { background: var(--orange-hover); }

.btn-whatsapp {
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(22, 124, 60, .25);
}
.btn-whatsapp:hover { background: var(--wa-hover); }

.btn-sm { min-height: 42px; padding: 8px 20px; font-size: 1rem; box-shadow: none; }
.btn-block { width: 100%; }
.wa-icon { width: 22px; height: 22px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: rgba(250, 245, 236, .9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-block-end: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-block-end-color: var(--line);
  box-shadow: 0 4px 20px rgba(21, 62, 115, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand img { height: 44px; width: auto; }
.header-nav { display: none; }

/* ---------- Shared section bits ---------- */
.section { padding-block: 72px; }
.section-head { text-align: center; margin-block-end: 40px; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  color: var(--orange-text);
  margin-block-end: 10px;
}
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: 48px 64px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
}
.hero::before {
  width: 340px; height: 340px;
  background: var(--sky-soft);
  inset-block-start: -80px;
  inset-inline-end: -120px;
}
.hero::after {
  width: 300px; height: 300px;
  background: #FCE3CF;
  inset-block-end: -120px;
  inset-inline-start: -100px;
}
.hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 3.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.01em;
  max-width: 19ch;
  margin-inline: auto;
  text-wrap: balance;
}
.hero h1 .accent {
  color: var(--navy);
  background: linear-gradient(transparent 62%, rgba(240, 120, 40, .35) 62%, rgba(240, 120, 40, .35) 92%, transparent 92%);
  padding-inline: .08em;
}
.lead {
  font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 20px auto 0;
}
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block-start: 32px;
}
.hero-price {
  margin-block-start: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.price-line { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.price-line .price-num { font-size: 1.9rem; font-weight: 800; }
.price-unit { font-weight: 500; color: var(--ink-soft); }
.offer-chip {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px dashed var(--orange);
  color: var(--navy);
  font-weight: 500;
  font-size: .98rem;
}

/* ---------- Video ---------- */
.video-section { background: var(--white); border-block: 1px solid var(--line); }
.video-grid {
  display: grid;
  gap: 36px;
  justify-items: center;
  text-align: center;
}
.video-copy p:not(.eyebrow) { color: var(--ink-soft); margin-block: 14px 24px; }
.video-frame {
  width: 100%;
  max-width: 340px;
  border-radius: 28px;
  padding: 8px;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
}
.video-frame video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  background: var(--cream-deep);
  object-fit: cover;
}

/* ---------- Problem ---------- */
.problem { text-align: center; }
.problem-list {
  display: grid;
  gap: 14px;
  margin-block: 32px;
  text-align: start;
}
.problem-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
}
.problem-list svg {
  width: 30px; height: 30px; flex: none;
  color: var(--orange-text);
}
.problem-answer {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Features ---------- */
.features { background: var(--cream-deep); }
.feature-grid { display: grid; gap: 20px; }
.feature {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--sky-soft);
  color: var(--navy);
  margin-block-end: 16px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature p { color: var(--ink-soft); margin-block: 8px 20px; }
.shot-slot {
  margin-block-start: auto;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(-45deg, transparent 0 12px, rgba(21, 62, 115, .025) 12px 24px),
    var(--cream);
  color: var(--ink-soft);
  font-size: .95rem;
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 20px; counter-reset: none; }
.step {
  position: relative;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.step-num {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 1.3rem;
}
.step p { color: var(--ink-soft); margin-block-start: 6px; }

/* ---------- Pricing ---------- */
.pricing { background: var(--white); border-block: 1px solid var(--line); }
.price-card {
  max-width: 460px;
  margin-inline: auto;
  padding: 32px 24px 28px;
  text-align: center;
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-lg);
}
.offer-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: #FDEBDC;
  color: var(--navy-deep);
  font-weight: 700;
  font-size: .95rem;
}
.plan-name { margin-block-start: 22px; font-size: 1.25rem; }
.plan-price {
  margin-block: 8px 24px;
  color: var(--navy);
  font-weight: 800;
}
.plan-price .price-num { font-size: 4rem; line-height: 1; }
.plan-price .currency { font-size: 2rem; }
.plan-price .price-unit { font-size: 1.1rem; }
.plan-list {
  display: grid;
  gap: 10px;
  text-align: start;
  margin-block-end: 28px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--line);
}
.plan-list li { display: flex; align-items: center; gap: 10px; }
.plan-list svg {
  width: 22px; height: 22px; flex: none;
  padding: 3px;
  border-radius: 50%;
  background: var(--sky-soft);
  color: var(--navy);
}
.cta-stack { display: grid; gap: 12px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  /* Physical sides on purpose: rotated 45deg this draws a down-pointing chevron in any direction. */
  border-right: 2.5px solid var(--orange-text);
  border-bottom: 2.5px solid var(--orange-text);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-body { padding: 0 20px 20px; color: var(--ink-soft); }
.todo {
  padding: 12px 14px;
  border-radius: 10px;
  background: #FFF6D6;
  border: 1px dashed #C9A227;
  color: #5C4A00;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding-block: 72px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-icon {
  width: 96px; height: 96px;
  padding: 10px;
  border-radius: 24px;
  background: var(--cream);
  margin-block-end: 22px;
}
.final-cta h2 { color: var(--white); }
.final-cta p { margin-block-start: 12px; color: #D6E2F1; font-size: 1.15rem; }
.final-cta .cta-row { width: 100%; max-width: 420px; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 40px;
  background: var(--cream);
  border-block-start: 1px solid var(--line);
  font-size: .98rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-logo { height: 40px; width: auto; }
.footer-links { display: flex; gap: 20px; }
.footer-links a, .footer-phone a { color: var(--navy); font-weight: 500; }
.copyright { color: var(--ink-soft); }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 245, 236, .96);
  border-block-start: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(21, 62, 115, .08);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta[hidden] { display: none; }
.sticky-cta .btn { min-height: 48px; padding-inline: 18px; box-shadow: none; }


/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .cta-row { flex-direction: row; justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .final-cta .cta-row { max-width: none; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --gutter: 32px; --header-h: 76px; }
  .brand img { height: 58px; }
  .header-nav {
    display: flex;
    gap: 28px;
    margin-inline-start: auto;
    margin-inline-end: 12px;
  }
  .header-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
  }
  .header-nav a:hover { color: var(--orange-text); }

  .section { padding-block: 104px; }
  .hero { padding-block: 88px 104px; }
  .hero::before { width: 520px; height: 520px; }
  .hero::after { width: 460px; height: 460px; }

  .video-grid {
    grid-template-columns: 1fr minmax(0, 360px);
    align-items: center;
    justify-items: start;
    text-align: start;
    gap: 72px;
    max-width: 980px;
  }
  .video-frame { justify-self: center; max-width: 360px; }

  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps .step:not(:last-child)::after {
    content: "";
    position: absolute;
    inset-block-start: 52px;
    inset-inline-end: -24px;
    width: 24px;
    border-block-start: 2px dashed var(--sky);
  }

  .price-card { padding: 40px 40px 36px; }
  .final-cta { padding-block: 96px; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .sticky-cta { display: none !important; }

}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .btn:hover, .feature:hover { transform: none; }
}

/* ==========================================================================
   v2 additions: pillars, promo price, demo form, video fallback
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Four core pillars under the hero lead */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 34rem;
  margin: 28px auto 0;
}
.pillars li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow);
}
.pillars svg { width: 22px; height: 22px; flex: none; color: var(--orange-text); }

.demo-link { margin-block-start: 14px; }
.demo-link a { color: var(--navy); font-weight: 500; }

/* Promo price */
.price-old {
  margin-inline-end: 8px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration-thickness: 2px;
}
.plan-old { margin-block-start: 10px; color: var(--ink-soft); font-size: 1.1rem; }
.plan-old del { text-decoration-thickness: 2px; }
.plan-old + .plan-price { margin-block-start: 0; }

/* Secondary outline button */
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  box-shadow: none;
}
.btn-outline:hover { background: var(--sky-soft); }

/* Video fallback (shown when the file can't be loaded) */
.video-frame { position: relative; }
.video-fallback {
  position: absolute;
  inset-inline: 20px;
  inset-block-end: 80px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--ink);
}
.video-fallback a { font-weight: 700; color: var(--navy); }
.video-fallback[hidden] { display: none; }

/* Contact / demo booking */
.contact { background: var(--cream-deep); }
.contact-grid { display: grid; gap: 32px; }
.contact-copy p:not(.eyebrow):not(.contact-direct-title) { color: var(--ink-soft); margin-block-start: 14px; }
.contact-direct { margin-block-start: 24px; }
.contact-direct-title { font-weight: 700; color: var(--navy); margin-block-end: 10px; }
.demo-form { padding: 28px 22px; display: grid; gap: 16px; }
.demo-form h3 { font-size: 1.3rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; color: var(--navy); }
.optional { font-weight: 400; color: var(--ink-soft); font-size: .92em; }
.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid #CDBFA9;
  border-radius: var(--radius-sm);
}
.field input[dir="ltr"] { text-align: right; }
.field input:focus-visible,
.field select:focus-visible { outline-offset: 1px; border-color: var(--navy); }
.field input[aria-invalid="true"] { border-color: #B42318; }
.field-error { color: #B42318; font-size: .95rem; font-weight: 500; }
.field-error[hidden] { display: none; }
.form-note { font-size: .92rem; color: var(--ink-soft); text-align: center; }

@media (min-width: 640px) {
  .pillars { grid-template-columns: repeat(4, auto); justify-content: center; max-width: none; }
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr minmax(0, 440px);
    align-items: center;
    gap: 72px;
    max-width: 1040px;
  }
  .demo-form { padding: 36px 32px; }
}

/* Real play button over the video poster */
.video-play {
  position: absolute;
  inset-block-start: 80%; /* below the logo and tagline on the poster */
  inset-inline-start: 50%;
  transform: translate(50%, -50%); /* RTL: inline-start is the right edge */
  display: grid;
  place-items: center;
  width: 84px; height: 84px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy-deep);
  box-shadow: 0 10px 28px rgba(240, 120, 40, .45);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.video-play svg { width: 40px; height: 40px; margin-left: 6px; } /* optical centring of the triangle */
.video-play:hover { background: var(--orange-hover); transform: translate(50%, -50%) scale(1.06); }
.video-play[hidden] { display: none; }
html[dir="ltr"] .video-play { transform: translate(-50%, -50%); }
@media (prefers-reduced-motion: reduce) {
  .video-play:hover { transform: translate(50%, -50%); }
}

/* ==========================================================================
   Legal / accessibility pages
   ========================================================================== */
.legal { padding-block: 48px 72px; }
.legal h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); font-weight: 800; }
.legal h2 { font-size: 1.3rem; margin-block: 36px 10px; }
.legal p, .legal li { color: var(--ink); }
.legal p { margin-block-start: 12px; }
.legal ul { display: grid; gap: 8px; margin-block-start: 12px; padding-inline-start: 22px; list-style: disc; }
.legal ul.legal-contact { list-style: none; padding-inline-start: 0; }
.legal a { color: var(--navy); text-underline-offset: 3px; }
.legal-updated { color: var(--ink-soft); font-size: .95rem; margin-block-start: 8px; }

/* Placeholder for details the owner still has to fill in (see BUSINESS / ACCESSIBILITY in script.js) */
.fill-me {
  padding: 1px 8px;
  border-radius: 8px;
  background: #FFF6D6;
  border: 1px dashed #C9A227;
  color: #5C4A00;
  font-weight: 500;
}

/* Small usability fixes */
html { scroll-padding-bottom: 96px; } /* keep focused elements clear of the sticky mobile bar */
::placeholder { color: var(--ink-soft); opacity: 1; }
.footer-phone a { display: inline-block; padding-block: 6px; }
.footer-links { flex-wrap: wrap; justify-content: center; }
