/* mutaafaziz.com/hearth: night in the living room (a sticky aurora sky behind
   the hero and the setup story), then the putty and charcoal of the app. */
:root {
  --night: #0c0a09;
  --night-2: #15110e;
  --night-ink: #f4ede2;
  --night-soft: #b9ad9c;
  --putty: #ebe5d9;
  --body: #f7f3ec;
  --edge: #d9d1c2;
  --ink: #1b1916;
  --soft: #665f54;
  --faint: #8f8677;
  --key: #262320;
  --signal: #f2541b;
  --signal-hi: #ff8a55;
  --display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', monospace;
  --gutter: clamp(16px, 5vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root { --putty: #12100e; --body: #1b1916; --edge: #2c2824; --ink: #efe8dd; --soft: #a69d8f; --faint: #7a7266; --key: #2a2622; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--putty); color: var(--ink); font-family: var(--display);
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--signal); color: #fff; }
.skip:focus { left: 8px; }

.kicker {
  margin: 0 0 14px; font-family: var(--mono); font-stretch: 87.5%; font-size: 11px;
  text-transform: uppercase; letter-spacing: .16em; color: var(--signal);
}
.ember {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 35%, #ffb27d, var(--signal) 55%, #a8300a);
  box-shadow: 0 0 0 4px #f2541b22, 0 0 18px var(--signal);
}

/* ── Nav: transparent over the sky, a frosted pill once you scroll ── */
.nav {
  position: fixed; z-index: 40; top: max(10px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 20px), 1080px); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 999px; color: var(--night-ink);
  border: 1px solid transparent; transition: background .35s, border-color .35s, box-shadow .35s, padding .35s;
}
.nav.scrolled {
  background: #14110ecc; border-color: #ffffff14;
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 30px -12px #000a;
}
.wordmark { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 800; letter-spacing: -.045em; text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-stretch: 87.5%; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.nav nav a { padding: 9px 11px; border-radius: 999px; text-decoration: none; color: var(--night-soft); transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--night-ink); background: #ffffff10; }
.nav nav .nav-cta { color: #fff; background: var(--signal); padding: 9px 15px; }
.nav nav .nav-cta:hover { background: var(--signal-hi); color: #fff; }
@media (max-width: 560px) {
  .nav nav a:not(.nav-cta) { display: none; }
}

/* ── Night zone + sticky aurora sky ── */
.night {
  /* clip, not hidden: keeps the sticky sky (negative margin) inside the night
     zone without turning .night into a scroll container. */
  position: relative; overflow: clip; color: var(--night-ink);
  background:
    radial-gradient(60% 40% at 70% 22%, #3d170833, transparent 70%),
    radial-gradient(90% 50% at 50% 100%, #2a10066b, transparent 70%),
    var(--night);
}
.sky { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; overflow: hidden; pointer-events: none; }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-fade { position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(transparent, var(--night)); }
/* Where the shape sits: right of the copy on wide screens, top half on phones. */
.stage { position: absolute; top: 9%; right: 1%; width: 54%; height: 80%; }
@media (max-width: 860px) {
  /* The hero copy needs ~600px at the bottom; the shape gets what's left. */
  .stage { top: 64px; left: 0; right: 0; width: 100%; height: var(--stage-h); }
}

.hero {
  position: relative; z-index: 2; min-height: 100svh; display: grid; align-items: end;
  padding: 120px var(--gutter) clamp(56px, 11vh, 120px);
}
.hero-copy { max-width: 620px; }
.hero h1 {
  margin: 0; font-size: clamp(46px, 7.6vw, 108px); line-height: .9; letter-spacing: -.055em; font-weight: 760;
  text-wrap: balance; text-shadow: 0 2px 40px var(--night);
}
.lede {
  margin: 22px 0 0; max-width: 44ch; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--night-soft);
  text-shadow: 0 1px 20px var(--night);
}
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.cta, .cta-ghost {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 650; font-size: 16px; letter-spacing: -.01em; text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s;
}
.cta { background: var(--signal); color: #fff; box-shadow: 0 3px 0 #a8300a, 0 16px 40px -14px var(--signal); }
.cta:hover { background: #ff6229; }
.cta:active { transform: translateY(3px); box-shadow: 0 0 0 #a8300a; }
.cta-ghost { color: var(--night-ink); border: 1px solid #ffffff26; background: #ffffff08; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cta-ghost:hover { border-color: #ffffff55; }
.cta-ghost-dark { color: var(--ink); border-color: var(--edge); background: transparent; }
.proof { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 28px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-stretch: 87.5%; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--night-soft); }
.proof li::before { content: '● '; color: var(--signal); }

.shape-label {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(56px, 11vh, 120px); margin: 0;
  font-family: var(--mono); font-stretch: 87.5%; font-size: 10px; text-transform: uppercase; letter-spacing: .22em; color: var(--signal-hi);
}
.shape-label::before { content: '● '; color: var(--signal); }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 22px; height: 34px; margin-left: -11px; border: 1.5px solid #ffffff3a; border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--signal); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

@media (max-width: 860px) {
  :root { --stage-h: clamp(170px, calc(100svh - 600px), 380px); }
  /* Reserve the shape's space so short phones scroll instead of overlapping. */
  .hero { padding-top: calc(64px + var(--stage-h) + 12px); padding-bottom: max(44px, env(safe-area-inset-bottom)); }
  .shape-label { top: 84px; bottom: auto; right: var(--gutter); }
  .scroll-cue { display: none; }
  .ctas .cta, .ctas .cta-ghost { flex: 1 1 200px; }
}

/* ── Setup story: steps scroll past the pinned shape ── */
.story { position: relative; z-index: 2; padding: 10vh var(--gutter) 14vh; }
.story-head { max-width: 560px; }
.story-head h2, .sec-head h2, .try h2, .install h2, .closer h2 {
  margin: 0; font-size: clamp(36px, 5.4vw, 68px); line-height: .95; letter-spacing: -.05em; font-weight: 750; text-wrap: balance;
}
.story-head p:last-child { margin: 16px 0 0; color: var(--night-soft); font-size: 17px; line-height: 1.5; }
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; max-width: 480px;
  min-height: 72svh; align-content: center; opacity: .32; transition: opacity .5s var(--ease), transform .5s var(--ease);
  transform: translateY(14px);
}
.step.active { opacity: 1; transform: none; }
.step-n {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  font-family: var(--mono); font-size: 18px; font-weight: 600; color: #fff; background: var(--signal);
  box-shadow: 0 0 0 6px #f2541b22, 0 10px 30px -8px var(--signal);
}
.step-done .step-n { background: #2fbf63; box-shadow: 0 0 0 6px #2fbf6322, 0 10px 30px -8px #2fbf63; }
.step h3 { margin: 4px 0 8px; font-size: clamp(30px, 4vw, 46px); line-height: 1; letter-spacing: -.045em; font-weight: 740; }
.step h3 em { font-style: normal; color: var(--signal-hi); }
.step p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--night-soft); }
@media (max-width: 860px) {
  /* Shape owns the top half of the screen; steps read in the bottom half. */
  .step {
    min-height: 88svh; align-content: end; padding-bottom: 8svh; max-width: none;
  }
  .step > div, .step-n { position: relative; }
  .step > div {
    padding: 18px 18px 20px; border-radius: 22px; background: #0c0a09b8; border: 1px solid #ffffff12;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .step { grid-template-columns: 1fr; gap: 12px; }
}

/* ── Light sections ── */
main { position: relative; z-index: 3; }
.try, .features, .install, .faq, .closer { max-width: 1160px; margin: 0 auto; padding: clamp(72px, 12vh, 130px) var(--gutter) 0; }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.hint { font-size: 13px; color: var(--faint); line-height: 1.5; margin: 14px 0 0; }

/* Demo in a phone */
.try { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 90px); align-items: center; }
.try-copy > p:not(.kicker):not(.hint) { margin: 18px 0 0; max-width: 42ch; font-size: 18px; line-height: 1.55; color: var(--soft); }
.skins { display: inline-flex; gap: 4px; margin-top: 26px; padding: 4px; border-radius: 999px; background: var(--body); border: 1px solid var(--edge); }
.skin {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--soft); font: 600 14px var(--display); cursor: pointer; transition: background .2s, color .2s;
}
.skin.on { background: var(--key); color: #f4ede2; }
.sw { width: 16px; height: 16px; border-radius: 5px; }
.sw-aurora { background: radial-gradient(circle at 50% 50%, #ff8a4c 0 18%, #ff6a2b66 30%, transparent 60%), radial-gradient(circle at 75% 25%, #5ee7ff55, transparent 50%), #07080c; box-shadow: inset 0 0 0 1px #ffffff26; }
.sw-classic { background: linear-gradient(135deg, #f5f1e9 50%, #f2541b 50%); box-shadow: inset 0 0 0 1px #0002; }
.sw-8bit { background: #8bac0f; box-shadow: inset 0 0 0 3px #306230, inset 0 0 0 5px #9bbc0f; image-rendering: pixelated; border-radius: 2px; }

.phone {
  position: relative; width: 340px; height: 700px; padding: 12px; border-radius: 54px;
  background: linear-gradient(145deg, #3a3631, #121110); box-shadow: 0 0 0 1px #000, inset 0 0 0 2px #5a544c, 0 50px 90px -40px #2b1a0dcc, 0 20px 40px -20px #0008;
}
.phone-screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: #e9e3d7; }
.phone iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .5s; }
.phone iframe.ready { opacity: 1; }
.phone-loading { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .4s; }
.phone-loading .ember { animation: pulse 1.4s ease-in-out infinite; }
.phone.loaded .phone-loading { opacity: 0; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .6; } }
.phone-notch { position: absolute; z-index: 2; top: 22px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #000; pointer-events: none; }
.demo-card { display: none; }

@media (max-width: 860px) {
  .try { grid-template-columns: 1fr; }
  .phone { display: none; }
  .demo-card {
    display: grid; gap: 10px; padding: 22px; border-radius: 28px; background: var(--key); color: #f4ede2;
    box-shadow: 0 30px 60px -30px #0009;
  }
  .demo-card .cta-ghost { color: #f4ede2; }
  .demo-card .hint { text-align: center; margin: 4px 0 0; color: #a69d8f; }
  .cta-wide { width: 100%; }
  .demo-card-art { display: grid; place-items: center; padding: 18px 0 22px; }
}
.mini-pad { position: relative; width: 150px; height: 150px; border-radius: 50%; background: #1a1714; box-shadow: inset 0 2px 0 #ffffff14, 0 4px 0 #000; }
.mini-pad i { position: absolute; width: 0; height: 0; border: 8px solid transparent; }
.mini-pad i:nth-child(1) { top: 16px; left: 67px; border-bottom-color: #f4ede2aa; }
.mini-pad i:nth-child(2) { bottom: 16px; left: 67px; border-top-color: #f4ede2aa; }
.mini-pad i:nth-child(3) { left: 16px; top: 67px; border-right-color: #f4ede2aa; }
.mini-pad i:nth-child(4) { right: 16px; top: 67px; border-left-color: #f4ede2aa; }
.mini-pad b { position: absolute; inset: 46px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #4a443d, #2a2622 70%); box-shadow: 0 0 0 5px #0006, 0 0 24px #f2541b55; animation: tap 2.4s var(--ease) infinite; }
@keyframes tap { 0%, 70%, 100% { transform: scale(1); } 76% { transform: scale(.9); box-shadow: 0 0 0 5px #0006, 0 0 40px #f2541bcc; } }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat {
  position: relative; padding: 26px 24px 26px; border-radius: 26px; background: var(--body); border: 1px solid var(--edge);
  transition: transform .3s var(--ease), border-color .3s;
}
.feat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--signal) 50%, var(--edge)); }
.feat svg { width: 40px; height: 40px; margin-bottom: 18px; fill: none; stroke: var(--signal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.035em; font-weight: 720; }
.feat p { margin: 0; color: var(--soft); line-height: 1.55; }
.feat-big { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; background: var(--key); color: #f4ede2; border-color: var(--key); min-height: 300px; }
.feat-big p { color: #b9ad9c; }
.feat-big svg { width: 96px; height: 96px; margin-bottom: auto; stroke-width: 1.6; }
.feat-accent { background: var(--signal); border-color: var(--signal); color: #fff; }
.feat-accent svg { stroke: #fff; }
.feat-accent p { color: #fff; opacity: .9; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } .feat-big { grid-column: span 2; grid-row: auto; min-height: 240px; } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } .feat-big { grid-column: auto; } }

.compat { margin-top: 14px; padding: 28px clamp(20px, 3vw, 34px); border-radius: 26px; border: 1px solid var(--edge); }
.compat-title { margin: 0 0 18px; font-family: var(--mono); font-stretch: 87.5%; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--soft); }
.compat-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 32px; }
@media (max-width: 1100px) { .compat-cols { grid-template-columns: 1fr 1fr; gap: 26px 40px; } }
.compat-col h4 { margin: 0 0 10px; font-size: 26px; letter-spacing: -.04em; }
.compat-col h4 span { font-family: var(--mono); font-stretch: 87.5%; font-size: 11px; font-weight: 400; letter-spacing: .04em; color: var(--faint); margin-left: 6px; }
.compat ul { list-style: none; margin: 0; padding: 0; }
.compat li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--edge); font-size: 15px; line-height: 1.35; }
.compat li::before { flex: none; width: 18px; font-family: var(--mono); font-weight: 600; text-align: center; }
.compat li.y::before { content: '✓'; color: var(--signal); }
.compat li.p::before { content: '◐'; color: var(--faint); }
.compat li.n { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1px; }
.compat li.n::before { content: '–'; }
@media (max-width: 640px) { .compat-cols { grid-template-columns: 1fr; gap: 26px; } }

/* Install */
.install { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.install-copy p:not(.kicker) { margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: var(--soft); }
.term { border-radius: 22px; overflow: hidden; background: #12100e; color: #efe8dd; box-shadow: 0 40px 80px -40px #1a0e06cc, 0 0 0 1px #ffffff12 inset; }
.term-bar { display: flex; gap: 7px; align-items: center; padding: 12px 12px 12px 16px; background: #1c1916; font-family: var(--mono); font-size: 11px; color: #7a7266; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3530; }
.term-bar i:first-child { background: var(--signal); }
.term-bar span { margin-left: 8px; }
.copy {
  margin-left: auto; min-height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: #2c2824; color: #efe8dd;
  font: 600 12px var(--display); cursor: pointer; transition: background .2s;
}
.copy:hover { background: #3a3530; }
.copy.done { background: #2fbf63; color: #08200f; }
.term pre { margin: 0; padding: 22px 22px 8px; font-family: var(--mono); font-size: clamp(12.5px, 1.5vw, 15px); line-height: 2; white-space: pre-wrap; word-break: break-word; }
.term .p { color: var(--signal); user-select: none; }
.term-out { display: grid; gap: 4px; padding: 8px 22px 22px; font-family: var(--mono); font-size: 12px; color: #8f8677; }
.term-out .hot { color: #ffb27d; }
.install-copy .aside { font-size: 14.5px; }
.install-copy .aside a { color: inherit; }
.get-steps { list-style: none; margin: 0; padding: 26px 22px 10px; display: grid; gap: 16px; }
.get-steps li { display: flex; gap: 14px; align-items: center; font-size: clamp(15px, 1.7vw, 18px); line-height: 1.35; opacity: 0; transform: translateY(8px); animation: get-in .5s cubic-bezier(.2,.8,.2,1) forwards; }
.get-steps li:nth-child(2) { animation-delay: .12s; }
.get-steps li:nth-child(3) { animation-delay: .24s; }
.get-steps b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; background: #2a2420; color: #ffb27d; box-shadow: 0 0 0 1px #ffb27d33 inset; }
.get-steps strong { color: #ffb27d; font-weight: 600; }
.get-foot { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; padding: 14px 22px 24px; font-family: var(--mono); font-size: 12px; color: #8f8677; }
.get-foot .hot { color: #ffb27d; }
.store-badge { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px 8px 11px; border-radius: 11px; background: #000; color: #fff; box-shadow: 0 0 0 1px #ffffff2e inset; font-family: var(--sans, system-ui); font-size: 17px; font-weight: 600; line-height: 1.05; }
.store-badge svg { width: 22px; height: 22px; }
.store-badge small { display: block; font-size: 10px; font-weight: 400; opacity: .8; }
@keyframes get-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .get-steps li { animation: none; opacity: 1; transform: none; } }
@media (max-width: 860px) { .install { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq details { border-radius: 20px; background: var(--body); border: 1px solid var(--edge); transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--signal) 45%, var(--edge)); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 22px;
  font-size: 18px; font-weight: 650; letter-spacing: -.02em; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--signal); border-bottom: 2px solid var(--signal);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { margin: 0; padding: 0 22px 22px; color: var(--soft); line-height: 1.65; font-size: 16px; }

/* Closer */
.closer { text-align: center; padding-bottom: clamp(72px, 12vh, 130px); }
.closer h2 { max-width: 14ch; margin: 0 auto; }
.closer .ctas { justify-content: center; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; max-width: 1160px; margin: 0 auto;
  padding: 26px var(--gutter) max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--edge);
  font-family: var(--mono); font-stretch: 87.5%; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--signal); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .step { opacity: 1; transform: none; }
}
