﻿/* IFCToolset — shared styles for every page. Centred, single column, light + dark. */
:root {
  --bg: #f6f7fb; --bg-2: #ffffff; --surface: rgba(255,255,255,.78); --surface-solid: #ffffff;
  --surface-2: #f0f2f7; --text: #121418; --muted: #5d6573; --faint: #8b93a1;
  --line: rgba(17,24,39,.09); --line-strong: rgba(17,24,39,.16);
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 32px -12px rgba(16,24,40,.14);
  --shadow-lg: 0 2px 4px rgba(16,24,40,.04), 0 40px 80px -24px rgba(16,24,40,.28);
  --brand-a: #2f6bff; --brand-b: #b13cff; --brand-c: #ff4d8d;
  --radius: 20px; --radius-sm: 12px; --max: 1120px; --read: 680px;
  --nav-bg: rgba(255,255,255,.72);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0c10; --bg-2: #0f1218; --surface: rgba(22,26,34,.72); --surface-solid: #151921;
    --surface-2: #1b2029; --text: #eef1f5; --muted: #a2abb8; --faint: #6f7886;
    --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.16);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 40px 80px -24px rgba(0,0,0,.75);
    --nav-bg: rgba(15,18,24,.72);
  }
}
:root[data-theme="dark"] {
  --bg: #0a0c10; --bg-2: #0f1218; --surface: rgba(22,26,34,.72); --surface-solid: #151921;
  --surface-2: #1b2029; --text: #eef1f5; --muted: #a2abb8; --faint: #6f7886;
  --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.16);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 40px 80px -24px rgba(0,0,0,.75);
  --nav-bg: rgba(15,18,24,.72);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font: 16px/1.65 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* soft colour field behind the top of every page */
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 980px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 380px at 18% 8%, color-mix(in srgb, var(--brand-a) 22%, transparent), transparent 70%),
    radial-gradient(560px 360px at 82% 4%, color-mix(in srgb, var(--brand-b) 20%, transparent), transparent 70%),
    radial-gradient(520px 320px at 50% 42%, color-mix(in srgb, var(--brand-c) 10%, transparent), transparent 70%);
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; letter-spacing: -.022em; margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.nw { white-space: nowrap; }
.read { max-width: var(--read); margin-left: auto; margin-right: auto; }

/* ---------- floating nav ---------- */
.nav { position: sticky; top: 14px; z-index: 30; display: flex; justify-content: center; padding: 0 16px; }
.nav-inner {
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px;
  background: var(--nav-bg); border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  max-width: 100%;
}
.nav a, .nav button {
  font: 600 14px/1 inherit; font-family: inherit; color: var(--muted); text-decoration: none; white-space: nowrap;
  padding: 10px 14px; border-radius: 999px; border: 0; background: none; cursor: pointer;
}
.nav a:hover, .nav button:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.nav .brand { color: var(--text); display: flex; align-items: center; gap: 8px; padding-right: 16px; }
.nav .brand i { width: 22px; height: 22px; border-radius: 7px; display: inline-block;
  background: conic-gradient(from 200deg, var(--brand-a), var(--brand-b), var(--brand-c), var(--brand-a)); }
.nav .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }

/* ---------- hero ---------- */
.hero, .sample-hero { text-align: center; }
.hero { padding: 88px 0 24px; }
.hero .wrap, .sample-hero .wrap { display: flex; flex-direction: column; align-items: center; }
.hero .wrap > *, .sample-hero .wrap > * { margin-left: auto; margin-right: auto; }
.hero-shot, .sample-hero .frame { width: 100%; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 600; color: var(--muted); backdrop-filter: blur(10px);
}
.eyebrow b { color: #fff; font-weight: 700; padding: 3px 9px; border-radius: 999px; font-size: 12px;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b)); }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.04; font-weight: 700; margin: 22px auto 18px; max-width: 16ch; }
.grad { background: linear-gradient(100deg, var(--brand-a) 0%, var(--brand-b) 55%, var(--brand-c) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); max-width: 58ch; margin: 0 auto 32px; }
.cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  text-decoration: none; font-weight: 650; font-size: 15px; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { color: #fff; background: linear-gradient(100deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--brand-b) 70%, transparent); }
.btn.ghost { background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); backdrop-filter: blur(10px); }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 40px; list-style: none; padding: 0; margin: 44px 0 0; }
.stats li { min-width: 90px; }
.stats b { display: block; font: 700 30px/1.1 "Segoe UI Variable Display", "Segoe UI", sans-serif; letter-spacing: -.02em; }
.stats span { font-size: 12.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .09em; font-weight: 600; }

/* window frame around screenshots */
.frame { position: relative; border-radius: 16px; padding: 8px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); }
.frame::before { content: ""; position: absolute; inset: -1px; border-radius: 17px; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent, var(--brand-b)) 55%, transparent), transparent 40%,
    transparent 60%, color-mix(in srgb, var(--accent, var(--brand-a)) 40%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.frame img { border-radius: 10px; }
.frame-glow { position: relative; }
.frame-glow::after { content: ""; position: absolute; inset: 12% 8% -4%; z-index: -1; filter: blur(60px); opacity: .45;
  background: linear-gradient(90deg, var(--accent, var(--brand-a)), var(--brand-b)); border-radius: 50%; }
.hero-shot { margin: 64px auto 0; max-width: 1040px; }
a.zoom { display: block; cursor: zoom-in; }

/* ---------- section heads ---------- */
.section { padding: 112px 0 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent, var(--brand-b)); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 18px; margin: 14px auto 0; max-width: 60ch; }

/* ---------- app picker ---------- */
.apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.app-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px 14px 20px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); transition: transform .2s, box-shadow .2s, border-color .2s; }
.app-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.app-tile img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.app-tile strong { font-size: 16px; }
.app-tile span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* ---------- an app ---------- */
.app { padding-top: 128px; }
.app-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.app-icon { width: 104px; height: 104px; border-radius: 26px; margin: 0 auto 22px;
  box-shadow: 0 24px 48px -18px color-mix(in srgb, var(--accent) 85%, transparent); }
.app-head h2 { font-size: clamp(34px, 5vw, 54px); line-height: 1.04; font-weight: 700; }
.app-head h2 em { font-style: normal; color: var(--accent); }
.app-head p { font-size: 18.5px; color: var(--muted); margin: 14px auto 0; max-width: 56ch; }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  text-decoration: none; background: var(--surface); border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow-sm); }
a.chip:hover { border-color: color-mix(in srgb, var(--accent, var(--brand-a)) 55%, transparent); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent, var(--brand-a)); }
.chip small { color: var(--faint); font-weight: 600; }

/* ---------- a tool ---------- */
.tool { margin: 0 auto 96px; }
.tool:last-child { margin-bottom: 0; }
.tool-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.tool-head .num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px;
  font-size: 13px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); margin-bottom: 12px; }
.tool-head h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; font-weight: 700; }
.tool-head p { color: var(--muted); font-size: 17px; margin: 10px 0 0; }
.tool .frame { max-width: 1000px; margin: 0 auto; }
.caption { text-align: center; font-size: 13px; color: var(--faint); margin: 14px 0 0; }
.feats { list-style: none; padding: 0; margin: 32px auto 0; max-width: 860px; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.feats li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.5; }
.feats li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 7px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); }
.feats li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.try { text-align: center; margin-top: 28px; }
.try > span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.try .chips { margin-top: 10px; }

/* ---------- samples ---------- */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.models.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin: 0 auto; }
.model-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.model-card .pic { background: #e3e6ea; aspect-ratio: 16/9; overflow: hidden; }
.model-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.model-card:hover .pic img { transform: scale(1.04); }
.model-card .body { padding: 20px 22px 22px; text-align: center; }
.model-card h3 { font-size: 21px; }
.model-card p { color: var(--muted); font-size: 14.5px; margin: 6px 0 14px; }
.facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.fact { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.more { display: inline-block; margin-top: 16px; font-weight: 650; font-size: 14.5px; color: var(--brand-a); }

.files { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 18px;
  border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.badge { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 11.5px; font-weight: 800;
  letter-spacing: .04em; color: var(--tint); background: color-mix(in srgb, var(--tint) 13%, transparent); }
.file h4 { font-size: 15.5px; letter-spacing: -.005em; overflow-wrap: anywhere; }
.file p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.file .uses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.file .uses a { font-size: 12.5px; font-weight: 600; text-decoration: none; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--text); }
.file .uses a:hover { background: color-mix(in srgb, var(--brand-a) 14%, var(--surface-2)); }
.dl { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 650;
  text-decoration: none; color: #fff; background: var(--text); white-space: nowrap; }
.dl:hover { opacity: .88; }
.dl small { opacity: .7; font-weight: 600; }
:root[data-theme="dark"] .dl { color: #0a0c10; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dl { color: #0a0c10; } }

.sample-hero { padding: 80px 0 0; text-align: center; }
.sample-hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.04; font-weight: 700; margin: 16px auto 14px; }
.sample-hero p.sub { font-size: 18.5px; color: var(--muted); max-width: 60ch; margin: 0 auto 24px; }
.sample-hero .frame { max-width: 900px; margin: 48px auto 0; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery a { display: block; text-decoration: none; border-radius: 14px; overflow: hidden; background: var(--surface-solid);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.gallery a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery span { display: block; padding: 10px 12px; font-size: 13.5px; font-weight: 600; text-align: center; }
.crumb { display: inline-flex; gap: 6px; font-size: 14px; color: var(--muted); text-decoration: none; font-weight: 600; }
.crumb:hover { color: var(--text); }

/* ---------- footer ---------- */
footer { margin-top: 140px; padding: 48px 0 64px; border-top: 1px solid var(--line); text-align: center; color: var(--faint); font-size: 14px; }
footer nav { display: flex; justify-content: center; gap: 22px; margin-bottom: 14px; }
footer nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
footer nav a:hover { color: var(--text); }
footer p a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
footer p a:hover { color: var(--text); }
footer p { margin: 4px 0; }

/* ---------- lightbox ---------- */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: min(1440px, 96vw); }
dialog.lb::backdrop { background: rgba(6,8,12,.86); backdrop-filter: blur(4px); }
dialog.lb img { border-radius: 12px; max-height: 86vh; width: auto; margin: 0 auto; }
dialog.lb p { color: #e8ebef; text-align: center; margin: 12px 0 0; font-size: 15px; }

/* reveal on scroll (progressive: content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .models, .gallery { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hero { padding-top: 64px; }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .app { padding-top: 96px; }
  .nav .hide-sm { display: none; }
  .nav a, .nav button { padding: 9px 11px; }
  .file { grid-template-columns: auto minmax(0, 1fr); }
  .file .dl { grid-column: 1 / -1; justify-content: center; }
  .frame { padding: 5px; border-radius: 12px; }
}

/* ---------- live-training notice ---------- */
.notice { display: flex; gap: 14px; align-items: flex-start; text-align: left; max-width: 860px; margin: 28px auto 24px;
  padding: 16px 20px; border-radius: 16px; background: color-mix(in srgb, var(--brand-b) 9%, var(--surface-solid));
  border: 1px solid color-mix(in srgb, var(--brand-b) 30%, transparent); box-shadow: var(--shadow-sm); }
.notice-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px;
  font: 700 14px/1 "Segoe UI Variable Display", "Segoe UI", sans-serif; color: #fff;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); }
.notice strong { display: block; font-size: 15.5px; }
.notice div > span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.live { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  white-space: nowrap; color: var(--brand-b); background: color-mix(in srgb, var(--brand-b) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-b) 28%, transparent); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
@media (max-width: 640px) { .file .live { grid-column: 1 / -1; justify-content: center; } }

/* ---------- download page ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.dl-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 30px 26px 26px;
  border-radius: var(--radius); background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dl-card img { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 8px;
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--accent) 85%, transparent); }
.dl-card h3 { font-size: 24px; }
.dl-card h3 em { font-style: normal; color: var(--accent); }
.dl-card .kicker { margin: 0; }
.dl-card > p { color: var(--muted); font-size: 15px; margin: 4px 0 6px; max-width: 42ch; }
.dl-action { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 8px 0 4px; }
.dl-note { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 34ch; }
.btn.fake { font: inherit; font-weight: 650; font-size: 15px; cursor: not-allowed; border: 1px solid var(--line-strong);
  color: var(--faint); background: var(--surface-2); }
.btn.fake:hover { transform: none; }
.contact { margin: 6px 0 0 !important; font-size: 14.5px; }
.contact a { color: var(--brand-a); font-weight: 600; text-decoration: none; }
.contact a:hover { text-decoration: underline; }
@media (max-width: 760px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- terms dialog (download page) ---------- */
dialog.terms { width: min(760px, calc(100vw - 32px)); max-height: min(86vh, 900px); padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; }
dialog.terms[open] { display: flex; flex-direction: column; }
dialog.terms::backdrop { background: rgba(8, 10, 16, .55); backdrop-filter: blur(4px); }
.terms-body { overflow-y: auto; padding: 26px 30px 14px; text-align: left; overscroll-behavior: contain; }
.terms-body h2 { font-size: 17px; letter-spacing: -.01em; margin-bottom: 10px; text-align: center; }
.terms-body h3 { font-size: 12px; font-weight: 700; letter-spacing: .02em; margin: 14px 0 3px; color: var(--text); }
.terms-body p { margin: 0 0 6px; font-size: 11.5px; line-height: 1.6; color: var(--muted); text-align: justify; hyphens: auto; }
.terms-body p.lead { font-size: 12px; text-align: center; margin-bottom: 4px; }
.terms-body strong { color: var(--text); }
.terms-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
.terms-check { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; cursor: pointer; }
.terms-check input { width: 18px; height: 18px; accent-color: var(--brand-b); cursor: pointer; }
.terms-buttons { display: flex; gap: 10px; margin-left: auto; }
.terms-buttons .btn { padding: 10px 18px; font-size: 14px; }
button.btn { font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; border: 0; }
button.btn.ghost { border: 1px solid var(--line-strong); }
.btn.is-disabled { opacity: .42; pointer-events: none; filter: grayscale(.5); box-shadow: none; }
dialog.terms.read-only .terms-check, dialog.terms.read-only #terms-accept { display: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: var(--text); }
@media (max-width: 640px) { .terms-body { padding: 20px 16px 10px; } .terms-body p { text-align: left; }
  .terms-buttons { width: 100%; } .terms-buttons .btn { flex: 1; justify-content: center; } }

/* ---------- terms languages ---------- */
.terms-langs { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 12px 16px 0; }
.lang-tab { font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); cursor: pointer; }
.lang-tab:hover { color: var(--text); }
.lang-tab[aria-pressed="true"] { color: #fff; border-color: transparent; background: linear-gradient(100deg, var(--brand-a), var(--brand-b)); }
.terms-lang[hidden] { display: none; }

/* ---------- Mac availability box ---------- */
.mac-box { display: flex; gap: 16px; align-items: center; max-width: 980px; margin: 28px auto 0; padding: 20px 24px;
  border-radius: var(--radius); background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; }
.mac-icon { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px;
  color: #fff; background: linear-gradient(135deg, #3a3a3c, #1c1c1e); }
.mac-box strong { display: block; font-size: 16px; }
.mac-box > div > span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 3px; }
.mac-box a { color: var(--brand-a); font-weight: 600; text-decoration: none; }
.mac-box a:hover { text-decoration: underline; }

/* ---------- language menu ---------- */
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; font: 700 13px/1 inherit; font-family: inherit; color: var(--muted);
  padding: 10px 12px; border-radius: 999px; letter-spacing: .04em; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: " ▾"; font-size: 10px; opacity: .7; }
.langs summary:hover, .langs[open] summary { color: var(--text); background: var(--surface-2); }
.langs-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px; border-radius: 14px;
  background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; gap: 2px; }
.nav .langs-menu a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; font-weight: 600; }
.nav .langs-menu a b { width: 24px; color: var(--faint); font-size: 12px; }
.nav .langs-menu a.active b { color: var(--brand-b); }

/* ---------- root language chooser ---------- */
.root-langs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.root-langs a { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 120px; padding: 18px 20px;
  border-radius: var(--radius); background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; }
.root-langs a b { font-size: 22px; }
.root-langs a span { color: var(--muted); font-size: 14px; }
.root-langs a:hover { transform: translateY(-2px); }
.mac-box + .mac-box { margin-top: 14px; }
.full-icon { background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); }
.org-box { max-width: 640px; margin: 28px auto 0; }
.org-box .org-link { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 650; color: var(--brand-a); text-decoration: none; }
.org-box .org-link:hover { text-decoration: underline; }

/* ---- freeware licence: home box + licence page */
.licence-box { max-width: 760px; width: 100%; box-sizing: border-box; text-align: left; }
.licence-points { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.licence-text { max-width: 820px; margin: 0 auto; padding: 36px 40px; background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); font-size: 14px; line-height: 1.7; color: var(--muted); }
.licence-text h2 { font-size: 22px; margin: 0 0 12px; color: var(--text); }
.licence-text h3 { font-size: 15px; margin: 22px 0 6px; color: var(--text); }
.licence-text strong { color: var(--text); }
@media (max-width: 640px) { .licence-text { padding: 24px 18px; } }

/* ---- home hero: the Orinel picture and its text */
.hero-app { display: flex; gap: 18px; align-items: flex-start; max-width: 760px; margin: 28px auto 0; text-align: left; }
.hero-app img { flex: none; border-radius: 14px; }
.hero-app strong { font-size: 20px; }
.hero-app strong em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 15px; }
.hero-app .kicker { display: block; margin-top: 2px; color: var(--accent); }
.hero-app p { margin: 8px 0 6px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.hero-app .more { color: var(--accent); font-weight: 600; text-decoration: none; }
.hero-app .more:hover { text-decoration: underline; }
@media (max-width: 640px) { .hero-app { flex-direction: column; align-items: center; text-align: center; } }

/* ---- home: one tab per app (set up by site.js; without it every app is shown) */
.apps-bar.is-sticky { position: sticky; top: 84px; z-index: 20; }
.apps.is-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 6px; border-radius: 20px; background: var(--nav-bg); border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); }
.apps.is-tabs .app-tile { flex: 1 0 auto; flex-direction: row; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 14px;
  background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; opacity: 1; transform: none; }
.apps.is-tabs .app-tile:hover { transform: none; box-shadow: none; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.apps.is-tabs .app-tile img { width: 30px; height: 30px; border-radius: 8px; box-shadow: none; }
.apps.is-tabs .app-tile strong { font-size: 14.5px; white-space: nowrap; }
.apps.is-tabs .app-tile span { display: none; }
.apps.is-tabs .app-tile[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 14%, var(--surface-solid));
  border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.apps.is-tabs .app-tile[aria-selected="true"] strong { color: var(--accent); }
.apps.is-tabs .app-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.js .app[role="tabpanel"] { padding-top: 56px; scroll-margin-top: 160px; }
.js .app[role="tabpanel"] .tool { scroll-margin-top: 160px; }
.app[hidden] { display: none; }
@media (max-width: 640px) { .apps-bar.is-sticky { top: 76px; } .apps.is-tabs { border-radius: 16px; } .apps.is-tabs .app-tile { flex: none; } }
.apps.is-tabs::-webkit-scrollbar { display: none; }
