/* DefinedChoice site styles */
:root {
  --sky: #E8F4FC;
  --blue: #2B7BB9;
  --navy: #0B3A5B;
  --gold: #F5C518;
  --cream: #FFF8D6;
  --white: #ffffff;
  --ink: #0B3A5B;
  --muted: #4a6a82;
  --line: #c5d9e8;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(11, 58, 91, 0.08);
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 0.6em; }
h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--muted); }
ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--muted); }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
  line-height: 1;
}
.logo:hover { text-decoration: none; opacity: 0.92; }
.logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(280px, 70vw);
}
.logo-mark {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
}
.logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: inherit;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 560;
  text-decoration: none;
  padding: 0.35rem 0;
}
.nav a:hover { color: var(--blue); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(245, 197, 24, 0.35);
}
.btn-gold:hover { background: #ffd84a; color: var(--navy); }
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: #246ea6; color: #fff; }
.btn-secondary {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn-secondary:hover { background: var(--sky); color: var(--navy); }
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: #072a42; color: #fff; }
.nav-cta { margin-left: 0.35rem; padding: 0.5rem 0.95rem; font-size: 0.9rem; }

/* Hero */
.hero {
  background: linear-gradient(165deg, var(--sky) 0%, #fff 55%, var(--cream) 100%);
  padding: 3.25rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--navy);
  max-width: 36rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.4rem;
}
.hero-card h3 { margin-bottom: 0.75rem; }
.hero-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: os;
}
.hero-card li {
  counter-increment: os;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-card li:first-child { border-top: 0; }
.hero-card li::before {
  content: counter(os, decimal-leading-zero);
  font-weight: 800;
  color: var(--blue);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--sky); }
.section-cream { background: var(--cream); }
.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-head p { margin-bottom: 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow);
  height: 100%;
}
.card h3 { margin-bottom: 0.45rem; }
.card p:last-child { margin-bottom: 0; }
.card-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 650;
  color: var(--blue);
}
.num-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

/* Pillars 01–05 */
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1rem;
  box-shadow: var(--shadow);
}
.pillar .num {
  font-weight: 800;
  color: var(--gold);
  background: var(--navy);
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.75rem;
  margin-bottom: 0.65rem;
}
.pillar h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.pillar p { font-size: 0.9rem; margin: 0; }

/* Compare table */
.compare {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.compare th, .compare td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.95rem;
}
.compare th {
  background: var(--navy);
  color: #fff;
  font-weight: 650;
}
.compare th:nth-child(3) { background: var(--blue); }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 650; color: var(--navy); width: 28%; }
.compare .check { color: var(--blue); font-weight: 700; }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 2.75rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 36rem; margin: 0 auto 1.35rem; }
.cta-band .hero-actions { justify-content: center; }

/* Footer */
.site-footer {
  background: #072a42;
  color: rgba(255,255,255,0.82);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}
.site-footer a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
}
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 1.75rem 1.25rem;
  margin-bottom: 2rem;
}
.footer-brand .logo { color: #fff; margin-bottom: 0.75rem; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-mark { border-radius: 8px; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col h4 {
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: inherit;
}
.footer-col li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}

/* Page chrome helpers */
.page-hero {
  background: var(--sky);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}
.prose { max-width: 42rem; }
.prose h2 { margin-top: 1.75rem; }
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.breadcrumbs a { color: var(--blue); }

@media (max-width: 960px) {
  .hero-grid, .pillars, .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 700px) {
  .hero-grid, .grid-3, .grid-2, .pillars, .footer-grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
}

/* Mobile nav (checkbox hack — no JS) */
.nav-toggle {
  display: none;
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-weight: 650;
  color: var(--navy);
  cursor: pointer;
}
#nav-check { display: none; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 0.75rem;
  }
  #nav-check:checked ~ .nav { display: flex; }
  .nav-cta { margin-left: 0; text-align: center; }
}


/* Mobile / SEO-friendly extras */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; }
.btn, .nav-toggle, .nav a {
  min-height: 44px;
  min-width: 44px;
}
.nav a {
  display: inline-flex;
  align-items: center;
}
.btn { padding: 0.7rem 1.2rem; }
.compare { -webkit-overflow-scrolling: touch; }
@media (max-width: 960px) {
  .hero { padding: 2.25rem 0 2.5rem; }
  .section { padding: 2.5rem 0; }
  .hero-actions .btn { width: 100%; }
  .cta-band .hero-actions .btn { width: min(100%, 20rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* Homepage media: hero figure, what-grid, aspect-ratio cards */
.hero-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--sky);
  aspect-ratio: 9 / 7;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.what-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}
.media-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--sky);
  aspect-ratio: 10 / 7;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-media .card-img {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sky);
}
.card-media .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media > h3,
.card-media > p,
.card-media > .card-link,
.card-media > .num-pill {
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}
.card-media > .num-pill {
  margin-top: 1.15rem;
  margin-bottom: 0.5rem;
}
.card-media > h3 {
  margin-top: 1.15rem;
}
.card-media > .num-pill + h3 {
  margin-top: 0;
}
.card-media > p {
  flex: 1;
}
.card-media > .card-link {
  margin-top: 0.85rem;
  margin-bottom: 1.35rem;
}
.card-media > h3 + p {
  /* when no num-pill, tighten top padding already on h3 */
}

@media (max-width: 960px) {
  .what-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 11; max-height: 22rem; }
  .what-grid .media-frame { order: -1; max-height: 18rem; }
}

/* Hero bullets + how-it-works steps */
.hero-bullets {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  max-width: 36rem;
}
.hero-bullets li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.65rem;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 560;
}
.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.28);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}
.step h3 { margin-bottom: 0.45rem; }
.step p { margin: 0; font-size: 0.95rem; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
}

/* Platform UI mockups — browser chrome screenshot frame */
.mockup {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow:
    0 4px 6px rgba(11, 58, 91, 0.04),
    0 16px 40px rgba(11, 58, 91, 0.12);
}
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  background: linear-gradient(180deg, #f7fafc 0%, #eef4f9 100%);
  border-bottom: 1px solid var(--line);
}
.mockup-chrome .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #c5d9e8;
  flex-shrink: 0;
}
.mockup-chrome .dot:nth-child(1) { background: #ff6b6b; }
.mockup-chrome .dot:nth-child(2) { background: #F5C518; }
.mockup-chrome .dot:nth-child(3) { background: #3ecf8e; }
.mockup-chrome .url {
  flex: 1;
  margin-left: 0.35rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 560;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mockup-body {
  margin: 0;
  background: var(--sky);
  line-height: 0;
}
.mockup-body img {
  width: 100%;
  height: auto;
  display: block;
}
.mockup-caption {
  padding: 0.75rem 1rem 0.9rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  line-height: 1.4;
}

/* Layout helpers for mockup sections */
.mockup-feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.25rem;
  align-items: center;
}
.mockup-feature.reverse {
  grid-template-columns: 1.15fr 1fr;
}
.mockup-feature.reverse .mockup-copy { order: 2; }
.mockup-feature.reverse .mockup { order: 1; }
.mockup-stack {
  display: grid;
  gap: 1.5rem;
}
.mockup-hero-wrap {
  max-width: 56rem;
  margin: 1.75rem auto 0;
}
.page-hero .mockup-hero-wrap {
  margin-top: 1.75rem;
}
.card-media .card-img.mockup-thumb {
  aspect-ratio: 16 / 10;
  background: var(--sky);
}
.card-media .card-img.mockup-thumb img {
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 960px) {
  .mockup-feature,
  .mockup-feature.reverse {
    grid-template-columns: 1fr;
  }
  .mockup-feature.reverse .mockup-copy,
  .mockup-feature.reverse .mockup { order: initial; }
  .mockup-feature .mockup { order: -1; }
}

/* Page heroes with photo + mockup */
.page-hero .hero-grid {
  align-items: center;
}
.page-hero .hero-media {
  max-height: 22rem;
}
.page-hero .lead { margin-bottom: 0; }
@media (max-width: 960px) {
  .page-hero .hero-media { max-height: 16rem; }
}
