/* Throne Liftoff: shared stylesheet.
   Aesthetic: throne-client (references/design-tokens.md section 7), the client's own brand.
   Pages add their own file in assets/css/<page>.css; this file holds only shared pieces. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-900: #0B1730;
  --navy-700: #132345;
  --navy-600: #1B2F58;
  --gold-500: #D4A962;
  --gold-400: #E3C47C;
  --gold-700: #997828;
  --ink: #0F172A;
  --ink-soft: #475569;
  --shell: #F8FAFC;
  --paper: #FFFFFF;
  --stock: #0E7C55;
  --line: #DCE3EC;
  --line-strong: #C3CEDC;
  --danger: #B42318;

  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(11, 23, 48, .06), 0 8px 24px -12px rgba(11, 23, 48, .22);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy-700); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5.2vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 68ch; }
.lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 60ch; }

/* Header and footer */
.site-header { background: var(--navy-900); color: #fff; border-bottom: 1px solid rgba(212, 169, 98, .35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 44px; height: auto; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.15; letter-spacing: .01em; }
.brand-name small { display: block; font-family: var(--body); font-weight: 400; font-size: .78rem; color: var(--gold-400); letter-spacing: 0; }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a { color: #E6ECF5; text-decoration: none; font-size: .9rem; padding: 6px 10px; border-radius: var(--r-sm); }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255, 255, 255, .08); color: #fff; }

.site-footer { background: var(--navy-900); color: #C8D2E1; margin-top: 72px; padding: 36px 0; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--gold-400); }
.site-footer .brand img { width: 32px; }

/* Page head for every inner page */
.page-head { background: var(--navy-700); color: #fff; padding: clamp(28px, 6vw, 56px) 0 clamp(24px, 5vw, 44px); }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head .lede { color: #CBD6E6; }
.crumb { display: inline-block; margin-bottom: 14px; color: var(--gold-400); text-decoration: none; font-size: .9rem; }
.crumb:hover { color: #fff; }
.section { padding: clamp(32px, 6vw, 64px) 0; }
.section + .section { padding-top: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--r-sm);
  font: 600 .95rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid var(--navy-700); background: var(--navy-700); color: #fff;
}
.btn:hover { background: var(--navy-600); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-gold { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--navy-900); }
.btn-ghost { background: transparent; color: var(--navy-700); border-color: var(--line-strong); }
.btn-ghost:hover { background: #fff; color: var(--navy-700); border-color: var(--navy-700); }
.on-navy .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.on-navy .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .85rem; }

/* State pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-live { color: var(--stock); background: #E3F3EC; }
.pill-concept { color: var(--gold-700); background: #F7EEDC; }
.pill-muted { color: var(--ink-soft); background: #EEF2F7; }

/* Cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

/* Forms */
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: .9rem; color: var(--navy-700); }
.field .hint { font-size: .82rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font: 400 1rem/1.4 var(--body); color: var(--ink); background: #fff;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(212, 169, 98, .45); border-color: var(--gold-700); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--r-sm); padding: 12px 14px; font-size: .95rem; }
.notice-ok { background: #E3F3EC; color: #0A5C3F; border: 1px solid #B9E0CE; }
.notice-error { background: #FDECEA; color: var(--danger); border: 1px solid #F4C7C2; }
.notice-info { background: #EEF2F7; color: var(--navy-700); border: 1px solid var(--line); }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-family: var(--display); font-weight: 600; color: var(--navy-700); background: #F2F5F9; font-size: .85rem; }
table.data tr:last-child td { border-bottom: 0; }

/* Copyable code / text blocks */
.copy-block { position: relative; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--navy-900); color: #E6ECF5; }
.copy-block pre { margin: 0; padding: 16px; overflow-x: auto; font: 400 .82rem/1.55 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.copy-block .btn { position: absolute; top: 8px; right: 8px; }

/* Product thumbnails share one treatment across pages */
.thumb { aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.price { font-family: var(--display); font-weight: 700; color: var(--navy-700); }
.price-call { color: var(--gold-700); }
.muted { color: var(--ink-soft); }

/* Hub */
.hero { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { position: relative; padding-top: clamp(40px, 9vw, 96px); padding-bottom: clamp(40px, 8vw, 88px); }
.hero h1 { color: #fff; max-width: 17ch; font-size: clamp(2rem, 6.4vw, 3.6rem); }
.hero .lede { color: #CBD6E6; }
.hero-mark { position: absolute; right: max(-60px, -6vw); top: 50%; transform: translateY(-50%); width: min(46vw, 480px); opacity: .9; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; max-width: 640px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--gold-400); font-size: .92rem; }

.manifest { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.manifest-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding: 22px clamp(18px, 3vw, 28px); border-bottom: 2px solid var(--gold-500); background: #FBFAF6; }
.manifest-head h2 { margin: 0; }
.manifest-head p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.manifest ol { list-style: none; margin: 0; padding: 0; }
.manifest li { border-bottom: 1px solid var(--line); }
.manifest li:last-child { border-bottom: 0; }
.line-item { display: grid; grid-template-columns: 1fr; gap: 6px 24px; padding: 18px clamp(18px, 3vw, 28px); text-decoration: none; color: inherit; }
a.line-item:hover { background: #F6F8FB; color: inherit; }
.line-item h3 { margin: 0; font-size: 1.08rem; }
.line-item p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.line-item .go-live { font-size: .85rem; color: var(--ink-soft); }
.line-item .go-live strong { color: var(--navy-700); font-weight: 600; }
.line-item .state { justify-self: start; }
@media (min-width: 820px) {
  .line-item { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1fr) 96px; align-items: center; }
  .line-item .state { justify-self: end; }
}

.next-step { margin-top: 28px; display: grid; gap: 10px; padding: 24px clamp(18px, 3vw, 28px); border-radius: var(--r-lg); background: var(--navy-700); color: #fff; }
.next-step h2 { color: #fff; margin: 0; font-size: 1.35rem; }
.next-step p { margin: 0; color: #CBD6E6; }

@media (max-width: 600px) {
  .hero-mark { width: 62vw; right: -22vw; top: 18%; transform: none; opacity: .28; }
  .site-nav { display: none; }
}

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