/*
  Big SRC Homepage
  Browser support target (evergreen):
  - Chrome, Edge, Opera (Chromium)
  - Firefox
  - Safari (iOS/macOS)
  - Samsung Internet

  Modal implementation:
  - Uses native <dialog> with ::backdrop.
  - No hash state, no brittle attribute selectors.
  - Simple open/close handlers, click-outside-to-close.
*/

:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#425166;
  --line:rgba(11,18,32,.12);
  --accent:#0a75b8;   /* logo blue */
  --accent2:#084f7b;  /* deeper logo blue */
  --max:980px;
  --radius:16px;
  --shadow: 0 18px 50px rgba(11,18,32,.18);
  --fieldbg: rgba(11,18,32,.02);
  color-scheme: light;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

/* Reduce mobile tap highlight quirks */
a,button{-webkit-tap-highlight-color: transparent}

/* Ensure form controls are styleable across Safari/Samsung Internet */
input,textarea,button{
  appearance:none;
  -webkit-appearance:none;
  font: inherit;
}

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

header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 0 22px;
}

.logoPlate{
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:8px 12px;
  display:flex;
  align-items:center;
}
.logoPlate img{height:30px;width:auto;display:block}

.hero{padding:22px 0 8px}
h1{
  margin:0 0 10px;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height:1.08;
  letter-spacing:-0.02em;
  max-width: 34ch;
}
.lede{
  margin:0;
  color:var(--muted);
  font-size: clamp(16px, 1.8vw, 18px);
  max-width: 78ch;
}

.hr{height:1px;background:var(--line);margin:26px 0}

.section{padding:6px 0 10px}
.section h2{
  margin:0 0 10px;
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}
.section .copy{max-width:82ch;font-size:16px}
.section p{margin:0 0 12px}
.section ul{margin:10px 0 0 18px}
.section li{margin:7px 0;color:var(--muted)}

.callout{
  margin-top:14px;
  border-left:3px solid rgba(10,117,184,.55);
  padding:12px 14px;
  border-radius:12px;
  background:rgba(11,18,32,.02);
  color:var(--muted);
  max-width:82ch;
}

/* CTA strip */
.cta{
  max-width:82ch;
  margin-top:6px;
  padding:16px 16px;
  border-radius: var(--radius);
  border:1px solid rgba(10,117,184,.22);
  background:
    radial-gradient(1200px 1200px at 10% 20%, rgba(10,117,184,.10), transparent 55%),
    radial-gradient(900px 900px at 85% 70%, rgba(8,79,123,.10), transparent 60%),
    rgba(11,18,32,.02);
}

.ctaTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.cta p{margin:0;color:var(--muted)}
.cta strong{color:var(--text)}

.ctaActions{
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

/* Primary button */
.btnPrimary{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid rgba(10,117,184,.35);
  color:#ffffff;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 24px rgba(10,117,184,.22);
  font-weight:700;
  font-size:14px;
  cursor:pointer;
}
.btnPrimary:hover{filter:brightness(1.03)}
.btnPrimary:active{transform: translateY(1px)}

.btnPrimary .chev{
  display:inline-block;
  width:10px;height:10px;
  border-right:2px solid rgba(255,255,255,.95);
  border-bottom:2px solid rgba(255,255,255,.95);
  transform: rotate(-45deg);
  margin-top:1px;
}

.help{
  font-size:13px;
  color:var(--muted);
  margin:0;
  max-width: 82ch;
}

/* <dialog> modal styles */
.dialog{
  width:min(720px, calc(100% - 36px));
  max-height: calc(100dvh - 36px);
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  border:1px solid rgba(11,18,32,.10);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:0;
  background:#ffffff;
}

.dialog::backdrop{
  background: rgba(11,18,32,.60);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dialogHeader{
  padding:16px 16px 10px;
  background:
    radial-gradient(900px 900px at 8% 20%, rgba(10,117,184,.12), transparent 55%),
    rgba(11,18,32,.01);
  border-bottom:1px solid var(--line);
}

.dialogTitleRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.dialogHeader h3{
  margin:0;
  font-size:18px;
  letter-spacing:-0.01em;
}
.dialogHeader p{
  margin:6px 0 0;
  color:var(--muted);
  max-width: 70ch;
}

.iconClose{
  border:1px solid rgba(11,18,32,.14);
  background: rgba(255,255,255,.7);
  width:38px;height:38px;
  border-radius:12px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position:relative;
  flex:0 0 auto;
}
.iconClose:hover{background:#ffffff}
.iconClose:before, .iconClose:after{
  content:"";
  position:absolute;
  width:16px;height:2px;
  background: rgba(11,18,32,.75);
  border-radius:2px;
}
.iconClose:before{transform: rotate(45deg)}
.iconClose:after{transform: rotate(-45deg)}

.dialogBody{padding:14px 16px 16px}

/* Form */
.formGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 720px){
  .formGrid{grid-template-columns:1fr}
}

.field{margin:10px 0}
.field label{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
  color:var(--muted);
  margin:0 0 7px;
}
.field label .optional{font-size:12px;color:rgba(66,81,102,.85)}

input,textarea{
  width:100%;
  padding:13px 13px;
  border-radius:14px;
  border:1px solid rgba(11,18,32,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.55)),
    var(--fieldbg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    0 1px 0 rgba(11,18,32,.02);
}
textarea{min-height:160px;resize:vertical}
input::placeholder, textarea::placeholder{color: rgba(66,81,102,.70)}

input:focus,textarea:focus{
  outline:2px solid rgba(10,117,184,.22);
  border-color: rgba(10,117,184,.42);
  background:#ffffff;
}

input:-webkit-autofill,
textarea:-webkit-autofill{
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
  transition: background-color 9999s ease-in-out 0s;
}

/* Actions */
.dialogActions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding-top:8px;
  border-top:1px solid var(--line);
  margin-top:14px;
}

.note{
  font-size:13px;
  color:var(--muted);
  margin:0;
  max-width: 52ch;
}

.btnSubmit{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid rgba(10,117,184,.35);
  color:#ffffff;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 24px rgba(10,117,184,.22);
  font-weight:700;
  font-size:14px;
  cursor:pointer;
}
.btnSubmit:hover{filter:brightness(1.03)}
.btnSubmit:active{transform: translateY(1px)}

footer{
  margin-top:38px;
  color:var(--muted);
  font-size:13px;
}
