/* ============================================================
     Wi-Fi Calling and Texting — marketing + legal one-pager
     Conventional product-site layout, the app's royal-purple brand
     palette and app icon. Light-first, with full dark support.
     ============================================================ */

  :root {
    /* neutrals */
    --bg:        #FFFFFF;
    --alt:       #F7F3FE;   /* tinted section band */
    --surface:   #FFFFFF;
    --ink:       #1A1233;   /* textPrimary */
    --ink-soft:  #453B60;
    --muted:     #6B6480;   /* textSecondary */
    --faint:     #9C95B0;   /* textTertiary */
    --line:      #ECE6F6;
    --line-2:    #E1D8F1;

    /* brand (app ThemeConfig) */
    --primary:      #5B2C9F;
    --primary-dark: #4A2380;
    --accent:       #8B5CF6;
    --accent-soft:  #EDE4FB;

    --success: #16A34A;
    --danger:  #E11D48;

    /* hero gradient */
    --hero-a: #6C34C0;
    --hero-b: #4A2380;

    --icon: url("app-icon.png");

    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;

    --maxw: 1120px;
    --measure: 68ch;
    --radius: 16px;

    --shadow-sm: 0 1px 2px rgba(26,18,51,0.05), 0 6px 20px rgba(26,18,51,0.06);
    --shadow-md: 0 12px 34px rgba(26,18,51,0.12);
    --shadow-lg: 0 24px 60px rgba(74,35,128,0.22);
  }

  /* Light is the default in all cases. Dark applies only when the viewer
     explicitly opts in (toggle / artifact theme → data-theme="dark"). */
  :root[data-theme="light"] {
    --bg:#FFFFFF; --alt:#F7F3FE; --surface:#FFFFFF;
    --ink:#1A1233; --ink-soft:#453B60; --muted:#6B6480; --faint:#9C95B0;
    --line:#ECE6F6; --line-2:#E1D8F1;
    --primary:#5B2C9F; --primary-dark:#4A2380; --accent:#8B5CF6; --accent-soft:#EDE4FB;
    --hero-a:#6C34C0; --hero-b:#4A2380;
    --shadow-sm:0 1px 2px rgba(26,18,51,0.05),0 6px 20px rgba(26,18,51,0.06);
    --shadow-md:0 12px 34px rgba(26,18,51,0.12);
    --shadow-lg:0 24px 60px rgba(74,35,128,0.22);
  }
  :root[data-theme="dark"] {
    --bg:#120C22; --alt:#1A1234; --surface:#1C1436;
    --ink:#F1ECFA; --ink-soft:#D7CFEC; --muted:#ADA4C6; --faint:#847A9E;
    --line:#2E2450; --line-2:#382C5E;
    --primary:#B49CFF; --primary-dark:#9B7BFB; --accent:#CBB8FF; --accent-soft:#271C46;
    --hero-a:#432577; --hero-b:#1C1140;
    --shadow-sm:0 1px 2px rgba(0,0,0,0.5),0 6px 18px rgba(0,0,0,0.42);
    --shadow-md:0 12px 34px rgba(0,0,0,0.55);
    --shadow-lg:0 24px 60px rgba(0,0,0,0.62);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--sans); font-size: 17px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  }
  a { color: var(--primary); text-decoration: none; }
  a:hover { text-decoration: underline; }
  :focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
  img { max-width: 100%; }

  .wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

  .appicon {
    background: var(--icon) center / contain no-repeat;
    border-radius: 22.5%; flex: none;
    box-shadow: 0 6px 18px rgba(91,44,159,0.28);
  }

  .label {
    font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--primary);
  }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: inherit; font-weight: 650; font-size: 15.5px; letter-spacing: -0.01em;
    padding: 13px 24px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  }
  .btn:hover { text-decoration: none; transform: translateY(-1px); }
  .btn-primary { background: var(--primary); color: #fff; }
  .btn-primary:hover { background: var(--primary-dark); }
  .btn-outline { background: transparent; color: var(--primary); border-color: var(--line-2); }
  .btn-outline:hover { border-color: var(--primary); background: var(--accent-soft); }

  /* ===================== NAV ===================== */
  header.nav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 18px; }
  .brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -0.015em; color: var(--ink); }
  .brand:hover { text-decoration: none; }
  .brand .appicon { width: 32px; height: 32px; }
  .brand .name { font-size: 16px; }
  .nav-links { display: flex; align-items: center; gap: 6px; }
  .nav-links a {
    font-size: 15px; font-weight: 550; color: var(--muted); padding: 8px 14px; border-radius: 9px;
  }
  .nav-links a:hover { color: var(--ink); background: var(--alt); text-decoration: none; }
  .nav-right { display: flex; align-items: center; gap: 10px; }
  .theme-btn {
    font: inherit; cursor: pointer; color: var(--muted);
    background: var(--alt); border: 1px solid var(--line); width: 36px; height: 36px;
    border-radius: 10px; display: grid; place-items: center;
  }
  .theme-btn:hover { color: var(--ink); }
  .nav-cta { padding: 9px 18px; font-size: 14.5px; }
  .nav-toggle {
    display: none; font: inherit; cursor: pointer; color: var(--ink);
    background: var(--alt); border: 1px solid var(--line); width: 36px; height: 36px;
    border-radius: 10px; place-items: center;
  }
  .mobile-menu { display: none; flex-direction: column; padding: 6px 24px 14px; background: var(--bg); border-top: 1px solid var(--line); }
  .mobile-menu a { padding: 13px 4px; font-size: 16px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
  .mobile-menu a:last-child { border-bottom: none; }
  .mobile-menu a:hover { text-decoration: none; color: var(--primary); }

  /* anchor jumps clear the sticky header */
  section[id], a[id] { scroll-margin-top: 84px; }

  /* ===================== HERO ===================== */
  .hero {
    position: relative; overflow: hidden; color: #fff; text-align: center;
    background: linear-gradient(155deg, var(--hero-a), var(--hero-b));
  }
  #signal { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero-inner { position: relative; z-index: 2; padding: 84px 0 132px; }
  .hero .appicon {
    width: 92px; height: 92px; margin: 0 auto 26px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08);
  }
  .hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.04; letter-spacing: -0.035em;
    font-weight: 800; text-wrap: balance; margin: 12px auto 0; max-width: 16ch;
  }
  .hero p.lede {
    color: rgba(255,255,255,0.82); font-size: clamp(1.06rem, 2.1vw, 1.28rem); line-height: 1.55;
    max-width: 54ch; margin: 20px auto 0; text-wrap: pretty;
  }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; margin-top: 34px; }
  .hero .btn-primary { background: #fff; color: var(--primary-dark); }
  .hero .btn-primary:hover { background: #F1E9FF; }
  .hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.4); }
  .hero .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
  .trust {
    position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center;
    gap: 10px 28px; margin-top: 40px; color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 550;
  }
  .trust span { display: inline-flex; align-items: center; gap: 8px; }
  .trust svg { color: #C9B4FF; flex: none; }
  .hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; }
  .hero-wave svg { width: 100%; height: 70px; display: block; }
  .hero-wave path { fill: var(--bg); }

  /* ===================== SECTION SHELL ===================== */
  section { position: relative; }
  .band { padding: 82px 0; }
  .band.alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .sec-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
  .sec-head h2 {
    font-size: clamp(1.8rem, 3.8vw, 2.5rem); letter-spacing: -0.03em; font-weight: 800;
    margin: 12px 0 0; text-wrap: balance;
  }
  .sec-head p { color: var(--muted); font-size: 1.06rem; margin: 12px auto 0; max-width: 52ch; }

  /* ---- features ---- */
  .feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .fcard {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 13px;
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .fcard .ic {
    width: 46px; height: 46px; border-radius: 13px; flex: none;
    background: var(--accent-soft); color: var(--primary); display: grid; place-items: center;
  }
  .fcard h3 { margin: 2px 0 0; font-size: 17px; letter-spacing: -0.01em; font-weight: 750; }
  .fcard p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

  /* ---- how it works ---- */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .step { text-align: center; padding: 0 8px; }
  .step .num {
    width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
    display: grid; place-items: center; font-size: 19px; font-weight: 800; color: #fff;
    background: linear-gradient(150deg, var(--accent), var(--primary));
    box-shadow: 0 10px 22px rgba(91,44,159,0.3);
  }
  .step h3 { margin: 0 0 6px; font-size: 18px; font-weight: 750; letter-spacing: -0.01em; }
  .step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
  .steps-line { display: none; }

  /* ===================== LEGAL DOCS ===================== */
  .doc { padding: 78px 0; }
  .doc + .doc { border-top: 1px solid var(--line); }
  .doc-head { text-align: center; margin-bottom: 34px; }
  .doc-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); letter-spacing: -0.03em; font-weight: 800; margin: 12px 0 0; }
  .doc-head p { color: var(--muted); margin: 10px 0 0; }
  .prose { max-width: var(--measure); margin: 0 auto; color: var(--ink-soft); }
  .prose p { margin: 0 0 1.05em; }
  .prose h3 {
    font-size: 1.24rem; font-weight: 800; letter-spacing: -0.015em; color: var(--ink);
    margin: 2.1em 0 0.55em; padding-top: 0.2em; scroll-margin-top: 90px;
  }
  .prose h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 1.5em 0 0.4em; }
  .prose ul { margin: 0.4em 0 1.05em; padding-left: 1.2em; }
  .prose li { margin: 0.32em 0; }
  .prose li::marker { color: var(--primary); }
  .prose strong { color: var(--ink); font-weight: 700; }
  .lead-note {
    background: var(--alt); border: 1px solid var(--line); border-left: 3px solid var(--primary);
    border-radius: 12px; padding: 17px 20px; margin: 0 0 1.8em; font-size: 15.5px; color: var(--ink-soft);
  }
  .callout {
    display: flex; gap: 13px; align-items: flex-start;
    background: color-mix(in srgb, var(--primary) 7%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--line));
    border-radius: 12px; padding: 15px 18px; margin: 1.6em 0 0; font-size: 14.5px; color: var(--ink-soft);
  }
  .callout .ic { color: var(--primary); flex: none; margin-top: 1px; }

  /* ===================== CONTACT ===================== */
  .contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 8px; align-items: start; }
  .ccard {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  }
  .ccard h3 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.015em; }
  .ccard > p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
  #contactForm { display: flex; flex-direction: column; gap: 14px; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .field { display: flex; flex-direction: column; gap: 6px; }
  .flabel { font-size: 13px; font-weight: 650; color: var(--ink-soft); }
  .field input, .field textarea {
    font: inherit; font-size: 15px; color: var(--ink);
    background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 11px;
    padding: 12px 14px; width: 100%; resize: vertical;
    transition: border-color .15s ease, box-shadow .15s ease;
  }
  .field input::placeholder, .field textarea::placeholder { color: var(--faint); }
  .field input:focus, .field textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
  }
  #contactForm .btn-primary { align-self: flex-start; margin-top: 2px; }
  .form-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
  .form-note.err { color: var(--danger); }

  .info-list { display: flex; flex-direction: column; gap: 20px; margin-top: 4px; }
  .info-item { display: flex; gap: 14px; align-items: flex-start; }
  .info-item .ic {
    width: 42px; height: 42px; border-radius: 11px; flex: none; margin-top: 2px;
    background: var(--accent-soft); color: var(--primary); display: grid; place-items: center;
  }
  .info-item .k { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
  .info-item .v { font-size: 15.5px; color: var(--ink); font-weight: 600; }
  .info-item .v a { font-weight: 600; }
  .tbd { color: var(--primary); border-bottom: 1.5px dotted var(--primary); }

  /* ===================== FOOTER ===================== */
  footer.site { background: var(--primary-dark); color: rgba(255,255,255,0.78); padding: 56px 0 34px; }
  .foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
  .foot-brand .fb-head { display: flex; align-items: center; gap: 12px; }
  .foot-brand .appicon { width: 40px; height: 40px; box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
  .foot-brand .fb-name { color: #fff; font-weight: 750; font-size: 17px; letter-spacing: -0.01em; }
  .foot-brand p { margin: 16px 0 0; font-size: 14.5px; line-height: 1.6; max-width: 40ch; color: rgba(255,255,255,0.72); }
  .foot-col h4 { margin: 4px 0 14px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
  .foot-col a { display: block; color: rgba(255,255,255,0.78); font-size: 14.5px; padding: 5px 0; }
  .foot-col a:hover { color: #fff; text-decoration: none; }
  .foot-bottom {
    display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between;
    margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14);
    font-size: 13.5px; color: rgba(255,255,255,0.62);
  }
  .foot-bottom a { color: rgba(255,255,255,0.82); }

  /* ===================== RESPONSIVE ===================== */
  @media (max-width: 900px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .foot-top { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
  }
  @media (max-width: 760px) {
    .contact-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 30px; }
  }
  @media (max-width: 600px) {
    body { font-size: 16px; }
    .nav-links { display: none; }
    .nav-toggle { display: grid; }
    .mobile-menu.open { display: flex; }
    .nav-cta { display: none; }
    .hero-inner { padding: 62px 0 108px; }
    .feature-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .foot-top { grid-template-columns: 1fr; gap: 26px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .btn:hover, .fcard:hover { transform: none; }
    * { scroll-behavior: auto !important; }
  }

  /* ===================== MULTI-PAGE ADDITIONS ===================== */
  .nav-links a.active { color: var(--primary); background: var(--accent-soft); }
  .mobile-menu a.active { color: var(--primary); }

  /* slim gradient header for the standalone legal pages */
  .page-hero {
    background: linear-gradient(155deg, var(--hero-a), var(--hero-b));
    color: #fff; padding: 52px 0 48px;
  }
  .breadcrumb { font-size: 13.5px; color: rgba(255,255,255,0.72); margin: 0 0 16px; }
  .breadcrumb a { color: rgba(255,255,255,0.92); font-weight: 550; }
  .breadcrumb a:hover { color: #fff; }
  .breadcrumb .sep { margin: 0 8px; opacity: 0.6; }
  .page-hero .label { color: #D9C7FF; }
  .page-hero h1 {
    font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -0.03em; font-weight: 800;
    margin: 12px 0 0; text-wrap: balance;
  }
  .page-hero p { color: rgba(255,255,255,0.82); font-size: 1.06rem; margin: 12px 0 0; max-width: 60ch; }

  .doc-page { padding: 58px 0 44px; }
  .doc-page .prose h3:first-of-type { margin-top: 0; }
  .doc-foot-links {
    max-width: var(--measure); margin: 40px auto 0; padding-top: 24px;
    border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px;
    align-items: center; justify-content: space-between; font-size: 14.5px; color: var(--muted);
  }
