/* Amplified Futures — site styles
   Palette and type carried over from the Branca docs page so the site and the
   panels read as one system. */

:root {
  --orange:   #FF4A0E;
  --dark:     #0b120b;
  --steel:    #1F2A1F;
  --panel:    #19221a;
  --paper:    #C8C0B0;
  --concrete: #887860;
  --yellow:   #E8C547;
  --green:    #5A7350;
  --border:   #2a362a;
  --mono: 'Courier New', Courier, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--paper);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { color: var(--orange); }

.stripe { height: 4px; background: var(--orange); }

/* ── NAV ── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 20px 48px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.nav-brand {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none;
}
.nav-brand strong { color: var(--orange); }
.nav-links {
  display: flex; gap: 28px; font-size: 12px; font-family: var(--mono);
  letter-spacing: 0.1em; color: var(--concrete); flex-wrap: wrap;
}
.nav-links a { text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--paper); }

/* ── LAYOUT ── */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 48px; }
.narrow { max-width: 720px; }
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--border); }

.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 20px;
}
h1 {
  font-family: var(--mono); font-size: clamp(32px, 5.5vw, 60px);
  font-weight: 700; letter-spacing: 0.03em; line-height: 1.06;
  margin-bottom: 24px;
}
h2 {
  font-family: var(--mono); font-size: 20px; letter-spacing: 0.06em;
  margin: 0 0 20px; color: var(--paper);
}
h3 {
  font-family: var(--mono); font-size: 15px; letter-spacing: 0.06em;
  margin: 32px 0 12px; color: var(--paper);
}
p { margin-bottom: 18px; max-width: 68ch; }
.lede { font-size: 17px; color: var(--concrete); line-height: 1.7; }
ul, ol { margin: 0 0 18px 20px; }
li { margin-bottom: 8px; max-width: 66ch; }
hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

/* ── BUTTONS ── */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; border: 1px solid; text-decoration: none;
  transition: background .12s, color .12s, border-color .12s; cursor: pointer;
}
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover { background: #e03d00; border-color: #e03d00; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--paper); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ── PILLARS ── */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2px; }
.pillar { background: var(--steel); padding: 24px; }
.pillar-name {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}
.pillar p { font-size: 13px; color: var(--concrete); margin: 0; }

/* ── RACK STRIP ── */
.rack-wrap {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: #080e08; overflow-x: auto; padding: 16px 48px;
}
.rack-strip { display: flex; gap: 2px; width: max-content; align-items: flex-end; }
.rack-strip img { height: 100px; width: auto; display: block; opacity: .9; }
.rack-strip img:hover { opacity: 1; }

/* ── MODULE GRID ── */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px; }
.module-card { background: var(--steel); display: flex; flex-direction: column; }
.module-card:hover { background: #243424; }
.module-panel {
  display: flex; justify-content: center; align-items: flex-end;
  padding: 20px 20px 0; background: #141c14;
}
.module-panel img { height: 190px; width: auto; display: block; }
.module-info { padding: 16px; flex: 1; }
.module-name {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--paper);
}
.module-meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--orange); text-transform: uppercase; margin-top: 2px; }
.module-desc { font-size: 12px; color: var(--concrete); line-height: 1.55; margin-top: 8px; }

/* ── TABLES ── */
table { border-collapse: collapse; width: 100%; margin-bottom: 24px; font-size: 14px; }
th, td { text-align: left; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); font-weight: 400; }
td { color: var(--concrete); }
td strong { color: var(--paper); font-weight: 600; }

/* ── CALLOUT ── */
.note {
  border-left: 2px solid var(--orange); background: var(--panel);
  padding: 18px 22px; margin: 28px 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--paper); }

/* ── STATUS PILL ── */
.pill {
  display: inline-block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px;
  border: 1px solid var(--concrete); color: var(--concrete); margin-left: 8px;
  vertical-align: middle;
}
.pill-dev { border-color: var(--yellow); color: var(--yellow); }
.pill-free { border-color: var(--green); color: var(--green); }

/* ── SIGNUP ── */
.signup { background: var(--steel); padding: 40px 48px; }
.signup h2 { margin-bottom: 12px; }
.signup p { color: var(--concrete); font-size: 14px; }
.signup-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.signup-form input[type=email] {
  flex: 1 1 260px; padding: 11px 14px; background: var(--dark);
  border: 1px solid var(--border); color: var(--paper);
  font-family: var(--mono); font-size: 13px;
}
.signup-form input[type=email]:focus { outline: none; border-color: var(--orange); }

/* ── POST LIST ── */
.post-list { list-style: none; margin: 0; }
.post-list li { border-bottom: 1px solid var(--border); padding: 20px 0; margin: 0; max-width: none; }
.post-list a { font-family: var(--mono); font-size: 16px; text-decoration: none; letter-spacing: 0.03em; }
.post-meta { font-family: var(--mono); font-size: 11px; color: var(--concrete); letter-spacing: 0.1em; margin-top: 6px; }
.post-list p { font-size: 14px; color: var(--concrete); margin: 8px 0 0; }

/* ── ARTICLE ── */
article p, article li { color: var(--paper); }
article .lede { color: var(--concrete); }
code {
  font-family: var(--mono); font-size: 13px; background: var(--panel);
  padding: 1px 5px; border: 1px solid var(--border); color: var(--yellow);
}
pre {
  font-family: var(--mono); font-size: 12.5px; background: var(--panel);
  border: 1px solid var(--border); padding: 18px; overflow-x: auto;
  margin-bottom: 22px; line-height: 1.5; color: var(--paper);
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border); padding: 40px 48px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--concrete);
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { text-decoration: none; }

@media (max-width: 640px) {
  nav, .wrap, .signup, footer, .rack-wrap { padding-left: 22px; padding-right: 22px; }
  section { padding: 48px 0; }
}

/* Language switcher and translation notice.
   Added with the ja/fr/de pages. The notice is deliberately prominent: an
   unreviewed machine translation presented as finished copy is worse than an
   obviously provisional one, because a reader cannot tell which they are
   looking at. It disappears once i18n/<lang>.json names a reviewer. */
.lang-switch {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 0.4rem 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.lang-switch a { color: inherit; opacity: 0.62; text-decoration: none; }
.lang-switch a:hover { opacity: 1; text-decoration: underline; }
.lang-switch [aria-current="true"] { opacity: 1; font-weight: 600; }

.translation-notice {
  background: #FF4A0E;
  color: #fff;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

/* Legal pages. Narrower than the rest of the site and set slightly larger:
   these are read in sequence rather than scanned, and a 1080px measure of
   continuous prose is punishing. */
.legal { max-width: 720px; }
.legal h2 { margin-top: 40px; }
.legal section { margin-bottom: 8px; }
.legal-foot { margin-top: 56px; padding-top: 20px;
              border-top: 1px solid var(--border); font-size: 14px; }

/* The EU model withdrawal form. Set apart because it is a form to be copied
   and returned, not prose to be read. */
.model-form {
  border-left: 3px solid var(--orange);
  padding: 18px 22px;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.03);
}
.model-form p { margin: 0 0 14px; }
.model-form p:last-child { margin-bottom: 0; }

/* Sits under a signup field. Small, but it has to be legible rather than
   technically present - a notice nobody can read does not inform anyone. */
.consent-note {
  font-size: 12px;
  line-height: 1.55;
  color: var(--concrete);
  max-width: 46em;
  margin: 10px 0 0;
}
.consent-note a { color: var(--concrete); text-decoration: underline; }
.consent-note a:hover { color: var(--orange); }
