/* Fireit website, sign-in pages, account page and policy pages.
   Brand kit: Concept A "The Contemporary Museum". Ivory ground, ink text, Rebel Red for the one main action,
   Ember only on dark surfaces, Stone for rules. Instrument Serif headlines, Manrope interface, Plex Mono labels. */
:root {
  --ink: #211F1D;        /* Museum Ink */
  --ink-2: #3A3733;
  --muted: #6B655B;      /* Stone Deep: secondary text that passes contrast */
  --bg: #F3EEE5;         /* Gallery Ivory */
  --paper: #FBF8F3;      /* cards on ivory */
  --white: #FFFFFF;
  --line: #DDD6CA;
  --stone: #9C9588;      /* Sculpture Stone: borders only */
  --red: #9C342D;        /* Rebel Red: primary action, links */
  --red-dark: #7E2923;
  --ember: #D47C43;      /* Ember Orange: on dark only */
  --olive: #727963;      /* success, live */
  --olive-text: #4A5040;
  --night: #16140F;      /* behind video */
  --dark: #211F1D;
  --on-dark: #F3EEE5;
  --on-dark-2: #CFC8BB;
  --ok: #4A5040;
  --danger: #9C342D;
  --radius: 4px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  /* Older names still used by some pages. */
  --seal: var(--red); --seal-dark: var(--red-dark); --seal-2: var(--red); --navy: var(--dark);
  --wax: var(--red); --wax-text: var(--red); --mint: #EADFDC; --pink-soft: var(--ember);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--red); }
a:hover { color: var(--ink); }
img { max-width: 100%; }
.hidden { display: none !important; }
.container { width: min(1280px, 100%); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }

/* Logo: wordmark with a red full stop */
.logo { display: inline-flex; align-items: baseline; gap: 0; font-weight: 800; font-size: 26px; color: var(--ink); text-decoration: none; letter-spacing: -0.04em; line-height: 1; }
.logo .dot { color: var(--red); }
.logo-mark { display: none; }
.on-dark .logo, .logo.light { color: var(--on-dark); }
.on-dark .logo .dot, .logo.light .dot { color: var(--ember); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--sans); padding: 15px 22px; min-height: 48px; border-radius: var(--radius);
  border: 1px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); color: var(--on-dark); }
.btn.primary { background: var(--red); border-color: var(--red); color: var(--on-dark); }
.btn.primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--on-dark); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.btn.dark:hover { background: #000; }
.btn.ember { background: var(--ember); border-color: var(--ember); color: var(--ink); }
.btn.ember:hover { background: #E0915A; border-color: #E0915A; color: var(--ink); }
.btn.ivory { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.btn.ivory:hover { background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(33,31,29,.06); color: var(--ink); }
.btn.link { background: none; border: 0; padding: 0; min-height: 0; color: var(--red); }
.btn.small { padding: 10px 14px; min-height: 40px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: var(--on-dark); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; flex-wrap: wrap; }
.nav-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--red); }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 12px; } }

/* Type */
.eyebrow, .kicker { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.kicker.red { color: var(--red); }
h1.display { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 7vw, 96px); line-height: .95; letter-spacing: -0.01em; margin: 22px 0 24px; }
h1.display em, h2 em { font-style: italic; color: var(--red); }
.on-dark h2 em { color: var(--ember); }
.lede { font-size: 19px; color: var(--ink-2); max-width: 520px; margin: 0 0 30px; }
h2.serif, .section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.6vw, 56px); line-height: 1; letter-spacing: -0.005em; margin: 12px 0 16px; }

/* Hero */
.hero { padding: 48px 0 88px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: 580px; object-fit: cover; border-radius: var(--radius); display: block; }
@media (max-width: 700px) { .hero-art img { height: 380px; } }
.hero-card { position: absolute; left: 20px; right: 20px; bottom: 20px; background: var(--paper); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.hero-card small { display: block; color: var(--muted); font-size: 13px; }
.hero-card b { font-size: 15px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: #E4E6DC; color: var(--olive-text); }
.chip.red { background: #EADFDC; color: var(--red); }
.chip.ember { background: var(--ember); color: var(--ink); }

/* Sections */
section.block { padding: 96px 0; }
section.band { background: var(--paper); border-top: 1px solid #CFC8BB; border-bottom: 1px solid #CFC8BB; }
section.dark, .on-dark { background: var(--dark); color: var(--on-dark); }
section.red { background: var(--red); color: var(--on-dark); }
.section-head { max-width: 680px; margin: 0 0 44px; }
.section-head p { color: var(--ink-2); font-size: 18px; margin: 0; }
.on-dark .section-head p, .on-dark p { color: var(--on-dark-2); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 20px; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: 13px; color: var(--red); display: block; margin-bottom: 10px; }
.step h3 { margin: 0 0 8px; font-size: 20px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

.split-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; }
.split-feature p { font-size: 17px; color: var(--ink-2); margin: 0 0 14px; }
.split-feature .note { font-size: 14px; color: var(--muted); }

.player-mock { background: var(--dark); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.player-mock img { width: 100%; height: 320px; object-fit: cover; border-radius: 3px; display: block; }
.player-mock .bar { display: flex; align-items: center; gap: 14px; }
.player-mock .play { width: 38px; height: 38px; border-radius: 50%; background: var(--ember); display: grid; place-items: center; flex: none; }
.player-mock .track { flex: 1; height: 4px; background: #3A3733; border-radius: 2px; }
.player-mock .track b { display: block; width: 52%; height: 100%; background: var(--ember); border-radius: 2px; }
.player-mock .time { font-family: var(--mono); font-size: 12px; color: #A8A296; }

.insight-mock { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.insight-mock .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); display: block; }
.insight-mock .num { font-family: var(--serif); font-size: 48px; line-height: 1; }
.insight-mock .bars { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 6px; height: 120px; border-bottom: 1px solid #CFC8BB; }
.insight-mock .bars i { flex: 1; background: var(--red); border-radius: 2px 2px 0 0; display: block; }
.insight-mock .cap { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; border-top: 1px solid #CFC8BB; }
.feature { padding: 26px 24px 26px 0; border-bottom: 1px solid #CFC8BB; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }
.feature .ic { display: none; }

.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.who img { width: 100%; height: 230px; object-fit: cover; border-radius: var(--radius); display: block; margin-bottom: 16px; }
.who h3 { margin: 0 0 6px; font-size: 19px; }
.who p { margin: 0; color: var(--on-dark-2); font-size: 15px; }

/* Pricing */
.price-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.toggle { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.toggle button { font: 600 14px var(--sans); padding: 0 18px; min-height: 44px; background: transparent; color: var(--ink); border: 0; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.price-card.featured { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.price-card.featured .muted, .price-card.featured li { color: var(--on-dark-2); }
.price-card .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price-card h3 { margin: 0; font-size: 18px; }
.price { font-family: var(--serif); font-size: 56px; font-weight: 400; line-height: 1; margin: 14px 0 4px; letter-spacing: 0; }
.price small { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--muted); }
.price-card.featured .price small { color: var(--on-dark-2); }
.price-card .blurb { font-size: 14px; min-height: 44px; }
.price-card ul { list-style: none; padding: 16px 0 0; margin: 10px 0 22px; flex: 1; border-top: 1px solid var(--line); }
.price-card.featured ul { border-top-color: #3A3733; }
.price-card li { padding: 6px 0 6px 22px; position: relative; color: var(--ink-2); font-size: 14px; }
.price-card li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: .7; }
.price-foot { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid #CFC8BB; padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 10px 0 0; }

.cta-final .container { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.cta-final h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 80px); margin: 0; line-height: .95; }

footer.site { padding: 32px 0 44px; color: var(--muted); font-size: 13px; }
footer.site .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* Forms (sign-in, account) */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; color: var(--on-dark); padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; background: var(--night) center / cover no-repeat; }
.auth-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,20,15,.88), rgba(22,20,15,.1) 60%); }
.auth-side > * { position: relative; }
.auth-side .logo { color: var(--on-dark); }
.auth-side .logo .dot { color: var(--ember); }
.auth-side blockquote { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--on-dark); margin: 0 0 14px; }
.auth-side blockquote em { color: var(--ember); }
.auth-side p { color: #E6E0D5; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-box { width: min(420px, 100%); }
.auth-box h1 { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1; margin: 0 0 10px; }
.auth-box .sub { color: var(--muted); margin: 0 0 26px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-main { place-items: start center; padding-top: 32px; } }
.mobile-logo { display: none; margin-bottom: 28px; }
@media (max-width: 860px) { .mobile-logo { display: inline-flex; } }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font: 16px var(--sans); color: var(--ink); background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); padding: 13px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid color-mix(in srgb, var(--red) 40%, transparent); border-color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.error { color: var(--danger); font-size: 14px; min-height: 1.3em; margin: 6px 0 10px; }
.success { color: var(--ok); font-size: 14px; }
.btn.block { width: 100%; }
.switch { margin-top: 20px; font-size: 15px; color: var(--muted); text-align: center; }

/* App pages on the light theme (account, owner) */
.app-top { background: var(--paper); border-bottom: 1px solid var(--line); }
.app-top .container { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; flex-wrap: wrap; }
.app-top nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.app-main { padding: 32px 0 80px; }
.app-main h1 { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1; margin: 0 0 28px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.panel h2 { margin: 0 0 4px; font-size: 19px; }
.panel > p.muted { margin: 0 0 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #E6E0D5; color: var(--ink-2); }
.pill.ok { background: #E4E6DC; color: var(--olive-text); }
.pill.warn { background: #EFE3D6; color: #8A3F14; }
.pill.bad { background: #EADFDC; color: var(--red); }
.meter { height: 4px; border-radius: 2px; background: #E6E0D5; overflow: hidden; margin: 8px 0 6px; }
.meter b { display: block; height: 100%; background: var(--olive); border-radius: 2px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 15px; margin: 12px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.dns { font-family: var(--mono); font-size: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; }
.dns table { border-collapse: collapse; width: 100%; }
.dns th { text-align: left; color: var(--muted); font-weight: 500; padding: 0 16px 6px 0; font-family: var(--sans); font-size: 13px; }
.dns td { padding: 2px 16px 2px 0; white-space: nowrap; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { color: var(--muted); font-weight: 600; font-size: 13px; }
.table-wrap { overflow-x: auto; }
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-row .panel { margin: 0; padding: 16px; }
.stat-row b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.05; }
.stat-row span { color: var(--muted); font-size: 13px; }
@media (max-width: 800px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.banner { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #EFE3D6; color: #6B3410; }
.banner.ok { background: #E4E6DC; color: var(--olive-text); }

/* Policy pages */
.doc { max-width: 760px; padding: 48px 20px 90px; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1; margin: 0 0 10px; }
.doc h2 { font-size: 20px; margin: 34px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.draft-note { background: #fff6d6; border: 1px solid #ecd98e; color: #5d4b05; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 20px 0 30px; }

/* Account: usage and plan choices */
.usage3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
#plan-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.plan-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; width: 100%; }
.plan-choice { border: 1px solid var(--line); border-radius: 6px; padding: 18px; background: var(--white); }
.plan-choice.featured { border-color: var(--ink); }
.plan-choice.wanted { outline: 2px solid var(--red); outline-offset: 2px; }
.plan-choice-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-choice-price { font-family: var(--serif); font-size: 40px; line-height: 1; margin: 10px 0 8px; }
.plan-choice-price small { font-family: var(--sans); font-size: 13px; color: var(--muted); }

/* Wordmark: "Fire" in Manrope, "it" in Instrument Serif italic */
.logo .it { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.16em; letter-spacing: -0.01em; margin-left: 0.02em; }
