/* ---------------------------------------------------------------
   Atrium Keeper — brochure site styles
   Palette: warm parchment + terracotta + sage, evokes natural
   Montessori materials rather than a generic SaaS "tech blue".
--------------------------------------------------------------- */

:root {
  --bg: #fbf6ee;
  --bg-alt: #f3ecdc;
  --bg-card: #ffffff;
  --ink: #2b2620;
  --ink-soft: #5b5347;
  --ink-faint: #8a8171;
  --border: #e6dcc6;
  --primary: #a85630;
  --primary-dark: #8a4526;
  --primary-tint: #f3e0d3;
  --accent: #5c6e4a;
  --accent-tint: #e4e9db;
  --gold: #c79a3d;
  --shadow-sm: 0 1px 2px rgba(43, 38, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(43, 38, 32, 0.08);
  --shadow-lg: 0 20px 48px rgba(43, 38, 32, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-tint);
  padding: 6px 14px;
  border-radius: 999px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

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

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-top: 14px;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 17px;
}

section {
  padding: 88px 0;
}

@media (max-width: 720px) {
  section {
    padding: 56px 0;
  }
}

.bg-alt {
  background: var(--bg-alt);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: var(--font-body);
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

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

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 238, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

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

  .nav-toggle {
    display: block;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 60px;
  overflow: hidden;
}

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

@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin-top: 18px;
  letter-spacing: -0.01em;
}

.hero p.lead {
  margin-top: 20px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-faint);
}

/* Hero visual: a stylized roster card, built from CSS/SVG only */

.hero-visual {
  position: relative;
}

.roster-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.roster-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.roster-card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
}

.roster-card__badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 4px 10px;
  border-radius: 999px;
}

.roster-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 8px;
  align-items: center;
  padding: 11px 8px;
  border-radius: 10px;
  font-size: 13.5px;
}

.roster-row.head {
  color: var(--ink-faint);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 6px;
}

.roster-row:not(.head) {
  background: var(--bg-alt);
  margin-bottom: 6px;
}

.roster-row > span:not(.roster-dot):not(.roster-status) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

@media (max-width: 640px) {
  .roster-row {
    grid-template-columns: 16px minmax(0, 1fr) auto;
  }

  .roster-row > span:nth-child(3),
  .roster-row > span:nth-child(4) {
    display: none;
  }
}

.roster-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-l1 {
  background: #7391c8;
}

.dot-l2 {
  background: var(--accent);
}

.dot-l3 {
  background: #9b6fb0;
}

.roster-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  text-align: center;
}

.status-matched {
  background: var(--accent-tint);
  color: var(--accent);
}

.status-review {
  background: #fbeecb;
  color: #92701a;
}

.roster-card__foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.roster-card__foot svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--primary-tint) 0%, transparent 70%);
  top: -60px;
  right: -60px;
  z-index: 1;
}

.floating-chip {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.floating-chip svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.chip-1 {
  top: -18px;
  left: 18px;
}

.chip-2 {
  bottom: 8px;
  right: -14px;
  color: var(--accent);
}

.chip-2 svg {
  color: var(--accent);
}

@media (max-width: 520px) {
  .floating-chip {
    display: none;
  }
}

/* ---------- Why strip ---------- */

.why-strip {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 780px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.why-item h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.why-item h3 svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.why-item p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d9cbaa;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary-dark);
}

.feature-card h3 {
  font-size: 17.5px;
}

.feature-card p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

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

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

.step {
  position: relative;
  padding-top: 8px;
}

.step-num {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 17.5px;
}

.step p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Pricing ---------- */

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

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.price-tag {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 21px;
}

.price-card .price-for {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14.5px;
  min-height: 42px;
}

.price-cta {
  margin-top: 22px;
}

.price-features {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  flex-grow: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 13px;
}

.price-features li svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-foot {
  text-align: center;
  margin-top: 36px;
  color: var(--ink-faint);
  font-size: 14.5px;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  margin-inline: 24px;
}

.cta-banner-inner {
  max-width: 640px;
  margin-inline: auto;
}

.cta-banner h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  color: #fff;
}

.cta-banner p {
  margin-top: 14px;
  color: #f4e3d7;
  font-size: 17px;
}

.cta-banner .btn-primary {
  margin-top: 28px;
  background: #fff;
  color: var(--primary-dark);
}

.cta-banner .btn-primary:hover {
  background: #f4e3d7;
}

@media (max-width: 720px) {
  .cta-banner {
    padding: 40px 26px;
    margin-inline: 16px;
  }
}

/* ---------- Contact ---------- */

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
}

@media (max-width: 860px) {
  .contact-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-info h2 {
  font-size: clamp(26px, 3.2vw, 34px);
}

.contact-info > p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 46ch;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 26px;
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-detail strong {
  display: block;
  font-size: 14.5px;
}

.contact-detail span {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

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

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

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

.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-faint);
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
}

.form-success.visible {
  display: flex;
}

.form-success svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--bg-alt);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 34ch;
}

.footer-links {
  display: flex;
  gap: 64px;
}

@media (max-width: 620px) {
  .footer-links {
    gap: 36px;
  }
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.footer-col a:hover {
  color: var(--primary-dark);
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-faint);
}

.footer-bottom p {
  max-width: 62ch;
}

/* Grid items default to min-width: auto, which refuses to shrink below
   content size and can force horizontal overflow on narrow viewports.
   Reset it across every grid layout on the page as a safety net. */
.why-grid > *,
.feature-grid > *,
.steps > *,
.pricing-grid > * {
  min-width: 0;
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
