:root {
  color-scheme: light;
  --ink: #102a3a;
  --navy: #0b2d42;
  --navy-soft: #123f58;
  --paper: #f4f6f1;
  --card: #ffffff;
  --teal: #117d78;
  --teal-dark: #095e5b;
  --mint: #dff1ed;
  --sky: #dcebf0;
  --amber: #f2c66d;
  --line: #d5ded9;
  --muted: #5e7078;
  --danger: #9f3741;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
button, input, textarea { font: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  padding: 24px 0;
  color: white;
}
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; }
.brand span { color: #9bd3ce; }
.nav-link { color: #dce9ed; font-size: 14px; font-weight: 700; text-decoration: none; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  padding: 150px 0 90px;
  background: var(--navy);
  color: white;
}
.hero::before {
  content: "";
  position: absolute;
  width: 660px;
  height: 660px;
  right: -240px;
  top: -280px;
  border: 1px solid rgba(155, 211, 206, .32);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(155, 211, 206, .035), 0 0 0 180px rgba(155, 211, 206, .025);
}
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 240px;
  right: 9%;
  bottom: 0;
  background: linear-gradient(135deg, transparent 49.6%, rgba(117, 199, 190, .28) 50%, transparent 50.4%);
  background-size: 44px 44px;
  opacity: .7;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: end; }
.eyebrow { margin: 0 0 22px; color: #9bd3ce; font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
h1 { max-width: 830px; margin: 0; font-size: clamp(52px, 7.2vw, 92px); line-height: .96; }
.hero-copy { max-width: 670px; margin: 30px 0 0; color: #c9d9df; font-size: clamp(18px, 2.1vw, 23px); line-height: 1.55; }
.hero-note { border-left: 2px solid var(--amber); padding: 4px 0 4px 22px; color: #dce9ed; font-size: 14px; }
.hero-note strong { display: block; margin-bottom: 7px; color: white; font-size: 15px; }
.cta { display: inline-flex; margin-top: 34px; padding: 13px 18px; border-radius: 8px; background: var(--amber); color: #3c2a08; font-size: 14px; font-weight: 850; text-decoration: none; }

.topic-section { padding: 82px 0 92px; }
.section-head { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; align-items: end; margin-bottom: 34px; }
.section-head h2 { margin: 0; font-size: clamp(38px, 4.4vw, 58px); line-height: 1; }
.section-head p { margin: 0; max-width: 650px; color: var(--muted); font-size: 17px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.topic-card { min-height: 282px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 12px 34px rgba(20, 50, 59, .045); }
.topic-number { display: flex; align-items: center; justify-content: space-between; color: var(--teal); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.topic-number::after { content: ""; width: 32px; height: 1px; background: #9bc9c4; }
.topic-card h3 { margin: 44px 0 14px; font-size: 29px; line-height: 1.08; }
.topic-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.source-to-tap { background: var(--mint); border-block: 1px solid #c3ddd7; }
.source-to-tap .wrap { display: grid; grid-template-columns: 230px 1fr; gap: 50px; align-items: center; padding-block: 45px; }
.source-mark { display: inline-flex; width: 190px; height: 74px; align-items: center; justify-content: center; border: 1px solid #7fb3ad; border-radius: 50%; color: var(--teal-dark); font-family: Georgia, serif; font-size: 22px; font-style: italic; }
.source-copy h2 { margin: 0 0 9px; font-size: 30px; }
.source-copy p { max-width: 760px; margin: 0; color: #365c60; }

.signup-section { padding: 92px 0 110px; }
.signup-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 65px; align-items: start; }
.signup-intro { position: sticky; top: 30px; }
.signup-intro h2 { margin: 0 0 20px; font-size: clamp(40px, 4.4vw, 58px); line-height: 1; }
.signup-intro > p { color: var(--muted); font-size: 16px; }
.approval-steps { margin: 30px 0 0; padding: 0; list-style: none; counter-reset: steps; }
.approval-steps li { position: relative; margin: 0 0 20px; padding-left: 45px; color: #3b535e; font-size: 14px; }
.approval-steps li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 0; top: -2px; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-size: 12px; font-weight: 800; }

.signup-card { padding: 34px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 16px 44px rgba(20, 50, 59, .07); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; }
.field.full { grid-column: 1 / -1; }
.field > span, .fieldset-title { display: block; margin-bottom: 7px; color: #354e59; font-size: 12px; font-weight: 850; }
.field input[type="text"], .field input[type="email"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b7c6c3;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
input:focus, button:focus-visible { outline: 3px solid #b9ddd8; outline-offset: 1px; }
.topic-options { display: grid; gap: 9px; }
.choice { display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px; border: 1px solid #d8e1de; border-radius: 9px; background: #fbfcfa; cursor: pointer; }
.choice input { margin-top: 3px; accent-color: var(--teal); }
.choice strong { display: block; font-size: 14px; }
.choice small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.licensee-picker { margin-top: 12px; padding: 16px; border-radius: 9px; background: #eef4f1; }
.licensee-picker[hidden] { display: none; }
.aphis-scope-options { display: grid; gap: 8px; margin: 0 0 15px; padding: 0; border: 0; }
.aphis-scope-options legend { margin-bottom: 7px; color: #354e59; font-size: 12px; font-weight: 850; }
.scope-choice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid #c8d8d3; border-radius: 8px; background: white; cursor: pointer; }
.scope-choice input { margin-top: 3px; accent-color: var(--teal); }
.scope-choice strong { display: block; font-size: 13px; }
.scope-choice small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
[data-licensee-selection][hidden] { display: none; }
.search-wrap { position: relative; }
.licensee-results { position: absolute; z-index: 4; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; border: 1px solid #b8c8c4; border-radius: 8px; background: white; box-shadow: 0 14px 30px rgba(12, 42, 54, .16); list-style: none; }
.licensee-results:empty { display: none; }
.licensee-results button { width: 100%; padding: 10px; border: 0; border-radius: 6px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.licensee-results button:hover { background: #edf5f2; }
.licensee-results strong, .selected-licensees strong { display: block; font-size: 13px; }
.licensee-results small, .selected-licensees small { color: var(--muted); }
.selected-licensees { display: grid; gap: 7px; margin-top: 11px; }
.selected-licensee { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 10px; border: 1px solid #c8d8d3; border-radius: 7px; background: white; }
.selected-licensee button { border: 0; background: none; color: var(--danger); font-size: 12px; font-weight: 800; cursor: pointer; }
.form-help { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.form-error { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #dfafb4; border-radius: 8px; background: #fae9ea; color: #792e35; font-size: 14px; font-weight: 700; }
.form-status { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #a5d0c2; border-radius: 8px; background: #e3f3ed; color: #1a6255; font-size: 14px; font-weight: 700; }
.privacy-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; }
.submit { width: 100%; margin-top: 22px; padding: 14px 18px; border: 0; border-radius: 8px; background: var(--teal); color: white; font-weight: 850; cursor: pointer; }
.submit:hover { background: var(--teal-dark); }
.honeypot { display: none !important; }

.message-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: var(--navy); }
.message-card { width: min(620px, 100%); padding: 42px; border-radius: 16px; background: white; box-shadow: 0 24px 70px rgba(0, 0, 0, .22); }
.message-card.wide { width: min(760px, 100%); }
.message-card h1 { margin: 0 0 18px; color: var(--ink); font-size: clamp(38px, 7vw, 58px); line-height: 1; }
.message-card p { color: var(--muted); }
.message-card a { color: var(--teal-dark); font-weight: 800; }
.manage-header { margin-bottom: 24px; }
.manage-header h1 { font-size: 48px; }
.unsubscribe { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.unsubscribe button { border: 0; background: none; color: var(--danger); font-weight: 800; cursor: pointer; }

.site-footer { padding: 34px 0; background: #082536; color: #bcd0d8; font-size: 12px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; }

@media (max-width: 860px) {
  .hero { min-height: auto; }
  .hero-grid, .section-head, .signup-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 220px; }
  .signup-intro { position: static; }
  .source-to-tap .wrap { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .site-header { padding-top: 18px; }
  .site-header .wrap { align-items: flex-start; }
  .brand { max-width: 210px; }
  .hero { padding-top: 132px; }
  h1 { font-size: 50px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .signup-card { padding: 22px; }
  .site-footer .wrap { display: block; }
}
