/* MullyGo site: the product-page layer. Loaded after styles.css; it restyles type, navigation and sections and adds the
   interactive parts (sub navigation, showcase tabs, rail, stats, filters). Brand colours stay navy and gold. */

:root {
  --serif: "Site Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; /* headings in the sans face */
  --bar-h: 52px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}
body { background: #fff; -webkit-font-smoothing: antialiased; }

/* ---------- Type ---------- */
h1, h2, h3 { letter-spacing: -0.035em; font-weight: 700; }
h1 { font-weight: 800; letter-spacing: -0.045em; }
h2 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; }
h3 { letter-spacing: -0.025em; }
.eyebrow { font: 600 0.82rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: #a8731f; }
.dark .eyebrow, .night .eyebrow { color: var(--gold-light); }
.lede { color: #c3cde2; }
.head { max-width: 860px; margin-inline: auto; text-align: center; margin-bottom: clamp(40px, 6vw, 84px); }
.head p:not(.eyebrow) { margin-inline: auto; max-width: 62ch; font-size: clamp(1.08rem, 1.55vw, 1.32rem); line-height: 1.5; }
.split .head, .head.left { text-align: left; margin-inline: 0; }
.split .head p:not(.eyebrow), .head.left p:not(.eyebrow) { margin-inline: 0; }
.gradient, .page-head h1 em, .hero h1 em { background: linear-gradient(100deg, #f6dfae, #d0a054 60%, #e7bd72); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 em, .page-head h1 em { font-style: normal; }

/* ---------- Global navigation: always a thin glass bar ---------- */
.bar { height: var(--bar-h); padding-block: 0; background: rgba(8, 18, 38, 0.72); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); gap: 20px; }
.bar.is-scrolled { background: rgba(6, 14, 30, 0.86); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1); }
.brand { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.links { gap: 22px; font-size: 0.8rem; letter-spacing: 0; }
.links a { color: rgba(255, 255, 255, 0.78); transition: color 0.2s; }
.links a[aria-current="page"] { box-shadow: none; padding: 0; color: #fff; font-weight: 600; }
.bar-cta { padding: 7px 14px; font-size: 0.78rem; }
section[id] { scroll-margin-top: calc(var(--bar-h) + 56px); }

/* ---------- Page heads: centred, large ---------- */
.page-head { text-align: center; padding-block: calc(var(--bar-h) + clamp(64px, 11vh, 120px)) clamp(64px, 9vw, 120px); }
.page-head h1 { font-size: clamp(2.7rem, 7.4vw, 6.2rem); line-height: 1.02; }
html[lang="en"] .page-head h1 { font-size: clamp(2.6rem, 6.8vw, 5.6rem); }
.page-head .lede { margin-inline: auto; max-width: 52ch; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.45; }
.page-head .wrap { transform: translateY(calc(var(--scroll, 0) * 0.18px)); opacity: calc(1 - var(--scroll, 0) / 900); }

/* ---------- Sub navigation (sticks under the bar) ---------- */
.subnav { position: sticky; top: var(--bar-h); z-index: 40; background: rgba(245, 245, 247, 0.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.subnav-in { display: flex; align-items: center; gap: 28px; min-height: 52px; width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.subnav b { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); margin-right: auto; }
.subnav a { text-decoration: none; font-size: 0.82rem; color: #4a5160; transition: color 0.2s; white-space: nowrap; }
.subnav a:hover, .subnav a.is-on { color: var(--ink); }
.subnav a.is-on { font-weight: 600; }
.subnav .pill { padding: 6px 14px; font-size: 0.78rem; }
@media (max-width: 760px) { .subnav a:not(.pill) { display: none; } }

/* ---------- Sections ---------- */
section { padding-block: clamp(80px, 11vw, 160px); }
.light { background: #f5f5f7; }
.paper { background: #fff; }
.dark { background: radial-gradient(120% 90% at 50% 0%, #0b2f66 0%, #041e42 46%, #020f27 100%); }
.night { background: #000; }
.feats li { border-top: 1px solid rgba(0, 0, 0, 0.14); }
.dark .feats li, .night .feats li { border-color: rgba(255, 255, 255, 0.18); }
.feats h3 { font-size: 1.25rem; }
.note { border-radius: 0 16px 16px 0; }
.more { background: #f5f5f7; }

/* ---------- Pills ---------- */
.pill-gold { background: linear-gradient(180deg, #ecce93, #d0a054); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.text-link { border: 0; color: var(--gold-light); }
.text-link:hover { text-decoration: underline; }

/* ---------- Reveal: rise and settle, with a stagger set by app.js ---------- */
.js .reveal { transform: translateY(40px) scale(0.985); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { transform: none; }

/* ---------- Showcase: a segmented control that swaps a device and its caption ---------- */
.show { text-align: center; }
.seg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(120, 120, 128, 0.16); margin-bottom: clamp(32px, 5vw, 56px); max-width: 100%; }
.dark .seg, .night .seg { background: rgba(255, 255, 255, 0.12); }
.seg button { border: 0; background: transparent; cursor: pointer; font: 600 0.9rem/1 var(--sans); padding: 11px 20px; border-radius: 999px; color: #3a3f4b; transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.dark .seg button, .night .seg button { color: rgba(255, 255, 255, 0.75); }
.seg button:hover { color: #000; }
.dark .seg button:hover, .night .seg button:hover { color: #fff; }
.seg button[aria-selected="true"] { background: #fff; color: #111; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); }
.show-stage { display: grid; justify-items: center; }
.show-media { display: grid; justify-items: center; width: min(100%, clamp(240px, 33vh, 330px)); transition: width 0.5s var(--ease); }
.show-media.is-watch { width: min(100%, clamp(200px, 30vh, 280px)); }
.show-media > * { grid-area: 1 / 1; width: 100%; opacity: 0; transform: scale(0.94) translateY(16px); transition: opacity 0.55s var(--ease), transform 0.7s var(--ease); pointer-events: none; }
.show-media > .is-active { opacity: 1; transform: none; pointer-events: auto; }
.show-media .phone { box-shadow: 0 50px 100px -40px rgba(4, 30, 66, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04); }
.show-caption { display: grid; margin-top: clamp(28px, 4vw, 48px); max-width: 640px; }
.show-caption > * { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity 0.45s var(--ease), transform 0.6s var(--ease); pointer-events: none; }
.show-caption > .is-active { opacity: 1; transform: none; pointer-events: auto; }
.show-caption h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.12; }
.show-caption p { margin-top: 12px; font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.5; color: var(--muted); }
.dark .show-caption p, .night .show-caption p { color: #b9c4da; }
.show-dots { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.show-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(120, 120, 128, 0.4); transition: all 0.3s var(--ease); }
.show-dots i.is-on { width: 26px; border-radius: 4px; background: var(--gold); }
.show-panels { text-align: left; }
.show-panels > [role="tabpanel"] { display: none; }
.show-panels > [role="tabpanel"].is-active { display: block; animation: panel-in 0.5s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Rail: horizontal scroll with snap ---------- */
.rail { position: relative; }
.rail-track { display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px max(var(--gutter), calc((100% - 1200px) / 2)) 36px; scroll-padding-inline: max(var(--gutter), calc((100% - 1200px) / 2)); -webkit-overflow-scrolling: touch; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-card { flex: 0 0 min(78vw, 400px); scroll-snap-align: start; position: relative; display: flex; flex-direction: column; height: clamp(500px, 62vh, 600px); border-radius: 32px; overflow: hidden; text-decoration: none; background: #fff; color: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 24px 50px -34px rgba(4, 30, 66, 0.4); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.rail-card:hover { box-shadow: 0 40px 70px -36px rgba(4, 30, 66, 0.55); }
.rail-card.navy { background: linear-gradient(170deg, #0b2f66, #041e42 60%, #020f27); color: #fff; }
.rail-card .txt { padding: 30px 30px 0; position: relative; z-index: 1; }
.rail-card .txt small { display: block; font: 600 0.78rem/1.3 var(--sans); color: #a8731f; margin-bottom: 8px; }
.rail-card.navy .txt small { color: var(--gold-light); }
.rail-card .txt h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.1; }
.rail-card .txt p { margin-top: 10px; font-size: 0.97rem; color: var(--muted); }
.rail-card.navy .txt p { color: #b9c4da; }
.rail-card .peek { margin-top: auto; padding-inline: 16%; height: 56%; overflow: hidden; }
.rail-card .peek .phone, .rail-card .peek .watch { transition: transform 0.6s var(--ease); }
.rail-card:hover .peek .phone, .rail-card:hover .peek .watch { transform: translateY(-14px) scale(1.02); }
.rail-card .peek .watch { width: 74%; margin-inline: auto; margin-top: 18px; }
.rail-card .go { position: absolute; right: 22px; bottom: 22px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.78); color: #fff; font-size: 1.15rem; transition: transform 0.3s var(--ease); }
.rail-card:hover .go { transform: scale(1.12); }
.rail-ctl { display: flex; justify-content: flex-end; gap: 10px; width: min(1200px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.rail-ctl button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(120, 120, 128, 0.18); cursor: pointer; font-size: 1.1rem; transition: background 0.2s, opacity 0.2s; }
.rail-ctl button:hover { background: rgba(120, 120, 128, 0.32); }
.rail-ctl button:disabled { opacity: 0.35; cursor: default; }

/* ---------- Stats: big numbers that count up ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); text-align: center; }
.stats b { display: block; font: 800 clamp(3.4rem, 8vw, 7rem)/1 var(--sans); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, #c9d6ee 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.light .stats b, .paper .stats b { background: linear-gradient(180deg, #0b2f66, #041e42); -webkit-background-clip: text; background-clip: text; }
.stats span { display: block; margin-top: 10px; font-size: clamp(0.95rem, 1.3vw, 1.1rem); color: #aebbd6; }
.light .stats span, .paper .stats span { color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; } }

/* ---------- Course filter ---------- */
.filter { display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 0 auto clamp(28px, 4vw, 48px); padding: 6px 8px 6px 20px; border-radius: 999px; background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); box-shadow: 0 10px 30px -22px rgba(4, 30, 66, 0.5); }
.filter input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 1rem/1.3 var(--sans); padding: 10px 0; color: var(--ink); }
.filter span { font: 600 0.8rem/1 var(--sans); color: var(--muted); padding: 0 10px; white-space: nowrap; }
.course-list li { transition: opacity 0.3s; }
.course-list li[hidden] { display: none; }
.course-empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* ---------- Cards that lift ---------- */
.lift { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.lift:hover { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
  .page-head .wrap { transform: none; opacity: 1; }
  .show-media > *, .show-caption > *, .rail-card { transition: none; }
  .rail-card { transform: none !important; }
}

@media (max-width: 640px) {
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; width: max-content; max-width: 100%; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { white-space: nowrap; padding: 10px 16px; font-size: 0.85rem; }
  .show { display: flex; flex-direction: column; align-items: center; }
}

/* ---------- Watch frame: a slimmer case, closer to an Ultra ---------- */
.watch { padding: 6.2% 6.6%; border-radius: 28% / 24%; background: linear-gradient(150deg, #e4e0d7 0%, #a09b92 14%, #55524c 46%, #8a857c 78%, #d8d3c8 100%); box-shadow: 0 34px 50px -26px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 2px 3px rgba(255, 255, 255, 0.28); }
.watch::before { right: -3.6%; top: 27%; width: 5.4%; height: 21%; }
.watch::after { left: -1.7%; top: 35%; width: 2.6%; height: 20%; }
.watch-screen { border-radius: 23% / 19%; padding: 2.4%; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.watch-screen img, .watch-screen video { border-radius: 20% / 16.4%; }
.hero-watch { width: 216px; }
@media (max-width: 860px) { .hero-watch { width: 41%; } }

/* Language switch is a pair of links (Turkish at /, English at /en/) */
.lang a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font: 600 0.75rem/1 var(--num); padding: 7px 11px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.lang a[aria-current] { background: #fff; color: var(--navy); }
.lang a:not([aria-current]):hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

/* The demo scrolls its answers into view by offsetTop, which needs the chat box as the offset parent. */
.demo-chat { position: relative; }

/* ---------- Design standards: contrast, touch targets and type size ---------- */
/* Text colours meet 4.5:1 on white and on the light grey. */
.eyebrow, .rail-card .txt small { color: #8a6420; }
.dark .eyebrow, .night .eyebrow, .rail-card.navy .txt small { color: var(--gold-light); }
.night .note { color: #d6deef; background: rgba(255, 255, 255, 0.06); }
/* The gold focus ring is too pale on light sections. */
.paper :focus-visible, .light :focus-visible { outline-color: #8a6420; }

/* Touch targets: 44 px in the page, 40 px inside the 52 px top bar. */
.brand { min-height: 44px; }
.lang a { display: inline-flex; align-items: center; min-height: 36px; padding-inline: 14px; font-size: 0.8rem; }
.bar-cta, .subnav .pill { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 16px; font-size: 0.82rem; }
.seg button, .chip, .ask { min-height: 44px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 520px) { .bar-cta { display: none; } }
.foot-links { gap: 0 22px; }
.foot-links a { display: inline-block; padding-block: 11px; }
.video-toggle { font-size: 12px; }
.video-toggle::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.watch-screen .video-toggle { font-size: 12px; }
.watch-screen .video-toggle::after { inset: -9px; }

/* Nothing below 12.5 px. */
.rail-card .txt small { font-size: 0.82rem; }
.req thead th, .calc-title { font-size: 0.78rem; }
.calc output > span, .calc-points span { font-size: 0.8rem; }

/* Guide page */
.g-ch { padding: clamp(56px, 8vw, 112px) 0; }
.g-grid { display: grid; grid-template-columns: 1fr minmax(240px, 340px); gap: clamp(28px, 6vw, 96px); align-items: center; }
.g-grid.flip { grid-template-columns: minmax(240px, 340px) 1fr; }
.g-grid.flip .g-text { order: 2; }
.g-no { font: 600 clamp(3rem, 7vw, 5.5rem)/1 var(--sans); letter-spacing: -0.04em; margin: 0 0 8px; color: #8a6420; opacity: 0.9; }
.g-text h2 { margin: 0 0 20px; }
.g-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 46ch; }
.g-steps li { counter-increment: s; position: relative; padding-left: 40px; font-size: 1.12rem; line-height: 1.4; }
.g-steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 0.82rem/1 var(--sans); background: #041e42; color: #fff; }
.g-tip { margin: 22px 0 0; padding-left: 14px; border-left: 3px solid #8a6420; color: var(--muted); font-size: 0.95rem; max-width: 44ch; }
.g-media { display: grid; place-items: center; }
.g-media .phone { max-width: 300px; margin: 0; }
.g-all .q-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px 24px; margin-top: 8px; }
.q-col h3 { font-size: 1rem; color: var(--gold-light); margin: 0 0 10px; }
.q-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.q-col li { font-size: 0.95rem; line-height: 1.35; padding-left: 14px; position: relative; color: rgba(255, 255, 255, 0.88); }
.q-col li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-light); }
@media (max-width: 760px) {
  .g-grid, .g-grid.flip { grid-template-columns: 1fr; }
  .g-grid.flip .g-text { order: 0; }
  .g-media .phone { max-width: 240px; }
}
.g-media .g-watch { width: min(260px, 70%); margin: 0; }
