/* ============================================================================
   base.css — reset, typography scale, app shell (header / main / footer).
   ========================================================================== */

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--athera-off-white);
  color: var(--athera-charcoal);
  font-family: var(--athera-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--athera-blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

button { font-family: inherit; }

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

/* ---- 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-size: 18px; font-weight: 300; line-height: 1.7; color: var(--athera-charcoal-light); }
.athera-body { font-size: 15px; font-weight: 400; line-height: 1.65; color: var(--athera-charcoal); }
.athera-body-sm { font-size: 13px; font-weight: 400; line-height: 1.55; color: var(--athera-grey); }

.athera-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--athera-grey);
}
.athera-label-blue { 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); }

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

/* ---- App shell ----------------------------------------------------------- */

#app { display: flex; flex-direction: column; min-height: 100vh; }

.app-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  padding: 22px var(--page-pad);
  border-bottom: 1px solid var(--athera-line);
  background: var(--athera-off-white);
  position: sticky; top: 0; z-index: 20;
}
.app-header .brand { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.app-header .brand img { height: 30px; width: auto; }

/* Step indicator (right side, DM Mono) */
.step-indicator { display: flex; align-items: center; gap: 14px; }
.step-indicator .step {
  font-family: var(--athera-mono); font-size: 11px;
  color: var(--athera-grey-light); letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 8px;
}
.step-indicator .step .num { color: var(--athera-grey-light); }
.step-indicator .step.is-active { color: var(--athera-charcoal); }
.step-indicator .step.is-active .num { color: var(--athera-blue-deep); }
.step-indicator .step.is-done { color: var(--athera-grey); }
.step-indicator .sep { width: 18px; height: 1px; background: var(--athera-line); }

.app-main { flex: 1 1 auto; width: 100%; }

.app-footer {
  border-top: 1px solid var(--athera-line);
  padding: var(--s-4) var(--page-pad);
  display: flex; align-items: flex-start; gap: 18px;
  color: var(--athera-grey);
  background: var(--athera-off-white);
}
.app-footer img.emblem { height: 26px; width: auto; opacity: 0.9; margin-top: 2px; }
.app-footer .footer-text { max-width: 760px; }
.app-footer .footer-text .line-1 { font-size: 13px; color: var(--athera-charcoal-light); }
.app-footer .footer-text .disclaimer { font-size: 12px; color: var(--athera-grey); margin-top: 4px; line-height: 1.6; }

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

.page { max-width: var(--page-max); margin: 0 auto; padding: var(--s-7) var(--page-pad); }
.page-narrow { max-width: 880px; margin: 0 auto; padding: var(--s-7) var(--page-pad); }

.section-head { margin-bottom: var(--s-5); }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin: 0 0 18px; color: var(--athera-charcoal); }
.section-head .intro { max-width: 560px; }
.section-head .blue-rule { margin-top: 22px; }

.stack > * + * { margin-top: var(--s-2); }

/* Fade-in for screen transitions (calm, short) */
@keyframes athera-fade { from { opacity: 0; } to { opacity: 1; } }
.screen-enter { animation: athera-fade 0.3s ease both; }

@media (max-width: 720px) {
  :root { --page-pad: 24px; }
  .step-indicator .step .label { display: none; }
}
