/* Fyxie AI · Ember Heritage · 100K funnel */
@font-face { font-family: 'Archivo'; src: url('/assets/fonts/Archivo-Variable.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo Black'; src: url('/assets/fonts/ArchivoBlack-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #0D0D0D;
  --ink-2: #1B1B1B;
  --ember: #C9420C;
  --ember-hi: #E0561F;
  --cream: #F5F1E8;
  --stone: #7A7468;
  --line: #E3DDD1;
  --white: #FFFFFF;
  --r-lg: 24px;
  --r-md: 16px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --shadow-lg: 0 40px 90px -40px rgba(13, 13, 13, .45), 0 2px 0 rgba(13, 13, 13, .03);
  --shadow-md: 0 18px 40px -22px rgba(13, 13, 13, .35);
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display {
  font-family: 'Archivo Black', 'Archivo', sans-serif; font-weight: 400;
  text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.03; margin: 0;
}
.h1 { font-size: clamp(2.15rem, 5.4vw, 4.35rem); }
.h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -0.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ember);
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; color: #2a2825; max-width: 34em; }
.muted { color: var(--stone); }
.em { color: var(--ember); }

/* ---------- Top bar ---------- */
.notice {
  background: var(--ink); color: var(--cream); text-align: center;
  padding: 11px var(--gutter); font-size: .8rem; font-weight: 600; letter-spacing: .06em;
}
.notice b { color: #fff; font-weight: 800; letter-spacing: .08em; }
.notice span { color: #d9d2c4; font-weight: 500; letter-spacing: .02em; }
.head { padding-block: 22px; }
.head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { height: 38px; width: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(13, 13, 13, .06); font-size: .82rem; font-weight: 600; letter-spacing: .01em;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(201, 66, 12, .5); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(201, 66, 12, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 66, 12, 0); } }

/* ---------- Reveal animation ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }
.load .rv { animation: rise 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); opacity: 1; transform: none; transition: none; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  border: 0; border-radius: 14px; padding: 17px 28px; font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  background: var(--ember); color: #fff; text-decoration: none;
  box-shadow: 0 14px 30px -14px rgba(201, 66, 12, .8);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); background: var(--ember-hi); box-shadow: 0 20px 36px -14px rgba(201, 66, 12, .85); }
.btn:active { transform: translateY(0); }
.btn[disabled] { background: #c9c2b4; box-shadow: none; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Hero (booking) ---------- */
.hero { padding-block: clamp(18px, 3vw, 40px) clamp(24px, 3.5vw, 52px); }
.hero-grid { display: grid; gap: clamp(26px, 4vw, 52px); grid-template-columns: 1fr; align-items: start; grid-template-areas: 'copy' 'cal' 'proof'; }
.hero-grid .copy { grid-area: copy; } .hero-grid .cal-card { grid-area: cal; } .hero-grid .proofblock { grid-area: proof; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); grid-template-rows: auto 1fr; row-gap: 0; grid-template-areas: 'copy cal' 'proof cal'; } .cal-card { position: sticky; top: 24px; } .proofblock { padding-top: 6px; } }
.hero h1 { font-size: clamp(2rem, 3.9vw, 3.45rem); }
.hero h1 .em { display: block; }
.hero .lead { margin: 22px 0 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0 0; }
.stat { background: var(--white); border-radius: var(--r-md); padding: 18px 16px; box-shadow: var(--shadow-md); }
.stat b { display: block; font-family: 'Archivo Black', sans-serif; font-size: clamp(1.35rem, 2.6vw, 2rem); letter-spacing: -0.02em; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: .8rem; line-height: 1.35; color: var(--stone); font-weight: 600; }
@media (max-width: 520px) { .stats { gap: 8px; } .stat { padding: 14px 10px; } .stat span { font-size: .72rem; } }

.proof { margin: 20px 0 0; background: var(--white); border-radius: var(--r-md); padding: 10px; box-shadow: var(--shadow-md); }
.proof img { border-radius: 10px; width: 100%; height: auto; }
.proof figcaption { padding: 12px 8px 4px; font-size: .82rem; color: var(--stone); font-weight: 600; }

.cal-card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.cal-top { padding: 22px 26px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.cal-top .step { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-family: 'Archivo Black'; display: grid; place-items: center; font-size: .95rem; }
.cal-top h2 { margin: 0; font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.cal-top p { margin: 2px 0 0; font-size: .85rem; color: var(--stone); }
.cal-body { min-height: 620px; position: relative; background: var(--white); }
.cal-body iframe { width: 100%; min-height: 700px; border: 0; display: block; }
.cal-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 40px; color: var(--stone); }
.cal-empty b { display: block; color: var(--ink); font-family: 'Archivo Black'; text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 6px; }
.cal-foot { padding: 16px 26px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--stone); display: flex; gap: 10px; align-items: center; }
.cal-foot svg { flex: none; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(44px, 7vw, 92px); }
.sec.dark { background: var(--ink); color: var(--cream); }
.sec-head { max-width: 760px; margin-bottom: clamp(26px, 4vw, 44px); }
.sec-head p { margin: 14px 0 0; color: var(--stone); font-size: 1.08rem; }
.dark .sec-head p { color: #b9b2a3; }

.two { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .two { grid-template-columns: 1fr 1fr; } }
.card { background: var(--white); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-md); }
.card h3 { margin: 0 0 16px; }
.card.no { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; line-height: 1.45; }
.list svg { margin-top: 2px; }
.yes svg { color: var(--ember); } .no svg { color: var(--stone); }

.steps { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-card { background: var(--ink-2); border-radius: var(--r-lg); padding: 28px; position: relative; overflow: hidden; }
.step-card .n { font-family: 'Archivo Black'; font-size: 3.4rem; line-height: 1; color: var(--ember); letter-spacing: -.04em; }
.step-card h3 { margin: 14px 0 8px; font-family: 'Archivo Black'; text-transform: uppercase; letter-spacing: -.01em; font-weight: 400; font-size: 1.15rem; color: #fff; }
.step-card p { margin: 0; color: #b9b2a3; font-size: .98rem; }

.foot { padding-block: 34px 44px; color: var(--stone); font-size: .85rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.foot img { height: 30px; width: auto; opacity: .9; }

/* ---------- Watch page ---------- */
.booked { text-align: center; padding-block: clamp(18px, 3vw, 36px) clamp(18px, 2vw, 26px); }
.check { width: 64px; height: 64px; margin: 0 auto 18px; }
.check circle { fill: var(--ember); transform-origin: center; animation: pop .7s var(--ease) both; }
.check path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .45s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.booked h1 { margin: 0 auto; font-size: clamp(1.9rem, 4.3vw, 3.5rem); }
.booked .lead { margin: 16px auto 0; text-align: center; }
.callbox {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; align-items: center;
  margin: 24px auto 0; padding: 14px 22px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow-md);
}
.callbox .when { font-weight: 700; }
.cd { display: flex; gap: 8px; }
.cd div { min-width: 54px; text-align: center; background: var(--ink); color: #fff; border-radius: 10px; padding: 6px 8px 5px; }
.cd b { display: block; font-family: 'Archivo Black'; font-size: 1.25rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd i { display: block; font-style: normal; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #b9b2a3; }
[hidden] { display: none !important; }

/* ---------- Player ---------- */
.stage { padding-bottom: clamp(26px, 4vw, 52px); }
.vsl {
  position: relative; width: min(1040px, 100%); margin-inline: auto; aspect-ratio: 16 / 9; background: #000;
  border-radius: clamp(14px, 2.2vw, 26px); overflow: hidden; isolation: isolate;
  box-shadow: 0 50px 100px -40px rgba(13, 13, 13, .6), 0 0 0 1px rgba(13, 13, 13, .08);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.vsl video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.vsl:fullscreen { border-radius: 0; width: 100%; aspect-ratio: auto; }
.vsl:fullscreen video { object-fit: contain; }

.gate {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; text-align: center; cursor: pointer; border: 0;
  background: radial-gradient(120% 90% at 50% 40%, rgba(13, 13, 13, .55), rgba(13, 13, 13, .86)); color: #fff; padding: 20px;
  transition: opacity .5s var(--ease), visibility .5s; backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
}
.gate.off { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-in { display: grid; gap: 16px; justify-items: center; }
.gate-btn { position: relative; width: clamp(72px, 11vw, 104px); aspect-ratio: 1; border-radius: 50%; background: var(--ember); display: grid; place-items: center; box-shadow: 0 20px 50px -10px rgba(201, 66, 12, .9); transition: transform .4s var(--ease); }
.gate:hover .gate-btn { transform: scale(1.06); }
.gate-btn::before, .gate-btn::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ember); animation: ring 2.6s var(--ease) infinite; }
.gate-btn::after { animation-delay: 1.3s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.75); opacity: 0; } }
.gate-btn svg { width: 38%; height: 38%; margin-left: 6%; fill: #fff; }
.gate h2 { margin: 0; font-family: 'Archivo Black'; font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(1.1rem, 2.6vw, 1.7rem); line-height: 1.1; }
.gate p { margin: 0; font-size: clamp(.82rem, 1.6vw, 1rem); color: #e2dccf; max-width: 28em; }
.gate .alt { margin-top: 4px; background: none; border: 0; color: #fff; text-decoration: underline; text-underline-offset: 4px; font-weight: 600; font-size: .9rem; cursor: pointer; opacity: .85; }

.spin { position: absolute; z-index: 3; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .8s linear infinite; opacity: 0; pointer-events: none; transition: opacity .25s; }
.vsl.buffering .spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.ui { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 38px clamp(12px, 2vw, 22px) clamp(10px, 1.6vw, 16px); background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0)); color: #fff; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.vsl.idle.playing .ui { opacity: 0; transform: translateY(8px); pointer-events: none; }
.bar { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; pointer-events: none; margin-bottom: 12px; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ember), #ff7a3d); border-radius: 4px; box-shadow: 0 0 14px rgba(255, 122, 61, .65); }
.row { display: flex; align-items: center; gap: clamp(6px, 1.4vw, 14px); }
.row .grow { flex: 1; }
.ib { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .0); color: #fff; cursor: pointer; transition: background .2s; }
.ib:hover { background: rgba(255, 255, 255, .16); }
.ib svg { width: 22px; height: 22px; fill: currentColor; }
.time { font-variant-numeric: tabular-nums; font-size: .85rem; font-weight: 600; letter-spacing: .01em; opacity: .95; }
.rate { width: auto; padding: 0 12px; font-weight: 800; font-size: .85rem; letter-spacing: .02em; }
.menu { position: absolute; right: 0; bottom: 48px; background: rgba(20, 20, 20, .96); border-radius: 14px; padding: 6px; min-width: 190px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); backdrop-filter: blur(10px); }
.menu button { display: flex; width: 100%; justify-content: space-between; gap: 18px; padding: 10px 12px; border: 0; background: none; color: #fff; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.menu button:hover { background: rgba(255, 255, 255, .1); }
.menu button.on { color: #ff9a68; }
.menu small { font-weight: 500; opacity: .6; }
.endcard { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; text-align: center; background: rgba(13, 13, 13, .82); color: #fff; padding: 24px; backdrop-filter: blur(6px); animation: fade .6s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.endcard h3 { margin: 0 0 8px; font-family: 'Archivo Black'; font-weight: 400; text-transform: uppercase; font-size: clamp(1.1rem, 3vw, 1.8rem); letter-spacing: -.01em; }
.endcard p { margin: 0 0 18px; color: #dcd5c6; }

.meta { width: min(1040px, 100%); margin: 16px auto 0; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center; font-size: .86rem; color: var(--stone); font-weight: 600; }
.meta .lock { display: inline-flex; align-items: center; gap: 8px; }
.meta .lock svg { color: var(--ember); }

/* ---------- Gated step ---------- */
.gate-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-lg); }
.gate-card .inner { padding: clamp(24px, 4vw, 44px); transition: filter .8s var(--ease), opacity .8s var(--ease); }
.gate-card.locked .inner { filter: blur(9px); opacity: .55; pointer-events: none; user-select: none; }
.lockbar {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; padding: 20px;
  background: linear-gradient(to bottom, rgba(245, 241, 232, .25), rgba(245, 241, 232, .7)); transition: opacity .6s var(--ease), visibility .6s;
}
.gate-card:not(.locked) .lockbar { opacity: 0; visibility: hidden; pointer-events: none; }
.lockbox { display: grid; gap: 8px; justify-items: center; background: var(--ink); color: #fff; padding: 22px 28px; border-radius: 20px; box-shadow: var(--shadow-lg); max-width: 380px; }
.lockbox svg { width: 26px; height: 26px; color: var(--ember); }
.lockbox b { font-family: 'Archivo Black'; font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; font-size: 1.05rem; }
.lockbox span { color: #cfc8ba; font-size: .9rem; }
.lockbox .clock { font-family: 'Archivo Black'; font-size: 2.1rem; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }

.todo { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.todo li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 16px; background: var(--cream); }
.todo .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: 'Archivo Black'; font-size: .9rem; }
.todo b { display: block; font-weight: 800; }
.todo span { color: #4a463f; font-size: .96rem; }
.confirm { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.confirm .ok { display: none; align-items: center; gap: 10px; font-weight: 700; color: #1f6b3a; }
.confirm.done .ok { display: inline-flex; } .confirm.done .btn { display: none; }

/* ---------- Results wall ---------- */
.wall { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .wall { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.quote { background: var(--ink-2); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); color: #fff; }
.quote p { margin: 0; font-size: clamp(1.05rem, 1.7vw, 1.28rem); line-height: 1.5; }
.quote cite { display: block; margin-top: 16px; font-style: normal; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ember-hi); }
.quote + .quote { margin-top: 14px; }

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