@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,440;0,9..144,560;0,9..144,650;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #0b2a4a;
  --navy-deep: #051422;
  --navy-mid: #123a63;
  --cyan: #17bebb;
  --cyan-bright: #4fe0dc;
  --amber: #f2a541;
  --amber-bright: #ffc266;
  --ink: #14213d;
  --paper: #f6f3ec;
  --paper-warm: #efe9dc;
  --white: #ffffff;
  --line: #ddd6c7;
  --line-dark: rgba(255,255,255,0.14);
  --max: 1120px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  position: relative;
}

/* film grain overlay, purely decorative, never blocks input */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.01em; }

/* ---------- header ---------- */
header.site {
  background: rgba(246,243,236,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 650; font-size: 1.15rem; color: var(--navy); text-decoration: none; letter-spacing: -0.01em; }
.brand img { display: block; }
.brand span { color: var(--cyan); font-style: italic; }
nav.top { display: flex; align-items: center; gap: 22px; }
nav.top a { color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 500; position: relative; }
nav.top a:not(.tel-header)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
nav.top a:not(.tel-header):hover::after { transform: scaleX(1); }
.tel-header {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--navy);
  background: var(--paper-warm); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 28px; border-radius: 999px; font-weight: 650; text-decoration: none;
  font-size: 0.98rem; font-family: var(--sans); position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease; border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--amber); color: var(--navy-deep); box-shadow: 0 10px 24px -10px rgba(242,165,65,0.7); }
.btn-primary:hover { background: var(--amber-bright); }
.btn-ghost-dark { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-ghost-light { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost-light:hover { border-color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- full-bleed video hero ---------- */
.hero-video-full {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-video-full video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,20,34,0.72) 0%, rgba(5,20,34,0.40) 50%, rgba(5,20,34,0.05) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 60px 0; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.eyebrow-dark { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); color: var(--cyan-bright); }
.hero-content h1 { color: var(--white); max-width: 18ch; }
.lede-dark { color: #d9e4ee; }
.hero-content .underline { color: var(--white); }

/* ---------- hero ---------- */
.hero { padding: 76px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper-warm); border: 1px solid var(--line); color: var(--navy-mid);
  font-weight: 650; letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.72rem;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.6rem); line-height: 1.06; margin: 0 0 22px; color: var(--navy);
}
.underline {
  position: relative; white-space: nowrap; font-style: italic; color: var(--navy);
}
.underline svg { position: absolute; left: -2%; bottom: -0.12em; width: 104%; height: 0.3em; }
.hero .lede { font-size: 1.18rem; max-width: 46ch; color: #46516b; margin: 0 0 32px; }

.wave-art { position: relative; aspect-ratio: 1/1; border-radius: 28px; background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(11,42,74,0.5); }
.wave-art svg.waves { position: absolute; left: -10%; width: 120%; bottom: 0; }
.wave-art .glow { position: absolute; width: 60%; height: 60%; border-radius: 50%; background: radial-gradient(circle, rgba(79,224,220,0.35), transparent 70%); top: -10%; right: -10%; filter: blur(10px); }
.wave-art .rise-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 6px rgba(242,165,65,0.18); animation: rise 5s ease-in-out infinite; }
@keyframes rise { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.wave-art .caption { position: absolute; bottom: 20px; left: 24px; right: 24px; color: rgba(255,255,255,0.7); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.wave1 { animation: drift 18s linear infinite; }
.wave2 { animation: drift 26s linear infinite reverse; opacity: 0.6; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- wave dividers between sections ---------- */
.wave-divider { display: block; width: 100%; height: 70px; margin-bottom: -1px; }
.wave-divider.to-dark path { fill: var(--navy); }
.wave-divider.to-paper path { fill: var(--paper); }

/* ---------- dark section ---------- */
section.dark { background: var(--navy); color: #dce6f0; padding: 10px 0 70px; }
section.dark h2 { color: var(--white); }
section.dark .lead-text { color: #b9c9dc; }
section { padding: 70px 0; }
section.tight-top { padding-top: 10px; }
h2 { font-size: 1.9rem; margin: 0 0 26px; color: var(--navy); }
.lead-text { font-size: 1.05rem; max-width: 62ch; color: #46516b; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.section-tag { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
section.dark .section-tag { color: var(--cyan-bright); }

/* ---------- numbered feature list ---------- */
.feature-list { margin-top: 20px; border-top: 1px solid var(--line-dark); }
section:not(.dark) .feature-list { border-top: 1px solid var(--line); }
.feature-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 26px; padding: 26px 0;
  border-bottom: 1px solid var(--line-dark); align-items: baseline;
  opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease;
}
section:not(.dark) .feature-row { border-bottom: 1px solid var(--line); }
.feature-row.in-view { opacity: 1; transform: translateY(0); }
.feature-num { font-family: var(--serif); font-size: 1.6rem; color: var(--cyan); font-style: italic; }
section.dark .feature-num { color: var(--cyan-bright); }
.feature-row h3 { margin: 0 0 6px; font-size: 1.12rem; color: inherit; font-family: var(--sans); font-weight: 700; }
.feature-row p { margin: 0; color: inherit; opacity: 0.82; font-size: 0.98rem; max-width: 56ch; }

/* ---------- about / pull quote ---------- */
.about { display: flex; gap: 30px; align-items: flex-start; }
.monogram {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(155deg, var(--cyan), var(--navy));
  color: var(--white); font-family: var(--serif); font-style: italic; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center; font-weight: 650;
}
blockquote.pull {
  font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: var(--navy);
  margin: 0 0 18px; font-style: italic; max-width: 58ch;
}
.about .credit { font-size: 0.85rem; color: #6a7690; font-weight: 600; }

/* ---------- callout card ---------- */
.callout {
  background: var(--paper-warm); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 32px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  justify-content: space-between;
}
.callout p { margin: 0; max-width: 52ch; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 4px; font-family: var(--sans);
  font-weight: 650; font-size: 1.03rem; color: var(--navy); display: flex;
  justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { font-family: var(--serif); font-size: 1.4rem; color: var(--cyan); transition: transform .25s ease; flex-shrink: 0; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p.a { margin: 0 4px 22px; color: #46516b; max-width: 64ch; }

/* ---------- cta band ---------- */
.cta-band { background: var(--navy-deep); color: var(--white); text-align: center; padding: 76px 0; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--white); font-size: 2.1rem; }
.cta-band p { color: #b9c9dc; max-width: 50ch; margin: 0 auto 30px; font-size: 1.05rem; }

/* ---------- footer ---------- */
footer.site { background: var(--navy-deep); color: #8ea1ba; padding: 34px 0; font-size: 0.88rem; border-top: 1px solid var(--line-dark); }
footer.site a { color: #c7d6e6; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.brand-footer { display: flex; align-items: center; gap: 8px; }
.brand-footer img { display: block; opacity: 0.9; }

.updated { font-size: 0.83rem; color: #8695ac; margin-top: 10px; }

/* ---------- toolkit form ---------- */
form.toolkit { max-width: 440px; margin-top: 28px; }
form.toolkit input {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; font-size: 1rem; font-family: var(--sans); background: var(--white);
}
form.toolkit input:focus { outline: none; border-color: var(--cyan); }
.form-msg {
  margin-top: 14px; font-size: 0.9rem; color: var(--navy); display: none;
  background: var(--paper-warm); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}

/* ---------- how-it-works steps (option C) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 30px; position: relative; }
.step { padding: 0 22px 0 0; position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; right: -2px; width: calc(100% - 44px); height: 1px;
  background: repeating-linear-gradient(to right, var(--line) 0 6px, transparent 6px 12px);
}
.step .step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic;
  font-size: 1.15rem; margin-bottom: 16px; position: relative; z-index: 1;
}
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: #46516b; font-size: 0.95rem; }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .wave-art { max-width: 340px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step:not(:last-child)::after { display: none; }
  nav.top { gap: 12px; }
  nav.top a:not(.tel-header) { display: none; }
  .about { flex-direction: column; }
}

/* EBT logo prominence */
.hero-logo { display: inline-block; height: 80px; width: auto; margin-bottom: 14px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
@media (max-width: 600px) { .hero-logo { height: 56px; } }

/* lead form */
.leadform { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; max-width: 640px; }
.leadform input[type=text], .leadform input[type=email] { flex: 1 1 200px; padding: 15px 18px; font: inherit; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.leadform input:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
.leadform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.leadform .fine { flex-basis: 100%; margin: 2px 0 0; font-size: .85rem; color: #5b6778; }
.leadform .fine.err { color: #b3261e; font-weight: 600; }
.leadok { margin-top: 22px; padding: 20px 24px; background: #fff; border: 1.5px solid var(--cyan); border-radius: 14px; max-width: 640px; }
