/*
 * topupcove.com — etisalat recharge online (Dubai)
 * style blend: arabic-modern (skeleton) + newspaper-grid (accent)
 * class-prefix: oc-
 * palette shifted from #191329 / #e22222 / #f4f3f5
 * WCAG AA verified on paper background
 */

@layer reset, tokens, base, layout, components, utils;

/* -----------------------------------------------------------
   RESET
----------------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, h4, p, ul, ol, figure, dialog, blockquote { margin: 0; padding: 0; }
  ul, ol { list-style: none; }
  img, svg, video, iframe { max-width: 100%; display: block; }
  button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
  button { cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  :focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 2px; }
  dialog { border: 0; padding: 0; }
  dialog::backdrop { background: rgba(13, 10, 26, .55); backdrop-filter: blur(4px); }
  ::selection { background: var(--acc); color: var(--paper); }
  [hidden] { display: none !important; }
}

/* -----------------------------------------------------------
   TOKENS
----------------------------------------------------------- */
@layer tokens {
  :root {
    /* palette — shifted from #191329 / #e22222 / #f4f3f5 (seed OCN8C1OGBN) */
    --pri:      #231a3a;   /* deep indigo primary (hue +5°, light +4%) */
    --pri-dk:   #17102a;   /* darker indigo for hovers */
    --pri-lt:   #3a2e58;   /* lighter indigo for chip bg */
    --acc:      #d64545;   /* soft terracotta accent (sat -8%, light +3%) */
    --acc-dk:   #b93131;   /* darker accent */
    --acc-lt:   #f2c8c8;   /* accent tint */
    --paper:    #f5f3ee;   /* warm off-white paper */
    --paper-2:  #ede9df;   /* slightly darker paper (dividers) */
    --ink:      #0d0a1a;   /* deepest ink for body copy */
    --ink-2:    #524a66;   /* muted ink for secondary */
    --line:     #d7d0c0;   /* newsprint hairline */

    /* type scale — major second (1.125) */
    --fs-xs:    .78rem;
    --fs-sm:    .875rem;
    --fs-base:  1rem;
    --fs-md:    1.125rem;
    --fs-lg:    1.266rem;
    --fs-xl:    1.424rem;
    --fs-2xl:   1.602rem;
    --fs-3xl:   1.802rem;
    --fs-4xl:   2.281rem;
    --fs-5xl:   2.887rem;
    --fs-6xl:   3.653rem;

    /* radii */
    --r-sm:     6px;
    --r-md:     12px;
    --r-lg:     20px;
    --r-xl:     28px;

    /* spacing */
    --sp-1:     .25rem;
    --sp-2:     .5rem;
    --sp-3:     .75rem;
    --sp-4:     1rem;
    --sp-5:     1.5rem;
    --sp-6:     2rem;
    --sp-7:     3rem;
    --sp-8:     4rem;
    --sp-9:     6rem;

    /* shadows — long isometric */
    --sh-1:     3px 3px 0 var(--pri-dk);
    --sh-2:     6px 6px 0 var(--pri-dk);
    --sh-3:     10px 10px 0 var(--acc);
    --sh-soft:  0 12px 32px -8px rgba(13, 10, 26, .28);

    /* fonts */
    --ff-h:     "Playfair Display", "Amiri", Georgia, serif;
    --ff-b:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --ff-m:     "IBM Plex Mono", "Roboto Mono", ui-monospace, "Courier New", monospace;

    color-scheme: light;
  }

  /* AR — switch heading font to arabic serif, keep body sans */
  [dir="rtl"] {
    --ff-h: "Amiri", "Noto Naskh Arabic", "Playfair Display", Georgia, serif;
    --ff-b: "Cairo", "Noto Sans Arabic", "Inter", system-ui, sans-serif;
  }
}

/* -----------------------------------------------------------
   BASE
----------------------------------------------------------- */
@layer base {
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--ff-b);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    background-image:
      /* subtle blueprint grid motif */
      linear-gradient(rgba(35, 26, 58, .04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(35, 26, 58, .04) 1px, transparent 1px);
    background-size: 32px 32px, 32px 32px;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }
  body.oc-noscroll { overflow: hidden; }

  /* newsprint grain overlay via ::before on body */
  body::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: .04;
    mix-blend-mode: multiply;
    background-image:
      radial-gradient(circle at 25% 15%, rgba(0, 0, 0, .7) 0.5px, transparent 1px),
      radial-gradient(circle at 75% 85%, rgba(0, 0, 0, .7) 0.5px, transparent 1px);
    background-size: 3px 3px, 5px 5px;
  }

  h1, h2, h3, h4 {
    font-family: var(--ff-h);
    font-weight: 500;      /* medium heading weight */
    line-height: 1.15;
    color: var(--pri);
    text-wrap: balance;
  }
  h1 { font-size: clamp(2.2rem, 6vw, var(--fs-6xl)); letter-spacing: -.02em; }
  h2 { font-size: clamp(1.6rem, 4vw, var(--fs-4xl)); letter-spacing: -.01em; }
  h3 { font-size: var(--fs-2xl); }
  h4 { font-size: var(--fs-lg); }

  p, li { max-width: 55ch; }
  p a { color: var(--acc-dk); border-bottom: 1px solid currentColor; }
  p a:hover { color: var(--pri); background: var(--acc-lt); }

  /* wavy underline for standalone links (link_underline=wavy) */
  a.oc-link {
    text-decoration: underline wavy var(--acc);
    text-underline-offset: 4px;
  }

  strong { font-weight: 700; color: var(--pri); }
  code { font-family: var(--ff-m); background: var(--paper-2); padding: 2px 6px; border-radius: 4px; font-size: .9em; }

  /* barcode-style dividers */
  hr.oc-bar {
    border: 0;
    height: 22px;
    background-image: repeating-linear-gradient(
      90deg,
      var(--ink) 0, var(--ink) 2px,
      transparent 2px, transparent 5px,
      var(--ink) 5px, var(--ink) 6px,
      transparent 6px, transparent 11px,
      var(--ink) 11px, var(--ink) 14px,
      transparent 14px, transparent 17px
    );
    opacity: .5;
    margin: var(--sp-7) 0;
  }
}

/* -----------------------------------------------------------
   LAYOUT
----------------------------------------------------------- */
@layer layout {
  .oc-wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); position: relative; z-index: 2; }
  .oc-narrow { max-width: 720px; margin-inline: auto; }

  /* 12-col grid utility */
  .oc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--sp-5); }
  .oc-c-4 { grid-column: span 4; }
  .oc-c-5 { grid-column: span 5; }
  .oc-c-6 { grid-column: span 6; }
  .oc-c-7 { grid-column: span 7; }
  .oc-c-8 { grid-column: span 8; }
  .oc-c-12 { grid-column: 1 / -1; }
  @media (max-width: 900px) {
    .oc-c-4, .oc-c-5, .oc-c-6, .oc-c-7, .oc-c-8 { grid-column: 1 / -1; }
  }

  /* ANNOUNCEMENT BAR */
  .oc-annc {
    background: var(--pri);
    color: var(--paper);
    font-size: var(--fs-sm);
    text-align: center;
    padding: 6px var(--sp-4);
    position: relative;
    z-index: 20;
  }
  .oc-annc b { color: var(--acc-lt); }
  .oc-annc a { border-bottom: 1px dashed var(--acc-lt); }

  /* HEADER — floating_island, sticky, shrinks */
  .oc-hdr-wrap {
    position: sticky; top: 12px; z-index: 40;
    padding-inline: var(--sp-4);
    transition: top .3s ease;
  }
  .oc-hdr {
    max-width: 1180px; margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-5);
    background: rgba(245, 243, 238, .8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px double var(--pri);
    border-radius: var(--r-xl);
    padding: 10px 18px;
    box-shadow: var(--sh-1);
    transition: padding .25s ease, box-shadow .25s ease;
  }
  .oc-hdr.oc-shrunk { padding: 6px 18px; box-shadow: 2px 2px 0 var(--pri-dk); }

  .oc-brand { display: flex; align-items: center; gap: 10px; font-family: var(--ff-h); font-size: var(--fs-xl); color: var(--pri); }
  .oc-brand svg { width: 34px; height: 34px; }
  .oc-brand-mark { font-weight: 700; letter-spacing: -.02em; }
  .oc-brand-mark em { color: var(--acc); font-style: normal; }

  .oc-nav {
    display: flex; align-items: center; gap: var(--sp-5);
    font-size: var(--fs-sm);
  }
  .oc-nav a { color: var(--pri); padding: 6px 4px; position: relative; }
  .oc-nav a:hover { color: var(--acc-dk); }
  .oc-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 3px; background: var(--acc);
    border-radius: 2px;
  }

  .oc-hdr-actions { display: flex; align-items: center; gap: 10px; }

  /* search bar (facet: header_search=full_bar) */
  .oc-search {
    display: flex; align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 6px 4px 12px;
    gap: 6px;
    min-width: 180px;
  }
  .oc-search input { flex: 1; font-size: var(--fs-sm); padding: 4px 0; min-width: 0; }
  .oc-search button { padding: 6px 10px; border-radius: 999px; background: var(--pri); color: var(--paper); font-size: var(--fs-xs); }
  .oc-search button svg { width: 14px; height: 14px; }
  @media (max-width: 1024px) { .oc-search { display: none; } }

  /* lang switch dropdown */
  .oc-lang {
    position: relative;
    font-size: var(--fs-sm);
  }
  .oc-lang summary {
    list-style: none;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
  }
  .oc-lang summary::-webkit-details-marker { display: none; }
  .oc-lang[open] summary { background: var(--pri); color: var(--paper); border-color: var(--pri); }
  .oc-lang-menu {
    position: absolute; top: 110%; inset-inline-end: 0;
    background: var(--paper);
    border: 2px double var(--pri);
    border-radius: var(--r-md);
    padding: 6px;
    min-width: 140px;
    box-shadow: var(--sh-soft);
    z-index: 5;
  }
  .oc-lang-menu a { display: block; padding: 6px 10px; border-radius: var(--r-sm); }
  .oc-lang-menu a:hover { background: var(--paper-2); }

  /* hamburger button — hidden on desktop */
  .oc-hburg { display: none; padding: 6px 10px; border-radius: var(--r-sm); border: 1px solid var(--pri); }
  .oc-hburg svg { width: 20px; height: 20px; }
  @media (max-width: 860px) {
    .oc-nav, .oc-hdr-actions .oc-cta { display: none; }
    .oc-hburg { display: inline-flex; }
  }

  /* MOBILE DRAWER — CSS-driven (visibility + opacity + transition) */
  .oc-drawer-backdrop {
    position: fixed; inset: 0;
    background: rgba(13, 10, 26, .5);
    backdrop-filter: blur(4px);
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility 0s linear .3s;
  }
  .oc-drawer {
    position: fixed;
    top: 0; inset-inline-end: 0;
    width: min(88vw, 340px);
    height: 100vh;
    background: var(--paper);
    border-inline-start: 3px double var(--pri);
    padding: var(--sp-5);
    z-index: 101;
    visibility: hidden;
    opacity: 0;
    transform: translateX(20%);
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
    display: flex; flex-direction: column; gap: var(--sp-4);
    overflow-y: auto;
  }
  [dir="rtl"] .oc-drawer { transform: translateX(-20%); }
  body.oc-drawer-open .oc-drawer,
  body.oc-drawer-open .oc-drawer-backdrop {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }
  body.oc-drawer-open .oc-drawer { transform: translateX(0); }

  .oc-drawer-close {
    align-self: flex-end;
    padding: 6px 10px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
  }
  .oc-drawer nav { display: flex; flex-direction: column; gap: 4px; }
  .oc-drawer nav a { padding: 10px 12px; border-radius: var(--r-sm); font-size: var(--fs-md); }
  .oc-drawer nav a:hover { background: var(--paper-2); }

  /* HERO — asymmetric collage */
  .oc-hero {
    padding: clamp(2rem, 6vw, 4rem) 0 var(--sp-8);
    position: relative;
  }
  .oc-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: var(--sp-7);
    align-items: start;
  }
  @media (max-width: 900px) {
    .oc-hero-grid { grid-template-columns: 1fr; }
  }

  .oc-hero-copy > * + * { margin-top: var(--sp-4); }
  .oc-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--ff-m);
    font-size: var(--fs-xs);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pri);
    background: var(--acc-lt);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--acc);
  }
  .oc-hero h1 { line-height: 1.05; }
  .oc-hero h1 em { font-style: italic; color: var(--acc); font-family: var(--ff-h); }
  .oc-hero-sub { font-size: var(--fs-md); color: var(--ink-2); max-width: 46ch; }

  .oc-kpi { display: flex; flex-wrap: wrap; gap: 8px; }
  .oc-kpi li {
    font-size: var(--fs-xs);
    font-family: var(--ff-m);
    padding: 4px 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .oc-kpi li b { color: var(--acc-dk); font-weight: 700; }

  /* HERO FORM WIDGET */
  .oc-hero-form {
    background: var(--paper);
    border: 2px double var(--pri);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    box-shadow: var(--sh-2);
    position: relative;
  }
  .oc-hero-form::before {
    content: "topup ↗"; position: absolute;
    top: -14px; inset-inline-start: 20px;
    background: var(--acc); color: var(--paper);
    font-family: var(--ff-m); font-size: var(--fs-xs);
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: .05em;
  }
  .oc-hero-form h2 {
    font-size: var(--fs-xl);
    margin-bottom: var(--sp-4);
  }

  /* memphis squiggle decoration */
  .oc-squig {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: .35;
  }
  .oc-squig-1 { top: 10%; right: -40px; width: 120px; color: var(--acc); }
  [dir="rtl"] .oc-squig-1 { right: auto; left: -40px; }
  .oc-squig-2 { bottom: -20px; left: 40%; width: 100px; color: var(--pri); }

  /* FOOTER */
  .oc-ftr {
    margin-top: var(--sp-9);
    background: var(--pri);
    color: var(--paper);
    padding: var(--sp-8) 0 var(--sp-5);
    border-top: 6px double var(--acc);
  }
  .oc-ftr h4 { color: var(--paper); font-family: var(--ff-h); font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
  .oc-ftr a { color: var(--paper); opacity: .82; }
  .oc-ftr a:hover { opacity: 1; color: var(--acc-lt); }
  .oc-ftr .oc-legal-links {
    display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
    font-size: var(--fs-sm);
    margin-top: var(--sp-5);
    padding-top: var(--sp-4);
    border-top: 1px dashed rgba(245, 243, 238, .2);
  }
  .oc-ftr-brand { display: flex; align-items: center; gap: 10px; font-family: var(--ff-h); font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
  .oc-ftr-brand svg { width: 34px; height: 34px; }
  .oc-ftr-copy { font-size: var(--fs-sm); opacity: .7; margin-top: var(--sp-5); }
  .oc-ftr-flag { display: inline-flex; gap: 6px; align-items: center; font-size: var(--fs-xs); background: rgba(245, 243, 238, .1); padding: 4px 10px; border-radius: 999px; margin-top: var(--sp-3); }
  .oc-ftr-flag svg { width: 16px; height: 12px; }

  .oc-ftr-news {
    background: var(--pri-lt);
    border-radius: var(--r-md);
    padding: var(--sp-4);
    margin-top: var(--sp-4);
    max-width: 340px;
  }
  .oc-ftr-news p { color: var(--paper); font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
  .oc-ftr-news form { display: flex; gap: 6px; }
  .oc-ftr-news input {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    background: var(--paper);
    color: var(--ink);
    font-size: var(--fs-sm);
    min-width: 0;
  }
  .oc-ftr-news button {
    padding: 8px 14px;
    background: var(--acc);
    color: var(--paper);
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    font-weight: 600;
  }
}

/* -----------------------------------------------------------
   COMPONENTS
----------------------------------------------------------- */
@layer components {

  /* BUTTONS — asymmetric shape (btn_shape=asymmetric) */
  .oc-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    font-family: var(--ff-b);
    font-weight: 600;
    font-size: var(--fs-base);
    padding: 14px 26px;
    border-radius: var(--r-lg) 4px var(--r-lg) 4px; /* asymmetric */
    background: var(--pri);
    color: var(--paper);
    text-align: center;
    transition: transform .12s ease, box-shadow .12s ease;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    box-shadow: var(--sh-1);
  }
  .oc-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--pri-dk); }
  .oc-btn:active { transform: translate(0, 0); box-shadow: 1px 1px 0 var(--pri-dk); }
  .oc-btn--acc { background: var(--acc); box-shadow: 3px 3px 0 var(--pri); }
  .oc-btn--acc:hover { box-shadow: 5px 5px 0 var(--pri); }
  .oc-btn--acc:active { box-shadow: 1px 1px 0 var(--pri); }
  .oc-btn--outline {
    background: transparent;
    color: var(--pri);
    border: 2px solid var(--pri);
    box-shadow: none;
  }
  .oc-btn--outline:hover { background: var(--pri); color: var(--paper); box-shadow: var(--sh-1); }
  .oc-btn--sm { padding: 8px 16px; font-size: var(--fs-sm); min-height: 40px; }
  .oc-btn--full { width: 100%; }
  .oc-cta { padding: 10px 18px; }

  /* ripple micro-interaction */
  .oc-btn::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(245, 243, 238, .4) 0, transparent 40%);
    opacity: 0; transition: opacity .5s ease;
  }
  .oc-btn:active::after { opacity: 1; transition: none; }

  /* FORM */
  .oc-form { display: flex; flex-direction: column; gap: var(--sp-4); }
  .oc-field { display: flex; flex-direction: column; gap: 6px; }
  .oc-field label { font-size: var(--fs-sm); font-weight: 600; color: var(--pri); }
  .oc-field .oc-hint { font-size: var(--fs-xs); color: var(--ink-2); }
  .oc-field .oc-err { font-size: var(--fs-xs); color: var(--acc-dk); font-weight: 600; min-height: 1em; }
  .oc-input, .oc-select, .oc-textarea {
    padding: 12px 14px;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    font-size: var(--fs-base);
    color: var(--ink);
    min-height: 48px;
    transition: border-color .15s ease, background .15s ease;
  }
  .oc-input:focus, .oc-select:focus, .oc-textarea:focus {
    outline: none;
    border-color: var(--pri);
    background: #fff;
  }
  .oc-input[aria-invalid="true"] { border-color: var(--acc-dk); background: #fff5f5; }
  .oc-textarea { min-height: 120px; resize: vertical; font-family: var(--ff-b); }

  /* phone input group */
  .oc-phone {
    display: flex; align-items: stretch;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--paper);
    overflow: hidden;
  }
  .oc-phone:focus-within { border-color: var(--pri); background: #fff; }
  .oc-phone-cc {
    display: inline-flex; align-items: center;
    padding: 0 14px;
    background: var(--paper-2);
    font-family: var(--ff-m);
    font-size: var(--fs-sm);
    color: var(--pri);
    border-inline-end: 1px solid var(--line);
  }
  .oc-phone input { flex: 1; padding: 12px 14px; border: 0; font-family: var(--ff-m); min-width: 0; min-height: 48px; }
  .oc-phone input:focus { outline: none; }

  /* CHIPS — preset amount picker */
  .oc-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
  }
  .oc-chip {
    position: relative;
    display: block;
  }
  .oc-chip input {
    position: absolute; inset: 0;
    opacity: 0;
    cursor: pointer;
  }
  .oc-chip span {
    display: block;
    text-align: center;
    padding: 12px 8px;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    font-family: var(--ff-m);
    font-size: var(--fs-base);
    color: var(--pri);
    min-height: 48px;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s ease;
    cursor: pointer;
  }
  .oc-chip input:hover ~ span,
  .oc-chip:hover span { border-color: var(--pri); }
  .oc-chip input:checked ~ span,
  .oc-chip:has(input:checked) span,
  .oc-chip.is-on span {
    background: var(--pri);
    color: var(--paper);
    border-color: var(--pri);
    box-shadow: 2px 2px 0 var(--acc);
    transform: translate(-1px, -1px);
  }

  /* honeypot — visually hidden */
  .oc-hp {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* CARDS — frame_baroque */
  .oc-card {
    background: var(--paper);
    border: 2px double var(--pri);
    border-radius: var(--r-md);
    padding: var(--sp-5);
    position: relative;
    box-shadow: var(--sh-1);
  }
  .oc-card--acc { border-color: var(--acc); box-shadow: 3px 3px 0 var(--acc); }
  .oc-card-num {
    position: absolute;
    top: -14px; inset-inline-start: 20px;
    background: var(--acc);
    color: var(--paper);
    font-family: var(--ff-m);
    font-size: var(--fs-sm);
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
  }
  .oc-card h3 { margin-bottom: var(--sp-2); font-size: var(--fs-lg); }

  /* SECTIONS */
  .oc-sec { padding: var(--sp-8) 0; position: relative; z-index: 2; }
  .oc-sec-eyebrow {
    display: inline-block;
    font-family: var(--ff-m);
    font-size: var(--fs-xs);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--acc-dk);
    background: var(--paper-2);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: var(--sp-3);
  }
  .oc-sec h2 { margin-bottom: var(--sp-2); max-width: 22ch; }
  .oc-sec-lede { font-size: var(--fs-md); color: var(--ink-2); max-width: 55ch; margin-bottom: var(--sp-6); }

  /* HOW IT WORKS steps */
  .oc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-5); counter-reset: st; }
  .oc-step {
    position: relative;
    padding: var(--sp-5) var(--sp-4) var(--sp-4);
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    background: var(--paper);
    counter-increment: st;
  }
  .oc-step::before {
    content: counter(st, decimal-leading-zero);
    position: absolute;
    top: -18px; inset-inline-start: 20px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--acc);
    color: var(--paper);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ff-m);
    font-weight: 700;
    box-shadow: 2px 2px 0 var(--pri);
  }
  .oc-step h4 { margin: 0 0 6px; color: var(--pri); }
  .oc-step p { font-size: var(--fs-sm); color: var(--ink-2); }

  /* COVERAGE strip — displayed as newspaper column list */
  .oc-cov {
    columns: 3;
    column-gap: var(--sp-5);
    column-rule: 1px solid var(--line);
    font-family: var(--ff-h);
    font-size: var(--fs-md);
    line-height: 1.9;
    padding: var(--sp-5) 0;
    border-top: 4px double var(--pri);
    border-bottom: 4px double var(--pri);
  }
  .oc-cov li { break-inside: avoid; padding-inline-start: 20px; position: relative; }
  .oc-cov li::before { content: "◆"; position: absolute; inset-inline-start: 0; color: var(--acc); }
  @media (max-width: 720px) { .oc-cov { columns: 2; } }
  @media (max-width: 480px) { .oc-cov { columns: 1; } }

  /* TESTIMONIALS carousel — horizontal scroll snap */
  .oc-tests {
    display: flex;
    gap: var(--sp-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-block: var(--sp-3);
    margin-inline: calc(-1 * clamp(1rem, 4vw, 2rem));
    padding-inline: clamp(1rem, 4vw, 2rem);
    scrollbar-width: thin;
  }
  .oc-test {
    flex: 0 0 min(340px, 82vw);
    scroll-snap-align: start;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--sp-5);
    position: relative;
  }
  .oc-test::before {
    content: "“";
    position: absolute;
    top: 6px; inset-inline-start: 12px;
    font-family: var(--ff-h);
    font-size: 4rem;
    line-height: 1;
    color: var(--acc);
    opacity: .3;
  }
  .oc-test p { font-family: var(--ff-h); font-size: var(--fs-md); font-style: italic; margin-bottom: var(--sp-3); }
  .oc-test cite { display: flex; align-items: center; gap: 10px; font-style: normal; font-size: var(--fs-sm); color: var(--ink-2); }
  .oc-test cite b {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    background: var(--pri);
    color: var(--paper);
    border-radius: 50%;
    font-family: var(--ff-h);
    font-size: var(--fs-sm);
  }

  /* COUNTER STATS — 4 numbers */
  .oc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--sp-4);
    padding: var(--sp-6) 0;
  }
  .oc-stat {
    text-align: center;
    padding: var(--sp-4);
    border-inline-end: 1px solid var(--line);
  }
  .oc-stat:last-child { border-inline-end: 0; }
  .oc-stat b { display: block; font-family: var(--ff-h); font-size: var(--fs-4xl); color: var(--acc); line-height: 1; }
  .oc-stat span { font-size: var(--fs-sm); color: var(--ink-2); }

  /* FAQ teaser using <details> */
  .oc-faq { border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
  .oc-faq details { border-bottom: 1px solid var(--line); }
  .oc-faq details:last-child { border-bottom: 0; }
  .oc-faq summary {
    padding: var(--sp-4) var(--sp-5);
    font-weight: 600;
    color: var(--pri);
    cursor: pointer;
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    gap: var(--sp-4);
    font-size: var(--fs-md);
  }
  .oc-faq summary::-webkit-details-marker { display: none; }
  .oc-faq summary::after {
    content: "+";
    font-family: var(--ff-m);
    font-size: var(--fs-xl);
    color: var(--acc);
  }
  .oc-faq details[open] summary::after { content: "−"; }
  .oc-faq summary:hover { background: var(--paper-2); }
  .oc-faq details > div { padding: 0 var(--sp-5) var(--sp-5); color: var(--ink-2); }

  /* CONTACT STRIP */
  .oc-contact-strip {
    background: var(--pri);
    color: var(--paper);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: var(--sp-6);
    align-items: center;
    position: relative;
    overflow: hidden;
  }
  @media (max-width: 800px) { .oc-contact-strip { grid-template-columns: 1fr; } }
  .oc-contact-strip h2 { color: var(--paper); }
  .oc-contact-strip a { color: var(--acc-lt); border-bottom: 1px dashed currentColor; }
  .oc-contact-strip::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 90% -10%, rgba(214, 69, 69, .25), transparent 40%);
    pointer-events: none;
  }
  .oc-contact-methods { display: flex; flex-direction: column; gap: var(--sp-3); position: relative; z-index: 1; }
  .oc-contact-methods li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); }
  .oc-contact-methods li svg { width: 20px; height: 20px; color: var(--acc-lt); flex-shrink: 0; margin-top: 3px; }

  /* DIALOG (thanks modal) */
  .oc-modal {
    max-width: 480px;
    width: min(92vw, 480px);
    background: var(--paper);
    border: 3px double var(--pri);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    box-shadow: var(--sh-3);
    text-align: center;
  }
  .oc-modal h3 { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); color: var(--pri); }
  .oc-modal p { max-width: none; margin: 0 auto var(--sp-4); }
  .oc-modal-close {
    position: absolute;
    top: 12px; inset-inline-end: 12px;
    padding: 6px 10px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    font-size: var(--fs-sm);
    background: var(--paper);
  }
  .oc-modal svg.oc-ok {
    width: 64px; height: 64px;
    margin: 0 auto var(--sp-3);
    color: var(--acc);
  }

  /* TOAST — inline (facet: toast_position=inline) */
  .oc-toast {
    padding: 10px 14px;
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    background: var(--pri);
    color: var(--paper);
    border-inline-start: 4px solid var(--acc);
    animation: oc-slide .3s ease-out;
  }
  @keyframes oc-slide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* VERTICAL SCROLL THREAD (right side) */
  .oc-thread {
    position: fixed;
    top: 50%; inset-inline-end: 12px;
    transform: translateY(-50%);
    width: 2px; height: 220px;
    background: var(--line);
    z-index: 10;
    pointer-events: none;
  }
  .oc-thread::before {
    content: ""; position: absolute;
    top: 0; left: -2px; right: -2px;
    height: var(--oc-progress, 0%);
    background: var(--acc);
    transition: height .15s ease;
  }
  @media (max-width: 900px) { .oc-thread { display: none; } }

  /* SCROLL TO TOP (minimal_dot) */
  .oc-top {
    position: fixed;
    bottom: 20px; inset-inline-end: 20px;
    width: 40px; height: 40px;
    background: var(--acc);
    color: var(--paper);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--sh-1);
    z-index: 15;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s, transform .3s;
    pointer-events: none;
  }
  .oc-top.oc-vis { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .oc-top svg { width: 20px; height: 20px; }

  /* MOUSE TRAIL */
  .oc-trail {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: var(--acc);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity .3s;
  }
  @media (hover: none), (prefers-reduced-motion: reduce) { .oc-trail { display: none; } }

  /* CUSTOM CURSOR ring — only on desktop pointer */
  @media (hover: hover) and (pointer: fine) {
    .oc-cursor {
      position: fixed;
      top: 0; left: 0;
      width: 24px; height: 24px;
      border: 2px solid var(--pri);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9998;
      transform: translate(-50%, -50%);
      transition: width .2s, height .2s, border-color .2s, opacity .3s;
      mix-blend-mode: difference;
      opacity: 0;
    }
    .oc-cursor.oc-vis { opacity: 1; }
  }

  /* LOADING SPINNER — scanline */
  .oc-spin {
    display: inline-block;
    width: 60px; height: 30px;
    background: linear-gradient(90deg, transparent 0, var(--acc) 50%, transparent 100%);
    background-size: 40% 100%;
    background-repeat: no-repeat;
    animation: oc-scan 1s linear infinite;
    border-radius: 4px;
    background-color: var(--paper-2);
  }
  @keyframes oc-scan {
    0% { background-position: -60% 0; }
    100% { background-position: 160% 0; }
  }

  /* CONFETTI dots */
  .oc-conf {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 200;
    overflow: hidden;
  }
  .oc-conf i {
    position: absolute;
    top: -20px;
    width: 8px; height: 12px;
    background: var(--acc);
    animation: oc-fall linear forwards;
  }
  .oc-conf i:nth-child(3n) { background: var(--pri); width: 6px; height: 6px; border-radius: 50%; }
  .oc-conf i:nth-child(5n) { background: var(--acc-lt); }
  @keyframes oc-fall {
    to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
  }

  /* MAP */
  .oc-map {
    width: 100%; height: 340px;
    border: 2px double var(--pri);
    border-radius: var(--r-md);
    filter: grayscale(.2);
  }

  /* callout */
  .oc-callout {
    padding: var(--sp-4) var(--sp-5);
    background: var(--paper-2);
    border-inline-start: 4px solid var(--acc);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    font-family: var(--ff-h);
    font-style: italic;
    font-size: var(--fs-md);
    color: var(--pri);
    margin: var(--sp-5) 0;
  }
  [dir="rtl"] .oc-callout {
    border-inline-start: 0;
    border-inline-end: 4px solid var(--acc);
    border-radius: var(--r-md) 0 0 var(--r-md);
  }

  /* whatsapp button in floating position */
  .oc-wa {
    position: fixed;
    bottom: 20px; inset-inline-start: 20px;
    background: #25d366;
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: var(--fs-sm);
    box-shadow: var(--sh-soft);
    display: inline-flex; align-items: center; gap: 8px;
    z-index: 15;
  }
  .oc-wa svg { width: 20px; height: 20px; }
}

/* -----------------------------------------------------------
   UTILITIES
----------------------------------------------------------- */
@layer utils {
  .oc-sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
  .oc-mt-4 { margin-top: var(--sp-4); }
  .oc-mt-6 { margin-top: var(--sp-6); }
  .oc-mt-8 { margin-top: var(--sp-8); }
  .oc-mb-2 { margin-bottom: var(--sp-2); }
  .oc-mb-4 { margin-bottom: var(--sp-4); }
  .oc-mb-6 { margin-bottom: var(--sp-6); }
  .oc-tc { text-align: center; }
  .oc-flex { display: flex; }
  .oc-fw { flex-wrap: wrap; }
  .oc-g-2 { gap: var(--sp-2); }
  .oc-g-3 { gap: var(--sp-3); }
  .oc-g-4 { gap: var(--sp-4); }
  .oc-muted { color: var(--ink-2); }
  .oc-acc { color: var(--acc-dk); }
  .oc-mono { font-family: var(--ff-m); }
  .oc-serif { font-family: var(--ff-h); }
}

/* -----------------------------------------------------------
   PRINT
----------------------------------------------------------- */
@media print {
  .oc-hdr-wrap, .oc-annc, .oc-thread, .oc-top, .oc-wa, .oc-drawer, .oc-drawer-backdrop, .oc-cursor, .oc-trail, .oc-conf { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* -----------------------------------------------------------
   REDUCED MOTION
----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .oc-trail, .oc-cursor { display: none !important; }
}
