:root{
  --bg1:#2a0720;
  --bg2:#3a0b2e;
  --bg3:#5b1b4d;

  --text:#f6f0f5;
  --muted:rgba(246,240,245,.85);
  --outline:rgba(246,240,245,.55);

  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --radius: 22px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 50% 25%, rgba(255,255,255,.08), transparent 55%),
    radial-gradient(900px 600px at 50% 90%, rgba(255,255,255,.05), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2) 45%, var(--bg3));
}

.no-scroll{ overflow:hidden; }

.wrap{
  min-height:100%;
  display:grid;
  place-items:center;
  padding:28px 16px;
}

.card{
  width:min(520px, 94vw);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px 18px;
  position:relative;
  overflow:hidden;
}

.card::before{
  content:"";
  position:absolute;
  left:-180px;
  right:-180px;
  top:-180px;
  height:420px;
  background: radial-gradient(circle at 50% 35%,
    rgba(255,255,255,.10) 0%,
    rgba(255,255,255,.06) 30%,
    rgba(255,255,255,.02) 55%,
    transparent 75%
  );
  filter: blur(6px);
  pointer-events:none;
}

.top-actions{
  position:absolute;
  top:16px;
  left:16px;
  right:16px;
  display:flex;
  justify-content:space-between;
  pointer-events:auto;
}

.icon-btn{
  width:40px;
  height:40px;
  border:0;
  border-radius:999px;
  background: rgba(255,255,255,.85);
  color:#1f0a18;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.icon-btn:hover{filter:brightness(.95)}
.icon-btn:active{transform:translateY(1px)}

.profile{
  padding-top: 32px;
  text-align:center;
}

.avatar{
  width:78px;
  height:78px;
  border-radius:999px;
  object-fit:cover;
  border: 3px solid rgba(255,255,255,.65);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  margin: 2px auto 14px;
  display:block;
}

.avatar-fallback{
  width:78px;
  height:78px;
  border-radius:999px;
  margin: 2px auto 14px;
  border: 3px solid rgba(255,255,255,.65);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  display:grid;
  place-items:center;
  font-weight:700;
  font-size:28px;
  background: rgba(255,255,255,.14);
}

h1{
  margin:0 0 8px;
  font-size: 28px;
  line-height:1.1;
  letter-spacing:.2px;
}

.tagline{
  margin:0 auto 14px;
  max-width: 44ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height:1.45;
}

.social{
  display:flex;
  justify-content:center;
  margin: 8px 0 18px;
}

.social-icon{
  width:38px;
  height:38px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  color: rgba(255,255,255,.95);
  text-decoration:none;
}

.social-icon:hover{background: rgba(255,255,255,.08)}

.links{
  display:grid;
  gap:14px;
  margin: 4px auto 10px;
}

.pill{
  display:flex;
  align-items:center;
  justify-content:center;
  height:56px;
  border-radius: 999px;
  text-decoration:none;
  color: var(--text);
  font-weight: 600;
  letter-spacing:.2px;
  border: 1px solid var(--outline);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
  cursor:pointer;
  transition: background .18s ease, transform .18s ease, filter .18s ease;
}

.cta-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.btn-icon{
  display:flex;
  align-items:center;
}

@media (max-width: 360px){
  .cta-row{ grid-template-columns: 1fr; }
}

/* --- Primary/Secondary CTA helpers --- */
.pill.primary{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.70);
}

.cta-subtext{
  margin: -6px auto 0;
  max-width: 46ch;
  text-align:center;
  color: rgba(246,240,245,.85);
  font-size: 13.5px;
  line-height: 1.35;
}

.cta-hint{
  margin: 6px auto 0;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color: rgba(246,240,245,.80);
  font-size: 12.5px;
  line-height: 1.35;
}

.hint-icon{ opacity:.95; }
.hint-sep{ opacity:.70; padding: 0 2px; }

.text-link{
  margin: 10px auto 0;
  background: transparent;
  border: 0;
  color: rgba(246,240,245,.85);
  text-decoration: underline;
  cursor: pointer;
  font-size: 13.5px;
}

.text-link:hover{ color: rgba(255,255,255,.95); }
.pill:hover{ background: rgba(255,255,255,.12); }
.pill:active{transform: translateY(1px)}


/* ---------- Form styles ---------- */

.field{
  display:grid;
  gap:6px;
  margin-bottom: 12px;
}

.field span{
  font-size: 13px;
  color: rgba(255,255,255,.9);
}

input, textarea{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.95);
  color: #1b0712;
  padding: 12px;
  outline:none;
}

textarea{resize:vertical; min-height:110px}

input:focus, textarea:focus{
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 0 0 4px rgba(255,255,255,.10);
}

.submit{
  width:100%;
  height:52px;
  border-radius: 999px;
  border: 0;
  cursor:pointer;
  font-weight:700;
  color:#2a0720;
  background: linear-gradient(180deg, #f3c5ff, #d48cff);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  margin-top: 10px;
}

.submit:hover{filter:brightness(.97)}
.submit:active{transform:translateY(1px)}

.small{
  margin:0 0 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height:1.35;
}

.tiny{
  margin:10px 2px 0;
  color: rgba(255,255,255,.70);
  font-size: 12px;
  line-height:1.35;
}

.hidden{display:none}

/* ---------- Modal styles ---------- */

.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.modal[aria-hidden="false"]{
  display: block;
}

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.modal-card{
  position: relative;
  margin: 6vh auto;
  width: min(520px, 94vw);
  background: linear-gradient(180deg, #4b1450, #2a0720);
  color: #fff;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  padding: 24px;
}

.modal-title{
  margin: 4px 0 6px;
  font-size: 18px;
}

.close{
  position:absolute;
  top:14px;
  right:14px;
  width:36px;
  height:36px;
  border-radius:999px;
  border:0;
  background: rgba(255,255,255,.9);
  color:#2a0720;
  font-size:18px;
  cursor:pointer;
}

.close:hover{filter:brightness(.95)}
.close:active{transform:translateY(1px)}

/* Force CTA pills to align icon + text */
.cta-row .pill{
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.btn-icon{
  display:flex;
  align-items:center;
}

.cta-row .pill svg{
  stroke: rgba(255,255,255,.95);
}

/* Calendly modal (branded) */
.calendly-modal[aria-hidden="true"]{ display:none; }
.calendly-modal{
  position:fixed; inset:0; z-index:9999;
}

.calendly-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
}

.calendly-panel{
  position:relative;
  width:min(920px, calc(100% - 28px));
  margin: 4vh auto;
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}

.calendly-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.calendly-title{
  font-weight: 700;
  letter-spacing:.2px;
  color: rgba(255,255,255,.92);
}

.calendly-close{
  appearance:none;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  width: 36px; height: 36px;
  border-radius: 12px;
  cursor: pointer;
}

.calendly-close:hover{ background: rgba(255,255,255,.12); }

.calendly-body{
  padding: 0;
}

/* Make Calendly iframe blend a bit more */
.calendly-inline-widget, #calendlyInline{
  background: transparent !important;
}

/* Normalize primary CTA pills */
.cta-row .pill.primary{
  font-weight: 600;
  letter-spacing: .15px;
  min-height: 46px;
}

.cta-row .pill.primary span{
  display: inline-block;
  line-height: 1;
}

/* Keep icon + text centered consistently */
.cta-row .pill.primary{
  padding-left: 18px;
  padding-right: 18px;
}

/* Make <button class="pill"> behave exactly like <a class="pill"> */
button.pill{
  font: inherit;          /* same font + size as the page */
  color: inherit;
  background: transparent; /* let .pill background show consistently */
  padding: 0;             /* remove browser default button padding */
  border: 1px solid var(--outline);
  appearance: none;
  -webkit-appearance: none;
}

/* Ensure both anchor + button pills have identical internal padding */
.pill{
  padding: 0 18px; /* pick the pill breathing room you like */
}

/* Optional: keep label baseline identical */
.cta-row .pill span{
  line-height: 1;
}
