/* CaseReady — site stylesheet. Palette from the brand deck: navy, green, ink. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}

:root {
  --navy-900: #0f2a4a;
  --navy-700: #1d4e89;
  --navy-600: #2a62a8;
  --blue-300: #7fa6d3;
  --blue-100: #dbe6f3;
  --green-700: #16805f;
  --green-600: #1fa37f;
  --mint: #5ee0bc;
  --ink: #1e2a36;
  --muted: #566677;
  --line: #d6dfe9;
  --surface: #eef3f8;
  --surface-2: #f7f9fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 42, 74, 0.08);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gutter: 20px;
  --max: 1140px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

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

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

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.3rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy-900);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand img {
  height: 34px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 8px 12px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  background: var(--surface);
  color: var(--navy-700);
}

.site-nav .btn {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  color: var(--navy-900);
  cursor: pointer;
}

.nav-toggle .icon-close {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.btn-primary {
  background: var(--green-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-700);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy-700);
  border-color: var(--blue-100);
}

.btn-secondary:hover {
  border-color: var(--navy-700);
}

.btn-light {
  background: #fff;
  color: var(--navy-900);
}

.btn-light:hover {
  background: var(--surface);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: #fff;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

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

.section-dark {
  background: var(--navy-900);
  color: #dbe6f3;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 12px;
}

.section-dark .eyebrow {
  color: var(--mint);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

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

.lead {
  font-size: 1.2rem;
  color: var(--muted);
}

.section-dark .lead {
  color: #c6d4e5;
}

/* Hero */
.hero {
  padding: 72px 0 80px;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(94, 224, 188, 0.16), transparent 60%),
    linear-gradient(180deg, var(--surface-2), #fff 60%);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero .lead {
  font-size: 1.25rem;
  margin-bottom: 28px;
}

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

.hero-note {
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--muted);
}

.page-hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--surface), #fff);
}

.page-hero .lead {
  max-width: 760px;
}

/* Readiness dashboard mock */
.readiness {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.readiness-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--navy-900);
  color: #fff;
}

.readiness-head strong {
  display: block;
  font-size: 0.95rem;
}

.readiness-head span {
  font-size: 0.82rem;
  color: #b8c6d6;
}

.pill {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill-progress {
  background: rgba(94, 224, 188, 0.18);
  color: var(--mint);
}

.readiness-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.readiness-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--surface);
  font-size: 0.95rem;
}

.readiness-list li:last-child {
  border-bottom: 0;
}

.readiness-list .status {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.status-met {
  background: rgba(31, 163, 127, 0.14);
  color: var(--green-700);
}

.status-open {
  background: rgba(217, 138, 61, 0.16);
  color: #a9601c;
}

.readiness-list .status .icon {
  width: 16px;
  height: 16px;
}

.readiness-list small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.readiness-list .src {
  font-size: 0.78rem;
  color: var(--navy-700);
  background: var(--surface);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.readiness-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 20px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.readiness-foot .icon {
  color: var(--green-600);
  flex: none;
}

/* Cards */
.grid {
  display: grid;
  gap: 24px;
}

.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 {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.section-surface .card {
  border-color: transparent;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 16px;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--navy-700);
}

.card-icon.green {
  background: rgba(31, 163, 127, 0.12);
  color: var(--green-700);
}

.card-dark {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-dark p {
  color: #c6d4e5;
}

.card-dark .card-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--mint);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.card-link:hover {
  border-color: var(--navy-700);
  transform: translateY(-2px);
}

.card-link .more {
  margin-top: 16px;
  color: var(--navy-700);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}

.steps li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 28px 28px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green-600);
  margin-bottom: 14px;
}

.step-num .card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.steps h3 {
  margin-top: 0;
}

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

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

.steps-detail li {
  padding: 32px;
}

.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  background: var(--surface);
  border-left: 4px solid var(--green-600);
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 32px;
}

.callout .icon {
  color: var(--green-700);
  margin-top: 3px;
}

.callout p {
  margin: 0;
}

/* Feature lists */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
}

.check-list .icon {
  color: var(--green-600);
  margin-top: 3px;
  width: 22px;
  height: 22px;
}

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

.split .section-head {
  margin-bottom: 24px;
}

.split-wide {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.prose {
  max-width: 760px;
}

.prose p {
  color: var(--ink);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 64px 0;
}

.cta-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 8px;
}

.cta-band p {
  margin: 0;
  color: #c6d4e5;
  max-width: 560px;
}

.cta-band .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: start;
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.field .hint {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--navy-600);
  outline-offset: 1px;
  border-color: var(--navy-600);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #b3261e;
}

.field .error {
  display: none;
  color: #b3261e;
  font-size: 0.88rem;
  margin-top: 6px;
}

.field.invalid .error {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 0.95rem;
}

.form-status[data-state='error'] {
  display: block;
  background: #fdecea;
  color: #8a1c14;
}

.form-success {
  display: none;
  background: rgba(31, 163, 127, 0.1);
  border: 1px solid rgba(31, 163, 127, 0.35);
  border-radius: var(--radius);
  padding: 32px;
}

.form-success .icon {
  color: var(--green-700);
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

.form[hidden],
.form-success[hidden] {
  display: none;
}

.form-success:not([hidden]) {
  display: block;
}

.aside-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
}

.aside-card h3 {
  margin-top: 0;
}

.aside-card ul {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
}

.aside-card ul li {
  margin-bottom: 6px;
}

.aside-card a {
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: #b8c6d6;
  padding: 56px 0 28px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid img {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 8px;
}

.site-footer a {
  color: #dbe6f3;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #8fa3ba;
}

/* Not found */
.notfound {
  padding: 96px 0;
  text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
  .hero .container,
  .split,
  .split-wide,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .steps,
  .steps-detail,
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
    box-shadow: var(--shadow);
  }

  .site-nav a {
    padding: 12px;
    font-size: 1.05rem;
  }

  .site-nav .btn {
    margin: 8px 0 0;
    justify-content: center;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-header.nav-open .nav-toggle .icon-menu {
    display: none;
  }

  .site-header.nav-open .nav-toggle .icon-close {
    display: block;
  }

  .readiness-list li {
    grid-template-columns: 28px 1fr;
  }

  .readiness-list .src {
    display: none;
  }

  .callout {
    grid-template-columns: 1fr;
  }

  .callout .icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card-link,
  .btn {
    transition: none;
  }
}
