/* ARC paper: off-white sheets, ink type, orange light, Apple-like glass. Calm motion, phone first. */
:root {
  --paper: #F4F3F0;
  --card: #FEFCF9;
  --ink: #141417;
  --ink-2: #3b3a40;
  --muted: #68666C;
  --line: rgba(20, 20, 23, .10);
  --line-2: rgba(20, 20, 23, .18);
  --lamp: #E8862A;
  --lamp-2: #F6B04A;
  --lamp-ink: #B85F12;
  --night: #141417;
  --night-2: #1F2024;
  --on-night: #ECEAE5;
  --on-night-muted: #9D9AA2;
  /* Tajawal: a genuine Arabic typeface, light and smooth, used for both headings and text. */
  --display: "Tajawal", system-ui, sans-serif;
  --text: "Tajawal", system-ui, sans-serif;
  --wide: "Michroma", "Tajawal", sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --gutter: clamp(16px, 5vw, 64px);
  --measure: 34rem;
  --r: 18px;
  --glass: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(254, 252, 249, .66));
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(20, 20, 23, .07), 0 18px 40px -26px rgba(20, 20, 23, .35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 18px; line-height: 1.8; font-weight: 400;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(60% 40% at 100% 0%, rgba(246, 176, 74, .16), transparent 70%),
    radial-gradient(70% 50% at 0% 100%, rgba(232, 134, 42, .08), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  background-attachment: fixed;
}
body.agent-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
/* Softer headings: one weight lighter than before, and a little more air between lines. */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.4; margin: 0 0 .5em; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.32; }
h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
h3 { font-size: 1.22rem; font-weight: 500; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lamp-2); color: var(--ink); }

#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.no-webgl #field { display: none; }

/* Buttons: big, round, easy to hit with a thumb */
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .85em 1.6em; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1.2;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-lamp { background: linear-gradient(180deg, var(--lamp-2), var(--lamp)); color: var(--ink); box-shadow: 0 10px 28px -10px rgba(232, 134, 42, .75); }
.btn-lamp:hover { box-shadow: 0 14px 36px -10px rgba(232, 134, 42, .9); }
.btn-quiet { background: rgba(255, 255, 255, .7); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-quiet:hover { background: #fff; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 28px -12px rgba(232, 134, 42, .7), inset 0 -2px 0 rgba(232, 134, 42, .6); }
.btn-sm { min-height: 42px; padding: .6em 1.15em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 1.15rem; color: var(--ink); }
.icon-btn[aria-pressed="true"] { background: rgba(232, 134, 42, .18); }

/* Top bar: light glass */
.bar {
  position: fixed; top: 0; inset-inline: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  transition: background-color .4s, box-shadow .4s;
}
.bar.solid { background: rgba(244, 243, 240, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; }
.brand img { height: 26px; width: auto; filter: drop-shadow(0 0 10px rgba(232, 134, 42, .3)); }
.brand span { padding-inline-start: 12px; border-inline-start: 1px solid var(--line-2); }

main { position: relative; z-index: 1; }
section { padding: clamp(72px, 12vh, 128px) var(--gutter); max-width: 1180px; margin: 0 auto; }
.section-lead { color: var(--ink-2); max-width: var(--measure); }
.wide { font-family: var(--wide); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; direction: ltr; unicode-bidi: isolate; color: var(--muted); }

/* Glass card, reused everywhere */
.glass, .powers li, .income-rows div, .who div, .module, .faq-item, .human, .flow-map, .plan, .pay-card, .made-list li {
  background: var(--glass); box-shadow: var(--glass-shadow); border-radius: var(--r);
}

/* Hero */
.hero { min-height: 100svh; display: flex; align-items: center; position: relative; padding-top: 100px; }
.hero-copy { max-width: 36rem; position: relative; }
.proverb { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 500; color: var(--lamp-ink); font-size: 1rem; margin-bottom: 1.1rem; }
.proverb::before { content: ""; width: 26px; height: 1.5px; background: var(--lamp); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: var(--measure); }
.offer-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4em 1em; margin: 1.5rem 0 1.3rem; }
.offer-line .now { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6vw, 2.7rem); line-height: 1; }
.offer-line .was { color: var(--muted); }
.offer-line s { text-decoration-color: var(--lamp); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.countdown-inline { margin-top: 1.3rem; color: var(--muted); font-size: .95rem; }
.countdown-inline b { color: var(--lamp-ink); font-weight: 600; }
.scroll-cue { position: absolute; bottom: 26px; inset-inline-start: 50%; width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--lamp); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Trial lecture: the vertical video sits in a phone-shaped glass frame */
.trial-video { margin-top: 1.6rem; border-radius: 26px; overflow: hidden; background: #000; width: min(380px, 100%); aspect-ratio: 9 / 16;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .8), 0 0 0 9px var(--line), 0 30px 70px -30px rgba(20, 20, 23, .55), 0 0 70px -20px rgba(232, 134, 42, .45); }
.trial-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.trial-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.8rem; }

/* Story */
.story { padding-top: 0; padding-bottom: 0; }
.chapter { min-height: 90svh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; }
.chapter .step { font-family: var(--display); font-size: 1rem; color: var(--lamp-ink); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); box-shadow: var(--glass-shadow); }
.step-row { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.step-row .ic { width: 28px; height: 28px; }
.chapter p { color: var(--ink-2); font-size: 1.08rem; }

.compare { position: relative; margin-top: 1rem; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 380px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .85), 0 0 0 7px var(--line), 0 30px 60px -30px rgba(20, 20, 23, .5); user-select: none; }
.compare img { width: 100%; height: 100%; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.compare-before img { position: absolute; inset: 0; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; pointer-events: none; }
.compare-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .3), inset 0 0 0 2px var(--lamp); }
.compare-label { position: absolute; top: 12px; padding: .2em .8em; border-radius: 999px; font-size: .8rem; background: rgba(20, 20, 23, .7); color: #fff; backdrop-filter: blur(6px); pointer-events: none; }
.compare-label.before { right: 12px; }
.compare-label.after { left: 12px; background: linear-gradient(90deg, var(--lamp), var(--lamp-2)); color: var(--ink); }

/* Icons: line icons inside dark ARC tiles */
.ic { width: 22px; height: 22px; flex: none; color: var(--lamp); vertical-align: -5px; }

/* What Claude can do */
.claude-head { max-width: 40rem; }
.powers { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: 12px; }
.powers li { padding: 1.3rem 1.3rem 1.4rem; display: grid; gap: .3rem; align-content: start; }
.powers .ic { width: 44px; height: 44px; padding: 11px; margin-bottom: .5rem; border-radius: 14px; background: linear-gradient(160deg, #26262c, #111114); color: var(--lamp-2); box-shadow: 0 0 0 1px rgba(246, 176, 74, .3); }
.powers b { font-family: var(--display); font-weight: 600; font-size: 1.06rem; }
.powers span { color: var(--muted); font-size: .95rem; line-height: 1.75; }
.powers li:nth-last-child(-n+2) { background: linear-gradient(160deg, rgba(255, 249, 238, .96), rgba(253, 236, 210, .72)); box-shadow: 0 0 0 1px rgba(232, 134, 42, .3), 0 18px 40px -26px rgba(232, 134, 42, .5); }

/* Tool map */
.flow-map { margin-top: 2rem; padding: clamp(12px, 3vw, 28px); }
.flow-map svg { width: 100%; height: auto; display: block; font-family: var(--text); }
.flow-lines path { stroke: rgba(20, 20, 23, .25); stroke-dasharray: 6 8; animation: dash 2.4s linear infinite; }
.flow-lines .flow-out { stroke: var(--lamp); }
@keyframes dash { to { stroke-dashoffset: -28; } }
.flow-node rect, .flow-node circle { fill: #fff; stroke: rgba(20, 20, 23, .14); }
.flow-node.core circle { fill: var(--ink); stroke: var(--lamp); stroke-width: 2; }
.flow-node.you rect { fill: rgba(246, 176, 74, .18); stroke: rgba(232, 134, 42, .5); }
.flow-node text, .flow-result text { fill: var(--ink); text-anchor: middle; font-size: 17px; font-weight: 600; }
.flow-node.core text { fill: #fff; }
.flow-node.core text:first-of-type { font-family: var(--display); font-size: 24px; }
.flow-node text.sub { fill: var(--muted); font-size: 12.5px; font-weight: 400; }
.flow-node.core text.sub { fill: var(--on-night-muted); }
.flow-result rect { fill: url(#lamp); }
.flow-result text { fill: var(--ink); font-size: 15px; }
.flow-ic { color: var(--lamp); transform-box: fill-box; transform-origin: center; }
.flow-ic.spin { animation: spin 20s linear infinite; }
.flow-ic.turn { animation: spin 30s linear infinite reverse; }
.flow-ic.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes pulse { 50% { scale: 1 .6; } }
.flow-note { margin-top: 1rem; color: var(--ink-2); display: flex; gap: .6rem; align-items: center; }

/* Curriculum */
.part { margin-top: 2.4rem; }
.part-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; }
.part-head .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: linear-gradient(160deg, #26262c, #111114); color: var(--lamp-2); }
.part-head h3 { margin: 0; font-size: 1.22rem; }
.part-head small { display: block; color: var(--muted); font-family: var(--text); font-weight: 400; font-size: .88rem; }
.modules { margin-top: 1.6rem; }
.module { margin-bottom: 10px; overflow: hidden; }
.module-head { width: 100%; display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: center; gap: .8rem; padding: 1rem 1.1rem; text-align: start; background: none; border: 0; cursor: pointer; min-height: 60px; }
.module-head .n { font-family: var(--wide); color: var(--muted); font-size: .8rem; }
.module-head .t { font-family: var(--display); font-weight: 600; font-size: clamp(1.02rem, 2.4vw, 1.3rem); }
.module-head .m { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.module-head .mic { width: 20px; height: 20px; margin-inline-end: .55rem; vertical-align: -3px; color: var(--muted); transition: color .3s; }
.module.is-open .n, .module.is-open .mic { color: var(--lamp-ink); }
.module.is-open { box-shadow: 0 0 0 1px rgba(232, 134, 42, .4), 0 18px 40px -26px rgba(232, 134, 42, .45); }
.module-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.module.is-open .module-body { grid-template-rows: 1fr; }
.module-body > div { overflow: hidden; }
.module-body ol { list-style: none; margin: 0; padding: 0 1.1rem 1rem; border-top: 1px solid var(--line); }
.module-body li { display: flex; gap: 1rem; padding: .55rem 0; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.module-body li:last-child { border-bottom: 0; }
.module-body li em { font-style: normal; color: var(--muted); min-width: 2rem; font-variant-numeric: tabular-nums; }
.module-body li small { margin-inline-start: auto; color: var(--muted); white-space: nowrap; }

/* Made by AI */
.made { min-height: 90svh; display: flex; flex-direction: column; justify-content: center; }
.made h2, .made-lead { max-width: 30rem; }
.made-lead { color: var(--ink-2); }
.made-list { list-style: none; margin: 1rem 0 2rem; padding: 0; max-width: 36rem; display: grid; gap: 10px; }
.made-list li { display: grid; grid-template-columns: 22px 8.5rem 1fr; gap: 1rem; padding: 1rem 1.1rem; align-items: start; }
.made-list .ic { margin-top: .35rem; }
.made-list b { font-family: var(--display); font-weight: 600; color: var(--lamp-ink); }
.made-list span { color: var(--ink-2); }
.human { max-width: 36rem; padding: 1.4rem 1.6rem; background: linear-gradient(160deg, #24242a, #121215); color: var(--on-night); }
.human h3 { color: var(--lamp-2); }
.human p { margin: 0; color: var(--on-night-muted); }

/* Audience */
.who { display: grid; gap: 10px; margin: 2rem 0 0; }
.who div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 1.1rem 1.2rem; }
.who dt { font-family: var(--display); font-weight: 600; display: flex; gap: .6rem; align-items: center; }
.who dd { margin: 0; color: var(--ink-2); }
.offer-list { list-style: none; padding: 0 !important; }
.offer-list li { display: flex; gap: .7rem; align-items: center; }
.offer-list .ic { color: var(--lamp-2); }

/* Income */
.income-rows { display: grid; gap: 12px; margin-top: 2rem; }
.income-rows div { padding: 1.3rem 1.5rem; display: grid; gap: .2rem; }
.income-rows span { color: var(--muted); font-size: .9rem; }
.income-rows b { font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 3.2vw, 1.9rem); }
.income-rows div:last-child { background: linear-gradient(160deg, #24242a, #121215); color: var(--on-night); }
.income-rows div:last-child b { color: var(--lamp-2); }
.income-rows div:last-child span, .income-rows div:last-child small { color: var(--on-night-muted); }
.income-rows small { color: var(--ink-2); }

/* Offer: the one dark ARC panel on the page */
.offer { display: grid; gap: 2rem; align-items: center; background: linear-gradient(160deg, #1d1d22, #111114); color: var(--on-night); border-radius: 30px; margin: 0 var(--gutter); padding: clamp(26px, 5vw, 60px); max-width: 1080px; position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(246, 176, 74, .25), 0 40px 80px -40px rgba(232, 134, 42, .6); }
.offer::before { content: ""; position: absolute; width: 420px; height: 420px; inset-block-start: -220px; inset-inline-end: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 134, 42, .35), transparent 70%); pointer-events: none; }
.offer > * { position: relative; }
.offer h2 { color: #fff; }
.offer ul { margin: 0 0 1rem; }
.offer li { margin-bottom: .4rem; }
.offer .refund { color: var(--on-night-muted); font-size: .95rem; margin: 0; }
.offer-box { display: grid; gap: .5rem; justify-items: start; padding: 1.6rem; border-radius: 22px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.offer-box .was { color: var(--on-night-muted); }
.offer-box .now { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 2.9rem); line-height: 1.1; color: var(--lamp-2); }
.offer-box .btn-ink { background: linear-gradient(180deg, var(--lamp-2), var(--lamp)); color: var(--ink); box-shadow: 0 10px 28px -10px rgba(232, 134, 42, .8); }
.offer-box .small { color: var(--on-night-muted); font-size: .9rem; justify-self: center; }
.offer-box .small b { color: var(--lamp-2); }

/* FAQ */
.faq-item { margin-bottom: 10px; overflow: hidden; }
.faq-item button { width: 100%; min-height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: none; border: 0; text-align: start; cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.faq-item button i { font-style: normal; width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lamp-2); transition: transform .45s var(--ease); }
.faq-item.is-open button i { transform: rotate(45deg); }
.faq-item .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-item.is-open .a { grid-template-rows: 1fr; }
.faq-item .a p { overflow: hidden; margin: 0; color: var(--ink-2); padding: 0 1.2rem; max-width: var(--measure); }
.faq-item.is-open .a p { padding-bottom: 1.1rem; }

.foot { text-align: center; padding-bottom: 60px; }
.foot img { height: 32px; width: auto; margin: 0 auto 1rem; }
.foot p { margin: .2rem 0; }

/* Arches between sections: thin ink lines with a lantern */
.arches { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.arches svg { width: 100%; height: auto; display: block; overflow: visible; }
.arches .line { fill: none; stroke: rgba(20, 20, 23, .2); stroke-width: 1.2; }
.arches .lamp-body { fill: rgba(232, 134, 42, .2); stroke: var(--lamp); stroke-width: 1.2; stroke-linejoin: round; }
.arches .lamp-glow { animation: flicker 5s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: .9; } 45% { opacity: .65; } 70% { opacity: .78; } }

/* Background glows: slow and faint, so the page never flashes */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; --p: 0; }
.glow { position: absolute; border-radius: 50%; will-change: transform; }
.g1 { width: 70vmax; height: 70vmax; top: -30vmax; left: -24vmax; background: radial-gradient(closest-side, rgba(246, 176, 74, .18), transparent); animation: drift1 44s ease-in-out infinite alternate; translate: 0 calc(var(--p) * 30vh); }
.g2 { width: 60vmax; height: 60vmax; bottom: -26vmax; right: -20vmax; background: radial-gradient(closest-side, rgba(232, 134, 42, .1), transparent); animation: drift2 52s ease-in-out infinite alternate; translate: 0 calc(var(--p) * -24vh); }
.g3 { display: none; }
@keyframes drift1 { to { transform: translate(12vw, 14vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-10vw, -12vh) scale(1.12); } }

/* Entrance and reveal: short distance, no blur, so nothing jumps at the eye */
.hero-copy > * { animation: rise .9s var(--ease) backwards; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-copy > :nth-child(6) { animation-delay: .4s; }
.bar { animation: fade 1s var(--ease) .2s backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade { from { opacity: 0; } }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.powers.rv li, .income-rows.rv > div { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d, 0ms) + var(--k, 0) * 70ms); }
.powers.rv.in li, .income-rows.rv.in > div { opacity: 1; transform: none; }
.rv .ic, .rv .flow-ic { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 1.2s var(--ease), opacity .3s; transition-delay: calc(var(--d, 0ms) + var(--k, 0) * 70ms + 200ms); }
.rv.in .ic, .rv.in .flow-ic { stroke-dashoffset: 0; opacity: 1; }
.arches.rv .line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease) .1s; }
.arches.rv.in .line { stroke-dashoffset: 0; }
.arches.rv .lantern { opacity: 0; transition: opacity 1.2s 1.4s; }
.arches.rv.in .lantern { opacity: 1; }
@media (hover: hover) {
  :is(.powers li, .made-list li, .who > div, .offer-list li, .module-head, .part-head, .flow-note):hover .ic { stroke-dasharray: 1; animation: redraw .9s var(--ease); }
}
@keyframes redraw { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }

/* Booking dock: only on phones, fixed at the bottom */
.dock { display: none; }

/* ---------- Trainer interview, plan and checkout ---------- */
.agent { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; opacity: 0; transition: opacity .45s var(--ease); padding: 0; max-width: none; margin: 0;
  background: rgba(244, 243, 240, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
main, .bar { transition: opacity .45s var(--ease); }
body.agent-open main, body.agent-open .bar { opacity: 0; visibility: hidden; }
.agent.show { opacity: 1; }
.agent[hidden] { display: none; }
.agent-top { display: flex; align-items: center; gap: 10px; padding: 12px var(--gutter); max-width: 720px; width: 100%; margin: 0 auto; padding-top: max(12px, env(safe-area-inset-top)); }
.agent-progress { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.agent-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lamp), var(--lamp-2)); transition: width .7s var(--ease); }
.thread { flex: 1; overflow-y: auto; padding: 18vh var(--gutter) 1rem; max-width: 720px; width: 100%; margin: 0 auto; scroll-behavior: smooth; mask-image: linear-gradient(to bottom, transparent 0, #000 22vh); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22vh); }
.msg { max-width: 34rem; margin-bottom: 1rem; animation: msg .5s var(--ease) both; }
@keyframes msg { from { opacity: 0; transform: translateY(10px); } }
.msg.bot { font-family: var(--display); font-weight: 500; font-size: clamp(1.1rem, 3.4vw, 1.35rem); line-height: 1.65; }
.msg.bot small { display: block; font-family: var(--text); font-size: .9rem; color: var(--muted); font-weight: 400; margin-top: .3rem; }
.msg.me { margin-inline-start: auto; width: fit-content; padding: .55rem 1.1rem; border-radius: 18px; background: var(--ink); color: #fff; font-weight: 500; }
.typing { display: inline-flex; gap: 6px; padding: .6rem 0; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--lamp); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-3px); } }

.composer { padding: 12px var(--gutter) max(18px, env(safe-area-inset-bottom)); max-width: 720px; width: 100%; margin: 0 auto;
  flex-shrink: 0; max-height: 70vh; max-height: 70dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.thread { min-height: 0; }
.composer-in { animation: msg .45s var(--ease) both; display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; cursor: pointer; min-height: 48px; padding: .7rem 1.1rem; border-radius: 16px; background: var(--glass); box-shadow: var(--glass-shadow); text-align: start; transition: box-shadow .25s, background-color .25s; }
.chip small { display: block; color: var(--muted); font-size: .8rem; }
.chip:hover { box-shadow: 0 0 0 1.5px var(--lamp), var(--glass-shadow); }
.chip.on { background: rgba(246, 176, 74, .22); box-shadow: 0 0 0 1.5px var(--lamp); }
.field-row { display: flex; gap: 8px; }
.field { flex: 1; min-width: 0; min-height: 52px; padding: .85rem 1.1rem; border-radius: 16px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font: inherit; font-size: 1.05rem; }
.field::placeholder { color: var(--muted); }
.field:focus { outline: none; box-shadow: inset 0 0 0 2px var(--lamp); }
select.field option { background: #fff; }
.err { color: #C2453B; font-size: .9rem; min-height: 1.3em; }
.range-out { font-family: var(--display); font-size: 1.6rem; text-align: center; }
input[type=range].slider { width: 100%; accent-color: var(--lamp); }

.plan { padding: 1.4rem 1.5rem; font-family: var(--text); font-size: 1rem; font-weight: 400; }
.plan h3 { font-size: 1.35rem; }
.plan-row { padding: .8rem 0; border-top: 1px solid var(--line); }
.plan-row b { display: block; font-family: var(--display); font-weight: 600; }
.plan-row p { margin: 0; color: var(--ink-2); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .4rem; }
.pills span { font-size: .82rem; padding: .15rem .7rem; border-radius: 999px; background: rgba(246, 176, 74, .2); color: var(--lamp-ink); }
.btn .btn-ic { width: 18px; height: 18px; color: currentColor; vertical-align: 0; }
.pay-card { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 16px; }
.pay-card.no-qr { grid-template-columns: 1fr; }
.pay-info { display: grid; gap: 4px; justify-items: start; }
.pay-number { font-size: 1.5rem; font-variant-numeric: tabular-nums; direction: ltr; letter-spacing: .06em; font-family: var(--display); }
.pay-amount { color: var(--lamp-ink); font-weight: 600; }
.qr { width: 136px; height: 136px; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.qr img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; padding: 6px; }
.upload .up-ic { width: 26px; height: 26px; margin: 0 auto; }
.approved { box-shadow: 0 0 0 1.5px rgba(232, 134, 42, .5), var(--glass-shadow); }
.approved-mark { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--lamp), var(--lamp-2)); margin-bottom: .8rem; }
.approved-mark .ic { color: var(--ink); width: 28px; height: 28px; }
.plan .btn { margin-top: .6rem; }
.upload { display: grid; gap: 8px; padding: 1.1rem; border-radius: 18px; background: rgba(255, 255, 255, .7); border: 1.5px dashed var(--line-2); cursor: pointer; text-align: center; color: var(--ink-2); min-height: 80px; align-content: center; }
.upload img { max-height: 160px; margin: 0 auto; border-radius: 12px; }
.upload input { display: none; }
.confirm-id { font-family: var(--display); font-size: 1.6rem; color: var(--lamp-ink); direction: ltr; display: inline-block; }

/* Wide screens */
@media (min-width: 900px) {
  .hero-copy, .chapter, .made h2, .made-lead, .made-list, .human { margin-inline-end: auto; }
  .offer { grid-template-columns: 1.3fr 1fr; margin: 0 auto; }
  .income-rows { grid-template-columns: repeat(3, 1fr); }
  .powers { grid-template-columns: repeat(4, 1fr); }
  .powers li:last-child { grid-column: span 2; }
  .trial { display: grid; grid-template-columns: 1fr auto; column-gap: 4rem; align-items: center; }
  .trial > :not(.trial-video) { grid-column: 1; }
  .trial-video { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
}

/* Phones: one column, big touch targets, the booking button always within reach */
@media (max-width: 899px) {
  body { font-size: 16px; }
  .hero { align-items: flex-end; padding-top: 44svh; padding-bottom: 80px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .chapter { justify-content: flex-end; padding-bottom: 10svh; padding-top: 42svh; }
  .made { padding-top: 40svh; }
  .chapter h2, .chapter p, .made h2, .made-lead { text-shadow: 0 0 8px var(--paper), 0 2px 20px var(--paper); }
  .made-list li { grid-template-columns: 22px 1fr; gap: .2rem .8rem; }
  .made-list li span { grid-column: 2; }
  .who div { grid-template-columns: 1fr; gap: .1rem; }
  .powers { grid-template-columns: 1fr 1fr; gap: 10px; }
  .powers li { padding: 1.1rem; }
  .powers li:last-child { grid-column: span 2; }
  .module-body ol { padding-inline: 1rem; }
  .module-head { grid-template-columns: 2.2rem 1fr; }
  .module-head .m { grid-column: 2; margin-top: -.5rem; }
  .compare { max-width: 100%; }
  .bar .brand span { display: none; }
  .bar > [data-start] { display: none; }
  /* The particles stay fixed at the top on phones, so this section covers them edge to edge. */
  .trial { padding-top: 64px; position: relative; background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); }
  .trial-video { margin-inline: auto; width: min(340px, 100%); }
  .trial-actions .btn { flex: 1 1 100%; }
  .offer { margin: 0 12px; border-radius: 24px; }
  .dock { display: flex; position: fixed; z-index: 25; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 8px 8px 14px; border-radius: 999px; background: rgba(20, 20, 23, .9); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 0 0 1px rgba(246, 176, 74, .3), 0 16px 40px -12px rgba(20, 20, 23, .6);
    transform: translateY(150%); transition: transform .5s var(--ease); }
  .dock.show { transform: none; }
  .dock > span { padding-inline-start: 8px; }
  .dock b { display: block; font-family: var(--display); font-size: 1.1rem; line-height: 1.2; color: var(--lamp-2); }
  .dock small { color: var(--on-night-muted); font-size: .76rem; }
  .dock .btn { min-height: 46px; padding: .7em 1.3em; font-size: .95rem; }
  .foot { padding-bottom: 110px; }
  body.agent-open .dock { display: none; }
  /* The payment step must fit a phone screen with the receipt picked. */
  .thread { padding-top: 12vh; }
  .pay-card { padding: 12px; gap: 10px; }
  .qr { width: 108px; height: 108px; }
  .upload { padding: .8rem; min-height: 64px; }
  .upload img { max-height: 96px; }
}

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