/* The Future & The Future Mono — Klim Type Foundry.
   NOTE: web license from Klim required before this ships publicly. */
@font-face { font-family: "The Future Mono"; src: url("fonts/TheFutureMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "The Future Mono"; src: url("fonts/TheFutureMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "The Future Mono"; src: url("fonts/TheFutureMono-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "The Future Mono"; src: url("fonts/TheFutureMono-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "The Future"; src: url("fonts/TheFuture-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "The Future"; src: url("fonts/TheFuture-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "The Future"; src: url("fonts/TheFuture-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* blinkdiff marketing site. Same instrument-panel register as the Hellbox
   dashboard: dark chassis, bone ink, one orange, mono type, hairline frames. */

:root {
  --paper: #131312; --paper2: #1a1a19;
  --ink: #ece9e2; --ink2: #b8b4ab; --ink3: #7c7a74;
  --rule: #2a2a28; --frame: rgba(236, 233, 226, 0.22);
  --accent: #ec5405; --ok: #7bb26a;
  --mono: "The Future Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.6 var(--mono); }
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--frame); }
a:hover { color: var(--accent); border-color: var(--accent); }
code { font: inherit; color: var(--ink); background: var(--paper2); padding: 1px 5px; border: 1px solid var(--rule); }
h1, h2, h3 { font-weight: 500; letter-spacing: -.01em; margin: 0 0 14px; }
h1 { font-family: "The Future", var(--mono); font-weight: 900; font-size: clamp(40px, 7vw, 84px); line-height: 1.02; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 2px var(--ink); }
@media (max-width: 860px) {
  h1 { -webkit-text-stroke-width: 1.5px; letter-spacing: 0; }
}
@media (max-width: 520px) {
  h1 { -webkit-text-stroke-width: 1.25px; letter-spacing: .01em; }
}
h2 { font-size: 22px; text-transform: uppercase; letter-spacing: .08em; }
h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); }
p { margin: 0 0 12px; color: var(--ink2); }
.muted { color: var(--ink3); }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--ink3); }
.lede { font-size: 15px; max-width: 700px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--frame); }
.top-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 14px 20px; }
.brand { display: flex; align-items: center; color: var(--ink); }
.brand .wordmark { display: block; }
.brand { letter-spacing: .16em; font-weight: 600; border: 0; }
.brand .tbd { color: var(--accent); margin-left: 4px; }
.top nav { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.top nav a { border: 0; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--ink3); }
.top nav a:hover { color: var(--ink); }
.top nav a.btn, .top nav a.btn:hover { color: #131312; }

/* buttons */
.btn { display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid var(--accent); background: var(--accent); color: #131312; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; }
.btn.ghost { font-weight: 500; }
.btn:hover { background: #ff6a1e; border-color: #ff6a1e; color: #131312; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--frame); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn.small { padding: 6px 10px; }
.cta { display: flex; gap: 10px; margin: 22px 0 34px; flex-wrap: wrap; }

/* layout */
main { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hero { padding: 72px 0 56px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; }
.hero-head { grid-column: 1 / -1; }
.hero-head h1 { max-width: 20ch; margin-bottom: 0; }
.tap-period { display: inline-block; width: .44em; height: .44em; margin-left: .06em; vertical-align: -0.10em; }
@media (prefers-reduced-motion: no-preference) {
  .tap-period .tp-pulse { transform-box: fill-box; transform-origin: center; animation: hiwPulse 1.8s ease-out infinite; }
}
.hero .cta { margin-bottom: 0; }
.hero-fig { margin: 0; }
.hero-fig svg { display: block; width: 100%; height: auto; }
.block { padding: 56px 0; border-top: 1px solid var(--frame); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.split.rev > :first-child { order: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--frame); }
.grid3 > div { background: var(--paper); padding: 24px 20px; }
.grid3 .spot { display: block; width: 56px; height: 56px; color: var(--ink); margin-bottom: 14px; }

/* code / terminal */
.term, .code { margin: 0; padding: 16px 18px; background: var(--paper2); border: 1px solid var(--frame); overflow-x: auto; font-size: 12.5px; line-height: 1.6; color: var(--ink); }
.term .c { color: var(--ink3); } .term .d { color: var(--ink3); } .term .x { color: var(--accent); }
.code .k { color: var(--ink); } .code .cm { color: var(--ink3); }
.code { color: var(--ink2); }

/* how-it-works: tab strip, accent progress bar, copy, figure; sticky while the track scrolls */
.hiw-track { height: 420vh; }
.hiw-sticky { position: sticky; top: 72px; }
.hiw { border: 1px solid var(--frame); display: flex; flex-direction: column; height: calc(100vh - 100px); max-height: 900px; }
.hiw-tabs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.hiw-tabs li { padding: 16px 18px 14px; cursor: pointer; border-right: 1px solid var(--frame); color: var(--ink3); transition: color .2s, background .2s; }
.hiw-tabs li:last-child { border-right: 0; }
.hiw-tabs li span { display: block; color: var(--accent); font-size: 12px; letter-spacing: .14em; margin-bottom: 8px; }
.hiw-tabs li h3 { margin: 0; font-size: 13px; color: inherit; }
.hiw-tabs li.is-active { color: var(--ink); background: var(--paper2); }
.hiw-tabs li:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent); }
.hiw-progress { height: 2px; background: var(--rule); border-top: 1px solid var(--frame); }
.hiw-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .08s linear; }
.hiw-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 18px 22px 16px; }
.hiw-copy { min-height: 66px; margin-bottom: 10px; }
.hiw-text { display: none; max-width: 760px; font-size: 13px; margin: 0; }
.hiw-text.is-active { display: block; }
.hiw-figure { margin: 0; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.hiw-panel { display: none; height: 100%; width: 100%; }
.hiw-panel.is-active { display: flex; align-items: center; justify-content: center; }
.hiw-panel svg { display: block; height: 100%; width: auto; max-width: 100%; }

/* hero build: once on load, flow order */
@media (prefers-reduced-motion: no-preference) {
  .hero-fig [data-h] { opacity: 0; animation: heroIn .45s ease both; }
  .hero-fig [data-h="1"] { animation-delay: .1s; }
  .hero-fig [data-h="2"] { animation-delay: .4s; }
  .hero-fig [data-h="3"] { animation-delay: .55s; }
  .hero-fig [data-h="4"] { animation-delay: .85s; }
  .hero-fig [data-h="5"] { animation-delay: 1.0s; }
  .hero-fig [data-h="6"] { transform-box: fill-box; transform-origin: center; animation-name: heroPop; animation-delay: 1.35s; animation-duration: .4s; }
  .hero-fig [data-h="7"] { transform-box: fill-box; transform-origin: center; animation-name: heroPop; animation-delay: 1.55s; animation-duration: .4s; }
}
@keyframes heroIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroPop { from { opacity: 0; scale: .55; } to { opacity: 1; scale: 1; } }

/* standalone figures in split sections */
.fig-card { margin: 0; display: flex; align-items: center; justify-content: center; }
.fig-card svg { display: block; width: 100%; height: auto; max-width: 560px; }

/* PR comment mock */
.card { border: 1px solid var(--frame); background: var(--paper2); }
.mock-head { padding: 8px 14px; border-bottom: 1px solid var(--frame); color: var(--ink3); font-size: 12px; }
.mock-head b { color: var(--ink); }
.mock-body { padding: 14px; font-size: 12.5px; }
.mock-body table { border-collapse: collapse; width: 100%; margin: 8px 0 12px; }
.mock-body th, .mock-body td { text-align: left; padding: 4px 8px 4px 0; border-bottom: 1px solid var(--rule); font-weight: normal; }
.mock-body th { color: var(--ink3); text-transform: uppercase; font-size: 10px; letter-spacing: .1em; }
.mock-body .n { text-align: right; }
.mock-body .hot { color: var(--accent); }
.mock-body .reply { border-top: 1px solid var(--frame); padding-top: 10px; margin-top: 12px; }
.mock-body .reply span { color: var(--ink3); margin-right: 8px; }

/* pricing */
.pricing .lede { margin-bottom: 26px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--frame); margin-bottom: 18px; }
.plan { background: var(--paper); padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.plan .price { font-size: 40px; font-weight: 700; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px var(--ink); margin: 6px 0 2px; transition: color .25s, -webkit-text-stroke-color .25s; }
.plan:hover .price { color: var(--ink); -webkit-text-stroke-color: var(--paper); }
.plan.featured .price { color: var(--ink); -webkit-text-stroke-color: var(--paper); }
.plan.featured:hover .price { color: var(--accent); }
.plan .price span { font-size: 14px; -webkit-text-stroke: 0; color: var(--ink3); margin-left: 4px; }
.plan p.alt { color: var(--ink3); font-size: 12px; margin-top: -4px; flex: 0 0 auto; min-height: 2.6em; }
.plan p { font-size: 13px; }
.plan .feat, .legal .feat { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.plan .feat li, .legal .feat li { padding-left: 16px; position: relative; }
.plan .feat li::before, .legal .feat li::before { content: ""; position: absolute; left: 0; top: .52em; width: 6px; height: 6px; background: var(--accent); }
.plan .tag { position: absolute; top: 12px; right: 12px; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.plan.featured { box-shadow: inset 0 0 0 1px var(--accent); }
.plan .btn { align-self: flex-start; margin-top: auto; }

/* faq */
.faq dl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; margin: 0; }
.faq dt { color: var(--ink); margin-bottom: 6px; }
.faq dd { margin: 0; color: var(--ink2); font-size: 13px; }

footer { max-width: var(--max); margin: 40px auto 0; padding: 20px; border-top: 1px solid var(--frame); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--ink2); flex-wrap: wrap; }

@media (max-width: 860px) {
  .split, .faq dl { grid-template-columns: 1fr; }
  .hiw-track { height: auto; }
  .hiw-sticky { position: static; }
  .hiw { height: auto; max-height: none; }
  .hiw-tabs { grid-template-columns: 1fr; }
  .hiw-tabs li { border-right: 0; border-bottom: 1px solid var(--frame); }
  .hiw-panel svg { width: 100%; height: auto; }
  .grid3 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .top nav { gap: 12px; }
  .hero { padding-top: 48px; grid-template-columns: 1fr; gap: 32px; }
  .hero-fig { max-width: 480px; }
}
@media (max-width: 520px) {
  .plans { grid-template-columns: 1fr; }
  .top nav a:not(.btn) { display: none; }
}

/* how-it-works figure animations. Each panel's sequence restarts when it becomes
   active (display none -> block restarts CSS animations). Delays per element via --d. */
@media (prefers-reduced-motion: no-preference) {
  .hiw-panel.is-active [data-a="fade"] { opacity: 0; animation: hiwFade .5s ease var(--d, 0s) both; }
  .hiw-panel.is-active [data-a="pop"] { opacity: 0; transform-box: fill-box; transform-origin: center; animation: hiwPop .5s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) both; }
  .hiw-panel.is-active [data-a="draw"] { stroke-dasharray: 1400 1400; stroke-dashoffset: 1400; animation: hiwDraw .9s ease-out var(--d, 0s) forwards; }
  .hiw-panel.is-active path[data-a="march"], .hiw-panel.is-active circle[data-a="march"] { opacity: 0; animation: hiwFade .4s ease var(--d, 0s) both, hiwMarch 1.4s linear var(--d, 0s) infinite; }
  .hiw-panel.is-active g[data-a="march"] { opacity: 0; animation: hiwFade .4s ease var(--d, 0s) both; }
  .hiw-panel.is-active g[data-a="march"] path { animation: hiwMarch 1.4s linear var(--d, 0s) infinite; }
  .hiw-panel.is-active [data-a="pulse"] { opacity: 0; transform-box: fill-box; transform-origin: center; animation: hiwPulse 1.8s ease-out var(--d, 0s) infinite; }
}
@keyframes hiwFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hiwPop { from { opacity: 0; scale: .55; } to { opacity: 1; scale: 1; } }
@keyframes hiwDraw { to { stroke-dashoffset: 0; } }
@keyframes hiwMarch { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -24; } }
@media (prefers-reduced-motion: no-preference) {
  /* every dashed connector in the static figures marches like the How-it-works ones */
  .hero-fig .dash, .fig-card .dash { animation: hiwMarch 1.4s linear infinite; }
}
@keyframes hiwPulse { 0% { opacity: .9; scale: .7; } 100% { opacity: 0; scale: 2.2; } }

/* hero dashes: fade in on schedule AND keep marching (must follow the march rule) */
@media (prefers-reduced-motion: no-preference) {
  .hero-fig [data-h="2"], .hero-fig [data-h="4"] { animation: heroIn .45s ease both, hiwMarch 1.4s linear infinite; }
  .hero-fig [data-h="2"] { animation-delay: .4s, 0s; }
  .hero-fig [data-h="4"] { animation-delay: .85s, 0s; }
}

/* legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 20px 20px; }
.legal h2 { margin-bottom: 6px; }
.legal h3 { margin: 28px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.legal p { font-size: 14px; margin: 0 0 10px; }
.legal .muted { color: var(--ink3); font-size: 12px; }
.legal ul.feat { margin: 6px 0 10px; }
