/* ikou marketing site. Colours come from the app (src/theme/hud.ts): raven black, powder blue, poppy red.
   One accent (poppy) is used for every primary action. */
:root {
  --bg: #0E0E11;
  --bg-2: #15151a;
  --text: #F4F8F9;
  --muted: #A9B5BB;          /* about 8:1 on --bg */
  --powder: #B0E0E6;
  --accent: #DC343B;         /* buttons, white text on it is 4.6:1 */
  --accent-text: #FF6B70;    /* accent used as text on dark */
  --glass: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .1);
  --r: 24px;
  --display: 'Archivo', 'Readex Pro', system-ui, sans-serif;
  --body: 'Readex Pro', 'Inter', system-ui, sans-serif;
  --hw-main: 300px;
  --hw-side: 230px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--accent); color: #fff; padding: 12px 16px; border-radius: 12px; z-index: 200; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--powder); outline-offset: 3px; border-radius: 10px; }

/* Type */
h1, h2 { font-family: var(--display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; line-height: .98; letter-spacing: -.01em; }
h1 { font-size: clamp(44px, 9vw, 92px); }
h2 { font-size: clamp(34px, 6vw, 60px); }
h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.eyebrow { color: var(--accent-text); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); max-width: 34em; margin-top: 20px; }
html[dir='rtl'] h1, html[dir='rtl'] h2 { font-family: var(--body); font-stretch: 100%; text-transform: none; letter-spacing: 0; line-height: 1.2; font-weight: 700; }
html[dir='rtl'] .eyebrow { letter-spacing: 0; text-transform: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px var(--body); border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(220, 52, 59, .7); }
.btn-primary:hover { transform: translateY(-2px); background: #e8444b; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--powder); }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
html[dir='rtl'] .ic.flip { transform: scaleX(-1); }
.icon-btn { flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--text); cursor: pointer; transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--powder); }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px; border-radius: 16px; background: #000; border: 1px solid rgba(255, 255, 255, .28); transition: transform .2s, border-color .2s; }
.store:hover { transform: translateY(-2px); border-color: var(--powder); }
.store .ic { width: 28px; height: 28px; }
.store span { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.store small { font-size: 11px; color: var(--muted); }
.store b { font-size: 18px; font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(14, 14, 17, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { font: 800 30px var(--display); font-stretch: 75%; letter-spacing: -.01em; display: inline-flex; align-items: baseline; gap: 2px; }
.logo i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.nav-links { display: flex; gap: 28px; margin-inline-start: auto; }
.nav-links a { color: var(--muted); font-weight: 500; padding: 12px 4px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.lang { min-height: 44px; min-width: 56px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--text); font: 600 15px var(--body); cursor: pointer; }
.lang:hover { border-color: var(--powder); }
.nav-cta { min-height: 48px; padding: 0 22px; }
.menu-btn { display: none; }

/* Glass, cards, glows */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.glow-a { width: 520px; height: 520px; background: radial-gradient(circle, rgba(176, 224, 230, .35), transparent 70%); inset-inline-end: -80px; top: 80px; }
.glow-b { width: 380px; height: 380px; background: radial-gradient(circle, rgba(220, 52, 59, .4), transparent 70%); }
.glow-c { width: 600px; height: 600px; background: radial-gradient(circle, rgba(220, 52, 59, .35), transparent 70%); inset-inline-start: -160px; top: -120px; }
.card, .card-lg { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card { padding: 28px; transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-6px); border-color: rgba(176, 224, 230, .45); }
.card h3 { margin: 18px 0 8px; }
.card p, .benefits p, .step p { color: var(--muted); }
.card-lg { padding: clamp(24px, 5vw, 56px); border-radius: 28px; }
.card-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(176, 224, 230, .12); color: var(--powder); }
.card-ic.sm { width: 44px; height: 44px; border-radius: 14px; }
.tag { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(220, 52, 59, .18); color: var(--accent-text); margin-inline-start: 6px; white-space: nowrap; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Phone frame (screenshots keep their own aspect ratio) */
.phone { --w: 240px; position: relative; width: var(--w); padding: calc(var(--w) * .03); border-radius: calc(var(--w) * .16); background: linear-gradient(145deg, #3a3b42, #17171b 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 40px 80px -20px rgba(0, 0, 0, .8), 0 12px 30px -8px rgba(0, 0, 0, .6); margin: 0; }
.phone img { width: 100%; height: auto; box-sizing: border-box; border-top: calc(var(--w) * .09) solid #DEF2F4; border-radius: calc(var(--w) * .135); background: #E6F4F7; }
.phone::after { content: ''; position: absolute; top: calc(var(--w) * .052); left: 50%; width: calc(var(--w) * .28); height: calc(var(--w) * .072); border-radius: 999px; background: #000; transform: translateX(-50%); }

/* Sections */
.sec { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.sec-head { margin-bottom: clamp(36px, 6vw, 64px); max-width: 760px; }

/* Hero */
.hero { position: relative; padding: 140px 0 72px; overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 32px; }
.hero-phones { position: relative; height: 640px; --rx: 0deg; --ry: 0deg; perspective: 1200px; }
.hero-phones .phone { position: absolute; transition: transform .25s ease-out; }
.p-front { top: 0; inset-inline-start: 50%; margin-inline-start: calc(var(--hw-main) / -2); z-index: 3; transform: rotateY(var(--ry)) rotateX(var(--rx)); animation: floaty 6s ease-in-out infinite; }
.p-back-l { top: 70px; inset-inline-start: 0; z-index: 1; transform: rotate(-9deg); animation: floaty 7s ease-in-out -2s infinite; }
.p-back-r { top: 90px; inset-inline-end: 0; z-index: 2; transform: rotate(8deg); animation: floaty 8s ease-in-out -4s infinite; }
html[dir='rtl'] .p-back-l { transform: rotate(9deg); }
html[dir='rtl'] .p-back-r { transform: rotate(-8deg); }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* Trust strip */
.trust { border-block: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.trust-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 28px 0; }
.trust p { color: var(--muted); }
.trust b { color: var(--text); font: 800 26px var(--display); font-stretch: 75%; }
.ph { outline: 1px dashed rgba(176, 224, 230, .6); outline-offset: 4px; border-radius: 4px; }

/* How it works */
.how { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }
.steps { display: grid; gap: 0; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; max-width: 460px; }
.step-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--accent); color: #fff; }
.step h3 { font-size: 28px; }
.num { color: var(--accent-text); font-family: var(--display); }
.step-phone { display: none; margin-top: 16px; }
.how-sticky { position: sticky; top: 110px; display: grid; place-items: center; height: 640px; }
.how-sticky .phone { transform: rotate(3deg); display: grid; }
.how-sticky .phone img { grid-area: 1 / 1; opacity: 0; transition: opacity .5s; }
.how-sticky img.on { opacity: 1; }

/* Carousel */
.carousel { position: relative; }
.track { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px max(16px, calc((100vw - 1180px) / 2)); scroll-padding-inline: max(16px, calc((100vw - 1180px) / 2)); scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: none; scroll-snap-align: start; margin: 0; }
.car-ctl { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 20px; }
.dots { display: flex; gap: 4px; }
.dot { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.dot::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .3); transition: .3s; }
.dot[aria-current='true']::before { width: 28px; border-radius: 999px; background: var(--accent); }

/* Coaches split */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; overflow: hidden; position: relative; }
.split-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.split-art .glow { z-index: 0; }
.split-art .phone { z-index: 1; }
.benefits { display: grid; gap: 22px; margin: 28px 0 32px; }
.benefits li { display: flex; gap: 16px; align-items: flex-start; }
.benefits h3 { font-size: 18px; margin-bottom: 2px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Testimonials */
.quote { position: relative; display: flex; flex-direction: column; gap: 20px; }
.quote:hover { transform: none; }
.quote blockquote { font-size: 20px; line-height: 1.5; color: var(--muted); }
.quote figcaption { color: var(--muted); font-size: 15px; margin-top: auto; }
.ph-flag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px dashed rgba(176, 224, 230, .6); color: var(--powder); }

/* FAQ */
.acc { display: grid; gap: 12px; }
.acc-item { background: var(--glass); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.acc-btn { width: 100%; min-height: 64px; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: 0; color: var(--text); font: 600 18px/1.35 var(--body); text-align: start; cursor: pointer; }
.acc-btn .ic { transition: transform .3s; color: var(--powder); }
.acc-btn[aria-expanded='true'] .ic { transform: rotate(180deg); }
.acc-panel { padding: 0 22px 22px; color: var(--muted); }

/* Final CTA */
.final { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 120px) 0 0; background: linear-gradient(180deg, var(--bg), #1a0e10); border-top: 1px solid var(--line); }
.final-in { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.final h2 { font-size: clamp(48px, 10vw, 120px); }
.final-in > div { padding-bottom: clamp(48px, 8vw, 96px); }
.final-phone { margin-bottom: -120px; margin-inline-end: 48px; transform: rotate(5deg); flex: none; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 120px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; }
.foot-links { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); padding: 12px 0; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--text); }
.social { display: flex; gap: 12px; }
.copy { margin-top: 32px; font-size: 14px; }

/* Mobile sticky bar */
.sticky-bar { display: none; position: fixed; inset: auto 0 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(14, 14, 17, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s; }
.sticky-bar .btn { width: 100%; min-height: 56px; }
.sticky-bar.show { transform: none; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s ease-out; transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: 1fr; }
  .how-sticky { display: none; }
  .step { min-height: 0; max-width: none; padding: 28px 0; align-items: flex-start; }
  .step-phone { display: block; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .nav-cta { display: none; }
  .nav-links { position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0; padding: 12px 16px 24px; background: rgba(14, 14, 17, .96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); margin: 0; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 20px; padding: 16px 4px; min-height: 56px; }
  .nav-end { margin-inline-start: auto; }
  .nav.menu-open { background: rgba(14, 14, 17, .96); }
  .hero { padding-top: 112px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phones { height: 480px; --hw-main: 220px; --hw-side: 170px; }
  .sticky-bar { display: block; }
  .final-in { flex-direction: column; align-items: flex-start; }
  .final-phone { align-self: center; margin-bottom: -90px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid3 { grid-template-columns: 1fr; }
  .trust-in { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-phones { height: 420px; --hw-main: 190px; --hw-side: 140px; }
  .badges .store { flex: 1 1 100%; }
}
@media (min-width: 1440px) { .wrap { width: min(1280px, 100% - 64px); } }

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