/* devruler — one stylesheet for devruler.com and apps.devruler.com */
:root {
  --bg: #f6f3ef;
  --surface: #fcfaf7;
  --sunk: #efeae4;
  --ink: #1e1b1a;
  --muted: #645e59;
  --line: #ddd6cf;
  --accent: #b8361c;
  --accent-bg: #d6361f;
  --on-accent: #ffffff;
  --live: #2f9e55;
  --soon: #c98500;
  --dev: #3f7be0;
  --idle: #8a827c;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(16px, 5vw, 56px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161413; --surface: #201d1b; --sunk: #1b1817; --ink: #f5f2ef; --muted: #a8a09a; --line: #3a3532;
    --accent: #ff7a4d; --live: #4cc474; --soon: #e5a72a; --dev: #7aa5ff; --idle: #8f8780;
    color-scheme: dark;
  }
}

/* Japanese and Korean: break headlines between phrases, not inside words, and give them room */
html:lang(ja) { word-break: auto-phrase; line-break: strict; }
html:lang(ko) { word-break: keep-all; }
html:lang(ja) :is(.hero h1, .head h2, .band h2, .callout h2),
html:lang(ko) :is(.hero h1, .head h2, .band h2, .callout h2) { max-width: 22em; }
html:lang(ja) .hero h1, html:lang(ko) .hero h1 { font-size: clamp(38px, 6.4vw, 88px); line-height: 1.15; }
html:lang(ja) :is(h1, h2), html:lang(ko) :is(h1, h2) { letter-spacing: -0.01em; line-height: 1.2; }

/* Arabic and Devanagari letters join: letter-spacing breaks them apart */
html:lang(ar) *, html:lang(hi) * { letter-spacing: 0 !important; }
html:lang(ar) :is(.mono, .eyebrow, .pill, .crumb, .chip, .stats dd, .steps .n, .langline, .meta-line, .state) { font-family: var(--display); }

/* language: html[lang] picks the copy; English shows without JS */
html:not([lang="tr"]) .i-tr, html[lang="tr"] .i-en { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--display); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
a { color: inherit; }
img, video { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; letter-spacing: -0.03em; line-height: 1.04; font-weight: 800; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mono, .eyebrow, .pill, .crumb, .langs button, .chip { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; }
.eyebrow { text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header (identical on both sites) ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { display: block; height: 28px; width: auto; }
.top nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent-bg); padding-bottom: 2px; }
.top nav a.cta { color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 6px 14px; box-shadow: none; }
.top nav a.cta:hover { background: var(--ink); color: var(--bg); }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.langs button { cursor: pointer; border: 0; background: none; color: var(--muted); padding: 4px 9px; border-radius: 999px; }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.langmenu { position: relative; }
.langmenu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink); white-space: nowrap; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary::after { content: "▾"; font-size: 11px; color: var(--muted); }
.langmenu[open] summary { border-color: var(--ink); }
.langmenu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30; list-style: none; margin: 0; padding: 6px; min-width: 180px; max-height: 70vh; overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.15); }
.langmenu li a { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 14px; white-space: nowrap; }
.langmenu li a:hover { background: var(--sunk); }
.langmenu li a[aria-current] { background: var(--ink); color: var(--bg); }
html:not([data-fixed-lang]):not([lang="tr"]) .langmenu a[data-set-lang="en"],
html:not([data-fixed-lang])[lang="tr"] .langmenu a[data-set-lang="tr"] { background: var(--ink); color: var(--bg); }
@media (max-width: 860px) { .top nav a.opt { display: none; } }
@media (max-width: 520px) { .top nav a.opt2 { display: none; } .top nav { gap: 10px; } .brand img { height: 24px; } }
@media (max-width: 440px) { .top nav a.cta { display: none; } }
.plat { text-transform: none; }

/* ---------- shared pieces ---------- */
.tagword { position: relative; display: inline-block; white-space: nowrap; font-style: normal; color: #fff; padding: 0 .16em 0 .12em; margin-left: .02em; z-index: 0; }
.tagword::before { content: ""; position: absolute; inset: .1em -.02em .02em; z-index: -1; border-radius: .09em; background: linear-gradient(100deg, #e53a26, #ff6a33); transform: skewX(-12deg); }
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 17px; padding: 14px 26px; border-radius: 999px; background: var(--accent-bg); color: var(--on-accent); border: 1px solid var(--accent-bg); transition: transform .15s ease; overflow-wrap: anywhere; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: none; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.light { background: #fff; color: #1e1b1a; border-color: #fff; }
.btn.outline-light { background: none; color: #fff; border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.sec { padding-block: clamp(56px, 8vw, 96px); }
.sec.rule { border-top: 1px solid var(--line); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.head h2 { font-size: clamp(34px, 5vw, 62px); max-width: 16ch; }
.head p { color: var(--muted); max-width: 42ch; }
.head a.more { font-family: var(--mono); font-size: 14px; color: var(--accent); text-underline-offset: 3px; }
.chip { border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; color: var(--muted); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.icon { flex: none; width: 72px; height: 72px; border-radius: 22.5%; overflow: hidden; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 30px; }
.icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.icon.xl { width: 112px; height: 112px; font-size: 46px; }
.icon.lg { width: 80px; height: 80px; font-size: 34px; }
.icon.sm { width: 48px; height: 48px; font-size: 20px; }
.icon.xs { width: 36px; height: 36px; font-size: 16px; }
.icon.themed { background: var(--a-accent); color: var(--a-bg); }

.pill { display: inline-flex; align-items: center; gap: 7px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--idle); flex: none; }
.pill.live { color: var(--live); } .pill.live::before { background: var(--live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 22%, transparent); }
.pill.soon::before { background: var(--soon); }
.pill.dev::before { background: var(--dev); }
.pill.paused::before { background: transparent; box-shadow: inset 0 0 0 2px var(--idle); }

.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 132px; padding: 8px 18px 9px; border-radius: 14px; background: var(--ink); color: var(--bg); text-decoration: none; line-height: 1.15; transition: transform .15s ease; }
.store:hover { transform: translateY(-2px); }
.store small { font-family: var(--mono); font-size: 11px; letter-spacing: .03em; opacity: .7; }
.store span { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 13px; }
.links a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- studio (devruler.com) ---------- */
.hero { padding-block: clamp(56px, 10vw, 120px) clamp(40px, 6vw, 64px); }
.hero h1 { font-size: clamp(46px, 8.6vw, 120px); max-width: 12ch; }
.hero .lead { max-width: 56ch; margin-top: 30px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; color: var(--muted); }
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); }
.proof a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.proof a:hover { text-decoration: underline; text-underline-offset: 3px; }
.proof .mono { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; }
.stats div { border-top: 2px solid var(--ink); padding-top: 16px; }
.stats dt { font-size: clamp(42px, 5.4vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.stats dd { margin: 10px 0 0; color: var(--muted); font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.svc { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.svc .n { font-family: var(--mono); color: var(--accent); font-size: 13px; }
.svc h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.svc p { color: var(--muted); font-size: 16px; }
.svc .chips { margin-top: auto; padding-top: 6px; }
.band { background: #1e1b1a; color: #f6f3ef; padding-block: clamp(64px, 9vw, 104px); }
.band .eyebrow { color: #ff7a4d; }
.band h2 { font-size: clamp(34px, 5vw, 62px); max-width: 16ch; }
.ticks { margin-top: 56px; height: 34px; border-bottom: 2px solid #f6f3ef;
  background: repeating-linear-gradient(90deg, #ff6a33 0 2px, transparent 2px 20%) bottom left / 100% 100% no-repeat,
              repeating-linear-gradient(90deg, #a8a09a 0 1px, transparent 1px 2%) bottom left / 100% 40% no-repeat; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 16px 0 0; padding: 0; }
.steps li { padding-left: 6px; }
.steps .n { font-family: var(--mono); font-size: 12.5px; color: #a8a09a; }
.steps h3 { font-size: 22px; font-weight: 800; margin: 6px 0; }
.steps p { color: #a8a09a; font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:last-child { grid-column: 1 / -1; } }
.spots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.spot { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(26px, 3.4vw, 40px); border-radius: 28px; min-height: 420px;
  color: var(--a-text); background: radial-gradient(600px 380px at 85% 10%, color-mix(in srgb, var(--a-accent) 16%, transparent), transparent 60%), var(--a-bg); }
.spot .top-row { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.spot .icon { box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.spot .state { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--a-accent); }
.spot h3 { font-size: clamp(36px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.spot h3 a { text-decoration: none; }
.spot p { color: var(--a-muted); font-size: 19px; margin-top: 10px; max-width: 34ch; }
.spot .store { background: var(--a-text); color: var(--a-bg); }
.spot .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spot .go { color: var(--a-text); font-family: var(--mono); font-size: 13px; margin-left: 6px; text-underline-offset: 3px; }
.teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); text-decoration: none; }
.teaser:hover { border-color: var(--ink); }
.teaser .who { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.teaser .faces { display: flex; }
.teaser .faces .icon { border: 2px solid var(--surface); }
.teaser .faces .icon + .icon { margin-left: -10px; }
.teaser .go { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 2px solid var(--ink); }
.values article { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--line); }
.values .k { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.values h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 8px; line-height: 1.2; }
.values p { color: var(--muted); font-size: 16px; }
.callout { background: linear-gradient(110deg, #b8301b, #cc3a1f); color: #fff; border-radius: 32px; padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 64px); display: grid; gap: 22px; }
.callout .eyebrow { color: #fff; margin: 0; }
.callout h2 { font-size: clamp(36px, 5.6vw, 72px); max-width: 15ch; }
.callout p { max-width: 50ch; font-size: 19px; }
.callout .actions { margin-top: 6px; }

/* ---------- catalog (apps.devruler.com) ---------- */
.hero.compact h1 { font-size: clamp(42px, 6.8vw, 92px); max-width: 13ch; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; padding: 8px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.filters { display: flex; flex-wrap: wrap; gap: 4px; }
.filters button { cursor: pointer; border: 0; border-radius: 999px; padding: 9px 16px; background: none; color: var(--muted); font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.filters b { font-weight: 500; opacity: .7; }
.search { display: flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); flex: 1 1 240px; max-width: 340px; }
.search input { border: 0; background: none; outline: none; font: inherit; font-size: 15px; color: var(--ink); width: 100%; }
.search:focus-within { border-color: var(--ink); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.jump a { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.jump a:hover { color: var(--ink); border-color: var(--ink); }
.jump b { color: var(--ink); font-weight: 500; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 18px; }
.lcard { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 3vw, 30px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.lcard .row { display: flex; gap: 18px; align-items: center; }
.lcard h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin-top: 4px; }
.lcard h3 a { text-decoration: none; }
.lcard h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lcard .tagline { color: var(--accent); font-weight: 600; margin-top: 4px; }
.lcard .desc { color: var(--muted); }
.langline { display: flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 12.5px; }
.langline svg { flex: none; }
.lcard .foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.scard { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.scard:hover { border-color: var(--ink); transform: translateY(-2px); }
.scard .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.scard h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.scard p { color: var(--muted); font-size: 15px; }
.lab { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); column-gap: 40px; }
.lab a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.lab a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.lab h3 { font-size: 18px; font-weight: 700; }
.lab p { color: var(--muted); font-size: 15px; }
.policies { width: 100%; border-collapse: collapse; font-size: 16px; }
.policies th, .policies td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.policies th { font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.policies td a { color: var(--accent); text-underline-offset: 3px; }
.policies td.dim { color: var(--muted); }
.tablewrap { overflow-x: auto; }
.supportbox { background: #1e1b1a; color: #f6f3ef; border-radius: 28px; padding: clamp(32px, 6vw, 64px); display: grid; gap: 18px; }
.supportbox .eyebrow { color: #ff7a4d; margin: 0; }
.supportbox h2 { font-size: clamp(30px, 4.4vw, 52px); }
.supportbox p { color: #c9c2bc; max-width: 54ch; }
.supportbox .btn { justify-self: start; }
[data-item][hidden], [data-group][hidden] { display: none !important; }
.empty { color: var(--muted); padding: 8px 0 40px; }

/* ---------- app page: devruler frame, the app lives in the boxes ---------- */
.crumb { display: inline-block; margin: 26px 0 18px; color: var(--muted); text-decoration: none; text-transform: uppercase; }
.crumb:hover { color: var(--ink); }
.stage { border-radius: 32px; overflow: hidden; color: var(--a-text);
  background: radial-gradient(800px 460px at 78% 35%, color-mix(in srgb, var(--a-accent) 16%, transparent), transparent 60%), var(--a-bg); }
.stage .store { background: var(--a-text); color: var(--a-bg); }
.stage-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: clamp(28px, 5vw, 56px) clamp(24px, 5vw, 56px) 0; }
.stage-hero .copy { padding-bottom: clamp(28px, 5vw, 56px); }
.stage-hero .id { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stage-hero .icon { box-shadow: 0 0 0 1px var(--a-line); }
.stage .state { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; color: var(--a-accent); }
.stage .state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--a-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a-accent) 22%, transparent); }
.stage h1 { font-size: clamp(44px, 6.4vw, 84px); margin-top: 24px; }
.stage .tag { font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; color: var(--a-accent); margin-top: 10px; }
.stage .about { font-size: 19px; color: var(--a-muted); margin-top: 16px; max-width: 42ch; }
.stage .stores { margin-top: 30px; }
.stage .meta-line { font-family: var(--mono); font-size: 12.5px; color: var(--a-muted); margin-top: 22px; }
.stage .meta-line a { color: var(--a-text); }
.stage-media { display: flex; justify-content: center; align-self: end; }
.stage-media video { display: block; width: 100%; max-width: 300px; aspect-ratio: 9 / 14; object-fit: cover; object-position: top; border-radius: 28px 28px 0 0; border: 1px solid var(--a-line); border-bottom: 0; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.stage-media .icon { margin-bottom: clamp(28px, 5vw, 56px); align-self: center; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.stage-hero.noshot .stage-media { align-self: center; }
.stage-hero.noshot .stage-media .icon { width: clamp(160px, 18vw, 220px); height: clamp(160px, 18vw, 220px); font-size: clamp(72px, 8vw, 100px); margin: 0 0 clamp(28px, 5vw, 56px); }
.stage-hero.noshot h1 { margin-top: 16px; }
@media (max-width: 820px) { .stage-hero { grid-template-columns: 1fr; } .stage-media video { max-width: 260px; } .stage-hero.noshot .stage-media { display: none; } }
.subnav { position: sticky; top: 64px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 20px; padding: 8px 8px 8px 18px; border-radius: 30px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); }
.subnav .tabs { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.subnav .name { font-weight: 800; margin-right: 8px; }
.subnav a { font-size: 15px; color: var(--muted); text-decoration: none; padding: 7px 14px; border-radius: 999px; }
.subnav a:hover { color: var(--ink); }
.subnav a.get { background: var(--a-bg); color: var(--a-accent); font-weight: 700; }
@media (max-width: 640px) {
  .subnav .name { display: none; }
  .subnav { top: 56px; padding-left: 8px; flex-wrap: nowrap; }
  .subnav .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .subnav .tabs::-webkit-scrollbar { display: none; }
  .subnav a { padding: 7px 10px; font-size: 14px; white-space: nowrap; }
}
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.feat { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.feat .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--a-bg); color: var(--a-accent); display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 14px; box-shadow: inset 0 0 0 1px var(--a-line); }
.feat h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.feat p { color: var(--muted); font-size: 16px; }
.vids { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, .8fr)); gap: 28px; align-items: center; padding: clamp(28px, 5vw, 56px); }
.vids .eyebrow { color: var(--a-accent); }
.vids h2 { font-size: clamp(32px, 4.4vw, 54px); }
.vids p { color: var(--a-muted); margin-top: 16px; max-width: 34ch; }
.vids figure { margin: 0; }
.vids video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; border: 1px solid var(--a-line); background: #000; object-fit: cover; }
.vids figcaption { margin-top: 12px; }
.vids figcaption b { display: block; }
.vids figcaption span { color: var(--a-muted); font-size: 15px; }
@media (max-width: 820px) { .vids { grid-template-columns: 1fr 1fr; } .vids > div:first-child { grid-column: 1 / -1; } }
.shots { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 19vw, 220px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shots li { scroll-snap-align: start; }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); background: var(--a-bg, var(--sunk)); }
.langs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.langs-grid div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.langs-grid span:last-child { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.linkcard { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.linkcard:hover { border-color: var(--ink); }
.linkcard b { display: block; font-size: 19px; }
.linkcard small { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.linkcard .arrow { font-family: var(--mono); color: var(--accent); }
.getband { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 44px) clamp(24px, 4.4vw, 52px); }
.getband .id { display: flex; align-items: center; gap: 22px; }
.getband h2 { font-size: clamp(28px, 3.4vw, 36px); }
.getband p { color: var(--a-muted); margin-top: 6px; }
.app-page main { padding-bottom: clamp(56px, 8vw, 96px); }
.app-page .sec { padding-block: clamp(56px, 8vw, 88px) 0; }

/* ---------- legal documents ---------- */
.legal { max-width: 760px; padding-block: clamp(8px, 2vw, 16px) clamp(56px, 8vw, 96px); }
.legal .docbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal .docbar .who { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; }
.legal nav[aria-label="Language"] { display: none; }
.legal h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 14px; }
.legal h2 { font-size: 22px; letter-spacing: -0.01em; line-height: 1.25; margin: 36px 0 10px; font-weight: 800; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 16.5px; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin: 4px 0; }
.legal li::marker { color: var(--accent); }
.legal a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal .intro, .legal .updated, .legal .note { color: var(--muted); }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .box { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin: 16px 0; }
.legal code { font-family: var(--mono); font-size: .9em; background: var(--sunk); padding: 1px 6px; border-radius: 6px; }
.legal footer { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

/* ---------- footer (identical on both sites) ---------- */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; padding-block: 40px 28px; }
.site-foot .about p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 30ch; }
.site-foot img { height: 24px; width: auto; display: block; }
.site-foot h2 { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.site-foot a { text-decoration: none; overflow-wrap: anywhere; }
.site-foot a:hover { color: var(--accent); }
.site-foot .base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 18px 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .about { grid-column: 1 / -1; } }

.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) { .logo-light { display: none !important; } .logo-dark { display: block !important; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .store, .scard { transition: none; }
}
