/* ============================================================================
   A!thera Partners — RetentionPilot AI brand stylesheet
   Single source of visual truth. Later sessions MUST NOT redefine these tokens.
   ----------------------------------------------------------------------------
   HARD PROHIBITIONS (do not violate in any session):
   - No drop shadows on text.
   - No gradients anywhere, especially on chart elements.
   - No 3D charts.
   - No emoji in UI copy.
   - No animated GIFs.
   - No decorative borders — only the thin blue rule (.athera-blue-rule).
   - Headlines are NEVER bold serif — always Cormorant Garamond Light/Regular.
   - One A! Blue accent per viewport.
   - Amber appears at most once per screen, only in charts or a single
     editorial callout.
   - Dark surfaces are var(--athera-navy), never pure black.
   - Light surfaces are var(--athera-off-white) or white, never cream/beige.
   ========================================================================== */

:root {
  /* Primary palette */
  --athera-blue: #5FB8D6;
  --athera-blue-light: #A8D9EC;
  --athera-blue-deep: #2A8FB0;
  --athera-charcoal: #374151;
  --athera-charcoal-light: #4B5563;
  --athera-grey: #6B7280;
  --athera-grey-light: #9CA3AF;
  --athera-navy: #0F172A;
  --athera-navy-mid: #1E2B42;
  /* Surfaces */
  --athera-white: #FFFFFF;
  --athera-off-white: #F8F7F4;
  --athera-surface: #F1EEE8;
  /* Extended palette (charts and special callouts ONLY, never decorative) */
  --athera-amber: #C8955A;
  --athera-amber-light: #E8C49A;
  --athera-steel: #8AA5BE;
  --athera-mist: #D4DFE8;
  /* Lines */
  --athera-line: rgba(55, 65, 81, 0.12);
  --athera-line-light: rgba(55, 65, 81, 0.06);
  --athera-line-dark: rgba(255, 255, 255, 0.08);
  /* Typography */
  --athera-display: 'Cormorant Garamond', Georgia, serif;
  --athera-sans: 'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --athera-mono: 'DM Mono', 'Consolas', 'Monaco', monospace;
}

/* ---------------------------------------------------------------------------
   Reset / base
   ------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--athera-off-white);
  font-family: var(--athera-sans);
  color: var(--athera-charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Motion defaults — calm brand. No bouncing, springs, parallax, or moving
   transforms on hover. Fade-ins are opacity only, max 0.3s. */
a,
button,
input,
select,
textarea,
.athera-button-primary,
.athera-button-secondary {
  transition: all 0.2s ease;
}

@keyframes athera-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.athera-fade-in {
  animation: athera-fade-in 0.3s ease both;
}

/* ---------------------------------------------------------------------------
   Type scale
   ------------------------------------------------------------------------- */

.athera-display-xl {
  font-family: var(--athera-display);
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.athera-display-lg {
  font-family: var(--athera-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.015em;
}

.athera-display-md {
  font-family: var(--athera-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.athera-display-sm {
  font-family: var(--athera-display);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.2;
}

.athera-body-lg {
  font-family: var(--athera-sans);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--athera-charcoal-light);
}

.athera-body {
  font-family: var(--athera-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--athera-charcoal);
}

.athera-body-sm {
  font-family: var(--athera-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--athera-grey);
}

.athera-label {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--athera-grey);
}

.athera-label-blue {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--athera-blue-deep);
}

.athera-mono {
  font-family: var(--athera-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--athera-grey-light);
}

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

.athera-button-primary {
  display: inline-block;
  padding: 12px 24px;
  background: var(--athera-blue);
  color: var(--athera-navy);
  font-family: var(--athera-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
}

.athera-button-primary:hover {
  background: var(--athera-blue-deep);
}

.athera-button-secondary {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  color: var(--athera-charcoal);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  font-family: var(--athera-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.athera-button-secondary:hover {
  background: var(--athera-off-white);
}

/* White-outlined secondary, for use on navy/dark surfaces (hero, dark panels). */
.athera-button-secondary.on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.athera-button-secondary.on-dark:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ---------------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------------- */

.athera-card {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 4px;
  padding: 32px;
}

.athera-card-dark {
  background: var(--athera-navy);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--athera-line-dark);
  border-radius: 4px;
  padding: 32px;
}

/* ---------------------------------------------------------------------------
   Tables
   ------------------------------------------------------------------------- */

.athera-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--athera-sans);
  font-size: 13px;
}

.athera-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--athera-grey-light);
  border-bottom: 1px solid var(--athera-line);
}

.athera-table td {
  padding: 12px 16px;
  color: var(--athera-charcoal);
  border-bottom: 1px solid var(--athera-line-light);
}

/* ---------------------------------------------------------------------------
   Divider — the ONLY divider style permitted anywhere in the app
   ------------------------------------------------------------------------- */

.athera-blue-rule {
  width: 48px;
  height: 1px;
  background: var(--athera-blue);
  border: none;
}

/* ---------------------------------------------------------------------------
   Wordmark
   ------------------------------------------------------------------------- */

.athera-wordmark {
  font-family: var(--athera-display);
  font-size: 32px;
  font-weight: 300;
  color: var(--athera-charcoal);
  letter-spacing: -0.01em;
}

.athera-wordmark .athera-wordmark-a {
  color: var(--athera-blue);
}

.athera-wordmark-partners {
  font-family: var(--athera-sans);
  font-size: 0.5em;
  font-weight: 400;
  color: var(--athera-grey);
  letter-spacing: 0.08em;
  margin-left: 4px;
  vertical-align: super;
}

/* On dark backgrounds, set the wordmark base color to white in markup:
   style="color: #fff;" — the A! span stays brand blue. */

/* Standalone "A!" emblem (footer, watermarks) */
.athera-emblem {
  font-family: var(--athera-display);
  font-weight: 300;
  color: var(--athera-blue);
  line-height: 1;
}

/* ---------------------------------------------------------------------------
   Form controls — same focus treatment on ALL interactive elements
   ------------------------------------------------------------------------- */

input,
select,
textarea {
  font-family: var(--athera-sans);
  font-size: 14px;
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  padding: 10px 14px;
  background: var(--athera-white);
  color: var(--athera-charcoal);
}

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus,
[tabindex]:focus,
.athera-button-primary:focus,
.athera-button-secondary:focus {
  outline: 2px solid var(--athera-blue-deep);
  outline-offset: 2px;
}

/* Visible focus only when navigating by keyboard, where supported. */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--athera-blue-deep);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Risk badges — quiet markers, never filled colored pills. Never red/green.
   A small uppercase label with a marker dot / left border.
   ------------------------------------------------------------------------- */

.risk-high,
.risk-medium,
.risk-low {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--athera-charcoal);
  padding-left: 10px;
  border-left: 2px solid var(--athera-line);
}

.risk-high::before,
.risk-medium::before,
.risk-low::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.risk-high {
  border-left-color: var(--athera-amber);
}
.risk-high::before {
  background: var(--athera-amber);
}

.risk-medium {
  border-left-color: var(--athera-steel);
}
.risk-medium::before {
  background: var(--athera-steel);
}

.risk-low {
  border-left-color: var(--athera-mist);
}
.risk-low::before {
  background: var(--athera-mist);
}

/* ---------------------------------------------------------------------------
   Layout primitives
   ------------------------------------------------------------------------- */

.athera-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .athera-page {
    padding: 0 24px;
  }
}

/* Section vertical rhythm: 80–120px on desktop. */
.athera-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

@media (max-width: 768px) {
  .athera-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

/* ---------------------------------------------------------------------------
   Shared page shell — header and footer (injected by /js/shell.js)
   ------------------------------------------------------------------------- */

.athera-header {
  background: var(--athera-off-white);
  border-bottom: 1px solid var(--athera-line);
}

.athera-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 48px 16px;
}

.athera-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.athera-header .athera-wordmark {
  font-size: 26px;
}

.athera-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.athera-nav a {
  text-decoration: none;
  color: var(--athera-grey);
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.athera-nav a:hover {
  color: var(--athera-charcoal);
}

.athera-nav a.is-active {
  color: var(--athera-blue-deep);
}

.athera-header-subtitle {
  margin-top: 10px;
}

.athera-footer {
  border-top: 1px solid var(--athera-line);
  margin-top: 96px;
}

.athera-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 48px 48px;
}

.athera-footer .athera-emblem {
  font-size: 28px;
  margin-bottom: 20px;
}

.athera-footer-disclaimer {
  max-width: 760px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .athera-header-inner {
    padding: 16px 24px 14px;
  }
  .athera-footer-inner {
    padding: 32px 24px 40px;
  }
}

/* ---------------------------------------------------------------------------
   Selectable card (Session 3) — radio/checkbox styled as a quiet card.
   Reusable in later sessions. Wrap a visually-hidden <input> plus card content
   in <label class="athera-selectable">. Selected state = 1px blue-deep border
   and the inner .athera-blue-rule fading in. No filled backgrounds, no shadows.
   ------------------------------------------------------------------------- */

.athera-selectable {
  display: block;
  position: relative;
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 4px;
  padding: 24px;
  cursor: pointer;
}

.athera-selectable:hover {
  border-color: var(--athera-grey-light);
}

/* Keyboard focus surfaces on the card, since the input itself is hidden. */
.athera-selectable:focus-within {
  outline: 2px solid var(--athera-blue-deep);
  outline-offset: 2px;
}

.athera-selectable input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: 0;
}

/* The inner rule is present in markup but hidden until the card is selected. */
.athera-selectable .athera-blue-rule {
  opacity: 0;
  margin-top: 16px;
  transition: opacity 0.2s ease;
}

.athera-selectable.is-selected,
.athera-selectable:has(input:checked) {
  border-color: var(--athera-blue-deep);
}

.athera-selectable.is-selected .athera-blue-rule,
.athera-selectable:has(input:checked) .athera-blue-rule {
  opacity: 1;
}
