/* =========================================================
   Public website (plan 10-website.md). Loaded after theme.css, which stays the shared theme.
   1. The mockup's LANDING block of guardios.css (data-layout="site"), plus the 2026-11-18
      "Business (blue) accents" l- rules (.btn-blue and .text-blue are in theme.css). Verbatim
      except: text in the dim colour uses --g-dim-text (P2 Q1, WCAG AA: .l-feature .who,
      .l-footer, .l-marquee), and .l-demo-line moved to section 3 (hero demo states).
   2. Classes replacing the mockup's style="" attributes (CSP style-src 'self', W-5).
   3. The site menu and the hero demo's animation states (W-4, W-5).
   ========================================================= */

/* ---------- 1. Landing (mockup guardios.css lines 286-360, 380-382) ---------- */
body[data-layout="site"] { background: var(--g-bg); }
.l-nav { position: sticky; top: 0; z-index: 1030; padding: calc(0.7rem + env(safe-area-inset-top)) 0 0.7rem; background: rgba(5, 9, 11, 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--g-line); }
.l-nav .l-links a { color: var(--g-muted); font-weight: 500; font-size: 0.92rem; }
.l-nav .l-links a:hover { color: #fff; }

.l-section { padding: 4.5rem 0; position: relative; }
.l-section.tight { padding: 3rem 0; }
.l-section + .l-section { border-top: 1px solid var(--g-line); }
.l-h2 { font-size: clamp(1.75rem, 6vw, 2.75rem); line-height: 1.1; margin: 0.6rem 0 0.9rem; }
.l-lead { color: var(--g-muted); font-size: 1.05rem; max-width: 620px; }

.l-hero { padding: 2.8rem 0 3.5rem; overflow: hidden; position: relative; }
.l-hero::before { content: ""; position: absolute; inset: -20% -30% auto; height: 120%; background: radial-gradient(50% 45% at 30% 30%, rgba(46, 229, 157, 0.16), transparent 70%), radial-gradient(40% 40% at 85% 20%, rgba(90, 169, 255, 0.08), transparent 70%); pointer-events: none; }
.l-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--g-line) 1px, transparent 1px), linear-gradient(90deg, var(--g-line) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%); opacity: 0.5; pointer-events: none; }
.l-hero > .container { position: relative; z-index: 1; }
.l-hero h1 { font-size: clamp(2.35rem, 10.5vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; margin: 0.9rem 0 1rem; }
.l-hero h1 em { font-style: normal; color: var(--g-mint); }
.l-hero .l-lead { font-size: 1.1rem; }

.l-phone { width: min(330px, 86vw); margin: 0 auto; border-radius: 44px; padding: 10px; background: linear-gradient(160deg, #2a3336, #0d1214 40%, #1d2629); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 80px -10px rgba(46, 229, 157, 0.18); position: relative; }
.l-phone-screen { border-radius: 35px; background: var(--g-bg); overflow: hidden; height: 560px; position: relative; display: flex; flex-direction: column; }
.l-phone-notch { width: 110px; height: 30px; border-radius: 20px; background: #000; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 3; }
.l-phone-status { display: flex; justify-content: space-between; padding: 14px 26px 6px; font-size: 0.75rem; font-weight: 600; color: #fff; }
.l-phone .g-bubble { font-size: 0.82rem; }

.l-stat { padding: 1.1rem; border: 1px solid var(--g-line); border-radius: var(--g-radius); background: var(--g-surface); }
.l-stat .v { font-family: var(--g-display); font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 700; color: var(--g-mint); line-height: 1; }
.l-stat .l { color: var(--g-muted); font-size: 0.85rem; margin-top: 0.4rem; }

.l-step { display: flex; gap: 1rem; }
.l-step .n { font-family: var(--g-mono); font-size: 0.8rem; color: var(--g-mint); border: 1px solid rgba(46, 229, 157, 0.35); width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center; }

.l-feature { height: 100%; padding: 1.25rem; border-radius: var(--g-radius); border: 1px solid var(--g-line); background: var(--g-surface); transition: border-color 0.2s, transform 0.2s; }
.l-feature:hover { border-color: var(--g-line-2); transform: translateY(-2px); }
.l-feature h3 { font-size: 1.05rem; margin: 0.9rem 0 0.35rem; }
.l-feature p { color: var(--g-muted); font-size: 0.9rem; margin: 0; }
.l-feature .who { font-size: 0.75rem; color: var(--g-dim-text); margin-top: 0.7rem; }
.l-feature.featured { border-color: rgba(46, 229, 157, 0.35); background: radial-gradient(120% 100% at 100% 0%, rgba(46, 229, 157, 0.14), transparent 60%), var(--g-surface); }

.l-signal { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; border-radius: 14px; background: var(--g-surface); border: 1px solid var(--g-line); font-weight: 500; font-size: 0.9rem; }

.l-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--g-surface-2); border: 1px solid var(--g-line); }
.l-tabs .nav-link { border-radius: 999px; color: var(--g-muted); font-weight: 600; padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.l-tabs .nav-link.active { background: var(--g-mint); color: #04130d; }

.l-price { height: 100%; padding: 1.5rem; border-radius: 22px; border: 1px solid var(--g-line); background: var(--g-surface); display: flex; flex-direction: column; }
.l-price.pop { border: 1.5px solid var(--g-mint); background: radial-gradient(100% 60% at 50% 0%, rgba(46, 229, 157, 0.12), transparent 70%), var(--g-surface); }
.l-price .amt { font-family: var(--g-display); font-size: 2.4rem; font-weight: 700; color: #fff; line-height: 1; }
.l-price .amt small { font-size: 0.9rem; color: var(--g-muted); font-weight: 500; }
.l-price ul { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; display: grid; gap: 0.55rem; font-size: 0.9rem; }
.l-price li { display: flex; gap: 0.55rem; color: var(--g-text); }
.l-price li i { color: var(--g-mint); }

.l-umbrella { position: relative; padding: 1.25rem; border-radius: 22px; border: 1px dashed rgba(46, 229, 157, 0.4); background: rgba(46, 229, 157, 0.04); }
.l-umbrella-top { display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1rem; border-radius: 16px; background: var(--g-surface-2); border: 1px solid var(--g-line-2); }
.l-umbrella-kids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 1.4rem; position: relative; }
.l-umbrella-kids::before { content: ""; position: absolute; top: -1.4rem; left: 16%; right: 16%; height: 0.7rem; border: 1px solid var(--g-line-2); border-bottom: 0; border-radius: 10px 10px 0 0; }
.l-umbrella-kid { text-align: center; padding: 0.8rem 0.4rem; border-radius: 14px; background: var(--g-surface); border: 1px solid var(--g-line); font-size: 0.78rem; }

.l-cta { border-radius: 28px; padding: 2.2rem 1.4rem; background: radial-gradient(80% 120% at 0% 0%, rgba(46, 229, 157, 0.22), transparent 60%), radial-gradient(60% 100% at 100% 100%, rgba(90, 169, 255, 0.12), transparent 60%), var(--g-surface); border: 1px solid var(--g-line-2); }
.l-footer { padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--g-line); color: var(--g-dim-text); font-size: 0.85rem; }
.l-footer a { color: var(--g-muted); }
.l-footer a:hover { color: #fff; }
.l-marquee { display: flex; gap: 2.2rem; flex-wrap: wrap; justify-content: center; color: var(--g-dim-text); font-family: var(--g-display); font-weight: 600; font-size: 0.95rem; }

@media (min-width: 992px) {
  .l-hero { padding: 5rem 0 5.5rem; }
  .l-section { padding: 6.5rem 0; }
  .l-cta { padding: 3.5rem; }
}

/* Business (blue) accents, 2026-11-18 delivery */
.l-tabs .nav-link.biz.active { background: var(--g-blue); color: #04101f; }
.l-biz .l-price li i { color: var(--g-blue); }
.l-biz .l-price.pop { border-color: var(--g-blue); background: radial-gradient(100% 60% at 50% 0%, rgba(90, 169, 255, 0.16), transparent 70%), var(--g-surface); }

/* ---------- 2. Replacements for the mockup's style="" attributes ---------- */
.btn-icon.l-menu-btn { width: 38px; height: 38px; }
.l-phone-head { border-color: var(--g-line) !important; }
.l-phone-caller { font-size: 0.88rem; }
.l-phone-sub { font-size: 0.72rem; }
.l-demo-risk { padding: 0.75rem 0.9rem; transition: background 0.6s; }
.l-demo-risk .g-risk-label { font-size: 0.95rem; }
.l-demo-risk .g-risk-meta { font-size: 0.7rem; }
.l-demo-risk .g-risk-score { font-size: 1.6rem; }
.l-demo-transcript { overflow: hidden; }
.l-demo-actions { transition: opacity 0.5s; }
.l-demo-advice { font-size: 0.78rem; }
.l-ring .g-ring .v { font-size: 1.3rem; }
.l-price .amt.l-amt-text { font-size: 1.8rem; }
.l-narrow { max-width: 820px; }
.l-note { font-size: 0.75rem; }

/* ---------- 3. Site menu, language switcher, hero demo states ---------- */
/* Header on phones (real-device report 2026-11-22: "Get protected" wrapped). The buttons never
   wrap, and below 420px the brand shows the logo only (the link keeps aria-label="Guardios").
   Sized for text scaling: Android's font-size setting scales every font, px and vw included,
   so a breakpoint cannot follow it; logo + button + menu still fit 320px at 150% text. */
.l-nav .btn { white-space: nowrap; }
.l-nav .l-nav-brand { min-width: 0; }
@media (max-width: 419.98px) {
  .l-nav .l-nav-brand span { display: none; }
}
/* The menu button is only needed where the top nav links are hidden (W-4). */
.l-menu-actions { display: grid; gap: 0.5rem; padding: 1rem 0.75rem 0; }

.l-languages { display: flex; gap: 1rem; }

/* Hero demo (website/js/hero-demo.js). Without the script, or with reduced motion, the markup
   shows the final state: every line, the high-risk banner and the actions. The script adds
   .is-animated and then reveals the lines one by one (.show). */
.l-phone.is-animated .l-demo-line { opacity: 0; transform: translateY(8px); transition: all 0.45s ease; }
.l-phone.is-animated .l-demo-line.show { opacity: 1; transform: none; }
.l-phone.is-animated .l-demo-actions { opacity: 0; }
.l-phone.is-animated .l-demo-actions.show { opacity: 1; }

/* Legal placeholders and the error page (W4, plan §5.3, §5.5) */
.l-legal-section { margin-top: 2rem; }
.l-legal-section p { color: var(--g-muted); }
.l-legal .g-card ul { padding-left: 1.1rem; display: grid; gap: 0.35rem; }
