/* Thallo storefront — design system.
   Dark, all-bold, one accent. Layout language after the category standard:
   #141414 ground, white display type in Inter 700 with tight tracking,
   #1c1c1c cards with 1.5px #2c2c2c borders, pill buttons, big rounded
   video/demo frames.  Everything here is our own implementation. */

:root {
  color-scheme: dark;
  --bg: #141414;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.55);
  --card-bg: #1c1c1c;
  --card-border: #2c2c2c;
  --outline: #5c5c5c;
  --stroke: rgba(255, 255, 255, 0.12);
  --hover: rgba(255, 255, 255, 0.06);
  --primary-hover: #d9d9d9;
  --body-text: rgba(255, 255, 255, 0.75);
  --section-bg: #1b1b1b;
  --accent: #57c785;          /* Thallo green: the only saturated colour */
  --accent-soft: rgba(87, 199, 133, 0.16);
  --blue: #4da3ff;            /* UI blue for OS-faithful illustrations */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; line-height: 1.2; }
img { display: block; max-width: 100%; }
a { color: inherit; }

main { padding: 0 16px 160px; }

/* ----------------------------------------------------------- OS visibility */
/* data-os is set by the head script before first paint.  Unknown OS keeps
   both download CTAs and Mac-leaning wording (the safe default). */
html[data-os="mac"] .dl-windows,
html[data-os="windows"] .dl-mac { display: none; }
html:not([data-os]) .plan .dl-mac + .dl-windows { margin-top: 12px; }
html[data-os] .dl-os-label { display: none; }
html[data-os="windows"] .os-mac,
html:not([data-os="windows"]) .os-win { display: none; }

/* ------------------------------------------------------------------ reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* -------------------------------------------------------------------- hero */
.hero { display: flex; flex-direction: column; align-items: center; padding-top: 123px; }
.app-icon {
  width: 86px; height: 86px;
  border: 9.556px solid var(--stroke);
  border-radius: 20.574px;
  overflow: hidden;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }

.hero-copy {
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  width: 100%; max-width: 542px; margin-top: 30px; text-align: center;
}
.hero-copy h1 { font-size: clamp(30px, 8vw, 60px); letter-spacing: -0.04em; }
.h1-line { white-space: nowrap; }
.h1-cursor {
  display: inline-block; width: 0.56em; height: 0.84em;
  margin: 0 0.06em 0 0.16em; vertical-align: -0.12em;
  fill: #000; stroke: #fff; stroke-width: 1.3; stroke-linejoin: round;
}
@media (prefers-reduced-motion: no-preference) {
  .h1-cursor { animation: cursor-float 2.4s ease-in-out infinite; }
}
@keyframes cursor-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0.03em, -0.08em); }
}

.h1-choice {
  display: inline-grid; place-items: center;
  width: 0.78em; height: 0.78em; margin: 0 0.04em;
  border-radius: 50%;
  background: var(--accent); color: #08110c;
  vertical-align: 0.1em;
  transition: transform 0.16s ease-in, opacity 0.16s ease-in;
}
.h1-choice-letter { font-size: 0.56em; line-height: 1; letter-spacing: 0; }
.h1-choice.is-out { transform: scale(0.2); opacity: 0; }
.h1-choice.is-in { transition: transform 0.42s cubic-bezier(0.34, 1.8, 0.5, 1), opacity 0.2s ease-out; }

.lead { margin-top: -12px; font-size: clamp(18px, 4vw, 24px); letter-spacing: -0.04em; color: var(--muted); }

/* ----------------------------------------------------------------- buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 242px; height: 64px; padding: 0 32px;
  border: 0; border-radius: 300px;
  background: var(--fg); color: var(--bg);
  font-family: var(--font); font-weight: 700;
  font-size: 24px; letter-spacing: -0.04em; text-decoration: none;
  cursor: pointer;
}
.btn-primary svg { flex: none; width: 24px; height: 24px; margin-top: -3px; }
.btn-primary svg.windows-logo { width: 21px; height: 21px; margin-top: 0; }
a.btn-primary:hover { background: var(--primary-hover); }

.hero-downloads {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  width: max-content; max-width: calc(100vw - 32px);
}

.btn-outline {
  width: 100%; margin-top: 28px; padding: 18px;
  border: 1.5px solid var(--outline); border-radius: 999px;
  background: transparent; color: var(--fg);
  font-family: var(--font); font-weight: 700;
  font-size: 17px; line-height: 1.2; letter-spacing: -0.04em;
  cursor: pointer; transition: background 0.15s ease;
}
.btn-outline:hover { background: var(--hover); }
a.btn-outline { display: block; text-align: center; text-decoration: none; }
.btn-outline:disabled { color: var(--muted); cursor: default; }
.btn-outline:disabled:hover { background: none; }

/* ------------------------------------------------------------------- modes */
.modes { display: flex; flex-direction: column; gap: 112px; margin-top: 187px; }

.section-heading {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  max-width: 890px; margin: 0 auto; text-align: center;
}
.section-heading h2 { font-size: clamp(30px, 6vw, 40px); letter-spacing: -0.04em; }
.section-heading .sub { font-size: clamp(18px, 4vw, 24px); letter-spacing: -0.04em; color: var(--muted); }
.mode .section-heading { gap: 20px; }
.mode + .mode { margin-top: 88px; }

.mode-option { max-width: 1000px; margin: 48px auto 0; }
.mode-option + .mode-option { margin-top: 72px; }
.mode-option .mode-video { margin-top: 0; }

.mode-video {
  max-width: 1000px; margin: 48px auto 0;
  border: 14px solid var(--stroke); border-radius: 64px;
  overflow: hidden; background: #0a0a0b; background-clip: padding-box;
}
.mode-video .demo { aspect-ratio: 16 / 9; width: 100%; }

.mode-option-text { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; padding: 0 14px; text-align: left; }
.mode-option-text h3 { font-size: clamp(22px, 4.5vw, 26px); letter-spacing: -0.04em; }
.mode-option-text p { font-size: clamp(16px, 3.5vw, 18px); letter-spacing: -0.04em; color: var(--muted); }

.os-pills { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: middle; }
.os-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border: 1px solid var(--card-border); border-radius: 300px;
  color: var(--muted); font-size: 13px; line-height: 1.4; letter-spacing: -0.01em;
  white-space: nowrap;
}
.os-pill svg { width: 12px; height: 12px; margin-top: -1px; }
html[data-os="mac"] .os-pills,
html[data-os="windows"] .os-pills.is-mac-only { display: none; }

.call-caption { align-items: center; text-align: center; }
.call-caption p { font-size: 15px; }
.call-apps { display: flex; gap: 10px; margin: 0 0 6px; padding: 0; list-style: none; }
.call-app {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; background: #fff;
  overflow: hidden;
}
.call-app span { font-size: 19px; line-height: 1; letter-spacing: -0.02em; }
.call-app--zoom span { color: #0b5cfe; }
.call-app--meet span { color: #00ac47; }
.call-app--webex span { color: #00333d; }

.more-modes {
  padding: 112px 0;
  background: var(--section-bg);
  box-shadow: 0 0 0 100vmax var(--section-bg);
  clip-path: inset(0 -100vmax);
}
.more-modes > .section-heading { align-items: flex-start; max-width: 1000px; padding: 0 14px; text-align: left; gap: 20px; }

.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1000px; margin: 48px auto 0; }
.mode-card { display: flex; flex-direction: column; text-align: left; }
.mode-card h3 { margin-top: 20px; padding: 0 14px; font-size: 22px; letter-spacing: -0.04em; }
.mode-card p { margin-top: 8px; padding: 0 14px; font-size: 15px; letter-spacing: -0.03em; color: var(--muted); }
.mode-video--small { width: 100%; margin-top: 0; border-width: 8px; border-radius: 32px; }

/* ------------------------------------------------------- demo mock screens */
/* No product footage exists yet; these are honest CSS animations of the
   answer channels themselves — the blink of a lamp, a chip in a menu bar. */
.demo { position: relative; overflow: hidden; background: #101013; color: #e8e8ea; }

/* shared chrome: a fake window with a title strip */
.demo-window { position: absolute; inset: 7% 9%; border-radius: 14px; background: #191a1e; border: 1px solid #2c2d33; }
.demo-strip { display: flex; align-items: center; gap: 6px; height: 11%; padding: 0 12px; background: #232429; border-bottom: 1px solid #2c2d33; }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: #3a3b41; }
.demo-strip .strip-right { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.demo-mini-ic { width: 13px; height: 13px; border-radius: 4px; background: var(--accent); }

.demo-question { position: absolute; left: 7%; right: 7%; top: 20%; padding: 5% 6%; background: #1f2026; border: 1px solid #2c2d33; border-radius: 10px; }
.demo-qline { height: 9px; border-radius: 5px; background: #34353d; margin-bottom: 9px; }
.demo-qline.short { width: 62%; margin-bottom: 20px; }
.demo-opt { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: clamp(11px, 1.6vw, 15px); }
.demo-opt b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #454650; font-weight: 700; color: #b9bac2; }
.demo-opt span { flex: 1; max-width: 46%; height: 8px; border-radius: 4px; background: #34353d; }
@media (prefers-reduced-motion: no-preference) {
  .demo-opt.is-answer { animation: opt-lit 6s linear infinite; }
  .demo-mini-ic { animation: chip-pop 6s linear infinite; }
}
@keyframes opt-lit {
  0%, 40% { } /* nothing lit: the wait is the product */
  46%, 92% { filter: drop-shadow(0 0 6px var(--accent-soft)); }
}
@keyframes chip-pop {
  0%, 42% { transform: scale(1); background: #34353d; }
  46%, 92% { transform: scale(1.12); background: var(--accent); }
}

.demo-answer-chip {
  position: absolute; right: 10%; bottom: 12%;
  display: grid; place-items: center;
  width: clamp(34px, 6vw, 56px); height: clamp(34px, 6vw, 56px);
  border-radius: 50%; background: var(--accent); color: #08110c;
  font-size: clamp(16px, 3vw, 26px);
}
@media (prefers-reduced-motion: no-preference) {
  .demo-answer-chip { animation: chip-reveal 6s linear infinite; }
}
@keyframes chip-reveal {
  0%, 42% { opacity: 0; transform: scale(0.6); }
  47%, 92% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; }
}

/* Caps Lock demo: one key, its lamp blinking twice (= B) */
.demo-caps { display: grid; place-items: center; }
.keycap {
  width: clamp(150px, 26vw, 240px); padding: 10% 0 16%;
  border-radius: 16px; background: #23242a; border: 1px solid #34353d;
  box-shadow: 0 5px 0 #14151a;
  text-align: center; font-size: clamp(13px, 2vw, 18px); color: #c9cad1;
}
.led {
  display: block; width: 12px; height: 12px; margin: 0 auto 14px;
  border-radius: 50%; background: #454650;
}
.caps-caption { margin-top: 18px; font-size: clamp(12px, 1.8vw, 15px); color: #8b8c96; }
@media (prefers-reduced-motion: no-preference) {
  .demo-caps .led { animation: led-b2 6s linear infinite; }
}
@keyframes led-b2 {
  0%, 40%, 100% { background: #454650; box-shadow: none; }
  44%, 48% { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
  52%, 56% { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
}

/* remote-exam demo: call tiles + answer window chip */
.demo-call { padding: 8% 9%; }
.call-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; height: 100%; }
.call-tile { border-radius: 10px; background: #1b1c21; border: 1px solid #2a2b31; position: relative; }
.call-tile::after {
  content: ""; position: absolute; left: 50%; top: 42%; transform: translateX(-50%);
  width: 22%; padding-bottom: 22%; border-radius: 50%; background: #2c2d34;
}
.call-tile.is-self::before {
  content: ""; position: absolute; left: 50%; top: 70%; transform: translateX(-50%);
  width: 55%; height: 26%; border-radius: 40% 40% 0 0; background: #2c2d34;
}
.demo-call .demo-answer-chip { right: 12%; bottom: 14%; }

/* keyboard backlight demo */
.kbd-row { position: absolute; left: 8%; right: 8%; bottom: 34%; display: flex; gap: 1.4%; }
.kbd-key { flex: 1; height: clamp(26px, 5vw, 44px); border-radius: 7px; background: #1f2026; border: 1px solid #2c2d33; }
.kbd-key.is-lit { border-color: #34353d; }
@media (prefers-reduced-motion: no-preference) {
  .kbl .kbd-key.lit-a { animation: kbl-pulse 6s linear infinite; }
}
@keyframes kbl-pulse {
  0%, 40%, 100% { background: #1f2026; box-shadow: none; }
  44%, 50% { background: #79d7ff; box-shadow: 0 0 14px #40b6f0; }
  56%, 62% { background: #79d7ff; box-shadow: 0 0 14px #40b6f0; }
}

/* screen brightness demo */
.bright-screen { position: absolute; inset: 10% 14% 18%; border-radius: 12px; background: #e9eaee; border: 3px solid #2c2d33; }
@media (prefers-reduced-motion: no-preference) {
  .bright .bright-screen { animation: dim-pulse 6s linear infinite; }
}
@keyframes dim-pulse {
  0%, 40%, 100% { filter: brightness(1); }
  44%, 52% { filter: brightness(0.35); }
  58%, 66% { filter: brightness(0.35); }
}

/* ----------------------------------------------------------------- pricing */
.pricing { display: flex; flex-direction: column; align-items: center; gap: 56px; margin-top: 201px; }
.section-heading h2.pricing-title { font-size: clamp(36px, 8vw, 60px); white-space: nowrap; }
.title-icon {
  display: inline-block; width: 1.15em; height: 1.15em; margin: 0 0.08em;
  border: 0.128em solid var(--stroke); border-radius: 0.276em;
  overflow: hidden; vertical-align: -0.24em; transform: rotate(-6deg);
}
.title-icon img { width: 100%; height: 100%; object-fit: cover; }

.plans { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; width: 100%; max-width: 1000px; }
.plan {
  display: flex; flex-direction: column;
  flex: 1 1 280px; max-width: 400px;
  padding: 44px 32px;
  border: 1.5px solid var(--card-border); border-radius: 24px;
  background: var(--card-bg);
}
.plan h3 { font-size: 32px; letter-spacing: -0.04em; }
.plan-desc { min-height: 40px; min-height: 2lh; margin-top: 12px; font-size: 17px; letter-spacing: -0.04em; color: var(--muted); }
.plan-price { margin-top: 40px; font-size: 40px; letter-spacing: -0.04em; }
.plan-meta { margin-top: 10px; margin-right: -20px; font-size: 17px; letter-spacing: -0.04em; color: var(--muted); }
.plan-features {
  display: flex; flex-direction: column; gap: 12px;
  margin: 32px 0 36px; padding: 28px 0 0;
  border-top: 1.5px solid var(--card-border);
  list-style: none; font-size: 17px; letter-spacing: -0.04em;
}
.plan-features li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.7); margin: 0; }
.plan-features li::before {
  content: ""; flex: none; width: 16px; height: 16px; background: var(--fg);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 15.17l9.19-9.2 1.42 1.42L10 18 3.64 11.64l1.41-1.41z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 15.17l9.19-9.2 1.42 1.42L10 18 3.64 11.64l1.41-1.41z"/></svg>') center / contain no-repeat;
}
.plan .btn-outline { margin-top: auto; }

/* ---------------------------------------------------------------- notify */
.notify-block { display: none; flex-direction: column; gap: 14px; width: 100%; max-width: 560px; margin: 0 auto; }
.notify-block.is-on { display: flex; }
.notify-row { display: flex; gap: 10px; }
.notify-row input {
  flex: 1; min-width: 0; height: 48px; padding: 0 20px;
  border: 1.5px solid var(--card-border); border-radius: 300px;
  background: var(--bg); color: var(--fg);
  font: inherit; font-size: 16px; letter-spacing: -0.02em;
}
.notify-row input:focus { border-color: var(--outline); outline: none; }
.notify-row button {
  flex: none; height: 48px; padding: 0 24px;
  border: 0; border-radius: 300px;
  background: var(--fg); color: var(--bg);
  font: inherit; font-size: 16px; letter-spacing: -0.02em; cursor: pointer;
}
.notify-row button:hover { background: var(--primary-hover); }
.notify-consent { font-weight: 400; font-size: 14px; color: var(--muted); text-align: center; }
.notify-consent input { width: 16px; height: 16px; margin: 0 8px 0 0; vertical-align: -3px; accent-color: var(--fg); }
.notify-status { font-size: 14px; }
.notify-status:empty { display: none; }
.notify-status.is-error { color: #ff6b6b; }

/* --------------------------------------------------------------------- faq */
.faq { display: flex; flex-direction: column; align-items: center; gap: 56px; margin-top: 201px; }
.faq-list { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 824px; }
.faq-item { border: 1.5px solid var(--card-border); border-radius: 24px; background: var(--card-bg); transition: border-color 0.15s ease; }
.faq-item:hover, .faq-item[open] { border-color: var(--outline); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 32px; font-size: 20px; letter-spacing: -0.04em;
  list-style: none; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; width: 22px; height: 22px; color: var(--muted); transition: transform 0.2s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { margin: -8px 0 0; padding: 0 78px 28px 32px; color: var(--muted); font-weight: 400; font-size: 17px; line-height: 1.5; letter-spacing: -0.03em; }
.faq-item p a { color: var(--fg); }

/* --------------------------------------------------------------- account UI */
.account { position: absolute; top: 24px; left: 24px; z-index: 20; font-size: 14px; letter-spacing: -0.02em; }
.account [hidden] { display: none !important; }
.account button { font-family: var(--font); font-weight: 700; cursor: pointer; }
.account-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; overflow: hidden;
  border: 1.5px solid var(--card-border); border-radius: 50%;
  background: var(--card-bg); color: var(--fg);
  transition: border-color 0.15s ease;
}
.account-toggle:hover, .account-toggle[aria-expanded="true"] { border-color: var(--outline); }
.account-menu-icon { width: 18px; height: 18px; }
.account-toggle .avatar { width: 100%; height: 100%; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; width: 40px; height: 40px; overflow: hidden;
  border-radius: 50%; background: #3a3a3a; color: var(--fg); font-size: 16px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-menu {
  position: absolute; top: calc(100% + 8px); left: 0; width: 300px; padding: 8px;
  border: 1.5px solid var(--card-border); border-radius: 20px;
  background: #0b0b0b; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.account-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 14px; margin-bottom: 4px;
  border-bottom: 1.5px solid var(--card-border);
}
.account-name { flex: 1; min-width: 0; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.plan-badge {
  flex: none; padding: 4px 10px; border-radius: 999px;
  background: #3a3a3a; color: rgba(255, 255, 255, 0.75);
  font-size: 12px; letter-spacing: 0.02em;
}
.account[data-plan="pro"] .plan-badge, .account[data-plan="max"] .plan-badge { background: var(--accent-soft); color: var(--accent); }
.account-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px; border: 0; border-radius: 12px;
  background: none; color: var(--fg); font-size: 16px; text-align: left; text-decoration: none;
}
.account-item:hover { background: var(--hover); }
.account-item svg { width: 20px; height: 20px; flex: none; }
.account-subscribe { color: #f5ee6e; }
.account-logout { color: #e86a6a; }
.account-usage { font-size: 13px; color: var(--muted); padding: 4px 12px 10px; }

/* ------------------------------------------------------------------ social */
.social-links { display: flex; justify-content: center; gap: 24px; margin: 160px auto -112px; }
.social-link { display: block; width: 28px; height: 28px; opacity: 0.55; transition: opacity 0.15s ease; }
.social-link:hover { opacity: 1; }
.social-link svg { width: 100%; height: 100%; fill: var(--fg); }

.site-footer { padding: 32px 16px 48px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.site-footer a { font-weight: 400; font-size: 15px; letter-spacing: -0.02em; color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

/* -------------------------------------------------------------- dialogs */
.install, .key-dialog {
  width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  padding: 56px 48px 44px;
  border: 1.5px solid var(--card-border); border-radius: 28px;
  background: var(--bg); color: var(--fg);
  text-align: center; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.install[open], .key-dialog[open] { animation: dlg-in 0.2s ease; }
@keyframes dlg-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
}
.install::backdrop, .key-dialog::backdrop { background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px); }
.install-close {
  position: absolute; top: 20px; right: 20px;
  display: inline-flex; padding: 8px; border: 0; border-radius: 50%;
  background: none; color: var(--muted); cursor: pointer;
}
.install-close:hover { background: var(--hover); color: var(--fg); }
.install-close svg { width: 24px; height: 24px; }
.install-status {
  display: inline-flex; align-items: center; gap: 8px;
  color: #30d158; font-size: 18px; letter-spacing: -0.02em;
}
.install-status svg { width: 22px; height: 22px; }
.install h2 { margin-top: 12px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.04em; }
.install-why { max-width: 620px; margin: 14px auto 0; color: var(--muted); font-weight: 400; font-size: 16px; line-height: 1.5; letter-spacing: -0.02em; }

.install-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin: 56px 0 0; padding: 0; list-style: none; counter-reset: step;
}
.install-steps > li { position: relative; counter-increment: step; }
.install-steps > li::before {
  content: counter(step);
  position: absolute; top: -16px; left: 16px; z-index: 1;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #08110c; font-size: 17px;
}
.install-steps > li > p { margin-top: 20px; color: var(--muted); font-weight: 400; font-size: 17px; line-height: 1.45; letter-spacing: -0.03em; }
.install-steps b { color: var(--accent); font-weight: 700; }
.install-again { margin-top: 48px; color: var(--muted); font-weight: 400; font-size: 16px; }
.install-again a { color: var(--blue); }

.install-ill {
  position: relative; height: 200px; overflow: hidden;
  border: 1.5px solid var(--card-border); border-radius: 20px; background: var(--card-bg);
}
.ill-cursor { position: absolute; width: 24px; height: 24px; fill: #000; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }

.ill-dock { background: linear-gradient(160deg, #1d2b52, #0b0f24); }
.ill-dock-bar {
  position: absolute; left: 50%; bottom: 22px;
  display: flex; align-items: flex-end; gap: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-50%); width: max-content;
}
.ill-dock-bar > * { flex: none; }
.ill-app-blank { width: 52px; height: 52px; margin-bottom: 2px; border-radius: 12px; background: linear-gradient(#dfe8ee, #b9c8d2); }
.ill-divider { align-self: stretch; width: 1px; margin: 2px 0; background: rgba(255, 255, 255, 0.3); }
.ill-file-wrap { position: relative; }
.ill-file { display: block; width: auto; height: 56px; }
.ill-file-wrap .ill-cursor { right: -14px; bottom: -12px; }
.ill-tip {
  position: absolute; bottom: calc(100% + 30px); left: 50%;
  white-space: nowrap; padding: 8px 18px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.2); color: #fff; font-size: 17px;
  transform: translateX(-50%);
}
.ill-tip::after {
  content: ""; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-bottom: 0; border-top-color: rgba(255, 255, 255, 0.2);
}

.ill-drag { display: flex; align-items: center; justify-content: center; gap: 20px; }
.ill-drag > img, .ill-drag > svg.app { width: 76px; height: 76px; border-radius: 18px; }
.ill-arrow { color: var(--muted); font-size: 28px; }
.ill-folder { width: 96px; height: 76px; }

.ill-list { padding: 18px 0 0; text-align: left; }
.ill-list-head { padding: 0 20px 12px; border-bottom: 1px solid var(--card-border); font-size: 18px; }
.ill-row {
  position: relative; display: flex; align-items: center; gap: 12px;
  height: 50px; padding: 0 20px; color: var(--body-text); font-size: 16px;
}
.ill-row-icon, .ill-row img, .ill-row svg { flex: none; width: 32px; height: 32px; border-radius: 8px; }
.ill-row-icon { background: #3a3a3a; }
.ill-row.is-selected { background: var(--accent); color: #08110c; }
.ill-row .ill-cursor { right: 36px; top: 24px; }

.ill-smartscreen {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 16px 14px; border: 0;
  background: #2d64b9; color: #fff;
  font-family: "Segoe UI", system-ui, sans-serif; font-weight: 400; text-align: left;
}
.ss-title { font-size: 19px; font-weight: 300; letter-spacing: -0.01em; }
.ss-body, .ss-meta { font-size: 11px; line-height: 1.4; opacity: 0.92; }
.ss-meta span { display: inline-block; min-width: 52px; }
.ss-more {
  position: relative; align-self: flex-start;
  padding: 1px 3px; margin-left: -3px; border-radius: 3px;
  font-size: 12px; text-decoration: underline; box-shadow: 0 0 0 2px #fff;
}
.ss-more .ill-cursor { left: 70%; top: 60%; }
.ss-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; }
.ss-button { position: relative; padding: 6px 12px; background: #fff; color: #000; font-size: 11px; font-weight: 600; white-space: nowrap; }
.ss-button.is-target { box-shadow: 0 0 0 3px var(--blue); }
.ss-button.is-target .ill-cursor { right: -6px; top: 14px; }

/* ------------------------------------------------------------------ legal */
.legal { max-width: 680px; margin: 0 auto; padding: 64px 16px 120px; font-weight: 400; }
.legal-home { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--fg); text-decoration: none; }
.legal-home img { width: 32px; height: 32px; border-radius: 8px; }
.legal h1 { margin-top: 56px; font-weight: 700; font-size: clamp(32px, 6vw, 40px); letter-spacing: -0.04em; }
.legal-date { margin-top: 12px; font-size: 15px; color: var(--muted); }
.legal h2 { margin-top: 40px; font-size: 20px; letter-spacing: -0.03em; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: var(--body-text); }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--fg); font-weight: 700; }
.legal a { color: var(--fg); }

/* ---------------------------------------------------------------- activate */
.portal { max-width: 680px; margin: 0 auto; padding: 64px 16px 120px; }
.portal h1 { font-size: clamp(30px, 6vw, 40px); letter-spacing: -0.04em; }
.portal .lead { margin-top: 14px; }
.portal-card {
  margin-top: 40px; padding: 32px;
  border: 1.5px solid var(--card-border); border-radius: 24px; background: var(--card-bg);
  text-align: left;
}
.portal-card dl { display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; margin: 0; font-size: 16px; }
.portal-card dt { color: var(--muted); font-weight: 400; }
.portal-card dd { margin: 0; text-align: right; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.portal-actions .btn-outline { width: auto; margin-top: 0; padding: 14px 28px; }
.licence-key {
  margin-top: 24px; padding: 16px;
  border: 1.5px solid var(--card-border); border-radius: 14px;
  background: var(--bg); color: var(--body-text);
  font-family: ui-monospace, "SF Mono", Consolas, monospace; font-weight: 400;
  font-size: 12px; line-height: 1.5; word-break: break-all;
}
.portal-note { margin-top: 20px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ----------------------------------------------------------- mobile (<=600) */
@media (max-width: 600px) {
  .account { top: 16px; left: 16px; }
  .account-menu { width: min(300px, calc(100vw - 32px)); }
  .hero { padding-top: 94px; }
  .modes { margin-top: 120px; gap: 72px; }
  .mode + .mode { margin-top: 48px; }
  .mode-video { margin-top: 32px; border-radius: 36px; border-width: 10px; }
  .mode-option { margin-top: 32px; }
  .mode-option + .mode-option { margin-top: 48px; }
  .mode-option-text { margin-top: 16px; padding: 0 10px; }
  .more-modes { padding: 72px 0; }
  .more-modes > .section-heading { padding: 0 10px; }
  .mode-grid { grid-template-columns: 1fr; gap: 48px; margin-top: 32px; }
  .mode-card h3, .mode-card p { padding: 0 10px; }
  .mode-video--small { border-radius: 28px; }
  .pricing, .faq { margin-top: 120px; }
  .plan { padding: 36px 28px; }
  .plan-meta { margin-right: 0; }
  .faq-item summary { padding: 22px 24px; font-size: 17px; }
  .faq-item p { padding: 0 24px 22px; font-size: 16px; }
  .install-steps { grid-template-columns: 1fr; }
  .install-ill { height: 180px; }
  .install-again { margin-top: 36px; }
}

@media (max-width: 760px) {
  .install, .key-dialog { padding: 48px 20px 32px; }
  .install-steps { gap: 36px; margin-top: 40px; }
}
@media (min-width: 920px) {
  .plan-desc { min-height: 3lh; }
}
