/* =========================
   BPS Cloud Site
   ========================= */

:root{
  --bg: #05070b;
  --panel: rgba(255,255,255,0.06);
  --panel-2: rgba(255,255,255,0.08);
  --stroke: rgba(255,255,255,0.12);
  --stroke-2: rgba(255,255,255,0.18);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --muted-2: rgba(255,255,255,0.55);

  --accent: #35d07f;        /* green */
  --accent-2: #7aa7ff;      /* blue */
  --accent-warm: #f8aa37;   /* warm accent like Kutoa hint */
  --danger: #ff4d4d;

  --shadow: 0 18px 50px rgba(0,0,0,0.55);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;

  --max: 1160px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: "Lexend", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1000px 600px at 20% -10%, rgba(122,167,255,0.18), transparent 60%),
              radial-gradient(900px 540px at 85% 20%, rgba(53,208,127,0.16), transparent 62%),
              radial-gradient(700px 500px at 40% 110%, rgba(248,170,55,0.12), transparent 58%),
              var(--bg);
  color: var(--text);
  line-height: 1.45;
}

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

img{ max-width:100%; display:block; }
small{ color: var(--muted-2); }

.container{
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.skip{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip:focus{
  left:18px;
  top:18px;
  width:auto;
  height:auto;
  padding:10px 12px;
  border-radius:10px;
  background: rgba(255,255,255,0.12);
  border:1px solid var(--stroke);
  z-index: 9999;
}

/* ============ NAV ============ */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5,7,11,0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 220px;
}
.brand img{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);
}
.brand .name{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}
.brand .name strong{ font-weight: 800; letter-spacing: 0.2px; }
.brand .name span{ font-size: 12.5px; color: var(--muted); }

.nav-links{
  display:flex;
  align-items:center;
  gap: 18px;
}
.nav-links a{
  position: relative;
  font-size: 14px;
  color: var(--muted);
  padding: 10px 8px;
  border-radius: 10px;
}
.nav-links a:hover{
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.nav-links a[aria-current="page"]{
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}

.nav-cta{
  display:flex;
  align-items:center;
  gap: 10px;
}

.nav-toggle{
  display:none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 650;
  font-size: 14px;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.20);
}
.btn.primary{
  background: linear-gradient(90deg, rgba(53,208,127,0.95), rgba(122,167,255,0.95));
  border-color: rgba(255,255,255,0.12);
  color: rgba(0,0,0,0.90);
}
.btn.primary:hover{
  background: linear-gradient(90deg, rgba(53,208,127,1), rgba(122,167,255,1));
}
.btn.link{
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding: 10px 8px;
}
.btn.link:hover{
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}

.icon{
  width: 18px;
  height: 18px;
  display:inline-block;
}

/* ============ SECTIONS ============ */
.section{
  padding: 72px 0;
}
.section.tight{ padding: 52px 0; }

.kicker{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
  letter-spacing: .2px;
  margin-bottom: 14px;
}
.kicker .dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(53,208,127,0.12);
}

.h1{
  font-size: clamp(38px, 4.3vw, 58px);
  line-height: 1.02;
  margin: 0 0 16px;
  letter-spacing: -0.8px;
}
.h2{
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.12;
  margin: 0 0 12px;
  letter-spacing: -0.4px;
}
.lead{
  color: var(--muted);
  font-size: 16.5px;
  margin: 0 0 22px;
  max-width: 62ch;
}

.hr{
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin: 18px 0;
}

/* ============ LAYOUT GRIDS ============ */
.grid-hero{
  display:grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 28px;
  align-items: stretch;
}
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid-4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-inner{
  padding: 22px;
}
.card-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.card-title h3{
  margin:0;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.card p{
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
}

.hero-shell{
  position: relative;
  border-radius: 26px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
}
.hero-shell:before,
.hero-shell:after{
  content:"";
  position:absolute;
  inset:auto;
  pointer-events:none;
}
.hero-shell:before{
  width: 520px;
  height: 520px;
  border-radius: 999px;
  left: -220px;
  top: -260px;
  background: radial-gradient(circle at 30% 30%, rgba(53,208,127,0.18), transparent 60%);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-shell:after{
  width: 420px;
  height: 420px;
  border-radius: 999px;
  right: -210px;
  bottom: -240px;
  background: radial-gradient(circle at 50% 50%, rgba(122,167,255,0.16), transparent 62%);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-inner{
  padding: 54px 26px;
}
.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 18px;
}

.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 8px 0; }
.list strong{ color: var(--text); font-weight: 750; }

.feature{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.feature .glyph{
  width: 38px; height: 38px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  flex: 0 0 auto;
}
.feature h4{
  margin: 0 0 6px;
  font-size: 15px;
}
.feature p{ margin:0; font-size: 14px; color: var(--muted); }

.solution{
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  overflow:hidden;
  box-shadow: var(--shadow);
}
.solution .solution-inner{
  padding: 22px;
}
.solution .tag{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(0,0,0,0.85);
  background: rgba(248,170,55,0.95);
  border-radius: 999px;
  padding: 7px 10px;
}
.solution h3{
  margin: 12px 0 8px;
  font-size: 18px;
}
.solution p{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14.5px;
}

.footer{
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 32px 0;
  background: rgba(5,7,11,0.55);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
  align-items:start;
}
.footer a{
  color: var(--muted);
}
.footer a:hover{
  color: var(--text);
}

/* ============ PAGE HEADER ============ */
.page-head{
  padding: 44px 0 10px;
}
.page-head .lead{
  max-width: 70ch;
}

/* ============ FORM ============ */
.form{
  display:grid;
  gap: 12px;
}
.field{
  display:grid;
  gap: 8px;
}
label{
  font-size: 13px;
  color: var(--muted);
  font-weight: 650;
}
input, textarea{
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus{
  border-color: rgba(122,167,255,0.55);
  box-shadow: 0 0 0 4px rgba(122,167,255,0.14);
}
textarea{ min-height: 120px; resize: vertical; }

.notice{
  border-left: 3px solid rgba(248,170,55,0.95);
  background: rgba(248,170,55,0.10);
  border-radius: 16px;
  padding: 14px 14px;
  color: rgba(255,255,255,0.84);
  border: 1px solid rgba(255,255,255,0.10);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px){
  .grid-hero{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: 1fr 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 820px){
  .nav-toggle{ display:inline-flex; }
  .nav-links{
    display:none;
    position:absolute;
    left: 0; right: 0;
    top: 66px;
    padding: 14px 18px;
    background: rgba(5,7,11,0.92);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding: 12px 10px; }
}

@media (max-width: 520px){
  .grid-4{ grid-template-columns: 1fr; }
  .hero-inner{ padding: 44px 18px; }
}

/* If your kicker uses flex, this keeps it centered too */
.twilio-page .kicker {
  justify-content: center;
}

/* Fix “buttons cut off” issues caused by fixed heights or overflow clipping */
.twilio-page .card {
  height: auto;
  max-height: none;
  overflow: visible;
  padding-bottom: 24px; /* gives the actions breathing room */
}

/* Ensure the action buttons never overflow the card */
.twilio-page .actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* Twilio page: give the policy text breathing room inside the card */
.twilio-page .card {
  padding: 28px;
}

/* If your stylesheet already sets padding on .card, this ensures it wins */
.twilio-page .card > *:first-child { margin-top: 0; }
.twilio-page .card > *:last-child { margin-bottom: 0; }

/* Improve spacing between headings + paragraphs on the Twilio page */
.twilio-page .card h3 {
  margin-top: 18px;
  margin-bottom: 8px;
}

.twilio-page .card p {
  margin-top: 0;
  margin-bottom: 14px;
  line-height: 1.6;
}

/* Twilio page header should match Opt-In header formatting (left-aligned) */
.twilio-page .section-title,
.twilio-page .section-title * {
  text-align: left;
}

/* If your .section-title is a flex container anywhere, force left alignment */
.twilio-page .section-title {
  align-items: flex-start;
}

/* --- Card padding + readable inner spacing (fixes text touching edges) --- */
.card{
  padding: 22px;
}

.card h3{
  margin-top: 18px;
}

.card h3:first-child{
  margin-top: 0;
}

.card p{
  margin: 10px 0 0 0;
}

/* --- Action row spacing so buttons never touch card border --- */
.card .actions{
  margin-top: 18px;
  padding-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Optional: if your .btn already has padding, you can skip this */
.card .actions .btn{
  margin: 0;
}

/* Footer social icons (clean + consistent) */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.social-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:10px;
}

.social-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  text-decoration:none;
}

.social-links a:hover{
  background: rgba(255,255,255,.06);
}

.social-links svg{
  width:18px;
  height:18px;
  display:block;
}

.partner-logo{
  height:18px;
  width:auto;
  display:block;
  filter: brightness(0) invert(1); /* forces white on dark */
  opacity:.95;
}

/* Footer grid: consistent across all pages */
.footer .footer-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 980px){
  .footer .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px){
  .footer .footer-grid{ grid-template-columns: 1fr; }
}

/* ---- Footer grid: force 4 columns on desktop everywhere ---- */
.footer .footer-grid{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: start !important;
}

/* Tablet */
@media (max-width: 900px){
  .footer .footer-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile */
@media (max-width: 560px){
  .footer .footer-grid{
    grid-template-columns: 1fr !important;
  }
}
