/* Compound Digital Co. — mobile-first, system fonts, no external requests. */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --navy: #152436;
  --navy-deep: #0e1826;
  --ink: #152436;
  --slate: #4a5568;
  --slate-soft: #5c6b7a;
  --paper: #f5f2ec;
  --paper-2: #ebe6dc;
  --white: #fff;
  --accent: #c56a32;
  --accent-dark: #9e4e22;
  --line: rgba(21, 36, 54, 0.12);
  --line-strong: rgba(21, 36, 54, 0.22);
  --serif: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--navy); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: #e8c4a8; color: var(--navy-deep); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 200;
  background: var(--navy);
  color: var(--paper);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { left: 0.75rem; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.15rem, 7.2vw, 4.15rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.55rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--accent);
}

.lead {
  margin: 1rem 0 0;
  max-width: 38rem;
  color: var(--slate);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.6;
}

.muted { color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--navy-deep) !important;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: #d27a42; }
.btn:active { transform: translateY(1px); }
.btn-navy {
  background: var(--navy);
  color: var(--paper) !important;
}
.btn-navy:hover { background: #24364d; }
.btn-ghost {
  background: transparent;
  color: var(--paper) !important;
  box-shadow: inset 0 0 0 1.5px rgba(245, 242, 236, 0.45);
}
.btn-ghost:hover { background: rgba(245, 242, 236, 0.1); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 236, 0.94);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 1;
  min-width: 0;
}
.logo .logo-lockup {
  display: block;
  width: auto;
  height: 2.65rem;
  max-width: 12.75rem;
}
@media (max-width: 370px) {
  .logo .logo-lockup { height: 2.2rem; max-width: 10.5rem; }
}

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-toggle {
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
}
.nav-close { display: none; }
.nav-check:checked + .nav-toggle { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.nav-check:checked + .nav-toggle .nav-open { display: none; }
.nav-check:checked + .nav-toggle .nav-close { display: inline; }
.nav {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1.25rem 1.15rem;
  box-shadow: 0 12px 24px rgba(14, 24, 38, 0.08);
}
.nav-check:checked ~ .nav { display: flex; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.nav a:hover { color: var(--accent-dark); }
.nav a[aria-current="page"] { color: var(--accent-dark); }
.nav .btn {
  margin-top: 0.85rem;
  border-bottom: 0;
  width: 100%;
}

@media (min-width: 1100px) {
  .nav-toggle,
  .nav-check { display: none; }
  .nav,
  .nav-check:checked ~ .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 1.35rem;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .nav a {
    border: 0;
    padding: 0.25rem 0;
    font-size: 0.95rem;
  }
  .nav .btn {
    margin-top: 0;
    width: auto;
    padding: 0.7rem 1.15rem;
    font-size: 0.88rem;
  }
}

/* ---------- Hero ---------- */
.hero { padding: 2.6rem 0 2.8rem; }
@media (min-width: 800px) {
  .hero { padding: 3.25rem 0 3.5rem; }
}
.hero .lead { max-width: 36.5rem; }

/* ---------- Sections ---------- */
section { padding: 2.6rem 0; }
@media (min-width: 800px) {
  section { padding: 3.25rem 0; }
}
.band-warm { background: var(--paper-2); }
.band-navy {
  background: var(--navy);
  color: var(--paper);
}
.band-navy .lead,
.band-navy .muted { color: rgba(245, 242, 236, 0.78); }
.band-navy h2 { color: var(--paper); }
.band-navy .eyebrow { color: #e0a078; }
.band-navy .eyebrow::before { background: #e0a078; }

.page-head { padding: 2.75rem 0 1.25rem; }
.page-head .lead { margin-top: 0.85rem; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 1.15rem; }
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
}
.band-warm .card { background: var(--paper); }
.card .num {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--accent-dark);
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.card h3 { margin-bottom: 0.45rem; }
.card p { margin: 0; color: var(--slate); }

.service-block + .service-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.service-block h2 { margin-bottom: 0.7rem; }
.service-block p { margin: 0; max-width: 40rem; color: var(--slate); }

/* ---------- Process ---------- */
.steps {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.75rem;
  counter-reset: step;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}
.step {
  padding-top: 0.2rem;
}
.step h3 {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}
.step h3::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  color: var(--accent-dark);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.step p { margin: 0; color: var(--slate); font-size: 0.98rem; }

/* ---------- About monogram ---------- */
.about-intro {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
.about-monogram {
  display: flex;
  align-items: stretch;
  justify-content: center;
  aspect-ratio: 1;
  width: 100%;
  max-width: 13.5rem;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(14, 24, 38, 0.16);
}
.about-monogram img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-copy .lead { margin-top: 0; }
@media (min-width: 800px) {
  .about-intro {
    grid-template-columns: minmax(14rem, 17.5rem) 1fr;
    gap: 2.75rem;
    align-items: center;
  }
  .about-monogram { max-width: none; }
}

/* ---------- Form ---------- */
.review-form {
  margin-top: 1.75rem;
  max-width: 38rem;
}
.field { margin-bottom: 1.05rem; }
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 650;
  font-size: 0.95rem;
}
.req { color: var(--accent-dark); }
.hint {
  margin: 0.35rem 0 0;
  color: var(--slate-soft);
  font-size: 0.88rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px; /* avoids iOS zoom */
  line-height: 1.4;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(197, 106, 50, 0.45);
  outline-offset: 0;
  border-color: var(--accent);
}
.honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(245, 242, 236, 0.78);
  padding: 2.75rem 0 1.75rem;
  margin-top: 0;
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: #e0a078; }
.foot-top {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(245, 242, 236, 0.12);
}
@media (min-width: 720px) {
  .foot-top { grid-template-columns: 1.3fr 1fr; align-items: start; }
}
@media (min-width: 1040px) {
  .foot-top { grid-template-columns: 1.35fr 1fr 1fr 1fr; }
}
.foot-brand { display: flex; flex-direction: column; gap: 0.85rem; align-items: flex-start; }
.foot-brand .foot-lockup {
  display: block;
  width: 10.5rem;
  height: auto;
  background: var(--navy);
  border-radius: 10px;
}
.foot-brand p { margin: 0; max-width: 22rem; font-size: 0.95rem; }
.foot-name { font-family: var(--serif); color: var(--paper); font-size: 1.2rem; }
.foot-links h4 {
  margin: 0 0 0.65rem;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.foot-links ul { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin: 0.3rem 0; }
.fine {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  padding-top: 1.15rem;
  font-size: 0.85rem;
}

/* ---------- Thank-you / 404 ---------- */
.simple {
  padding: 3.5rem 0 4.5rem;
  max-width: 38rem;
}
.simple p { color: var(--slate); font-size: 1.15rem; }

.about-bio { max-width: 40rem; }

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.75rem;
  align-items: stretch;
}
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plans-teaser { grid-template-columns: repeat(3, 1fr); }
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.4rem;
  position: relative;
}
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  background: #fffaf6;
}
.band-warm .plan { background: var(--paper); }
.band-warm .plan.featured { background: #fffaf6; }
.badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan h3 { margin: 0 0 0.35rem; }
.price {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.price small {
  display: inline-block;
  margin-left: 0.25rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--slate);
}
.plan-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  color: var(--slate);
  flex: 1;
}
.plan-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.2rem;
  border-top: 1px solid var(--line);
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}
.plan .btn { width: 100%; margin-top: auto; }

.care-band, .addons {
  margin-top: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
}
.band-warm .care-band, .band-warm .addons { background: var(--paper); }
.care-band h3, .addons h3 { margin-bottom: 0.4rem; }
.care-band p { margin: 0 0 1rem; color: var(--slate); }
.addon-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.addon-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.addon-list strong { font-weight: 650; }
.addon-list span { color: var(--slate); white-space: nowrap; }

/* ---------- Work cards ---------- */
.work-grid {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.75rem;
}
@media (min-width: 800px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
a.work-card:hover { border-color: var(--accent); color: inherit; transform: translateY(-2px); }
.band-warm .work-card { background: var(--paper); }
.work-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: var(--paper-2);
}
.work-card .work-body { padding: 1.1rem 1.15rem 1.25rem; }
.concept-tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.work-card h3 { margin-bottom: 0.3rem; }
.work-card p { margin: 0; color: var(--slate); font-size: 0.95rem; }
.note {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: var(--slate);
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 1.5rem; max-width: 44rem; }
.faq-list details {
  border-top: 1px solid var(--line);
}
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.6rem 1rem 0;
  font-weight: 650;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1rem;
  color: var(--accent-dark);
  font-weight: 700;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list .faq-a {
  margin: 0 0 1.15rem;
  color: var(--slate);
  max-width: 40rem;
}

/* ---------- Niche / benefits ---------- */
.benefits {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 40rem;
}
.benefits li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--slate);
}
.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}
.niche-links {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (min-width: 800px) {
  .niche-links { grid-template-columns: repeat(3, 1fr); }
}
.niche-link {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease);
}
.niche-link:hover { border-color: var(--accent); color: inherit; }
.band-warm .niche-link { background: var(--paper); }
.niche-link h3 { margin-bottom: 0.4rem; }
.niche-link p { margin: 0; color: var(--slate); font-size: 0.95rem; }

/* ---------- Misc ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.plan .actions { margin-top: 1.1rem; }
.plan .muted { margin: 0; }
.about-bio h2 { margin: 1.75rem 0 0.6rem; }
.about-bio p { margin: 0 0 0.85rem; color: var(--slate); }

/* ---------- Brand kit integration ---------- */
.service-block .cdc-icon,
.page-head .cdc-icon,
.care-band .cdc-icon {
  display: block;
  margin-bottom: 0.85rem;
}
h2 + .cdc-divider {
  margin: 0.7rem auto 0;
}
.plan.featured.cdc-corner::before {
  left: auto;
  right: -1px;
  width: 80px;
  height: 80px;
  background-image: url(/img/kit/corner-tr-light.svg);
}
.hero.cdc-arcs::after {
  width: min(38vw, 420px);
}


/* ---------- Sample dashboards ---------- */
#dashboard,
#dashboards {
  scroll-margin-top: 5.5rem;
}
.dash-points {
  margin-top: 1.75rem;
}
@media (min-width: 800px) {
  .dash-points { grid-template-columns: repeat(3, 1fr); }
}
.dash-block .lead { max-width: 42rem; }
.dash-block .cdc-checks {
  margin: 1.35rem 0 0;
  max-width: 42rem;
}
.dash-block .cdc-checks li {
  margin: 0.7rem 0;
  color: var(--slate);
  line-height: 1.55;
}
.dash-links {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (min-width: 720px) {
  .dash-links { grid-template-columns: 1fr 1fr; }
}

/* Decorative icon accent (not text). Keeps copper on the mark itself. */
.cdc-icon .cdc-accent {
  stroke: var(--cdc-accent, #c56a32);
}
