:root {
  --ink: #0c2430;
  --deep: #0a3142;
  --navy: #123f50;
  --water: #0f6f85;
  --foam: #e9faf8;
  --sky: #dff4f5;
  --oyster: #fff8ea;
  --sand: #f4d6a0;
  --gold: #f5b942;
  --crab: #d3493d;
  --brick: #a64936;
  --green: #2e8c46;
  --amber: #b97a0a;
  --blue: #1d7fb5;
  --muted: #46595f;
  --line: rgba(12, 36, 48, 0.14);
  --shadow: 0 24px 70px rgba(12, 36, 48, 0.16);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 5%, rgba(245, 185, 66, 0.22), transparent 32rem),
    radial-gradient(circle at 98% 20%, rgba(72, 164, 216, 0.18), transparent 28rem),
    linear-gradient(180deg, #fffaf0 0%, #f2fbfc 46%, #fff8ea 100%);
  line-height: 1.55;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--water);
  outline-offset: 2px;
  border-radius: 6px;
}
.button:focus-visible, .tab:focus-visible, .provider:focus-visible { outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip a {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 999;
}
.skip a:focus { left: 12px; }
.shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }

/* Subtle Maryland flag-inspired accent stripe */
.site-header::before, .site-footer::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--gold) 0 25%, #1c1c1c 25% 50%, var(--crab) 50% 75%, #fdfaf2 75% 100%);
  opacity: .85;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px min(28px, 4vw) 14px;
  background: rgba(255, 248, 234, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(12, 36, 48, 0.12);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand strong { display: block; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand small { display: block; color: var(--muted); font-size: .78rem; margin-top: -2px; }
.primary-nav { display: flex; gap: 24px; align-items: center; font-weight: 700; font-size: .92rem; }
.primary-nav a { text-decoration: none; color: rgba(12, 36, 48, .82); }
.primary-nav a:hover { color: var(--deep); text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle { display: none; border: 0; background: var(--deep); color: white; border-radius: 12px; padding: 9px 12px; }

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(400px, 1.04fr);
  align-items: center;
  gap: 44px;
  padding: 72px 0 64px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--water);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  font-size: .78rem;
}
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.045em; }
h1 { font-size: clamp(2.9rem, 6.4vw, 6rem); margin: 0 0 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); margin: 0 0 18px; }
h3 { font-size: 1.35rem; margin: 0 0 12px; }
h4 { margin: 0 0 8px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 63ch; color: #284751; margin: 0 0 28px; }
.hero-actions, .button-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.button.primary { background: var(--crab); color: white; box-shadow: 0 12px 30px rgba(211, 73, 61, .28); }
.button.secondary { background: rgba(255, 255, 255, .8); color: var(--deep); border-color: var(--line); }
.button.ghost { background: transparent; color: var(--deep); border-color: var(--line); }
.button.chip { min-height: 34px; padding: 6px 12px; font-size: .84rem; font-weight: 800; background: white; color: var(--deep); border-color: var(--line); }
.linklike {
  background: none; border: 0; padding: 0; margin-top: 6px;
  color: var(--water); font-weight: 800; font-size: .84rem;
  text-decoration: underline; text-underline-offset: 3px;
}
.linklike.danger { color: var(--crab); text-decoration: none; font-size: 1rem; }

/* One-field quick start */
.quickstart {
  display: flex;
  gap: 10px;
  align-items: stretch;
  max-width: 560px;
  margin: 0 0 10px;
  padding: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(12, 36, 48, 0.12);
}
.quickstart input {
  flex: 1;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 1.02rem;
  background: transparent;
}
.quickstart input:focus-visible { outline: none; box-shadow: none; }
.quickstart:focus-within { border-color: var(--water); box-shadow: 0 0 0 4px rgba(15,111,133,.16), 0 18px 48px rgba(12,36,48,.12); }
.quickstart .button { flex: 0 0 auto; }
.quickstart-hint { color: var(--muted); font-size: .9rem; margin: 0 0 22px; max-width: 56ch; }
.quickstart-hint.error { color: #a92c21; font-weight: 700; }

/* Signal Crew autopilot feed */
.agent-feed { margin-bottom: 16px; }
.agent-feed h4 { margin-bottom: 8px; }
.agent-feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.agent-step {
  display: flex;
  gap: 10px;
  align-items: start;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 9px 12px;
}
.agent-marker { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; margin-top: 5px; border: 2px solid rgba(12,36,48,.3); background: transparent; }
.agent-step.done .agent-marker { background: var(--green); border-color: var(--green); }
.agent-step.active .agent-marker { background: var(--blue); border-color: var(--blue); animation: pulse 1.8s ease-in-out infinite; }
.agent-step.attention .agent-marker { background: #d99a06; border-color: #d99a06; }
.agent-step strong { font-size: .92rem; margin-right: 8px; }
.agent-state { font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.agent-step.active .agent-state { color: var(--blue); }
.agent-step.attention .agent-state { color: #9a6d02; }
.agent-step.done .agent-state { color: var(--green); }
.agent-detail { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .agent-step.active .agent-marker { animation: none; } }

.signal-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 28px; }
.signal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .83rem;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(12, 36, 48, 0.08);
}
.signal::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.signal.green::before { background: var(--green); }
.signal.amber::before { background: var(--amber); }
.signal.blue::before { background: var(--blue); }
.hero-card { border-radius: 38px; box-shadow: var(--shadow); }
.annapolis-scene { width: 100%; height: auto; display: block; border-radius: 38px; }

/* Gentle sailboat bob; fully disabled under reduced motion */
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-.6deg); }
}
.annapolis-scene .bob { animation: bob 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
.annapolis-scene .bob.slow { animation-duration: 8.5s; animation-delay: 1.2s; }

.name-strip {
  /* Annapolis Main Street & State House dome (Sami Abdullah, Pexels 26546667)
     under a deep navy overlay; gradient remains as the offline fallback. */
  background:
    linear-gradient(rgba(8, 38, 52, .9), rgba(8, 38, 52, .92)),
    url("https://images.pexels.com/photos/26546667/pexels-photo-26546667.jpeg?auto=compress&cs=tinysrgb&w=1600") center 28% / cover no-repeat,
    linear-gradient(90deg, var(--deep), #174c60);
  color: white;
  padding: 44px 0;
}
.name-strip .eyebrow { color: var(--sand); }
.name-grid { display: grid; grid-template-columns: .45fr 1fr; gap: 40px; align-items: center; }
.name-grid h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.6rem); }
.name-grid p:last-child { margin: 0; color: rgba(255, 255, 255, .88); font-size: 1.05rem; }

.section { padding: 92px 0; }
.section-heading { max-width: 840px; margin-bottom: 34px; }
.section-heading p:last-child { font-size: 1.1rem; color: var(--muted); margin-top: 0; }
.feature-grid, .scenery-grid, .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card, .scenery-card, .price-card, .panel, .cta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 48px rgba(12, 36, 48, 0.08);
}
.feature-card { padding: 25px; }
.feature-card .icon { font-size: 2rem; display: block; margin-bottom: 14px; }
.feature-card p, .price-card p, .scenery-card p { color: var(--muted); margin-bottom: 0; }

.dark { background: linear-gradient(180deg, var(--deep), #06212d); color: white; }
.dark .eyebrow { color: var(--sand); }
.dark .section-heading p { color: rgba(255, 255, 255, .82); }
.timeline {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  counter-reset: step;
}
.timeline li {
  position: relative;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.timeline li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 950;
  margin-bottom: 18px;
}
.timeline strong { display: block; font-size: 1.1rem; margin-bottom: 9px; }
.timeline span { display: block; color: rgba(255,255,255,.8); font-size: .95rem; }

.light { background: rgba(233, 250, 248, .65); }
.split-section { display: grid; grid-template-columns: .9fr 1fr; gap: 50px; align-items: center; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.principles p { margin: 0; padding: 18px; border-radius: var(--radius-md); background: white; border: 1px solid var(--line); }

.app-header { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 22px; }
.app-header p { color: var(--muted); max-width: 760px; }
.app-shell { background: rgba(10,49,66,.94); color: white; border-radius: var(--radius-xl); padding: 12px; box-shadow: var(--shadow); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tab {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.88);
  font-weight: 900;
}
.tab.active { background: var(--oyster); color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .85fr); gap: 12px; }
.panel {
  background: var(--oyster);
  color: var(--ink);
  padding: 22px;
  min-width: 0;
}
.panel h3 { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.field { display: grid; gap: 14px; margin-bottom: 14px; }
.field.two { grid-template-columns: repeat(2, 1fr); }
.control { display: flex; flex-direction: column; min-width: 0; margin-bottom: 4px; }
label, legend { font-weight: 850; color: #183540; font-size: .94rem; }
input, select, textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid rgba(12,36,48,.22);
  border-radius: 13px;
  background: white;
  color: var(--ink);
  padding: 12px 13px;
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--water);
  box-shadow: 0 0 0 4px rgba(15,111,133,.18);
}
input[aria-invalid="true"] { border-color: var(--crab); }
.field-error { color: #a92c21; font-weight: 700; font-size: .82rem; min-height: 1em; margin-top: 4px; }
.field-hint { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.checks {
  border: 1px solid rgba(12,36,48,.15);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 16px 0;
  background: rgba(255,255,255,.58);
}
.checks label { display: block; margin: 10px 0; font-weight: 750; }
.checks input { width: auto; margin: 0 8px 0 0; }
.checks.prominent { border-color: rgba(211,73,61,.4); background: rgba(211,73,61,.06); }
.hold-state .segmented { display: flex; gap: 8px; flex-wrap: wrap; }
.hold-state .segmented label {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px;
  background: white; margin: 4px 0; font-weight: 800; font-size: .88rem;
}
.hold-state .segmented label:has(input:checked) { background: var(--deep); color: white; border-color: var(--deep); }
.hold-state .segmented label:has(input:disabled) { opacity: .5; }
.hold-state .segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.routing-box {
  margin-top: 20px;
  border: 1px dashed rgba(12,36,48,.3);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(255,255,255,.55);
}
.routing-link-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; margin: 10px 0 14px; }
.routing-link-row input { margin-top: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; }
.routing-status { margin: 10px 0 0; font-size: .9rem; color: #1d4a56; font-weight: 700; }
.reply-helper { margin-top: 16px; border-top: 1px dashed rgba(12,36,48,.25); padding-top: 12px; }
.reply-helper summary { cursor: pointer; font-weight: 850; color: var(--deep); }
.reply-helper summary:hover { color: var(--water); }
.reply-helper > .control, .reply-helper .field { margin-top: 12px; }
.reply-actions { flex-direction: row; align-items: end; gap: 8px; }
.hero-photo {
  width: 100%;
  display: block;
  border-radius: 38px;
  object-fit: cover;
  aspect-ratio: 860 / 580;
}

.status-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.status-subtitle { margin: 6px 0 0; color: var(--muted); font-size: .9rem; font-weight: 700; }
.next-action { width: 100%; margin-top: 4px; font-size: 1.02rem; }
.next-action-hint { margin: 8px 0 14px; color: var(--muted); font-size: .86rem; text-align: center; }
.form-step {
  margin: 22px 0 10px;
  color: var(--water);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .74rem;
  font-weight: 900;
  border-top: 1px solid rgba(12,36,48,.1);
  padding-top: 14px;
}
.form-panel h3 + .form-step { margin-top: 6px; border-top: 0; padding-top: 0; }
.form-panel.tem-mode .cleared-only { display: none; }
.output-head { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.output-head .linklike { margin-top: 0; }
.output-head + .output-box { margin-top: 8px; }
.small-label { display: block; color: var(--muted); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.score-ring {
  --score: 0deg;
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--score), rgba(12,36,48,.12) 0);
  position: relative;
}
.score-ring::after { content: ""; position: absolute; inset: 9px; background: var(--oyster); border-radius: 50%; }
.score-ring span { position: relative; z-index: 1; font-weight: 950; font-size: 1.15rem; }
.progress { height: 10px; background: rgba(12,36,48,.12); border-radius: 999px; overflow: hidden; margin: 18px 0; }
.progress span { display: block; width: 0%; height: 100%; background: linear-gradient(90deg, var(--amber), var(--green)); transition: width .25s ease; }

.tide-clock {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px;
}
.tide-clock > div {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 12px 14px; text-align: center;
}
.tide-num { display: block; font-size: 1.9rem; font-weight: 950; letter-spacing: -.04em; }
.tide-label { display: block; color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.tide-clock.urgent > div { border-color: rgba(211,73,61,.5); }
.tide-clock.urgent .tide-num { color: var(--crab); }

.status-cards { display: grid; gap: 9px; }
.status-card {
  border: 1px solid rgba(12,36,48,.12);
  background: white;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: start;
}
.status-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; margin-top: 6px; background: var(--amber); }
.status-dot.ok { background: var(--green); }
.status-dot.warn { background: var(--amber); }
.status-dot.bad { background: var(--crab); }
.status-card strong { display: block; }
.status-card span { color: var(--muted); font-size: .93rem; }

.occurrences { margin-top: 18px; }
.occurrence-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.occurrence-list li {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  background: white; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 9px 12px; font-size: .9rem;
}
.occurrence-list .occ-date { font-weight: 900; font-variant-numeric: tabular-nums; }
.occurrence-list .occ-badge { font-weight: 800; font-size: .78rem; padding: 3px 9px; border-radius: 999px; }
.occurrence-list li.covered .occ-badge { background: rgba(46,140,70,.14); color: #1c6132; }
.occurrence-list li.uncovered { border-color: rgba(211,73,61,.45); }
.occurrence-list li.uncovered .occ-badge { background: rgba(211,73,61,.12); color: #9c2f24; }
.occurrence-list .chip { margin-left: auto; }

.next-actions { margin-top: 18px; }
.next-actions ul { padding-left: 18px; margin: 8px 0 0; }
.next-actions li { margin: 8px 0; color: #294851; }
.output-box {
  margin-top: 18px;
  min-height: 150px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(12,36,48,.13);
  background: #102f3b;
  color: #eaf7f8;
  padding: 15px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .88rem;
  overflow: auto;
}
.output-box.tall { min-height: 430px; }
.tem-context { font-weight: 800; color: #1d4a56; min-height: 1.2em; }
.provider-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0; }
.provider {
  text-align: left;
  border: 1px solid rgba(12,36,48,.15);
  border-radius: var(--radius-md);
  padding: 16px;
  background: white;
  color: var(--ink);
}
.provider strong { display: block; font-size: 1.05rem; }
.provider span { color: var(--muted); font-size: .9rem; }
.provider:hover { border-color: var(--water); box-shadow: 0 12px 30px rgba(12,36,48,.09); }
.action-item-row { display: grid; grid-template-columns: .8fr 1.2fr .8fr auto; gap: 8px; align-items: end; margin-bottom: 14px; }
.action-item-row .button { margin-bottom: 2px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th, .data-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(12,36,48,.12); vertical-align: top; }
.data-table th { color: #0c586b; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.microcopy { margin-top: 18px; color: var(--muted); font-size: .93rem; border-left: 4px solid var(--gold); padding-left: 12px; }
.split-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 12px; }
.harbor-table td:nth-child(4) { min-width: 260px; }

/* Case study: 13 emails vs 2 decisions */
.casestudy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.cs-col {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.78);
  padding: 24px;
  box-shadow: 0 18px 48px rgba(12, 36, 48, 0.08);
}
.cs-old { border-top: 5px solid var(--crab); }
.cs-new { border-top: 5px solid var(--green); background: rgba(233, 250, 248, .8); }
.cs-thread { margin: 12px 0 0; padding-left: 22px; }
.cs-thread li { margin: 7px 0; color: var(--muted); font-size: .93rem; }
.cs-thread em { color: #9c2f24; font-style: normal; font-weight: 700; }
.cs-fixes { list-style: none; margin: 12px 0 0; padding: 0; }
.cs-fixes li { margin: 0 0 14px; padding-left: 26px; position: relative; color: #294851; font-size: .96rem; }
.cs-fixes li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 950; }
.cs-result { margin: 18px 0 0; padding: 14px 16px; border-radius: var(--radius-md); background: white; border: 1px solid var(--line); font-size: .98rem; }
.cs-result span { font-weight: 950; color: var(--deep); margin-right: 6px; }

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
}
.glossary-grid > div {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.glossary-grid dt { font-weight: 950; letter-spacing: -.02em; margin-bottom: 4px; color: var(--deep); }
.glossary-grid dd { margin: 0; color: var(--muted); font-size: .95rem; }

.price-card { padding: 28px; }
.price-card.featured { background: var(--deep); color: white; transform: translateY(-10px); }
.price-card.featured p { color: rgba(255,255,255,.82); }
.price { font-size: 2.8rem; line-height: 1; font-weight: 950; letter-spacing: -.06em; color: var(--deep) !important; margin: 16px 0 12px !important; }
.price-card.featured .price { color: var(--sand) !important; }
.price span { font-size: 1rem; font-weight: 800; color: var(--muted); }
.price-card.featured .price span { color: rgba(255,255,255,.7); }
.price.badge {
  font-size: 1.35rem !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
}
.early-cta { margin-top: 26px; text-align: center; }
.early-cta .button { min-width: 220px; }
.early-cta-note { color: var(--muted); font-size: .9rem; max-width: 52ch; margin: 12px auto 0; }

.services-note {
  margin-top: 28px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .5);
  text-align: center;
}
.services-note p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 68ch; margin-inline: auto; }
.services-note a { color: var(--water); font-weight: 700; text-decoration: none; }
.services-note a:hover { text-decoration: underline; text-underline-offset: 3px; }
.microcopy.quiet { border-left-color: rgba(12,36,48,.18); font-size: .87rem; }
.microcopy.quiet a { color: var(--water); font-weight: 700; text-decoration: none; }
.microcopy.quiet a:hover { text-decoration: underline; }

.cta-section { padding: 40px 0 100px; }
.cta-card { padding: clamp(28px, 6vw, 60px); text-align: center; background: linear-gradient(135deg, var(--deep), #17637a); color: white; }
.cta-card .eyebrow { color: var(--sand); }
.cta-card p { color: rgba(255,255,255,.84); max-width: 720px; margin-left: auto; margin-right: auto; }
.site-footer { position: relative; background: #071e28; color: rgba(255,255,255,.85); padding: 34px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.footer-legal p { margin: 0; font-size: .78rem; color: rgba(255,255,255,.55); letter-spacing: .01em; }
.footer-grid p { margin: 8px 0 0; }
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--ink);
  color: white;
  padding: 13px 16px;
  border-radius: 14px;
  box-shadow: 0 14px 44px rgba(0,0,0,.24);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 999;
  max-width: min(420px, calc(100% - 36px));
}
.toast.show { opacity: 1; transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .annapolis-scene .bob { animation: none; }
  .button, .progress span, .toast { transition: none; }
}

@media (max-width: 980px) {
  .hero, .app-grid, .split-section, .name-grid { grid-template-columns: 1fr; }
  .timeline, .feature-grid, .scenery-grid, .pricing-grid, .glossary-grid { grid-template-columns: repeat(2, 1fr); }
  .casestudy-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 48px; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 74px;
    right: 18px;
    left: 18px;
    flex-direction: column;
    align-items: stretch;
    background: var(--oyster);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 680px) {
  .field.two, .provider-grid, .feature-grid, .scenery-grid, .pricing-grid, .timeline, .principles, .footer-grid, .glossary-grid { grid-template-columns: 1fr; }
  .app-header, .split-head { align-items: stretch; flex-direction: column; }
  .action-item-row, .routing-link-row { grid-template-columns: 1fr; }
  .occurrence-list .chip { margin-left: 0; }
  .panel { padding: 16px; }
  .site-header { padding: 14px 16px 12px; }
  .brand small { display: none; }
  .section { padding: 64px 0; }
  .tide-clock { grid-template-columns: 1fr 1fr; }
  .button { width: 100%; }
  .hero-actions .button, .tabs .tab { width: auto; }
}

/* Print: packet-friendly output of the Helm, no marketing chrome */
@media print {
  body { background: white; color: black; }
  .site-header, .hero, .name-strip, #features, #workflow, #glossary,
  .light, #pricing, .cta-section, .scenery-section, .toast, .nav-toggle,
  .app-header .button-row, .button, .provider-grid, .linklike, .skip { display: none !important; }
  .section { padding: 0; }
  .app-shell { background: white; color: black; box-shadow: none; padding: 0; }
  .tabs { display: none; }
  .tab-panel { display: block !important; page-break-after: always; }
  .tab-panel[hidden] { display: block !important; }
  .panel { box-shadow: none; border: 1px solid #999; background: white; }
  .output-box { background: white; color: black; border: 1px solid #999; }
  .app-grid { grid-template-columns: 1fr; }
  .site-footer { background: white; color: black; border-top: 1px solid #999; }
}
