/* ============================================================
   NOAH WIRE inner pages: wire-light.css re-pointed at the cusp
   palette, plus room for the fixed lime rail. Loads AFTER
   wire-light.css and cusp.css.
   ============================================================ */

:root {
  --paper:      #FAFAFA;
  --paper-hi:   #FFFFFF;
  --paper-mid:  #E5E5E5;
  --ink:        #141414;
  --ink-body:   #262626;
  --ink-mute:   #8A8A8A;
  --rule:       #D4D4D4;
  --rule-soft:  #E5E5E5;

  --accent:      #017288;
  --accent-ink:  #FFFFFF;
  --accent-soft: #E5E5E5;
  --accent-line: #D4D4D4;
  --accent-dark: #015F71;
  --accent-glow: rgba(1,114,136,.12);
  --red:         #FF7EC4;
  --red-deep:    #E86AB0;

  --display: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --sans:    'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono:    'Plex Mono', 'IBM Plex Mono', ui-monospace, monospace;
  --nav-height: 5rem;
  --max: 96rem;
}

html { font-size: clamp(13px, 0.9722vw, 17px); }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); padding-left: var(--rail); letter-spacing: -0.01em; }
html { background: var(--lime); }


/* Headlines: cusp weight and tracking, never serif */
h1, h2, h3, h4, .hero__headline, .card__title, .footer__heading { font-family: var(--sans); font-weight: 400; letter-spacing: -0.02em; }
h1 em, .hero__headline em { font-style: normal; color: var(--lime); }
.section h2 em, h2 em { font-style: normal; color: var(--accent); }
.eyebrow { font-family: var(--mono); font-size: 0.875rem; font-weight: 500; letter-spacing: 0; text-transform: uppercase; color: var(--accent); }
.eyebrow::before, .eyebrow::after { display: none !important; }

/* Old nav is replaced by the rail; make sure nothing of it lingers */
.nav, .nav__mobile, .nav__toggle { display: none !important; }

/* Buttons become cusp pills */
.btn { border-radius: 999px; font-family: var(--mono); font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0; height: 2.6rem; padding: 0 1.3rem; display: inline-flex; align-items: center; gap: 0.6rem; border: 0; }
.btn--primary, .btn--accent { background: var(--lime); color: var(--ink); }
.btn--primary:hover, .btn--accent:hover { background: var(--lime-deep); color: var(--ink); }
.btn--ghost, .btn--outline, .btn--secondary { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }

/* Video heroes: same treatment as the homepage hero */
.hero--video { min-height: 100vh; padding: var(--content-top) 3rem 6rem 1.85rem; color: var(--paper); }
.hero-video__overlay { background: rgba(20,20,20,.28) !important; }
.hero-video__grain { display: none; }
.hero__inner { max-width: none; margin: 0; text-align: left; }
.hero__headline { font-size: 4.75rem; line-height: 1; letter-spacing: 0; max-width: 72rem; font-family: var(--sans); font-weight: 400; }
.hero__subtitle { font-size: 1.75rem; line-height: 1.2; max-width: 40ch; margin: 1.6rem 0 0; color: rgba(250,250,250,.9); }
.hero__inline-link { color: var(--lime); text-decoration: none; border-bottom: 1px solid currentColor; }
.hero__ctas { margin-top: 2.4rem; justify-content: flex-start; }
.hero__scroll-hint { display: none; }
.hero:not(.hero--video) { padding-top: var(--content-top) !important; }
.hero:not(.hero--video) .hero__headline { font-size: 4rem; }
.hero:not(.hero--video) .hero__headline em { color: var(--accent); }

/* Surfaces */
.section--dark { background: var(--paper); }
.section--darker, .section--tint { background: var(--paper-mid); border: 0; }
.section--grain { background: var(--paper-mid); }
.section--accent { background: var(--teal); color: var(--paper); border: 0; }
.section--accent h2, .section--accent h3 { color: var(--lime); }
.section--accent p { color: #dcecf0; }
.section--band { background: var(--paper-mid); border: 0; }
.card, .form-input, .form-select, .form-textarea { border-radius: 0.6rem; border-color: var(--rule); }
.card { background: var(--paper-hi); box-shadow: none; }
.card__title { font-size: 1.5rem; }
.divider, .terms-divider { border-color: var(--rule); }
.stat__number { font-family: var(--sans); font-weight: 300; letter-spacing: -0.03em; color: var(--ink); }
.stat__number em, .stat__number span { color: var(--accent); }

/* Legal pages: cusp's two-column layout, mono section headings */
.terms-body { max-width: none; }
.terms-body h2 { font-family: var(--mono) !important; font-size: 1.125rem !important; font-weight: 500 !important; text-transform: uppercase; letter-spacing: 0; color: var(--ink); margin: 3rem 0 1rem; }
.terms-body p, .terms-body li { font-size: 1rem; color: var(--ink-body); max-width: 64ch; }
.terms-meta { color: var(--ink-mute); }

/* Forms as on the Start section */
.form-label { color: var(--ink); opacity: .7; font-size: 0.8rem; font-weight: 500; letter-spacing: 0; }
.form-input, .form-select, .form-textarea { background: var(--paper-hi); font-size: 1.1rem; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--ink); box-shadow: none; }

/* News grid + articles */
.news-grid .card { border: 1px solid var(--rule); }
.article-body { font-size: 1.125rem; line-height: 1.55; color: var(--ink-body); }
.article-body a { color: var(--accent); }
.article-hero-img { border-radius: 0.6rem; }
.news-stamp, .article-meta { font-family: var(--mono); font-size: 0.875rem; text-transform: uppercase; color: var(--ink-mute); }

/* Old footer hidden; the new .foot markup is used instead */
.footer { display: none !important; }

/* Rail is always lime on inner pages (there is no hero video under it) */
.rail { background: var(--lime); color: var(--ink); }
.rail__index a.is-active { background: var(--ink); color: var(--lime); }
.rail__foot a:hover { color: var(--teal); }
.pill--ghost { background: var(--paper); }
.hero--video ~ * .pill--ghost { background: var(--paper); }

/* Chat + docs pick up the tokens on their own */

@media (max-width: 1100px) {
  .hero__headline { font-size: 4rem; }
}
@media (max-width: 860px) {
  html { font-size: 15px; }
  body { padding-left: 0; padding-top: 4.2rem; }
  .hero--video { min-height: 80vh; padding: 5rem 1.2rem 4rem; }
  .hero__headline { font-size: 2.9rem; }
  .hero__subtitle { font-size: 1.25rem; }
  .hero:not(.hero--video) { padding-top: 4rem !important; }
  .hero:not(.hero--video) .hero__headline { font-size: 2.6rem; }
  .terms-body h2 { margin-top: 2rem; }
}

/* Inner-page video heroes share the .hero-video class name with the homepage's
   fixed hero; undo the homepage rules here so the video is absolute and visible. */
.hero--video .hero-video { position: absolute; inset: 0; z-index: 0; visibility: visible !important; background: var(--ink); }
.hero--video .hero-video video, .hero--video .hero-video__media { opacity: 1 !important; }
.hero--video .hero-video::after { display: none; }
.hero--video .hero__inner { position: relative; z-index: 2; padding: 0; }

/* Docs manual header: was a dark gradient with light text */
.docs-hero { background: var(--paper-mid) !important; color: var(--ink); }
.docs-hero h1, .docs-hero p, .docs-hero .hero__subtitle { color: var(--ink) !important; }
.docs-hero h1 { font-weight: 400; letter-spacing: -0.02em; }
.docs-hero h1 em { color: var(--accent) !important; font-style: normal; }

.hero--video .hero__headline em, .hero--video h1 em { color: var(--lime) !important; font-style: normal; }
.menu__foot { flex-wrap: wrap; max-width: 100%; }
.menu__foot a { white-space: normal; }

/* Phones: every card grid single-column (agent.html's three-up overflowed at 390px) */
@media (max-width: 639px) { .grid, .grid--2, .grid--3, .grid--4, .feature-row { grid-template-columns: 1fr !important; } }


/* ALL-IN PASS: top bar everywhere on inner pages too */
body { padding-left: 0 !important; padding-top: var(--bar-h); }
.rail { background: var(--lime); }
.hero--video { padding: var(--content-top) clamp(1.4rem, 4vw, 4.3rem) 6rem; }
.hero:not(.hero--video) { padding-left: clamp(1.4rem, 4vw, 4.3rem); }
body { background: var(--paper) !important; }
