/* Retention Systems landing pages.
   Brand colors from the current site. System font stack only. */

:root {
  --ink: #003057;
  --navy: #0047BB;
  --yellow: #FFC845;
  --yellow-hot: #FFD970;
  --paper: #E6F2FF;
  --mist: #F4F8FC;
  --white: #FFFFFF;
  --line: #D3DDE8;
  --muted: #3D5166;
  --ph-bg: #FFF3C4;
  --ph-ink: #3D2E00;
  --ph-line: #8A6A00;
  --radius: 12px;
  --shadow: 0 16px 40px rgba(0, 48, 87, 0.16);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: light;
}

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

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 750;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.125rem; }

a {
  color: var(--navy);
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.band-ink :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--yellow);
}

.skip-link {
  position: absolute;
  left: 8px;
  top: 8px;
  transform: translateY(-140px);
  background: var(--yellow);
  color: var(--ink);
  padding: 12px 16px;
  z-index: 60;
  font-weight: 750;
  text-decoration: none;
  border-radius: 8px;
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: auto;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.band {
  padding: 56px 0;
}

.band-paper { background: var(--paper); }
.band-mist { background: var(--mist); }
.band-white { background: var(--white); }

.band-ink {
  background: var(--ink);
  color: var(--white);
}

.band-ink h2,
.band-ink p {
  color: var(--white);
}

.band-ink .panel,
.band-ink .panel h2,
.band-ink .panel h3,
.band-ink .panel p,
.band-ink .panel label,
.band-ink .panel li {
  color: var(--ink);
}

.band-ink .panel .hint,
.band-ink .panel .fine {
  color: var(--muted);
}

.band-ink .panel a {
  color: var(--navy);
}

.kicker,
.eyebrow {
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lede {
  font-size: 1.125rem;
  max-width: 40rem;
}

.stack > * + * {
  margin-top: 16px;
}

.ph {
  background: var(--ph-bg);
  color: var(--ph-ink);
  border-bottom: 2px dashed var(--ph-line);
  padding: 0 0.2em;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.req {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--navy);
}

.hint,
.fine,
figcaption,
.note {
  color: var(--muted);
  font-size: 0.875rem;
}

.site-header {
  position: static;
  z-index: 30;
  background: var(--white);
  border-top: 4px solid var(--yellow);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 8px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-right: auto;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--yellow);
  flex: none;
}

.anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.anchors a,
.header-call,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 750;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
}

.anchors a {
  color: var(--ink);
}

.anchors a:hover {
  background: var(--paper);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.header-call {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--white);
}

.btn {
  border: 2px solid transparent;
  cursor: pointer;
  font: inherit;
}

.btn-primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--yellow-hot);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--white);
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.cta-row .btn,
.cta-row .header-call {
  min-height: 56px;
}

.terms-inline {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
}

.hero-grid,
.demo-grid,
.cards,
.fields {
  display: grid;
  gap: 16px;
}

.hero-grid {
  gap: 28px;
  align-items: center;
}

.plain,
.steps,
.price-list,
.term-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.plain li,
.steps li,
.card,
.panel,
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.plain li {
  border-left: 4px solid var(--yellow);
  padding: 16px;
}

.card,
.panel,
.price-card {
  padding: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex: none;
}

.icon {
  display: block;
}

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

.sees div {
  background: var(--mist);
  border-radius: 10px;
  padding: 10px 12px;
}

.sees dt {
  font-size: 0.875rem;
  font-weight: 750;
  color: var(--navy);
}

.sees dd {
  margin: 4px 0 0;
}

.shot-frame,
.calendar-slot {
  min-height: 120px;
  border: 2px dashed var(--ph-line);
  border-radius: var(--radius);
  background: var(--ph-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
}

.calendar-slot {
  min-height: 180px;
}

.steps {
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 16px 16px 16px 64px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 750;
}

.steps h3 {
  margin-bottom: 6px;
}

.note {
  margin-top: 8px;
}

.poster {
  width: 100%;
  min-height: 200px;
  border: 0;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 24px;
}

.poster svg {
  color: var(--ink);
}

.play-badge {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--yellow);
  display: grid;
  place-items: center;
}

.price-line {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.term-list li,
.price-list li {
  padding-left: 0;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 16px 4px;
}

.faq details + details {
  margin-top: 8px;
}

.faq summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 750;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  flex: none;
  margin-top: -4px;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.faq summary h3 {
  font-size: 1rem;
}

.faq details p {
  margin: 0 0 16px;
}

.demo-grid {
  gap: 16px;
  align-items: start;
}

.field {
  display: grid;
  gap: 6px;
  align-content: start;
}

label {
  font-weight: 750;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #8AA0B5;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}

.check + .check {
  margin-top: 8px;
}

.check input {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--navy);
}

.check label {
  font-weight: 450;
}

.btn-block {
  width: 100%;
  min-height: 56px;
}

.call-card h3 {
  margin-bottom: 8px;
}

.phone {
  margin: 0 auto;
  width: min(100%, 320px);
}

.phone-bezel {
  background: var(--ink);
  border-radius: 28px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.phone-screen {
  background: var(--paper);
  border-radius: 20px;
  min-height: 380px;
  padding: 14px;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 750;
  margin-bottom: 12px;
  color: var(--ink);
}

.phone-tag {
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.875rem;
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bubble {
  border-radius: 16px;
  padding: 10px 12px;
  max-width: 92%;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.bubble.out {
  background: var(--navy);
  color: var(--white);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.bubble.in {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.bubble .who {
  display: block;
  font-size: 0.875rem;
  font-weight: 750;
  margin-bottom: 4px;
}

.bubble.out .who { color: var(--yellow); }
.bubble.in .who { color: var(--navy); }

.phone figcaption,
.shot figcaption {
  margin-top: 8px;
  text-align: center;
}

.legal-block + .legal-block {
  margin-top: 28px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 750;
}

.site-footer {
  background: var(--paper);
  padding: 40px 0 32px;
}

.disclosure {
  margin-top: 20px;
  max-width: 46rem;
}

.copy {
  margin-top: 16px;
  font-size: 0.875rem;
}

address {
  font-style: normal;
}

address p + p {
  margin-top: 4px;
}

.sticky-bar {
  display: none;
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 20px;
}

.form-actions {
  display: grid;
  gap: 10px;
}

.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.narrow { max-width: 720px; }

.walkthrough-video {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--ink);
}

@media (min-width: 800px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  .band { padding: 80px 0; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .demo-grid { grid-template-columns: 1.4fr 0.8fr; }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields .full { grid-column: 1 / -1; }
  .cta-row { flex-direction: row; align-items: center; }
  .terms-inline { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
}

@media (max-width: 759px) {
  .sticky-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .sticky-bar a {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    font-weight: 750;
    text-decoration: none;
    color: var(--ink);
    text-align: center;
  }

  .sticky-bar a.primary {
    background: var(--yellow);
  }

  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }

  input,
  select,
  button,
  .panel,
  .check,
  .btn {
    scroll-margin-bottom: 88px;
  }
}

@media (max-width: 759px) {
  :target,
  [id] {
    scroll-margin-top: 16px;
    scroll-margin-bottom: 88px;
  }
}

@media (min-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  :target,
  [id] {
    scroll-margin-top: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
