/* =====================================================================
   SA Media theme: Apple's colours.

   The palette follows apple.com: white and Apple's light grey (#F5F5F7)
   for grounds, near-black (#1D1D1F) for text with greys for anything
   secondary, a single accent (Apple blue, #0071E3) for buttons and links,
   black for the dramatic sections, and the multicolour Apple
   Intelligence gradient kept for a few special moments.

   Every public page links this file last in <head>, so it wins the
   cascade and is the one place the palette lives. Pages only ever refer
   to the tokens below -- to change a colour across the whole site,
   change it here.

   The internal /sa-studio tool deliberately does not load this file:
   the invoices and agreements it prints match the PDFs already sent to
   clients.
   ===================================================================== */

:root {
  /* Palette */
  --accent: #0071E3;                  /* Apple blue: buttons, links, active */
  --accent-hi: #2997FF;               /* Apple's lighter blue, for use on dark */
  --dark: #1D1D1F;                    /* Apple's near-black */
  --ink: #0B0B0F;                     /* the logo: black */
  --grad: linear-gradient(90deg, #0090F7 0%, #BA62FC 52%, #F2416B 100%);
  --purple: #BF5AF2;                  /* iOS system purple, for variety in mockups */

  /* Roles */
  --bg: #FFFFFF;                      /* page ground */
  --bg-alt: #F5F5F7;                  /* Apple's light grey ground and tiles */
  --surface: #F5F5F7;                 /* inputs, quiet panels */
  --fg: #1D1D1F;                      /* headings and body text */
  --muted: #6E6E73;
  --faint: #86868B;
  --line: #D2D2D7;
  --line-strong: rgba(0,113,227,.45);
  --tint: rgba(29,29,31,.04);
  --ring: rgba(0,113,227,.22);
  --danger: #E30000;
  --danger-line: rgba(227,0,0,.35);
  --danger-bg: rgba(227,0,0,.05);
  --live: #34C759;
  --concept: #FF9F0A;

  /* Tiles. Apple keeps cards flat: a grey tile on white, no border, no
     shadow. The names stay "glass" because every page already uses them. */
  --glass: #F5F5F7;
  --glass-hi: rgba(255,255,255,.86);
  --glass-edge: transparent;
  --blur: saturate(180%) blur(20px);
  --glass-shadow: none;
  --shadow-hover: rgba(29,29,31,.12);
  --shadow-float: rgba(0,113,227,.35);
  --radius: 24px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2,.8,.2,1);

  color-scheme: light;
}

/* apple.com has no background decoration; the old light pools and grain
   layers are switched off */
body::before, body::after { content: none; display: none; }

::selection { background: rgba(0,113,227,.24); color: var(--fg); }

/* ---------- Chrome --------------------------------------------------- */
#loader { background: var(--bg); }
#loader svg { color: var(--ink); }
#loader .bar { background: var(--line); border-radius: 2px; }
#loader .bar i { background: var(--grad); }

#progress { height: 3px; background: var(--grad); }

#cursor {
  border: 1.5px solid rgba(29,29,31,.35);
  background: rgba(255,255,255,.18);
  mix-blend-mode: normal;
}
#cursor.hot { background: rgba(0,113,227,.10); border-color: rgba(0,113,227,.55); }

/* Floating capsule in iOS liquid glass: mostly clear, strongly blurred,
   with a bright rim on top and a soft shade underneath so the edge of
   the glass reads even over a white page */
nav {
  top: 12px; left: 12px; right: 12px;
  max-width: 1100px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,.52), rgba(255,255,255,.26));
  -webkit-backdrop-filter: blur(24px) saturate(200%); backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.95),
    inset 0 -1px 1px rgba(0,0,0,.05),
    inset 0 0 0 .5px rgba(0,0,0,.06),
    0 10px 34px -12px rgba(0,0,0,.22);
}
nav .wrap { padding: 0 9px 0 22px; }
.nav-inner { height: 60px; gap: 16px; }
.brand, .brand svg { color: var(--ink); }
.nav-links { gap: 30px; }
.nav-links a { font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--fg); opacity: .8; }
.nav-links a:hover, .nav-links a.current { color: var(--fg); opacity: 1; }
.nav-end { display: flex; align-items: center; gap: 12px; }
.nav-cta { padding: 9px 18px; font-size: 13px; }
.nav-end .menu-btn { width: 30px; margin-right: 8px; }

#mobile-drawer {
  inset: 84px 12px auto 12px;
  max-height: calc(100svh - 96px);
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.55));
  -webkit-backdrop-filter: blur(28px) saturate(200%); backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 0 0 .5px rgba(0,0,0,.06), 0 24px 50px -24px rgba(0,0,0,.3);
  transform: translateX(calc(100% + 24px));
  /* Hidden while closed so its links are not focusable and it never
     shows mid-flight if its resting position changes */
  visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
}
#mobile-drawer.open { transform: translateX(0); visibility: visible; transition: transform .45s var(--ease); }
#mobile-drawer a { border-bottom-color: var(--line); font-size: 26px; padding: 13px 0; }

/* ---------- Buttons: Apple's blue pill ------------------------------- */
.btn {
  background: var(--accent);
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none;
  box-shadow: none;
  transition: background .2s, transform .35s var(--ease), color .2s, border-color .2s;
}
.btn:hover { opacity: 1; background: #0077ED; }
.btn:active { transform: scale(.98); }
.btn.ghost {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
}
.btn.ghost:hover { background: var(--accent); color: #fff !important; }

/* ---------- Type accents ---------------------------------------------
   Apple's two-tone headline: the second phrase in grey, not a colour */
.label { color: var(--muted); }
.label::before { background: var(--line); height: 2px; border-radius: 2px; }
h1 .thin, h2 .thin { color: var(--faint); -webkit-text-stroke: 0; }
blockquote::before, blockquote::after { color: var(--faint); }

/* ---------- Sections ------------------------------------------------- */
section { border-top: 0; }

/* ---------- Tiles ----------------------------------------------------
   One treatment for every card-like block: Apple's flat grey tile. */
.result-card, .testi, .step, .proof-stat, .founder, .ig-card,
.p-card, .portrait, .note, .contact-form, .faq details {
  background: var(--glass);
  border: 0;
  border-radius: var(--radius);
  box-shadow: none;
}
.step:hover, .p-card:hover { box-shadow: 0 20px 40px -24px var(--shadow-hover); }
.step .num { color: var(--fg); }
.result-card .tag strong { color: var(--fg); }

/* FAQ as a stack of grey rows */
.faq details { padding: 0 24px; margin-bottom: 10px; }
.faq details:last-child { border-bottom: 0; }
.faq summary { padding: 22px 0; }
.faq summary::after { color: var(--accent); }
.faq details p { padding: 0 0 22px; }

/* ---------- Forms ---------------------------------------------------- */
.contact-form { padding: 28px; border-radius: 28px; }
.contact-form input, .contact-form textarea, .contact-form select, .choice span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--fg);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
  background: #fff;
}
.choice span:hover { border-color: var(--faint); color: var(--fg); }
.choice input:checked + span { border-color: var(--accent); color: var(--fg); background: rgba(0,113,227,.05); }
.choice input:checked + span::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px #fff; }
.choice input:focus-visible + span { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.fieldset > legend { color: var(--fg); }

#thanks .tick { background: var(--bg-alt); border-color: transparent; }
#thanks .tick svg { stroke: var(--accent); }

/* ---------- Call-to-action band: a black Apple slab ------------------ */
.cta-band { background: transparent; padding: 40px 0; }
.cta-band > .wrap {
  --fg: #F5F5F7; --muted: #A1A1A6;
  width: calc(100% - 32px); max-width: 1212px;
  padding: 80px 32px;
  border-radius: 32px;
  color: #F5F5F7;
  background: #000;
  overflow: hidden;
}
.cta-band h2 { color: #F5F5F7; }
.cta-band h2 .thin { color: #86868B; -webkit-text-stroke: 0; }

/* ---------- Footer: Apple's light grey ------------------------------- */
footer {
  color: var(--muted);
  background: var(--bg-alt);
  border-top: 0;
  margin-top: 48px;
}
footer .brand, footer .brand svg { color: var(--ink); }
footer a:hover { color: var(--fg); }

/* ---------- WhatsApp float ------------------------------------------- */
#wa-float {
  background: var(--accent);
  box-shadow: 0 14px 30px -12px var(--shadow-float);
}
#wa-float svg { fill: #fff; }
