/* CelestMap — Western astrology marketing site */

:root {
  --cm-bg: #f4f2f8;
  --cm-bg-muted: #e8e4f0;
  --cm-surface: #fffefb;
  --cm-text: #1e2433;
  --cm-text-muted: #4a5568;
  --cm-accent: #4c5b92;
  --cm-accent-hover: #3d4a78;
  --cm-accent-deep: #2a3358;
  --cm-glow: #c4a35a;
  --cm-border: #d5d0e0;
  --cm-radius: 10px;
  --cm-font: "Source Sans 3", system-ui, sans-serif;
  --cm-display: "Source Serif 4", Georgia, serif;
  --cm-wrap: min(1080px, 92vw);
  --cm-narrow: min(640px, 92vw);
}

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

html {
  scroll-behavior: smooth;
}

body.cm-site {
  margin: 0;
  font-family: var(--cm-font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--cm-text);
  background: var(--cm-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cm-wrap {
  width: var(--cm-wrap);
  margin-inline: auto;
}

.cm-wrap--wide {
  width: min(1140px, 94vw);
}

.cm-wrap--narrow {
  width: var(--cm-narrow);
}

.cm-narrow {
  max-width: var(--cm-narrow);
  margin-inline: auto;
}

.cm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--cm-accent-deep);
  color: #fff;
  z-index: 100;
}

.cm-skip:focus {
  left: 1rem;
  top: 1rem;
}

.cm-header {
  background: var(--cm-surface);
  border-bottom: 1px solid var(--cm-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.cm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.cm-brand {
  font-family: var(--cm-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--cm-accent-deep);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.cm-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cm-nav a {
  color: var(--cm-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.cm-nav a:hover,
.cm-nav a[aria-current="page"] {
  color: var(--cm-accent);
}

.cm-nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--cm-accent) !important;
  color: #fff !important;
  font-size: 0.88rem !important;
}

.cm-nav-cta--soon {
  background: var(--cm-bg-muted) !important;
  color: var(--cm-text-muted) !important;
  font-size: 0.82rem !important;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.cm-menu-toggle {
  display: none;
  border: 1px solid var(--cm-border);
  background: var(--cm-surface);
  border-radius: var(--cm-radius);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}

.cm-menu-bars {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--cm-text);
  box-shadow: 0 6px 0 var(--cm-text), 0 -6px 0 var(--cm-text);
}

@media (max-width: 720px) {
  .cm-menu-toggle {
    display: block;
  }

  .cm-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 4vw;
    background: var(--cm-surface);
    border-bottom: 1px solid var(--cm-border);
    box-shadow: 0 8px 24px rgba(30, 36, 51, 0.08);
  }

  .cm-nav.is-open {
    display: flex;
  }

  .cm-header-inner {
    position: relative;
    flex-wrap: wrap;
  }
}

.cm-hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(160deg, #e8ecf8 0%, var(--cm-bg) 45%, #f0ebe3 100%);
}

.cm-hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 840px) {
  .cm-hero-grid {
    grid-template-columns: 1fr;
  }
}

.cm-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cm-accent);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.cm-hero h1 {
  font-family: var(--cm-display);
  font-size: clamp(2.1rem, 4.5vw, 2.85rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.12;
  color: var(--cm-accent-deep);
}

.cm-subtitle {
  font-size: 1.1rem;
  color: var(--cm-glow);
  font-weight: 600;
  margin: 0 0 1rem;
}

.cm-lead {
  font-size: 1.08rem;
  color: var(--cm-text-muted);
  margin: 0 0 1rem;
  max-width: 52ch;
}

.cm-status {
  font-size: 0.95rem;
  color: var(--cm-text-muted);
  margin: 0 0 1.25rem;
}

.cm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.cm-btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: var(--cm-radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

.cm-btn--primary {
  background: var(--cm-accent);
  color: #fff;
}

.cm-btn--primary:hover {
  background: var(--cm-accent-hover);
}

.cm-btn--ghost {
  background: var(--cm-surface);
  color: var(--cm-text);
  border: 1px solid var(--cm-border);
}

.cm-btn--disabled {
  opacity: 0.85;
  cursor: default;
}

.cm-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cm-wheel {
  position: relative;
  width: 9rem;
  height: 9rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm-wheel__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--cm-accent);
  background: conic-gradient(
    from 0deg,
    #4c5b92,
    #c4a35a,
    #6b7ab8,
    #2a3358,
    #4c5b92
  );
  opacity: 0.35;
}

.cm-wheel__glyph {
  font-size: 2rem;
  z-index: 1;
}

.cm-wheel__center {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cm-accent-deep);
}

.cm-sheet {
  background: var(--cm-surface);
  border: 1px solid var(--cm-border);
  border-radius: calc(var(--cm-radius) + 4px);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 12px 32px rgba(42, 51, 88, 0.08);
}

.cm-sheet__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cm-accent);
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.cm-sheet__title {
  font-family: var(--cm-display);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  color: var(--cm-accent-deep);
}

.cm-placement-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.92rem;
}

.cm-placement-list li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.25rem 0;
  color: var(--cm-text-muted);
}

.cm-placement-list span {
  width: 2rem;
  font-weight: 600;
  color: var(--cm-accent);
}

.cm-placement-list em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--cm-text-muted);
}

.cm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cm-chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--cm-bg-muted);
  color: var(--cm-text-muted);
}

.cm-chip--on {
  background: var(--cm-accent);
  color: #fff;
}

.cm-section {
  padding: 2.75rem 0 3rem;
}

.cm-section--tight {
  padding-top: 2rem;
}

.cm-section h2 {
  font-family: var(--cm-display);
  font-size: 1.75rem;
  margin: 0 0 1rem;
  color: var(--cm-accent-deep);
}

.cm-intro {
  color: var(--cm-text-muted);
  max-width: 58ch;
  margin: 0 0 2rem;
}

.cm-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
}

.cm-feature-card {
  background: var(--cm-surface);
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius);
  padding: 1.25rem 1.15rem;
}

.cm-feature-card h3 {
  font-family: var(--cm-display);
  font-size: 1.1rem;
  margin: 0 0 0.45rem;
  color: var(--cm-accent-deep);
}

.cm-feature-card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--cm-text-muted);
}

.cm-beats {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 62ch;
}

.cm-beats li {
  margin-bottom: 1.25rem;
  color: var(--cm-text-muted);
}

.cm-beats strong {
  display: block;
  color: var(--cm-text);
  margin-bottom: 0.35rem;
}

.cm-mark {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.cm-mark--accent {
  background: var(--cm-accent);
}

.cm-mark--navy {
  background: var(--cm-accent-deep);
}

.cm-mark--glow {
  background: var(--cm-glow);
}

.cm-faq dt {
  font-weight: 600;
  margin-top: 1.15rem;
  color: var(--cm-text);
}

.cm-faq dd {
  margin: 0.35rem 0 0;
  color: var(--cm-text-muted);
}

.cm-faq a {
  color: var(--cm-accent);
}

.cm-cta-band {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--cm-surface);
  border: 1px solid var(--cm-border);
  border-radius: calc(var(--cm-radius) + 4px);
  margin-bottom: 1.5rem;
}

.cm-cta-band h2 {
  margin-top: 0;
}

.cm-cta-band p {
  color: var(--cm-text-muted);
  max-width: 52ch;
  margin-inline: auto;
}

.cm-cta-band .cm-actions {
  justify-content: center;
  margin-top: 1.25rem;
}

.cm-muted {
  font-size: 0.92rem;
  color: var(--cm-text-muted);
  text-align: center;
}

.cm-legal .cm-page-hero {
  padding: 2.5rem 0 1rem;
  background: linear-gradient(180deg, #e8ecf8 0%, var(--cm-bg) 100%);
}

.cm-legal h1 {
  font-family: var(--cm-display);
  font-size: 2rem;
  margin: 0.25rem 0 0.5rem;
  color: var(--cm-accent-deep);
}

.cm-prose h2 {
  font-family: var(--cm-display);
  font-size: 1.25rem;
  margin-top: 2rem;
  color: var(--cm-accent-deep);
}

.cm-prose p,
.cm-prose li {
  color: var(--cm-text-muted);
}

.cm-prose a {
  color: var(--cm-accent);
}

.cm-prose code {
  font-size: 0.88em;
  background: var(--cm-bg-muted);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.cm-callout {
  padding: 1rem 1.15rem;
  border-radius: var(--cm-radius);
  background: var(--cm-surface);
  border-left: 4px solid var(--cm-accent);
  margin-bottom: 1.5rem;
}

.cm-callout p {
  margin: 0;
  color: var(--cm-text-muted);
}

.cm-entity {
  font-size: 0.9rem;
  color: var(--cm-text-muted);
}

.cm-form label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 0.35rem;
  color: var(--cm-text);
}

.cm-form input,
.cm-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius);
  font: inherit;
  background: var(--cm-surface);
}

.cm-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.cm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.cm-form-note {
  padding: 0.75rem 1rem;
  border-radius: var(--cm-radius);
}

.cm-form-error {
  background: #fde8e8;
  color: #8b1e1e;
}

.cm-form-success {
  background: #e6f4ea;
  color: #1e5631;
}

.cm-footer {
  border-top: 1px solid var(--cm-border);
  background: var(--cm-surface);
  padding: 2rem 0;
  margin-top: auto;
}

.cm-footer-lead {
  margin: 0 0 1rem;
}

.cm-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.cm-footer-nav a {
  color: var(--cm-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.cm-footer-nav a:hover {
  color: var(--cm-accent);
}

.cm-fine {
  font-size: 0.82rem;
  color: var(--cm-text-muted);
  margin: 0.5rem 0 0;
  max-width: 58ch;
}

.cm-copy code {
  font-size: 0.85em;
}
