html{background:#efe7de;}
:root{
  --bg1:#f6e3df;
  --bg2:#efe7de;
  --ink:#151515;
  --muted:#5b5b5b;
  --line:rgba(20,20,20,.12);
  --shadow: 0 24px 60px rgba(0,0,0,.10);
  --radius:28px;
}

*{ box-sizing:border-box; }
html,body {
 height:100%; 
  position: relative;
  min-height: 100svh;
  background-color: #efe7e0;
}

html, body { height: 100%; }



body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(900px 520px at 50% 6%, rgba(214,108,111,.22) 0%, rgba(214,108,111,0) 58%),
    radial-gradient(900px 520px at 50% 92%, rgba(214,108,111,.10) 0%, rgba(214,108,111,0) 62%),
    linear-gradient(180deg, #f2e7df 0%, #efe7de 55%, #efe7de 100%);
  background-repeat:no-repeat;
  background-attachment: scroll;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.page{
  min-height:100svh;
  display:flex;
  align-items:center;
  justify-content:center;
  /* extra bottom room so iOS bottom bar never covers content */
  padding: clamp(18px, 3vw, 42px);
  padding-bottom: calc(clamp(18px, 3vw, 42px) + env(safe-area-inset-bottom, 0px) + 28px);
}

.hero{
  width:min(1120px, 100%);
  padding: clamp(22px, 3.4vw, 54px);
}

.brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  margin-bottom: clamp(18px, 2.2vw, 28px);
}

.logo{
  width: clamp(260px, 20vw, 380px);
  height: auto;
  display: block;
  margin: 0 auto 18px;
}

.chapter{
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  color: rgba(20,20,20,.55);
}

.grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(18px, 3vw, 44px);
  align-items:start;
}

.copy h1{
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0 0 12px 0;
  font-size: clamp(30px, 3.4vw, 46px);
}

.lead{
  margin:0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 54ch;
}

.rule{
  height:1px;
  background: var(--line);
  margin: 22px 0 18px;
  max-width: 560px;
}

.bullets p{
  margin: 0 0 12px 0;
  color: rgba(20,20,20,.80);
  font-size: 15px;
  line-height: 1.7;
  max-width: 64ch;
}
.bullets strong{
  color: var(--ink);
  font-weight: 600;
}

.cta{
  margin: 18px 0 0;
  font-size: 15px;
  color: rgba(20,20,20,.86);
  font-weight: 500;
}

.card{
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(20,20,20,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(10px);
}

.card h2{
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 600;
}

.sub{
  margin:0 0 16px 0;
  color: rgba(20,20,20,.62);
  font-size: 13px;
  line-height: 1.5;
}

.field{
  display:block;
  margin: 0 0 12px 0;
}
.field span{
  display:block;
  font-size: 12px;
  color: rgba(20,20,20,.56);
  margin: 0 0 6px 0;
}
.field input{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(20,20,20,.12);
  background: rgba(255,255,255,.92);
  padding: 12px 14px;
  font-size: 15px;
  outline:none;
}
.field input:focus{
  border-color: rgba(20,20,20,.28);
  box-shadow: 0 0 0 4px rgba(20,20,20,.06);
}

.btn{
  width:100%;
  border:none;
  border-radius: 999px;
  padding: 14px 16px;
  background: #111;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  cursor:pointer;
  margin-top: 6px;
}
.btn:active{ transform: translateY(1px); }

.fine{
  margin: 10px 0 0;
  text-align:center;
  font-size: 12px;
  color: rgba(20,20,20,.52);
}

.hidden{ display:none; }

.footer{
  text-align:center;
  padding: 18px 0 calc(26px + env(safe-area-inset-bottom, 0px));
  color: rgba(20,20,20,.42);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Mobile */
@media (max-width: 900px){
  /* On smaller screens, avoid vertical-centering (it can clip the bottom on iOS) */
  .page{ align-items:flex-start; }
  .grid{ grid-template-columns: 1fr; }
  .card{ margin-top: 10px; }
  .copy h1{ font-size: clamp(28px, 8.5vw, 38px); }
  .lead{ font-size: 15px; }
  .bullets p{ font-size: 14px; }
  .hero{ padding: 18px; }
  .logo{ width: clamp(240px, 60vw, 340px); }
}

@media (max-width: 420px){
  .copy h1{ font-size: 28px; }
  .field input{ font-size: 14px; padding: 11px 13px; }
  .btn{ padding: 13px 16px; }
}


/* --- Thank you page (clean + classy) --- */
.thanks-wrap{
  min-height:100svh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:34px;
  padding:
    calc(72px + env(safe-area-inset-top, 0px))
    20px
    calc(56px + env(safe-area-inset-bottom, 0px));
}

.thanks-logo{
  width:180px;
  max-width:64vw;
  height:auto;
  display:block;
}

.thanks-card{
  width:min(520px, 92vw);
  padding:36px 34px 30px;
  border-radius:28px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(20,20,20,.08);
  box-shadow: 0 26px 70px rgba(0,0,0,.14);
  backdrop-filter: blur(12px);
}

.thanks-card h1{
  margin:0 0 12px;
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-weight: 600;
  font-size: clamp(34px, 7vw, 56px);
  line-height:1.05;
  letter-spacing:-0.02em;
}

.thanks-card p{
  margin:0 0 22px;
  color: rgba(20,20,20,.70);
  font-size: 18px;
}

.thanks-actions{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}

/* keep existing .btn-primary styles, just ensure sizes feel right here */
.thanks-actions .btn-primary.btn-inline{
  width:auto;
  padding:12px 18px;
  min-width: 180px;
}

.text-link{
  font: inherit;
  font-size: 14px;
  color: rgba(20,20,20,.62);
  text-decoration: none;
  padding: 10px 6px;
}
.text-link:hover{ text-decoration: underline; }

@media (max-width: 480px){
  .thanks-wrap{ gap:28px; }
  .thanks-card{ padding:28px 22px 22px; border-radius:26px; }
  .thanks-actions{ flex-direction:column; align-items:stretch; }
  .thanks-actions .btn-primary.btn-inline{ width:100%; min-width:0; }
  .text-link{ width:100%; text-align:center; }
}
