:root {
  --navy: #0b2341;
  --blue: #1557a6;
  --ink: #142033;
  --muted: #5c6b7f;
  --line: #dbe5ef;
  --soft: #f5f8fb;
  --gold: #c9972f;
  --gold-text: #7a570a;
  --gold-soft: #fff5db;
  --green: #1f8a6b;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(14, 34, 62, .12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(219, 229, 239, .9);
  backdrop-filter: blur(16px);
}

.nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #1f8a6b);
  box-shadow: 0 8px 24px rgba(31, 138, 107, .22);
  overflow: hidden;
}

.brand-mark i,
.brand-mark svg {
  display: none;
}

.brand-mark::before {
  content: "";
  width: 31px;
  height: 31px;
  background: url("assets/rooted-tree-mark.svg") center / contain no-repeat;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #33465f;
  font-size: .94rem;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 750;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: #142033;
  box-shadow: 0 12px 26px rgba(201, 151, 47, .22);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  color: var(--navy);
  border-color: var(--line);
  background: var(--white);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(11, 35, 65, .96) 0%, rgba(11, 35, 65, .8) 38%, rgba(11, 35, 65, .28) 70%),
    url("assets/hero-local-ai-visibility.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(0deg, rgba(255,255,255,1), rgba(255,255,255,0));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(260px, 1fr);
  gap: 40px;
  padding: 76px 0 118px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(201, 151, 47, .42);
  border-radius: 999px;
  background: rgba(255, 245, 219, .11);
  color: #ffe2a2;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.6rem, 5vw, 4.55rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.1rem, 3.3vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero .lead,
.page-hero .lead {
  max-width: 690px;
  color: rgba(255,255,255,.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
  font-size: .9rem;
}

.hero-panel {
  align-self: end;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
}

.score-row + .score-row {
  margin-top: 10px;
}

.score-row strong {
  display: block;
}

.score-row span {
  color: rgba(255,255,255,.72);
  font-size: .88rem;
}

.score {
  font-weight: 900;
  color: #ffe2a2;
}

section {
  padding: 86px 0;
}

.section-soft {
  background: var(--soft);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.kicker {
  color: var(--gold-text);
  font-size: .82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .1em;
}

h2,
h3,
h4 {
  color: var(--navy);
  letter-spacing: 0;
  line-height: 1.08;
}

.section-navy h2,
.section-navy h3,
.section-navy h4 {
  color: var(--white);
}

.section-navy .kicker {
  color: #ffe2a2;
}

h2 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.45rem);
}

h3 {
  margin: 0 0 10px;
  font-size: clamp(1.28rem, 2vw, 1.7rem);
}

h4 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.section-head p,
.muted {
  color: var(--muted);
}

.section-navy .section-head p,
.section-navy .muted {
  color: rgba(255,255,255,.72);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 22px;
  box-shadow: 0 10px 24px rgba(14, 34, 62, .05);
}

.card:hover {
  border-color: rgba(201, 151, 47, .55);
}

.section-navy .card {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
}

.video-preview {
  display: grid;
  gap: 16px;
}

.video-preview.featured-video {
  border-color: rgba(201, 151, 47, .58);
  box-shadow: 0 18px 42px rgba(201, 151, 47, .16);
}

.video-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(11, 35, 65, .16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(11, 35, 65, .96), rgba(21, 87, 166, .62)),
    radial-gradient(circle at 70% 30%, rgba(201, 151, 47, .45), transparent 34%);
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
}

.video-thumb::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
}

.play-circle {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(0,0,0,.24);
}

.play-circle svg {
  width: 30px;
  height: 30px;
  margin-left: 3px;
}

.video-time {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0,0,0,.48);
  color: var(--white);
  font-size: .82rem;
  font-weight: 800;
}

.flip-card {
  min-height: 306px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
  padding: 0;
  perspective: 1200px;
  cursor: pointer;
}

.flip-card:hover {
  border-color: transparent;
}

.flip-card:focus-visible {
  outline: 3px solid rgba(201, 151, 47, .55);
  outline-offset: 4px;
}

.flip-card-inner {
  position: relative;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform .48s ease;
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 22px;
  box-shadow: 0 10px 24px rgba(14, 34, 62, .05);
  backface-visibility: hidden;
}

.flip-front {
  justify-content: flex-start;
}

.flip-front::after,
.flip-back::after {
  content: "Click to see how";
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-text);
  font-size: .78rem;
  font-weight: 850;
}

.flip-back::after {
  content: "Click to return";
}

.flip-back {
  transform: rotateY(180deg);
  background: #f9fbfe;
}

.flip-back h3 {
  margin-bottom: 12px;
}

.flip-card:hover .flip-face {
  border-color: rgba(201, 151, 47, .55);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--gold-soft);
  color: #8a650d;
}

.section-navy .icon {
  background: rgba(255,255,255,.12);
  color: #ffe2a2;
}

.plain-list,
.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.plain-list li,
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  color: #42566e;
}

.section-navy .plain-list li,
.section-navy .check-list li {
  color: rgba(255,255,255,.78);
}

.check-list i {
  flex: 0 0 auto;
  color: var(--green);
  margin-top: 2px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: #38506b;
  font-size: .9rem;
  font-weight: 700;
}

.section-navy .pill {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.84);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}

.split.tight {
  gap: 24px;
  align-items: start;
}

.visual-stack {
  display: grid;
  gap: 12px;
}

.signal-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 12px 26px rgba(14, 34, 62, .06);
}

.signal-card .rank {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef5ff;
  color: var(--blue);
  font-weight: 900;
}

.signal-card small {
  display: block;
  color: var(--muted);
}

.bar {
  height: 8px;
  width: 78px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #efe1ba);
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.flow-step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--white);
  color: var(--ink);
}

.section-navy .flow-step h3 {
  color: var(--navy);
}

.section-navy .flow-step .muted {
  color: var(--muted);
}

.flow-step::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 42px;
  width: 12px;
  height: 1px;
  background: var(--line);
}

.flow-step:last-child::after {
  display: none;
}

.fit-terms {
  margin-top: 18px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-card.featured {
  border: 2px solid var(--gold);
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #7a570a;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.price {
  margin: 14px 0;
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 900;
  color: var(--navy);
}

.price-card h2 {
  font-size: clamp(2rem, 3vw, 2.65rem);
}

.tier-fit {
  margin: 6px 0 10px;
  color: var(--navy);
  font-weight: 800;
}

.price small {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 700;
}

.price-card .btn {
  margin-top: auto;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--navy);
  background: #f7f9fc;
}

tr:last-child td {
  border-bottom: 0;
}

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 62px;
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(240px, 1fr);
  gap: 40px;
  align-items: end;
}

.report-hero {
  padding: 54px 0 54px;
}

.report-hero .container {
  grid-template-columns: minmax(0, 660px) minmax(360px, 500px);
  align-items: center;
}

.report-hero h1 {
  max-width: 620px;
}

.report-hero .lead {
  max-width: 650px;
}

.page-card {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 18px;
}

.page-hero .page-card .muted {
  color: rgba(255,255,255,.78);
}

.report-form-card {
  background: var(--white);
  border-color: var(--line);
  box-shadow: var(--shadow);
  padding: 22px;
}

.report-form-card h3,
.monthly-upgrade-card h3 {
  color: var(--navy);
}

.page-hero .report-form-card .muted,
.section-navy .monthly-upgrade-card .muted {
  color: var(--muted);
}

.section-navy .monthly-upgrade-card {
  background: var(--white);
  border-color: rgba(255,255,255,.22);
}

.section-navy .monthly-upgrade-card .check-list li {
  color: #42566e;
}

.mini-metrics {
  display: grid;
  gap: 10px;
}

.metric {
  padding: 13px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
}

.metric strong {
  display: block;
  color: #ffe2a2;
  font-size: 1.35rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 18px 18px;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  display: block;
}

.cta-band {
  background-color: var(--navy);
  background-image: linear-gradient(135deg, var(--navy), #123b68);
  color: var(--white);
  padding: 54px 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.cta-inner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  color: var(--white);
}

.cta-inner p {
  color: rgba(255,255,255,.76);
}

.site-footer {
  background: #07192f;
  color: rgba(255,255,255,.76);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 32px;
}

.site-footer h4 {
  color: var(--white);
}

.site-footer a {
  display: block;
  padding: 5px 0;
}

.site-footer .brand {
  display: flex;
  color: var(--white);
  padding: 0;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .9rem;
}

.audit-form {
  display: grid;
  gap: 12px;
}

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

.hidden-field {
  display: none;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 126px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: .9rem;
}

.case-card {
  display: grid;
  gap: 18px;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.case-metrics div {
  border-radius: 8px;
  padding: 12px;
  background: #f7f9fc;
}

.case-metrics strong {
  display: block;
  color: var(--blue);
  font-size: 1.45rem;
}

.wireframe {
  display: grid;
  gap: 8px;
}

.wireframe div {
  border: 1px dashed #b8c6d6;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,.75);
  color: #42566e;
  font-weight: 700;
}

@media (max-width: 980px) {
  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 11px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .page-hero .container,
  .split,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 68px 0 96px;
  }

  .hero-panel {
    max-width: 540px;
  }

  .grid-4,
  .grid-3,
  .pricing-grid,
  .flow,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  section {
    padding: 62px 0;
  }

  .nav {
    height: 66px;
  }

  .nav-links {
    top: 66px;
  }

  .brand span {
    max-width: 132px;
    line-height: 1.05;
  }

  .hero::before {
    background-image:
      linear-gradient(180deg, rgba(11, 35, 65, .98) 0%, rgba(11, 35, 65, .86) 60%, rgba(11, 35, 65, .54) 100%),
      url("assets/hero-local-ai-visibility.png");
    background-position: center;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.05rem);
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .pricing-grid,
  .flow,
  .footer-grid,
  .field-grid,
  .case-metrics {
    grid-template-columns: 1fr;
  }

  .flow-step::after {
    display: none;
  }

  .flip-card {
    min-height: 286px;
  }

  .hero-actions,
  .cta-inner .btn {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .signal-card {
    grid-template-columns: 44px 1fr;
  }

  .signal-card .bar {
    grid-column: 1 / -1;
    width: 100%;
  }
}
