/* Fireleaf website (redesign 2026-10-28). Warm black and paper, one ember accent, Cormorant Garamond for display (the
   wordmark's typeface) and Instrument Sans for everything else (the app's typeface). Quiet, roomy, hairline borders. */
@font-face { font-family: 'Instrument Sans'; src: url('/assets/InstrumentSans-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/assets/CormorantGaramond-latin.woff2') format('woff2'); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/assets/CormorantGaramond-Italic-latin.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --bg: #0b0a09; --bg-raise: #12100e; --card: #161412; --card-2: #1c1916;
  --line: rgba(255, 238, 220, .08); --line-2: rgba(255, 238, 220, .14);
  --ink: #f4eee7; --ink-2: #c7beb4; --ink-3: #8e857b;
  --ember: #ff6a1a; --ember-2: #ff8a3d; --ember-ink: #1a0b03; --ember-soft: rgba(255, 106, 26, .1); --ember-line: rgba(255, 122, 48, .38);
  --shadow: 0 40px 120px rgba(0, 0, 0, .55), 0 0 0 1px var(--line);
  --display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --max: 1200px; --g: 28px; --r: 16px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f2ec; --bg-raise: #fbf8f4; --card: #ffffff; --card-2: #f7f3ee;
    --line: rgba(48, 30, 12, .1); --line-2: rgba(48, 30, 12, .16);
    --ink: #1b1611; --ink-2: #4b433b; --ink-3: #7a7067;
    --ember: #c4480b; --ember-2: #d65a17; --ember-ink: #fff8f2; --ember-soft: rgba(196, 72, 11, .07); --ember-line: rgba(196, 72, 11, .32);
    --shadow: 0 30px 90px rgba(60, 35, 10, .16), 0 0 0 1px var(--line);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f2ec; --bg-raise: #fbf8f4; --card: #ffffff; --card-2: #f7f3ee;
  --line: rgba(48, 30, 12, .1); --line-2: rgba(48, 30, 12, .16);
  --ink: #1b1611; --ink-2: #4b433b; --ink-3: #7a7067;
  --ember: #c4480b; --ember-2: #d65a17; --ember-ink: #fff8f2; --ember-soft: rgba(196, 72, 11, .07); --ember-line: rgba(196, 72, 11, .32);
  --shadow: 0 30px 90px rgba(60, 35, 10, .16), 0 0 0 1px var(--line);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 500; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 10px; font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .18s, border-color .18s, color .18s, transform .18s; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--ember); color: var(--ember-ink); }
.btn-primary:hover { background: var(--ember-2); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--ink-3); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); transition: border-color .18s; }
.link:hover { border-color: var(--ember); }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 38px; width: auto; }
.top nav { display: flex; gap: 26px; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; transition: color .15s; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }

/* ---- type ---- */
.display { font-family: var(--display); font-weight: 500; letter-spacing: -.012em; line-height: 1.02; color: var(--ink); }
.display em { font-style: italic; color: var(--ember); }
.d-xl { font-size: clamp(52px, 8.2vw, 104px); }
.d-l { font-size: clamp(40px, 5.4vw, 68px); }
.d-m { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); }
.fine { font-size: 13.5px; color: var(--ink-3); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }

/* ---- hero ---- */
.hero { position: relative; padding: 92px 0 0; text-align: center; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto; height: 760px; pointer-events: none; background: radial-gradient(ellipse 46% 52% at 50% 64%, rgba(255, 106, 26, .16), transparent 70%); }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-raise); color: var(--ink-2); font-size: 14px; text-decoration: none; transition: border-color .18s; }
.chip:hover { border-color: var(--ember-line); }
.chip b { font-weight: 600; color: var(--ink); }
.chip span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ember-soft); color: var(--ember); }
.hero h1 { margin: 26px auto 0; }
.hero .lede { margin: 24px auto 0; max-width: 620px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero .fine { margin-top: 16px; }
.stage { position: relative; margin: 72px auto 0; max-width: 1120px; }
.stage .desk { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #24282b; }

/* ---- sections ---- */
section { position: relative; }
.band { padding: 140px 0 0; }
.band-head { max-width: 760px; }
.band-head.center { margin: 0 auto; text-align: center; }
.band-head .lede { margin-top: 20px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 64px; border-top: 1px solid var(--line); }
.facts div { padding: 30px 32px 0 0; }
.facts div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--display); font-weight: 500; font-size: 44px; line-height: 1; color: var(--ink); }
.facts p { margin-top: 12px; font-size: 15px; color: var(--ink-2); max-width: 30ch; }

.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; padding-top: 120px; }
.row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.row.flip .row-text { order: 2; }
.row-text h2 { margin-top: 16px; }
.row-text p { margin-top: 18px; font-size: 17px; }
.row-text ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.row-text li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
.row-text li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--ember); }
.frame { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #24282b; }
.frame.crop { aspect-ratio: 16 / 11; }
.frame.crop img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }

.files { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 28px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.file { aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; border-radius: 12px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.file b { font: 600 12px/1 var(--sans); letter-spacing: .08em; color: var(--ink-3); }
.file i { font-style: normal; font-family: var(--display); font-size: 30px; line-height: 1; color: var(--ink); }
.file.hot { box-shadow: inset 0 0 0 1px var(--ember-line); background: var(--ember-soft); }
.file.hot i { color: var(--ember); }

.private { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-top: 64px; border-radius: 20px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.private .art { display: grid; place-items: center; min-height: 380px; background: radial-gradient(circle at 50% 62%, rgba(255, 106, 26, .22), transparent 62%), var(--bg-raise); }
.private .art img { width: 46%; max-width: 230px; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .45)); }
.private .list { padding: 48px; display: grid; gap: 26px; align-content: center; }
.private h3 { font: 600 17px/1.3 var(--sans); }
.private p { margin-top: 6px; font-size: 15px; }

.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 56px; border-radius: 18px; overflow: hidden; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.cap { padding: 28px 26px 30px; background: var(--bg); }
.cap svg { width: 22px; height: 22px; color: var(--ember); }
.cap h3 { margin-top: 18px; font: 600 16px/1.3 var(--sans); }
.cap p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; }

.phone-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; align-items: center; padding-top: 140px; }
.handset { justify-self: center; width: min(320px, 78%); border-radius: 46px; padding: 10px; background: #121314; box-shadow: 0 40px 110px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12); }
.handset img { border-radius: 37px; aspect-ratio: 1170 / 2300; object-fit: cover; object-position: top; }
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); font-size: 14px; font-weight: 600; }
.steps strong { display: block; color: var(--ink); font-weight: 600; }
.steps span { font-size: 15px; }

/* ---- pricing ---- */
.switch { display: inline-flex; margin-top: 32px; padding: 4px; border-radius: 12px; background: var(--bg-raise); box-shadow: inset 0 0 0 1px var(--line); }
.switch button { height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font: 500 14.5px/1 var(--sans); cursor: pointer; }
.switch button[aria-checked="true"] { background: var(--card-2); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.switch em { font-style: normal; color: var(--ember); font-size: 12.5px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; text-align: left; }
.plan { display: flex; flex-direction: column; padding: 32px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.plan.main { box-shadow: 0 0 0 1px var(--ember-line), 0 30px 80px rgba(255, 106, 26, .08); }
.plan-top { display: flex; align-items: center; gap: 10px; }
.plan h3 { font-family: var(--display); font-weight: 500; font-size: 32px; line-height: 1; }
.tag { font-size: 12px; font-weight: 600; color: var(--ember); padding: 3px 9px; border-radius: 999px; background: var(--ember-soft); }
.plan > p { margin-top: 12px; font-size: 15px; min-height: 48px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 24px; }
.price b { font-family: var(--display); font-weight: 500; font-size: 54px; line-height: 1; color: var(--ink); }
.price span { font-size: 14px; color: var(--ink-3); }
.price-note { margin-top: 6px; min-height: 22px; font-size: 13.5px; color: var(--ink-3); }
.plan .btn { margin-top: 24px; }
.plan .trial { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--ember); }
.plan ul { list-style: none; padding: 24px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.plan li svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--ember); }
.plan li.all { color: var(--ink-3); }
.founder { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 16px; padding: 28px 32px; border-radius: 18px; text-align: left; background: linear-gradient(110deg, var(--ember-soft), transparent 60%), var(--card); box-shadow: 0 0 0 1px var(--ember-line); }
.founder h3 { font-family: var(--display); font-weight: 500; font-size: 28px; }
.founder p { margin-top: 6px; font-size: 15px; max-width: 58ch; }
.founder-buy { display: flex; gap: 22px; align-items: baseline; }
.founder-buy div { text-align: right; }
.founder-buy b { display: block; font-family: var(--display); font-weight: 500; font-size: 40px; line-height: 1; color: var(--ink); }
.founder-buy span { font-size: 13px; color: var(--ink-3); }
.plans-note { margin-top: 22px; text-align: center; }

/* ---- faq ---- */
.faq { max-width: 820px; margin: 56px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; color: var(--ink); font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; color: var(--ink-3); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 26px 0; font-size: 16px; }

/* ---- closing band and footer ---- */
.closing { margin-top: 150px; padding: 100px 0; text-align: center; border-top: 1px solid var(--line); background: radial-gradient(ellipse 40% 70% at 50% 100%, rgba(255, 106, 26, .14), transparent 70%); }
.closing img { width: 64px; margin: 0 auto 28px; }
.closing .cta { margin-top: 32px; }
footer { border-top: 1px solid var(--line); padding: 56px 0 48px; }
.foot { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot img { height: 34px; width: auto; }
.foot p { margin-top: 14px; font-size: 14px; color: var(--ink-3); max-width: 30ch; }
.foot h4 { margin: 0 0 14px; font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.foot ul a:hover { color: var(--ink); }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }

/* ---- download page ---- */
.dl-hero { padding: 96px 0 72px; text-align: center; border-bottom: 1px solid var(--line); }
.dl-hero .lede { margin: 20px auto 0; max-width: 560px; }
.dl-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; padding: 88px 0 0; }
.dl-grid + .dl-grid { padding-top: 72px; }
.dl-side h2 { font-size: clamp(30px, 3vw, 40px); }
.dl-side p { margin-top: 12px; font-size: 15.5px; max-width: 34ch; }
.dl-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.card { padding: 28px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.card.wide { grid-column: 1 / -1; }
.card h3 { font: 600 18px/1.3 var(--sans); }
.card > p { margin-top: 8px; font-size: 14.5px; }
.rows { margin-top: 18px; border-top: 1px solid var(--line); }
.rows > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.rows > div span { color: var(--ink-3); font-size: 13.5px; }
.rows small { display: block; color: var(--ink-3); font-size: 13px; }
.mini-phone { display: flex; gap: 20px; align-items: center; margin-top: 18px; }
.mini-phone img { width: 92px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line-2); }
.away-note { margin-top: 16px; }
.mini-phone ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 12px 28px; margin-top: 18px; font-size: 15px; }
.spec dt { color: var(--ink-3); }
.spec dd { margin: 0; color: var(--ink); }
.notes { margin: 16px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: 15px; }

/* ---- doc pages ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 88px var(--g) 40px; }
.doc h1 { font-family: var(--display); font-weight: 500; font-size: clamp(44px, 6vw, 64px); line-height: 1.05; }
.doc .lede { margin-top: 18px; }
.doc h2 { margin-top: 44px; font: 600 20px/1.3 var(--sans); }
.doc p, .doc li { font-size: 16px; }
.doc ul { padding-left: 20px; display: grid; gap: 10px; margin: 14px 0 0; }
.doc .updated { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.doc .cta { margin-top: 32px; justify-content: flex-start; }

/* ---- reveal on scroll (only when the reader allows motion) ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .row, .row.flip, .phone-row, .dl-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .row.flip .row-text { order: 0; }
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .private { grid-template-columns: minmax(0, 1fr); }
  .private .art { min-height: 260px; }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --g: 18px; }
  html { scroll-padding-top: 124px; }
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 10px; row-gap: 8px; }
  .top nav { order: 3; width: 100%; gap: 22px; }
  .top nav a { padding: 4px 0; }
  .hero { padding-top: 56px; }
  .band { padding-top: 96px; }
  .row, .phone-row { padding-top: 88px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div, .facts div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .caps { grid-template-columns: minmax(0, 1fr); }
  .files { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 18px; }
  .private .list { padding: 30px 24px; }
  .founder { grid-template-columns: minmax(0, 1fr); }
  .founder-buy div { text-align: left; }
  .dl-cards { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .stage { margin-top: 48px; }
  .closing { margin-top: 100px; padding: 72px 0; }
  .faq details p { padding-right: 0; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.more-head { margin-top: 140px; }
@media (max-width: 720px) { .more-head { margin-top: 96px; } }

/* polish: lining numbers in the display face; prices in the sans, tight and steady */
.display, .facts strong, .plan h3, .founder h3 { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.price b, .founder-buy b { font-family: var(--sans); font-weight: 600; letter-spacing: -.03em; }
.price b { font-size: 46px; }
.founder-buy b { font-size: 34px; }
.file { aspect-ratio: 5 / 4; }

/* the download page FAQ ends the page: room before the footer */
main > .wrap > .band:last-child { padding-bottom: 120px; }
