:root{
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;

  --navy: #0b1f3a;
  --accent: #c2185b;

  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --radius: 14px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
}

.container{
  width:min(1100px, calc(100% - 32px));
  margin:0 auto;
}

/* ---------- Topbar ---------- */
.topbar{
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 6px 18px rgba(2,6,23,0.18);
}

.topbar__inner{
  height: 64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand__logo{
  height: 28px;   /* sweet spot: try 26–32px */
  width: auto;
  display: block;
}

.brand__mark{ font-weight: 800; letter-spacing: 0.4px; }
.brand__sub{ opacity: 0.85; font-weight: 600; font-size: 0.95rem; }

.topbar__cta{
  text-decoration:none;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero{
  padding: 26px 0 10px;
}
.hero h1{
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}
.hero__sub{
  margin:0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Trust row ---------- */
.trustrow{
  margin-top: 14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.trustrow__item{
  background: rgba(11,31,58,0.06);
  border: 1px solid rgba(11,31,58,0.12);
  color: var(--navy);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Shared components ---------- */
.muted{
  color: var(--muted);
  font-size: 0.95rem;
}

.pill{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rg


  /* =========================================================
     Responsive rules (mobile-first overrides)
     Append at end of willory-shell.css
     ========================================================= */

  @media (max-width: 900px){
    /* Slightly tighter layout on tablets/smaller laptops */
    .container{
      width: min(1100px, calc(100% - 28px));
    }

    .hero{
      padding: 22px 0 10px;
    }
  }

  @media (max-width: 640px){
    /* ---------- Global spacing ---------- */
    .container{
      width: calc(100% - 24px);
    }

    /* ---------- Topbar ---------- */
    .topbar__inner{
      height: 56px;
    }

    .brand{
      gap: 10px;
    }

    /* Hide subtitle on small screens to avoid wrapping */
    .brand__sub{
      display: none;
    }

    .brand__logo{
      height: 26px; /* slightly smaller logo on mobile */
    }

    .topbar__cta{
      padding: 8px 10px;
      font-size: 0.9rem;
    }

    /* ---------- Hero ---------- */
    .hero{
      padding: 18px 0 8px;
    }

    .hero h1{
      font-size: clamp(22px, 7vw, 30px);
      line-height: 1.12;
    }

    .hero__sub{
      font-size: 1rem;
    }

    .trustrow{
      gap: 8px;
    }

    .trustrow__item{
      font-size: 0.85rem;
      padding: 7px 9px;
    }

    .helper{
      font-size: 0.95rem;
      margin: 10px 0 8px;
    }

    /* ---------- Intake form wrapper ---------- */
    .formwrap{
      margin: 14px 0 18px;
      border-radius: 12px;
    }

    /*
      Intake iframe: we can't fully control Tally inside the iframe,
      so we avoid nested scrolling by giving it a generous fixed height.
      Adjust up/down based on your form length.
    */
    .formwrap iframe{
      min-height: 2000px;
      height: 2000px;
    }

    /* ---------- Results ---------- */
    .results-meta{
      padding: 14px;
    }

    .results-meta__badges{
      gap: 8px;
    }

    .card{
      padding: 14px;
    }

    .card__header{
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }

    .pill, .badge{
      font-size: 0.82rem;
    }

    .card ul{
      margin-left: 18px;
    }

    /* ---------- Footer ---------- */
    .footer{
      padding: 8px 0 22px;
    }

    .footer__fineprint{
      font-size: 0.93rem;
    }
  }

  /* Extra-small phones */
  @media (max-width: 380px){
    .topbar__cta{
      padding: 7px 9px;
      font-size: 0.85rem;
    }

    .brand__logo{
      height: 24px;
    }

    .trustrow__item{
      font-size: 0.82rem;
    }
  }
