/* takeflare.com, one stylesheet for every page. Design rules live outside the site folder (marketing-brand/website-status.md). */
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #FFFFFF; --band: #F6F7F9; --surface: #FFFFFF; --ink: #12151B; --muted: #5F6672; --line: #E3E6EB;
  --flare: #C45CF2; --flare-text: #8E36C9; --flare-soft: #F6EDFD; --on-flare: #0E1116; --glow: #D9A6FF;
  --night: #0E1116;
  --radius: 10px;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* Stage = hero, service strip, ending, footer. Light by day */
  --stage: #F6F7F9; --stage-ink: #12151B; --stage-text: #4A515C; --stage-soft: #5F6672; --stage-line: rgba(18,21,27,.08);
  --stage-fade: 246,247,249; --stage-label: var(--flare-text); --em-from: var(--flare-text);
  --ghost-bg: #FFFFFF; --ghost-ink: #12151B; --ghost-line: #D5D9E0;
  --hero-img: url("/img/hero-map-light.jpg"); --signal-img: url("/img/signal-light.jpg");
}
/* Dark by night: the page script sets data-theme from the visitor's clock (21:00 to 07:00 dark).
   Without the script the device setting decides. */
:root[data-theme="dark"] { --bg: #0E1116; --band: #12161D; --surface: #161A21; --ink: #ECEFF4; --muted: #9AA3B2; --line: #262C36;
  --flare-text: #D9A6FF; --flare-soft: #24173A; color-scheme: dark;
  --stage: #0E1116; --stage-ink: #FFFFFF; --stage-text: #B4BCC8; --stage-soft: #9AA3B2; --stage-line: rgba(255,255,255,.07);
  --stage-fade: 14,17,22; --stage-label: var(--glow); --em-from: var(--glow);
  --ghost-bg: rgba(255,255,255,.04); --ghost-ink: #FFFFFF; --ghost-line: rgba(255,255,255,.22);
  --hero-img: url("/img/hero-map.jpg"); --signal-img: url("/img/signal.jpg"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { --bg: #0E1116; --band: #12161D; --surface: #161A21; --ink: #ECEFF4; --muted: #9AA3B2; --line: #262C36;
    --flare-text: #D9A6FF; --flare-soft: #24173A; color-scheme: dark;
    --stage: #0E1116; --stage-ink: #FFFFFF; --stage-text: #B4BCC8; --stage-soft: #9AA3B2; --stage-line: rgba(255,255,255,.07);
    --stage-fade: 14,17,22; --stage-label: var(--glow); --em-from: var(--glow);
    --ghost-bg: rgba(255,255,255,.04); --ghost-ink: #FFFFFF; --ghost-line: rgba(255,255,255,.22);
    --hero-img: url("/img/hero-map.jpg"); --signal-img: url("/img/signal.jpg"); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--flare-text); text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; margin: 0; }
p { margin: 0 0 12px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: var(--radius); z-index: 10; }
:focus-visible { outline: 2px solid var(--flare); outline-offset: 3px; }

::selection { background: var(--flare); color: #0E1116; }

/* Wordmark: always lowercase, a + k in violet, the flare symbol in front */
.wm { font-weight: 600; letter-spacing: -0.035em; color: var(--ink); text-decoration: none; line-height: 1; display: inline-flex; align-items: center; }
.wm::before { content: ""; width: .95em; height: .95em; margin-right: .28em; background: url("/mark.svg") center / contain no-repeat; flex: none; }
.wm b { font-weight: inherit; color: var(--flare); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav .wm { font-size: 24px; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0 0 0 auto; padding: 0; font-size: 14px; }
.nav ul a { color: var(--muted); text-decoration: none; }
.nav ul a:hover { color: var(--ink); }
.lang { font: 500 12px/1 var(--mono); color: var(--muted); display: flex; gap: 4px; }
.lang a { color: var(--muted); text-decoration: none; padding: 6px 4px; }
.lang a[aria-current] { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--sans); text-decoration: none; padding: 14px 20px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn-main { background: var(--flare); color: var(--on-flare); }
.btn-main:hover { background: #CF7AF5; transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.nav .btn { padding: 10px 14px; font-size: 14px; }
.arrow { font-family: var(--mono); }

/* Sections */
section { padding: 112px 0; }
.band { background: var(--band); }
.label { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--flare-text); margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--flare); }
h2 { font-size: 32px; line-height: 1.15; max-width: 22ch; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.head { margin-bottom: 48px; }
.head .lead { margin-top: 16px; }

/* Hero: the city-map flare (Higgsfield) sits on the right; light by day, dark by night */
.hero { padding: 112px 0 120px; position: relative; overflow: hidden; background: var(--stage) var(--hero-img) 85% center / cover no-repeat; color: var(--stage-ink); }
.hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 85% center; opacity: 0; transition: opacity .8s ease; }
.hero-vid.on { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(var(--stage-fade),.96) 0%, rgba(var(--stage-fade),.82) 38%, rgba(var(--stage-fade),0) 72%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; }
.hero .wrap > div { max-width: 620px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; color: var(--stage-ink); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--em-from), var(--flare)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .label { color: var(--stage-label); }
.hero .lead { margin: 24px 0 32px; color: var(--stage-text); }
.hero .btn-ghost { background: var(--ghost-bg); color: var(--ghost-ink); border-color: var(--ghost-line); }
.hero .btn-ghost:hover { border-color: var(--stage-soft); }
.hero .facts { color: var(--stage-soft); }
.hero .btn-main { box-shadow: 0 0 32px -6px rgba(196,92,242,.7); }
.how-head { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 56px; align-items: end; }
.how-head h2 { max-width: 16ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ctas .or { font-size: 14px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 40px 0 0; padding: 0; list-style: none; font: 400 13px/1.4 var(--mono); color: var(--muted); }
.facts li::before { content: "/ "; color: var(--flare); }

/* Service strip under the hero */
.ticker { background: var(--stage); border-top: 1px solid var(--stage-line); border-bottom: 1px solid var(--stage-line); overflow: hidden; padding: 18px 0; }
.ticker .track { display: flex; width: max-content; animation: tick 48s linear infinite; }
.ticker span { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--stage-text); white-space: nowrap; display: inline-flex; align-items: center; }
.ticker span::after { content: ""; width: 14px; height: 14px; margin: 0 28px; background: url("/mark.svg") center / contain no-repeat; }
@keyframes tick { to { transform: translateX(-50%); } }

/* "One among many" picture in the problem section */
.one { margin: 32px 0 0; max-width: 420px; }
.one img { border-radius: var(--radius); width: 100%; height: auto; box-shadow: 0 24px 48px -24px rgba(110,40,170,.45); }
.one figcaption { font: 400 13px/1.5 var(--mono); color: var(--muted); margin-top: 12px; }

/* Launch board (example plan in How it works) */
.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 2px rgba(18,21,27,.04), 0 24px 48px -24px rgba(18,21,27,.18); }
.board-top { display: flex; justify-content: space-between; align-items: center; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.board-top .tag { color: var(--flare-text); background: var(--flare-soft); padding: 4px 8px; border-radius: 6px; letter-spacing: .04em; }
.rows { list-style: none; margin: 0; padding: 8px 0 0; }
.rows li { display: grid; grid-template-columns: 48px 1fr; gap: 4px 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows .wk { font: 500 12px/1.5 var(--mono); color: var(--muted); grid-row: span 2; padding-top: 2px; }
.rows .what { font-size: 15px; font-weight: 500; }
.bar { height: 6px; border-radius: 3px; background: var(--band); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ink); border-radius: 3px; transform-origin: left; }
.js .reveal.in .bar i { animation: fill .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d) + .3s); }
.rows li:last-child .bar i { background: var(--flare); }
.board-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.board-foot strong { color: var(--ink); font-weight: 600; }
.spark { width: 10px; height: 10px; border-radius: 50%; background: var(--flare); box-shadow: 0 0 0 0 rgba(196,92,242,.5); animation: spark 2.4s ease-out 1.4s infinite; display: inline-block; margin-right: 8px; vertical-align: middle; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes spark { 0% { box-shadow: 0 0 0 0 rgba(196,92,242,.55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(196,92,242,0); } }

/* Problem list */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.gaps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.gaps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.gaps .n { font: 500 13px/1.6 var(--mono); color: var(--flare-text); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.steps .n { font: 500 13px/1 var(--mono); color: var(--flare-text); display: block; margin-bottom: 32px; }
.steps h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.02em; }
.steps p { font-size: 15px; color: var(--muted); margin: 0; }
/* The flare line: runs across the four steps and lands on step 04 */
@media (min-width: 901px) {
  .steps { position: relative; padding-top: 36px; }
  .steps::before { content: ""; position: absolute; top: 11px; left: 28px; right: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(196,92,242,.08), var(--flare)); }
  .steps li::before { content: ""; position: absolute; top: -30px; left: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); border: 2px solid rgba(196,92,242,.45); }
  .steps li:last-child::before { left: auto; right: 0; top: -33px; width: 14px; height: 14px; border: 0; background: var(--flare); animation: spark 2.4s ease-out 1.4s infinite; }
}

/* Prices */
.prices { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: stretch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.card.main { border-color: var(--flare); position: relative; box-shadow: 0 0 0 4px var(--flare-soft), 0 30px 60px -30px rgba(196,92,242,.45); }
.card.main .tag { position: absolute; top: -11px; left: 24px; background: var(--flare); color: var(--on-flare); font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; }
.card h3 { font-size: 22px; }
.price { font: 600 44px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.035em; margin: 16px 0 4px; }
.price small { font-size: 15px; color: var(--muted); letter-spacing: 0; }
.card .note { font-size: 14px; color: var(--muted); }
.ticks { list-style: none; margin: 24px 0; padding: 0; }
.ticks li { padding: 8px 0 8px 28px; position: relative; border-top: 1px solid var(--line); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 6px; border-left: 2px solid var(--flare); border-bottom: 2px solid var(--flare); transform: rotate(-45deg); }
.menu { list-style: none; margin: 0; padding: 0; }
.menu li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.menu li:first-child { padding-top: 0; }
.menu li > span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu .sub { display: block; font-size: 13px; color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); margin-top: 24px; max-width: 70ch; }

/* Work */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.work .card { display: flex; flex-direction: column; }
.work .cover { display: block; width: calc(100% + 64px); max-width: none; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: -32px -32px 24px; border-radius: var(--radius) var(--radius) 0 0; }
.work .meta { font: 500 12px/1.4 var(--mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.work h3 { font-size: 20px; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 8px 0 24px; padding: 0; }
.chips li { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.status { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.status b { color: var(--ink); font-weight: 600; }

/* About */
.about { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.about img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; height: auto; }
.about .body p { font-size: 17px; max-width: 60ch; }
.route { font: 400 13px/1.8 var(--mono); color: var(--muted); margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.route b { color: var(--flare-text); font-weight: 500; }

/* FAQ */
.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 500; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 20px/1 var(--mono); color: var(--flare-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 32px 20px 0; margin: 0; max-width: 64ch; }

/* Final CTA */
.final { background: var(--stage) var(--signal-img) center / min(1100px, 160%) no-repeat; color: var(--stage-ink); text-align: center; position: relative; padding: 144px 0; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(var(--stage-fade),.35), rgba(var(--stage-fade),.85) 70%, var(--stage)); pointer-events: none; }
.final .wrap { position: relative; }
.final-mark { width: 56px; height: 56px; margin: 0 auto 24px; filter: drop-shadow(0 0 18px rgba(196,92,242,.6)); }
.final h2 { margin: 0 auto; max-width: 20ch; font-size: clamp(32px, 4.5vw, 48px); color: var(--stage-ink); }
.final .lead { color: var(--stage-text); margin: 16px auto 32px; }
.final .ctas { justify-content: center; }
.final .or, .final .or a { color: var(--stage-soft); }
.final .btn-main:focus-visible { outline-color: var(--stage-ink); }

/* Footer */
footer { padding: 32px 0 48px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer .wm { font-size: 18px; }
footer a { color: inherit; }
footer nav { display: flex; gap: 16px; }
/* Big footer on the home pages: the wordmark as a sign-off */
footer.big { background: var(--stage); color: var(--stage-soft); border-top: 1px solid var(--stage-line); padding: 64px 0 40px; overflow: hidden; }
footer.big .wrap { display: block; }
.giant { font-weight: 600; letter-spacing: -0.055em; line-height: .8; font-size: clamp(72px, 19vw, 232px); color: var(--stage-ink); margin: 0 0 40px -0.04em; -webkit-mask-image: linear-gradient(180deg, #000 35%, rgba(0,0,0,.18)); mask-image: linear-gradient(180deg, #000 35%, rgba(0,0,0,.18)); white-space: nowrap; }
.giant b { font-weight: inherit; color: var(--flare); }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--stage-line); }
footer.big a { color: var(--stage-text); }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 48px 24px 72px; }
.legal h1 { font-size: 32px; line-height: 1.15; margin-bottom: 8px; }
.legal h2 { font-size: 18px; margin: 32px 0 6px; letter-spacing: -0.01em; max-width: none; }
.legal .en { background: var(--band); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: 14px; color: var(--muted); margin: 16px 0 8px; }

/* Reveal on scroll (only when JS runs and motion is fine) */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-vid { display: none; }
}

.hero .wrap > *, .split > *, .prices > *, .work > *, .steps > *, .about > * { min-width: 0; }
.menu li > span:first-child { flex: 1; min-width: 0; }
.menu li > span:first-child, .ticks li, .chips li { overflow-wrap: break-word; hyphens: auto; }

@media (max-width: 900px) {
  .nav ul { display: none; }
  .nav .lang { margin-left: auto; }
  section { padding: 72px 0; }
  .hero { padding: 260px 0 72px; background-size: auto 520px; background-position: 72% top; }
  .hero-vid { height: 520px; object-position: 72% center; }
  .hero::before { background: linear-gradient(180deg, rgba(var(--stage-fade),0) 0%, rgba(var(--stage-fade),.15) 28%, rgba(var(--stage-fade),.92) 52%, var(--stage) 70%); }
  .split, .prices, .about, .how-head { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about img { max-width: 280px; }
  .final { padding: 96px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav .wrap { gap: 12px; }
  .nav .btn { display: none; }
  .steps, .work { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .work .cover { width: calc(100% + 48px); margin: -24px -24px 20px; }
  .ctas .btn { width: 100%; justify-content: center; }
  .ctas .or { width: 100%; text-align: center; }
}
