/* Tyl/NatWest-inspired light theme (approximation)
   - Uses NatWest purple + Tyl red accents based on public sources.
*/

:root{
  /* Brand-ish core */
  --tyl-red: #DC1405;       /* Tyl red (public brand listing) */ /* cite */
  --nw-purple: #3C1053;     /* NatWest purple (public brand listing) */ /* cite */

  /* UI neutrals */
  --bg: #F6F6F8;
  --surface: #FFFFFF;
  --surface-2: #FBFBFD;
  --text: #1B1B1F;
  --muted: #5D5D6B;
  --border: rgba(24, 24, 31, 0.10);

  /* Effects */
  --shadow: 0 12px 30px rgba(17, 24, 39, 0.10);
  --shadow-soft: 0 6px 18px rgba(17, 24, 39, 0.08);

  /* Radii */
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;

  /* Spacing */
  --container: 1080px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.5;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(60,16,83,.08), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(220,20,5,.07), transparent 55%),
    radial-gradient(900px 700px at 50% 100%, rgba(60,16,83,.05), transparent 60%),
    var(--bg);
}

a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 18px 70px;
}

/* Header */
header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom: 26px;
}

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

.logo{
  width:44px;
  height:44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--nw-purple), var(--tyl-red));
  box-shadow: 0 10px 24px rgba(60,16,83,.18);
}

.brand h1{
  margin:0;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: .2px;
  color: var(--nw-purple);
}

.brand p{
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}

.pill b{
  color: var(--nw-purple);
  font-weight: 800;
}

/* Main hero container */
.hero{
  margin-top: 14px;
  border-radius: var(--r-lg);
  padding: 26px 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}

/* Typography */
h2{
  margin:0 0 10px;
  font-size: 32px;
  letter-spacing: -0.4px;
  line-height: 1.15;
  color: var(--nw-purple);
}

.lead{
  margin:0 0 16px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 68ch;
}

/* KPI chips */
.kpis{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 14px;
}

.kpi{
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  padding: 12px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.kpi .v{
  font-size: 13.5px;
  font-weight: 850;
  color: var(--nw-purple);
}

.kpi .l{
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Action buttons */
.actions{
  display:grid;
  gap: 10px;
}

.btn{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  position: relative;
  overflow: hidden;
}

.btn::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(60,16,83,.06), rgba(220,20,5,.05));
  opacity: 0;
  transition: opacity .12s ease;
}

.btn:hover{
  transform: translateY(-2px);
  border-color: rgba(60,16,83,.20);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.10);
}

.btn:hover::before{
  opacity: 1;
}

.btn > div{
  position: relative; /* keep text above ::before */
}

.btn strong{
  font-size: 14px;
  font-weight: 850;
  color: var(--nw-purple);
}

.btn span{
  font-size: 12.75px;
  color: var(--muted);
}

/* Right arrow badge */
.chev{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(60,16,83,.06);
  border: 1px solid rgba(60,16,83,.14);
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--nw-purple);
}

/* Supporting cards */
.grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.card{
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  padding: 16px;
  min-height: 120px;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
}

.card h3{
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 850;
  color: var(--nw-purple);
}

.card p{
  margin: 0;
  color: var(--muted);
  font-size: 12.75px;
}

/* Footer */
footer{
  margin-top: 18px;
  color: rgba(27,27,31,.65);
  font-size: 12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}

.footlinks{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.footlinks a{
  color: rgba(60,16,83,.9);
  text-decoration: underline;
  text-decoration-color: rgba(60,16,83,.22);
  text-underline-offset: 3px;
}

.footlinks a:hover{
  color: var(--tyl-red);
  text-decoration-color: rgba(220,20,5,.35);
}

/* Responsive */
@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .kpis{ grid-template-columns: 1fr; }
  h2{ font-size: 28px; }
}
