/* Forecast (Concept Nº 23) — shared styles.
   The live sky canvas is the background; everything else sits on frosted panels. */
:root {
  --ink: #F2F4F7;
  --ink-2: #C3CCD8;
  --ink-3: #8D99AA;
  --panel: rgba(9, 13, 22, .58);
  --panel-strong: rgba(9, 13, 22, .78);
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .26);
  --amber: #FFB547;
  --amber-ink: #1A1206;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --r: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: #0b1018; color: var(--ink-2); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh;
}
a { color: inherit; }
p a, .fc-facts a, .fc-now a { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--amber); color: var(--amber-ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

/* ── sky ── */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; background: linear-gradient(#1a2233, #0b1018 70%); }

/* ── top bar ── */
.fc-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 24px;
  padding: 12px 24px; background: linear-gradient(rgba(6, 9, 15, .55), rgba(6, 9, 15, 0));
}
.fc-brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.fc-brand b { font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: .12em; }
.fc-brand span { font-family: var(--serif); font-size: 24px; font-style: italic; line-height: 1; }
.fc-links { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: nowrap; }
.fc-links a {
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2); padding: 6px 10px; border-radius: 999px;
  border: 1px solid transparent; transition: color .15s, border-color .15s, background .15s; white-space: nowrap;
}
.fc-links a:hover { color: var(--ink); border-color: var(--line-2); }
.fc-links a[aria-current="page"] { color: var(--ink); border-color: var(--line-2); background: rgba(255, 255, 255, .06); }
.fc-links a.fc-cta { color: var(--amber-ink); background: var(--amber); border-color: var(--amber); font-weight: 600; }
.fc-links a.fc-cta:hover { background: #ffc46e; }
.fc-menu-btn { display: none; margin-left: auto; font: 500 14px var(--sans); color: var(--ink); background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fc-sheet { display: none; }

@media (max-width: 1080px) {
  .fc-links { display: none; }
  .fc-menu-btn { display: inline-flex; }
  .fc-sheet {
    position: fixed; inset: 0; z-index: 40; background: rgba(6, 9, 15, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 72px 24px 32px; overflow-y: auto; display: none; flex-direction: column; gap: 4px;
  }
  .fc-sheet.open { display: flex; }
  .fc-sheet a { font-family: var(--serif); font-size: 32px; line-height: 1.25; color: var(--ink); text-decoration: none; padding: 4px 0; }
  .fc-sheet a small { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-left: 8px; letter-spacing: .08em; }
  .fc-sheet .fc-close { position: absolute; top: 14px; right: 16px; font: 500 14px var(--sans); color: var(--ink); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
}

/* ── instrument strip ── */
.fc-inst {
  position: fixed; top: 64px; right: 24px; z-index: 20; display: grid; grid-template-columns: auto auto; gap: 4px 16px; align-items: center;
  padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  min-width: 248px;
}
.fc-inst-when { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.fc-inst-when .live { color: var(--amber); }
.fc-inst-temp { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--ink); }
.fc-inst-temp svg { width: 32px; height: 32px; color: var(--ink); }
.fc-inst-cond { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink); }
.fc-inst-rows { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, auto); gap: 8px 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.fc-inst-rows div { display: flex; flex-direction: column; }
.fc-inst-rows dt { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.fc-inst-rows dd { color: var(--ink); display: flex; align-items: center; gap: 4px; }
.fc-arrow { width: 12px; height: 12px; transition: transform .6s var(--ease); }
@media (max-width: 1080px) {
  /* compact chip beside the Menu button */
  .fc-inst { top: 12px; right: 100px; min-width: 0; display: flex; gap: 8px; padding: 4px 12px; border-radius: 999px; }
  .fc-inst-when, .fc-inst-cond, .fc-inst-rows { display: none; }
  .fc-inst-temp { font-size: 24px; gap: 4px; }
  .fc-inst-temp svg { width: 20px; height: 20px; }
}

/* ── layout ── */
main { position: relative; z-index: 10; }
.fc-section { min-height: 118vh; display: flex; align-items: center; padding: 96px 24px; }
.fc-section.hero { min-height: 100vh; align-items: flex-start; padding-top: 112px; }
.fc-wrap { width: 100%; max-width: 1200px; margin: 0 auto; }
.fc-panel {
  max-width: 600px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 32px;
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
}
.fc-panel.wide { max-width: 860px; }
.fc-section.right .fc-panel { margin-left: auto; }

.fc-disc { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.fc-disc .reading { color: var(--ink-3); letter-spacing: .06em; }
.fc-disc .reading:empty::before { content: '\00a0'; } /* hold the line until the forecast loads */
@media (max-width: 640px) { .fc-disc { min-height: calc(2 * 1.6em + 4px); } }
h1, h2, h3 { color: var(--ink); font-weight: 400; }
h1 { font-family: var(--serif); font-size: clamp(48px, 7vw, 88px); line-height: 1.02; letter-spacing: -.01em; margin: 16px 0; }
h1 em, h2 em { font-style: italic; }
h2 { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; margin: 12px 0 16px; }
h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.35; }
p { max-width: 62ch; }
p + p { margin-top: 12px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink); }
.fc-now { font-family: var(--mono); font-size: 14px; color: var(--ink-2); margin-top: 24px; padding-left: 12px; border-left: 2px solid var(--amber); }
.fc-now strong { color: var(--ink); font-weight: 500; }

.fc-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.fc-btn {
  display: inline-flex; align-items: center; gap: 8px; font: 600 16px var(--sans); text-decoration: none; padding: 12px 20px;
  border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); background: rgba(255, 255, 255, .04);
  transition: border-color .15s, background .15s, transform .15s;
}
.fc-btn:hover { border-color: var(--amber); transform: translateY(-1px); }
.fc-btn.primary { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.fc-btn.primary:hover { background: #ffc46e; }

.fc-periods { list-style: none; margin-top: 24px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.fc-periods li { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fc-periods .when { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.fc-periods .when b { display: block; color: var(--amber); font-weight: 500; }
.fc-periods p { font-size: 14px; margin-top: 4px; }
.fc-note { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--ink); margin-top: 24px; }

.fc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.fc-card {
  display: block; text-decoration: none; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .03);
  transition: border-color .15s, background .15s;
}
a.fc-card:hover { border-color: var(--amber); background: rgba(255, 181, 71, .06); }
.fc-card h3 { display: flex; justify-content: space-between; gap: 8px; }
.fc-card h3 span { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--ink-3); }
.fc-card p { font-size: 14px; margin-top: 4px; }
.fc-tag { font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: .06em; }
@media (max-width: 640px) {
  .fc-grid { grid-template-columns: 1fr; }
  .fc-periods li { grid-template-columns: 1fr; gap: 4px; }
}

/* ── forecast strip (homepage nav) ── */
.fc-strip {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 25; display: flex; gap: 4px; padding: 4px;
  background: var(--panel-strong); border: 1px solid var(--line); border-radius: 999px; max-width: calc(100vw - 32px);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow-x: auto; scrollbar-width: none;
}
.fc-strip::-webkit-scrollbar { display: none; }
.fc-chip {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 72px; padding: 6px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-2); text-decoration: none; border: 1px solid transparent; transition: border-color .2s;
}
.fc-chip svg { width: 18px; height: 18px; }
.fc-chip .t { color: var(--ink); }
.fc-chip:hover { border-color: var(--line-2); }
.fc-chip.on { background: var(--amber); color: var(--amber-ink); }
.fc-chip.on .t { color: var(--amber-ink); }
.fc-chip .lbl { white-space: nowrap; letter-spacing: .04em; }
@media (max-width: 760px) {
  .fc-strip { left: 16px; right: 16px; transform: none; border-radius: 16px; }
  .fc-chip { min-width: 64px; padding: 6px 8px; border-radius: 12px; }
}

/* ── footer ── */
.fc-foot { position: relative; z-index: 10; padding: 48px 24px 160px; }
.fc-foot .fc-wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--ink-3); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 24px 16px 176px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.fc-foot nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.fc-foot a { color: var(--ink-2); text-decoration: none; }
.fc-foot span a { text-decoration: underline; text-underline-offset: 3px; }
.fc-foot a:hover { color: var(--amber); }
@media (max-width: 768px) { .fc-foot .fc-wrap { padding-left: 24px; } .fc-foot { padding-bottom: 176px; } }

/* ── reveal ── */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .35s ease-out, transform .35s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .fc-arrow { transition: none; } }

/* ── free roadmap pill (theme hub convention) ── */
#free-concept-cta { display: flex; }
@media (max-width: 768px) { #free-concept-cta { display: none !important; } }

/* ── subpages ── */
.fc-page main { padding: 112px 24px 48px; }
.fc-page .fc-stack { max-width: 1200px; margin: 0 auto; display: grid; gap: 24px; }
.fc-page .fc-panel { max-width: 720px; }
.fc-page .fc-panel.r { margin-left: auto; }
.fc-page h1 { font-size: clamp(44px, 6vw, 72px); }
.fc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.fc-facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.fc-facts dd { color: var(--ink); margin-top: 4px; }
.fc-price { font-family: var(--serif); font-size: 48px; color: var(--ink); line-height: 1; margin: 8px 0; }
.fc-price small { font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
.fc-card ul { margin: 8px 0 0 18px; font-size: 14px; }
.fc-form { display: grid; gap: 16px; margin-top: 24px; }
.fc-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fc-form label { display: grid; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fc-form input, .fc-form select, .fc-form textarea {
  font: 16px var(--sans); color: var(--ink); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); border-radius: 8px; padding: 12px; width: 100%;
  text-transform: none; letter-spacing: 0;
}
.fc-form select option { color: #111; }
.fc-form textarea { min-height: 112px; resize: vertical; }
.fc-form input:focus, .fc-form select:focus, .fc-form textarea:focus { outline: none; border-color: var(--amber); }
.fc-form .bad { border-color: #ff7a6b; }
.fc-form button { justify-self: start; cursor: pointer; }
.fc-msg { font-family: var(--mono); font-size: 14px; color: var(--ink-2); min-height: 1.4em; }
.fc-msg.err { color: #ff9d8f; }
.fc-hp { position: absolute; left: -9999px; }
@media (max-width: 640px) { .fc-form .row { grid-template-columns: 1fr; } .fc-page main { padding-top: 88px; } .fc-panel { padding: 24px; } }
.fc-page .fc-panel.wide { max-width: 960px; }
