:root {
  --ink: #17211e;
  --muted: #5f6f68;
  --paper: #fbfaf5;
  --surface: #ffffff;
  --line: #d9dfd8;
  --lake: #1c6d7f;
  --deep: #0f3f4a;
  --moss: #677b3f;
  --clay: #b75f35;
  --sand: #eee4d1;
  --shadow: 0 18px 44px rgba(23, 33, 30, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 245, 0.92);
  border-bottom: 1px solid rgba(23, 33, 30, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--deep);
  color: white;
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: #102a2d;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 25, 23, 0.82), rgba(10, 25, 23, 0.44) 42%, rgba(10, 25, 23, 0.18)),
    linear-gradient(0deg, rgba(10, 25, 23, 0.46), rgba(10, 25, 23, 0.08)),
    url("shoreline-hero.jpg") center / cover;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  min-height: 760px;
  margin: 0 auto;
  padding: 88px 0 72px;
}

.hero-copy {
  max-width: 760px;
  color: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.15;
}

.hero-copy p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--clay);
  color: white;
}

.button.primary:hover {
  background: #9d4f2c;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border-color: rgba(255, 255, 255, 0.34);
}

.calculator-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.calculator-card.is-compact {
  align-self: start;
  background: var(--surface);
}

.calculator-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.calculator-topline strong {
  color: var(--deep);
  text-align: right;
}

.calculator-card form,
.lead-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid #cfd8d2;
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--lake);
  box-shadow: 0 0 0 3px rgba(28, 109, 127, 0.14);
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  overflow: hidden;
  background: white;
  border: 1px solid #cfd8d2;
  border-radius: 8px;
}

.input-row input {
  border: 0;
  border-radius: 0;
}

.input-row small {
  color: var(--muted);
  text-align: center;
}

.estimate-output {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 16px;
  background: #f2f7f3;
  border: 1px solid #d8e4d9;
  border-radius: 8px;
}

.estimate-output span,
.estimate-output small {
  color: var(--muted);
  font-size: 13px;
}

.estimate-output strong {
  color: var(--deep);
  font-size: 28px;
  line-height: 1.1;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, calc(100% - 36px));
  margin: -44px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-strip div {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip span,
.metric-strip small {
  display: block;
  color: var(--muted);
}

.metric-strip strong {
  display: block;
  margin: 6px 0;
  color: var(--deep);
  font-size: 30px;
}

.content-band,
.split-band,
.estimate-section,
.faq-section,
.subpage-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.topic-card {
  display: grid;
  gap: 12px;
  min-height: 248px;
  padding: 22px;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.topic-card:hover {
  border-color: rgba(28, 109, 127, 0.45);
  box-shadow: 0 12px 30px rgba(23, 33, 30, 0.08);
  transform: translateY(-1px);
}

.topic-card span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.topic-card p {
  color: var(--muted);
}

.topic-card strong {
  align-self: end;
  color: var(--deep);
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.split-band p {
  color: var(--muted);
  font-size: 18px;
}

.check-list,
.monetization-box ul,
.market-panel ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li,
.monetization-box li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before,
.monetization-box li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 14px;
  height: 2px;
  background: var(--moss);
}

.monetization-box,
.market-panel {
  padding: 24px;
  background: var(--sand);
  border: 1px solid #dfd2bd;
  border-radius: 8px;
}

.monetization-box ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
}

.subpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  padding-top: clamp(44px, 7vw, 86px);
}

.subpage-hero h1 {
  color: var(--ink);
  font-size: clamp(42px, 6vw, 70px);
}

.subpage-hero p {
  color: var(--muted);
  font-size: 19px;
}

.crumb {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  text-decoration: none;
}

.range-pill,
.lead-value {
  display: inline-grid;
  gap: 4px;
  padding: 14px 16px;
  background: #ecf3f0;
  border: 1px solid #d4dfda;
  border-radius: 8px;
}

.range-pill span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.range-pill strong {
  color: var(--deep);
  font-size: 22px;
}

.factor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.factor-grid div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.factor-grid span {
  width: 14px;
  height: 14px;
  margin-top: 5px;
  background: var(--lake);
  border-radius: 50%;
}

.factor-grid p {
  margin: 0;
  color: var(--muted);
}

.faq-section {
  display: grid;
  gap: 12px;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 850;
}

details p {
  padding: 0 20px 20px;
  color: var(--muted);
}

.estimate-section {
  border-top: 1px solid var(--line);
}

.lead-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 33, 30, 0.07);
}

.wide {
  grid-column: 1 / -1;
}

.hidden-field {
  display: none;
}

.market-panel li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d7c7ae;
}

.market-panel li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.market-panel a {
  color: var(--deep);
  font-weight: 850;
  text-decoration: none;
}

.market-panel span {
  color: var(--muted);
  text-align: right;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.site-footer p {
  max-width: 620px;
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: start;
}

@media (max-width: 980px) {
  .hero-content,
  .subpage-hero,
  .split-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    min-height: auto;
  }

  .calculator-card {
    max-width: 560px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-strip div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 42px;
  }

  .hero-content {
    width: min(100% - 28px, 1180px);
    padding: 56px 0 58px;
  }

  .hero-bg {
    background:
      linear-gradient(0deg, rgba(10, 25, 23, 0.82), rgba(10, 25, 23, 0.22)),
      url("shoreline-hero.jpg") center / cover;
  }

  .hero-copy p,
  .section-heading p,
  .split-band p,
  .subpage-hero p {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .card-grid,
  .factor-grid,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }

  .content-band,
  .split-band,
  .estimate-section,
  .faq-section,
  .subpage-hero {
    width: min(100% - 28px, 1180px);
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
