/* TapTask — taptask.ru. Brand palette from the app (Theme.swift / Brand.swift). */
:root {
  --night: #070D24;
  --navy: #0B1638;
  --indigo: #23338A;
  --teal: #1C6E8C;
  --paper: #F4F5F9;
  --gold: #FFC94D;
  --amber: #FF9A3C;
  --ink: #141A2E;
  --muted: #5E6578;
  --line: #E2E5EC;
  --card: #FFFFFF;
  --amber-text: #B85A0A;
  --on-dark: rgba(255,255,255,.72);
  --display: "Unbounded", system-ui, sans-serif;
  --text: "Onest", system-ui, sans-serif;
  --radius: 14px;
  --page: min(1180px, 100vw - 48px);
  /* Motion: strong custom curves, short UI durations */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --press: 140ms;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; interpolate-size: allow-keywords; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--text);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { width: var(--page); margin-inline: auto; }
main { overflow-x: clip; }
kbd { font-family: var(--text); }

/* ---------- Navigation: light glass by default, dark over the hero ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px/1 var(--display); letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.brand b { font-weight: 600; color: var(--amber-text); transition: color 200ms ease; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color 150ms ease; }
.lang { font-size: 13.5px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; transition: color 150ms ease, border-color 150ms ease; }
.nav .brand + .lang { margin-left: auto; }
.nav.on-dark { background: color-mix(in srgb, var(--night) 70%, transparent); border-color: rgba(255,255,255,.08); color: #fff; }
.nav.on-dark .brand b { color: var(--gold); }
.nav.on-dark nav a, .nav.on-dark .lang { color: var(--on-dark); }
.nav.on-dark .lang { border-color: rgba(255,255,255,.16); }
@media (hover: hover) and (pointer: fine) {
  .nav nav a:hover, .lang:hover { color: var(--ink); }
  .nav.on-dark nav a:hover, .nav.on-dark .lang:hover { color: #fff; }
}

/* ---------- Buttons: instant press feedback ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; font: 600 16px/1 var(--text); border-radius: 12px; padding: 16px 24px; transition: transform var(--press) var(--ease-out), box-shadow 200ms ease, background-color 200ms ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-sm { padding: 10px 15px; font-size: 14px; border-radius: 10px; }
.btn-primary { color: var(--navy); background: linear-gradient(135deg, var(--gold), var(--amber)); box-shadow: 0 8px 24px -10px rgba(255,154,60,.75), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-glass { color: #fff; background-color: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.btn-quiet { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.btn[disabled] { opacity: .6; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: 0 14px 32px -10px rgba(255,154,60,.9), inset 0 1px 0 rgba(255,255,255,.45); }
  .btn-glass:hover { background-color: rgba(255,255,255,.14); }
}
.btn-label { display: inline-block; transition: filter 200ms ease, opacity 200ms ease, transform 200ms var(--ease-out); }
.btn-label.swap { filter: blur(3px); opacity: 0; transform: scale(.96); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; padding: 64px 0 0; background:
  radial-gradient(50% 40% at 88% 8%, rgba(255,154,60,.16), transparent 70%),
  radial-gradient(60% 50% at 0% 25%, rgba(43,60,153,.55), transparent 70%),
  linear-gradient(180deg, var(--night) 0%, var(--navy) 64%, var(--paper) 64%); }
.hero > .wrap:first-child { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; align-items: end; padding-bottom: 52px; }
.hero-title { font: 700 clamp(34px, 4.4vw, 64px)/1.04 var(--display); letter-spacing: -.045em; margin: 0; }
.hero-title .ln { display: block; white-space: nowrap; }
.hero-title .done { color: transparent; background: linear-gradient(100deg, var(--gold), var(--amber)); -webkit-background-clip: text; background-clip: text; }
.hero .lead { font-size: 17.5px; line-height: 1.55; color: var(--on-dark); margin: 0 0 26px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; margin: 0; padding: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; color: var(--muted); font-size: 15px; }
.facts li { display: flex; align-items: center; gap: 9px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

/* One orchestrated entrance: lines rise out of a slight blur, then the desk lifts. Plays once. */
.js .hero-title .ln, .js .hero-side, .js .desk { opacity: 0; }
.js.ready .hero-title .ln { animation: rise 700ms var(--ease-out) both; }
.js.ready .hero-title .ln:nth-child(2) { animation-delay: 90ms; }
.js.ready .hero-title .ln:nth-child(3) { animation-delay: 180ms; }
.js.ready .hero-side { animation: rise 700ms var(--ease-out) 300ms both; }
.js.ready .desk { animation: lift 900ms var(--ease-out) 380ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lift { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- The desk: a Mac desktop with the live demo ---------- */
.desk { position: relative; aspect-ratio: 16 / 8.6; border-radius: 20px; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none;
  background:
    radial-gradient(70% 90% at 15% 0%, #3a4bb0 0%, transparent 60%),
    radial-gradient(60% 80% at 100% 100%, #1d6c8e 0%, transparent 60%),
    radial-gradient(40% 50% at 70% 40%, rgba(255,154,60,.2), transparent 70%), #101b48;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 50px 100px -40px rgba(7,13,36,.85), 0 30px 60px -30px rgba(7,13,36,.6); }
.desk-bar { position: absolute; inset: 0 0 auto; height: 28px; display: flex; align-items: center; gap: 18px; padding: 0 16px; font: 500 12.5px var(--text); color: rgba(255,255,255,.85); background: rgba(10,16,40,.35); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.desk-bar b { font-weight: 600; }
.desk-bar .apple { width: 12px; height: 14px; border-radius: 50% 50% 45% 45%; background: rgba(255,255,255,.85); }
.desk-bar .clock { margin-left: auto; }
.window { position: absolute; left: 6%; top: 14%; width: 50%; height: 66%; border-radius: 12px; background: rgba(250,251,253,.97); box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 30px 60px -25px rgba(0,0,0,.65); }
.window .bar { height: 34px; display: flex; gap: 8px; align-items: center; padding: 0 14px; border-bottom: 1px solid #eceef3; font: 600 12.5px var(--text); color: #6b7180; }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window .bar i:nth-child(2) { background: #febc2e; } .window .bar i:nth-child(3) { background: #28c840; }
.window .bar span { margin-left: 10px; }
.files { position: absolute; inset: 34px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6% 8%; padding: 7% 8%; align-content: start; }
.file { text-align: center; font: 500 12.5px/1.3 var(--text); color: var(--ink); cursor: grab; touch-action: none; min-width: 0; }
.file .thumb { aspect-ratio: 4/3; border-radius: 8px; background: linear-gradient(135deg, #ffe0a8, #f8a65c 55%, #6c8fd6); box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); position: relative; overflow: hidden; display: grid; place-items: center; }
.file.photo .thumb::after, .file.img .thumb::after { content: ""; position: absolute; inset: 22% 30% 18%; border-radius: 50% 50% 46% 46%; background: #26365f; opacity: .9; }
.file.doc .thumb { width: 60%; margin: 0 auto; aspect-ratio: 3/4; background: #fff; box-shadow: 0 0 0 1px #e2e5ec, 0 6px 14px -6px rgba(0,0,0,.3); }
.file.doc .thumb em { font: 700 10px var(--display); font-style: normal; color: #fff; background: #E5484D; padding: 3px 5px; border-radius: 4px; }
.file.doc.word .thumb em { background: #2B6CE4; }
.file.png .thumb { background-image: linear-gradient(45deg, #e8eaf0 25%, transparent 25%, transparent 75%, #e8eaf0 75%), linear-gradient(45deg, #e8eaf0 25%, #fff 25%, #fff 75%, #e8eaf0 75%); background-size: 12px 12px; background-position: 0 0, 6px 6px; }
.file .name { margin-top: 7px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .size { color: #8a8f9c; font-size: 11px; }
.file.ghost { position: absolute; pointer-events: none; z-index: 5; width: 8.5%; opacity: .78; transform: translate(-50%, -50%) rotate(-4deg); }
.file.ghost .size, .file.ghost .name { display: none; }
.file.new { animation: appear 500ms var(--ease-out) both; }
.file.new .thumb { outline: 2px solid var(--amber); outline-offset: 3px; }
@keyframes appear { from { opacity: 0; transform: translateY(6px) scale(.92); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* Ring host at the cursor: the app's ring (assets/ring.js) scaled as one piece */
.ring-host { position: absolute; z-index: 4; width: 544px; height: 544px; transform: translate(-50%, -50%) scale(var(--k, .8)); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 120ms ease, visibility 0s 120ms; }
.ring-host.open { opacity: 1; visibility: visible; transition: none; }
.ring-host.open .ttring { animation: tt-pop 170ms var(--ease-out); }
@keyframes tt-pop { from { opacity: 0; transform: scale(.96); } }

/* Real keycaps */
.keys { position: absolute; left: 6%; bottom: 7%; display: flex; gap: 10px; }
.key { min-width: 74px; height: 52px; padding: 8px 10px; border-radius: 10px; display: flex; flex-direction: column; justify-content: space-between; font: 500 11px/1 var(--text); color: rgba(255,255,255,.75); background: linear-gradient(180deg, #26305a, #1a2349); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 4px 0 #0c1330, 0 6px 12px rgba(0,0,0,.35); transition: transform 90ms var(--ease-out), box-shadow 90ms var(--ease-out), color 120ms ease; cursor: pointer; }
.key small { font-size: 14px; align-self: flex-end; }
.key.wide { min-width: 108px; }
.key.lit { transform: translateY(3px); color: var(--navy); background: linear-gradient(180deg, var(--gold), var(--amber)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 1px 0 #a65a12, 0 0 26px rgba(255,154,60,.6); }
.cursor { position: absolute; z-index: 6; width: 26px; height: 26px; pointer-events: none; transform: translate(-3px, -2px); filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); opacity: 0; transition: opacity 200ms ease; }
/* Live readout of what the demo is doing */
.hud { position: absolute; right: 4.5%; top: 14%; width: 31%; z-index: 3; padding: 16px 18px 14px; border-radius: 16px; color: #fff; background: rgba(9,15,40,.42); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 20px 40px -24px rgba(0,0,0,.7); font-size: 13.5px; }
.hud-row { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 10px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.hud-row span { color: rgba(255,255,255,.5); }
.hud-row b, .hud-status b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 160ms ease, filter 160ms ease; }
.hud .swap { opacity: 0; filter: blur(3px); }
.hud-row b.empty { color: rgba(255,255,255,.35); font-weight: 500; }
.hud-status { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.hud-status i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); box-shadow: 0 0 0 4px rgba(255,255,255,.08); transition: background-color 200ms ease, box-shadow 200ms ease; }
.hud[data-state="holding"] .hud-status i, .hud[data-state="ring"] .hud-status i { background: var(--gold); box-shadow: 0 0 0 4px rgba(255,201,77,.2); }
.hud[data-state="target"] .hud-status i, .hud[data-state="running"] .hud-status i { background: var(--amber); box-shadow: 0 0 0 4px rgba(255,154,60,.25); animation: hud-pulse 1s ease infinite; }
.hud[data-state="done"] .hud-status i { background: #34C759; box-shadow: 0 0 0 4px rgba(52,199,89,.22); }
@keyframes hud-pulse { 50% { box-shadow: 0 0 0 7px rgba(255,154,60,.08); } }
.hud-tip { margin: 10px 0 0; font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.55); }
.hud-tip kbd { font: 600 11.5px var(--text); color: #fff; padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,.12); }
/* ---------- Sections ---------- */
section { padding: 112px 0; }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec-head h2 { font: 700 clamp(30px, 3.8vw, 50px)/1.08 var(--display); letter-spacing: -.035em; margin: 0 0 16px; color: var(--navy); }
.sec-head p { font-size: 19px; color: var(--muted); margin: 0; }

/* Vignettes: small looping scenes that only play while on screen */
.vignette { position: relative; height: 160px; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #eef0f6, #e4e7f0); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 22px; }
.vignette * { animation-play-state: paused !important; }
.in-view .vignette * { animation-play-state: running !important; }
.mini-file { position: absolute; width: 58px; aspect-ratio: 4/3; border-radius: 7px; background: linear-gradient(135deg, #ffe0a8, #f8a65c 55%, #6c8fd6); box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); }
.mini-cursor { position: absolute; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11-6.5 1.2L16 21l-3 1.3-3.4-6.9L4 20z' fill='white' stroke='%230B1638' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.v-grab .mini-file { left: 20%; top: 32%; animation: grab-file 3.2s var(--ease-in-out) infinite; }
.v-grab .mini-cursor { left: 34%; top: 46%; animation: grab-cursor 3.2s var(--ease-in-out) infinite; }
@keyframes grab-cursor { 0% { transform: translate(120px, 50px); } 30%, 40% { transform: none; } 78%, 100% { transform: translate(110px, -10px); } }
@keyframes grab-file { 0%, 38% { transform: none; } 78%, 100% { transform: translate(110px, -10px) rotate(-5deg); } }
.cap { position: absolute; display: grid; place-items: center; min-width: 84px; height: 44px; padding: 0 12px; border-radius: 9px; font: 600 13px var(--text); color: var(--ink); background: linear-gradient(180deg, #fff, #f1f2f6); box-shadow: inset 0 0 0 1px #dfe2ea, 0 4px 0 #cfd3dd, 0 6px 10px rgba(20,26,46,.12); }
.v-tap .cap { left: 12%; top: calc(50% - 22px); animation: cap-press 2.6s ease infinite; }
@keyframes cap-press { 0%, 18%, 30%, 100% { transform: none; } 22%, 26% { transform: translateY(3px); box-shadow: inset 0 0 0 1px #dfe2ea, 0 1px 0 #cfd3dd, 0 2px 4px rgba(20,26,46,.12); } }
.mini-ring { position: absolute; width: 100px; height: 100px; }
.mini-ring i { --seg: #1a2554; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from calc(var(--k) * 60deg + 3deg), var(--seg) 0 54deg, transparent 54deg); -webkit-mask: radial-gradient(circle, transparent 33%, #000 34%); mask: radial-gradient(circle, transparent 33%, #000 34%); }
.mini-ring i:nth-child(1) { --k: 0; } .mini-ring i:nth-child(2) { --k: 1; } .mini-ring i:nth-child(3) { --k: 2; }
.mini-ring i:nth-child(4) { --k: 3; } .mini-ring i:nth-child(5) { --k: 4; } .mini-ring i:nth-child(6) { --k: 5; }
.v-tap .mini-ring { right: 13%; top: calc(50% - 50px); }
.v-tap .mini-ring i { animation: seg-in 2.6s var(--ease-out) infinite; animation-delay: calc(var(--k) * 30ms); }
.v-tap .mini-ring i:nth-child(2) { --seg: #FF9A3C; }
@keyframes seg-in { 0%, 24% { opacity: 0; transform: scale(.8); } 36%, 84% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(.92); } }
.v-drop .mini-file { top: 30%; }
.v-drop .mini-file span { position: absolute; top: calc(100% + 8px); left: 0; right: 0; text-align: center; font: 600 11.5px var(--text); color: var(--muted); }
.v-drop .a { left: 24%; }
.v-drop .b { left: 58%; outline: 2px solid var(--amber); outline-offset: 3px; background-image: linear-gradient(45deg, #e8eaf0 25%, transparent 25%, transparent 75%, #e8eaf0 75%), linear-gradient(45deg, #e8eaf0 25%, #fff 25%, #fff 75%, #e8eaf0 75%); background-size: 10px 10px; background-position: 0 0, 5px 5px; animation: appear-loop 2.8s var(--ease-out) infinite; }
@keyframes appear-loop { 0%, 20% { opacity: 0; transform: translateY(6px) scale(.9); filter: blur(4px); } 36%, 86% { opacity: 1; transform: none; filter: none; } 100% { opacity: 0; } }

/* How it works: a real sequence, so it's numbered */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; }
.steps h3 { font: 600 22px/1.25 var(--display); letter-spacing: -.02em; margin: 0 0 10px; display: flex; gap: 12px; align-items: baseline; }
.steps h3::before { content: counter(s); font: 700 14px var(--display); color: var(--amber-text); }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Three rings ---------- */
.rings-sec { padding: 0; }
.rings { background: radial-gradient(70% 80% at 100% 50%, rgba(43,60,153,.6), transparent 70%), var(--night); color: #fff; border-radius: 32px; padding: 80px 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.rings .sec-head { margin-bottom: 0; }
.rings h2 { color: #fff; }
.rings .sec-head p { color: var(--on-dark); }
.file-pick { display: inline-flex; gap: 4px; padding: 4px; margin: 30px 0 18px; border-radius: 12px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.file-pick button { font: 600 14px var(--text); color: var(--on-dark); background: none; border: 0; border-radius: 9px; padding: 9px 14px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background-color 200ms ease, color 200ms ease, transform var(--press) var(--ease-out); }
.file-pick button:active { transform: scale(.97); }
.file-pick button[aria-pressed="true"] { color: var(--navy); background: #fff; }
.file-pick i { width: 14px; height: 11px; border-radius: 3px; background: linear-gradient(135deg, #ffe0a8, #f8a65c 55%, #6c8fd6); }
.file-pick button + button i { width: 10px; height: 13px; background: linear-gradient(180deg, #fff 62%, #E5484D 62%); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.ring-desc { color: var(--on-dark); min-height: 5.2em; margin: 0; max-width: 32em; transition: opacity 180ms ease, filter 180ms ease; }
.ring-desc.swap { opacity: 0; filter: blur(3px); }
.ring-keys { margin: 18px 0 0; font-size: 14px; color: rgba(255,255,255,.55); }
.ring-keys kbd { font: 600 13px var(--text); color: #fff; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.12); }
.big-ring { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; justify-self: center; }
.big-ring .ring-host { left: 50%; top: 50%; opacity: 1; visibility: visible; pointer-events: auto; }
.big-ring .ttring { cursor: default; }

/* ---------- The app's ring (assets/ring.js): glass, radii 66/158, arc 172–250 ---------- */
.ttring { position: absolute; inset: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Onest", system-ui, sans-serif; color: #1d1d1f; -webkit-font-smoothing: antialiased; }
.tt-disc { position: absolute; left: 106px; top: 106px; width: 332px; height: 332px; border-radius: 50%; background: rgba(244,245,249,.66); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); box-shadow: 0 10px 24px rgba(0,0,0,.35), inset 0 0 0 .5px rgba(255,255,255,.6); }
.tt-svg { position: absolute; inset: 0; overflow: visible; }
.tt-seg { fill: rgba(0,0,0,.07); stroke: rgba(0,0,0,.08); stroke-width: 1; transition: fill 180ms ease; }
.ttring[data-kind="convert"] .lifted { fill: url(#tt-convert); }
.ttring[data-kind="tools"] .lifted { fill: url(#tt-tools); }
.ttring[data-kind="actions"] .lifted { fill: url(#tt-actions); }
.tt-child { fill: color-mix(in srgb, var(--accent) 12%, rgba(250,250,252,.94)); stroke: color-mix(in srgb, var(--accent) 35%, transparent); stroke-width: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,.12)); animation: tt-arc 220ms var(--ease-out) both; transform-origin: 0 0; }
@keyframes tt-arc { from { opacity: 0; transform: scale(.85); } }
.tt-labels, .tt-arc-labels { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.tt-lbl { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; color: #1d1d1f; transition: color 150ms ease; }
.tt-lbl b { font-size: 11px; font-weight: 600; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-lbl i { font: 700 9px/1 ui-monospace, "SF Mono", Menlo, monospace; font-style: normal; opacity: .5; }
.tt-lbl.lifted { color: #fff; }
.tt-clbl { gap: 2px; animation: tt-fade 220ms ease both; } .tt-clbl b { font-size: 10px; } .tt-clbl i { font-size: 8px; }
.ttring.swapped .tt-lbl:not(.tt-clbl) { animation: tt-fade 200ms ease both; animation-delay: calc(var(--i) * 12ms); }
@keyframes tt-fade { from { opacity: 0; } }
.tt-hub { position: absolute; left: 210px; top: 210px; width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; background: rgba(250,250,252,.84); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.06); }
.tt-hub-in { width: 104px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.tt-hub-in > * { animation: tt-fade 150ms ease both; }
.tt-head { font-size: 13px; font-weight: 700; line-height: 1.15; color: var(--accent); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tt-sub, .tt-msg { font-size: 10px; line-height: 1.25; color: rgba(0,0,0,.5); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.tt-msg { color: #1d1d1f; }
.tt-rel { font-size: 9px; font-weight: 700; opacity: .6; }
.tt-cap1 { font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tt-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0,0,0,.12); border-top-color: rgba(0,0,0,.55); animation: tt-spin 700ms linear infinite; }
@keyframes tt-spin { to { transform: rotate(360deg); } }
.tt-ok { width: 24px; height: 24px; border-radius: 50%; background: #34C759 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center/15px no-repeat; animation: tt-check 260ms var(--ease-out) both !important; }
@keyframes tt-check { from { opacity: 0; transform: scale(.8); } }
.tt-switch { position: absolute; left: 50%; top: 454px; translate: -50% 0; display: flex; gap: 6px; white-space: nowrap; }
.tt-cap { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border: 0; border-radius: 99px; font: 500 11px/1.1 -apple-system, BlinkMacSystemFont, "Onest", system-ui, sans-serif; color: #1d1d1f; background: rgba(250,250,252,.84); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); cursor: pointer; transition: color 200ms ease, transform var(--press) var(--ease-out); position: relative; isolation: isolate; }
.tt-cap::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(var(--a0), var(--a1)); opacity: 0; transition: opacity 220ms ease; }
.tt-cap.on { color: #fff; } .tt-cap.on::before { opacity: 1; }
.tt-cap:active { transform: scale(.96); }
.tt-cap span { font-weight: 700; }
.tt-page { padding: 6px 8px; border-radius: 99px; font: 700 10px/1.1 ui-monospace, "SF Mono", Menlo, monospace; color: #1d1d1f; background: rgba(250,250,252,.84); }

/* ---------- Features ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile { background: var(--card); border-radius: 22px; padding: 20px 22px 26px; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(20,26,46,.04); }
.tile h3 { font: 600 20px/1.3 var(--display); letter-spacing: -.02em; margin: 0 0 8px; color: var(--navy); }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }
.tile kbd { font: 600 14px var(--text); color: var(--ink); background: var(--paper); border-radius: 6px; padding: 1px 7px; box-shadow: inset 0 0 0 1px var(--line), 0 2px 0 var(--line); }
.t-presets { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; }
.t-nodrag, .t-shortcuts { grid-column: span 2; }
.t-shelf, .t-theme { grid-column: span 3; }

/* Before/after: drag the handle; the "after" shot is clipped */
.compare { position: relative; flex: 1; min-height: 340px; border-radius: 16px; overflow: hidden; margin-bottom: 22px; cursor: ew-resize; touch-action: pan-y; --pos: 50%; }
.compare .shot { position: absolute; inset: 0; background: url(landscape.svg) center/cover no-repeat; }
.compare .before { filter: saturate(.55) brightness(.88) contrast(.92) hue-rotate(-6deg); }
.compare .after { filter: saturate(1.35) sepia(.3) brightness(1.05) contrast(1.08); clip-path: inset(0 0 0 var(--pos)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; outline: none; }
.compare .handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.3); }
.compare .handle span { position: absolute; top: 50%; left: 0; width: 42px; height: 42px; translate: -50% -50%; border-radius: 50%; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.3); transition: scale var(--press) var(--ease-out); }
.compare .handle span::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 15px var(--text); color: var(--navy); }
.compare .handle:focus-visible span { box-shadow: 0 0 0 3px var(--amber), 0 6px 16px rgba(0,0,0,.3); }
.compare.dragging .handle span { scale: .92; }
.compare .tag { position: absolute; top: 14px; font: 600 12.5px var(--text); color: #fff; padding: 5px 10px; border-radius: 99px; background: rgba(7,13,36,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.compare .tag.l { left: 14px; } .compare .tag.r { right: 14px; }

.v-double .sel { position: absolute; left: 12%; top: calc(50% - 23px); display: flex; gap: 8px; }
.v-double .sel i { width: 34px; height: 46px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.v-double .sel i:nth-child(-n+2) { box-shadow: 0 0 0 2px #4C7BFF; background: #eaf0ff; }
.v-double .cap { min-width: 50px; top: calc(50% - 22px); right: 12%; animation: double-tap 2.4s ease infinite; }
.v-double .cap.second { display: none; }
@keyframes double-tap { 0%, 12%, 20%, 28%, 100% { transform: none; } 15%, 24% { transform: translateY(3px); box-shadow: inset 0 0 0 1px #dfe2ea, 0 1px 0 #cfd3dd; } }
.v-chain { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 18px; }
.v-chain .blk { font: 600 13px var(--text); color: #fff; padding: 9px 12px; border-radius: 9px; background: linear-gradient(135deg, #5b6cff, #8e5cf7); box-shadow: 0 6px 12px -8px rgba(80,60,200,.7); animation: chain 3.6s var(--ease-out) infinite; }
.v-chain .blk:nth-child(2) { background: linear-gradient(135deg, #ff9a3c, #ff6b5b); animation-delay: 150ms; }
.v-chain .blk:nth-child(3) { background: linear-gradient(135deg, #1c9ab8, #2fbf77); animation-delay: 300ms; }
@keyframes chain { 0%, 6% { opacity: 0; transform: translateY(6px); } 16%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.v-shelf { background: linear-gradient(135deg, #3a4bb0, #1d6c8e); }
.v-shelf .glass { position: absolute; left: 50%; top: 50%; width: 62%; height: 64%; translate: -50% -50%; border-radius: 16px; background: rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; gap: 12px; }
.v-shelf .glass i { width: 40px; height: 48px; border-radius: 6px; background: #fff; box-shadow: 0 8px 14px -8px rgba(0,0,0,.5); animation: shelf-in 3.4s var(--ease-out) infinite; }
.v-shelf .glass i:nth-child(1) { background: linear-gradient(135deg, #ffe0a8, #f8a65c 55%, #6c8fd6); }
.v-shelf .glass i:nth-child(2) { animation-delay: 160ms; }
.v-shelf .glass i:nth-child(3) { animation-delay: 320ms; background: linear-gradient(180deg, #fff 70%, #E5484D 70%); }
@keyframes shelf-in { 0%, 8% { opacity: 0; transform: translateY(-30px) rotate(-8deg); } 22%, 84% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(8px); } }
.v-theme { display: block; width: 100%; border: 0; padding: 0; cursor: pointer; font: inherit; transition: background-color 300ms ease; background: #eef0f6; }
.v-theme .mini-ring { left: calc(50% - 50px); top: calc(50% - 50px); filter: drop-shadow(0 6px 12px rgba(20,26,46,.18)); transition: transform var(--press) var(--ease-out); }
.v-theme .mini-ring i { --seg: #ffffff; transition: --seg 300ms ease; }
.v-theme .sun { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, var(--gold) 0 38%, transparent 40%); transition: transform 400ms var(--ease-out), background 300ms ease; }
.v-theme.dark { background-color: #0c1430; }
.v-theme.dark .mini-ring i { --seg: #24305a; }
.v-theme.dark .sun { transform: rotate(-40deg); background: radial-gradient(circle at 64% 36%, #0c1430 0 30%, transparent 31%), radial-gradient(circle, #e9ecf5 0 38%, transparent 40%); }
.v-theme .try { position: absolute; left: 14px; bottom: 12px; font: 600 12px var(--text); color: var(--muted); transition: color 300ms ease; }
.v-theme.dark .try { color: rgba(255,255,255,.6); }
.v-theme:active .mini-ring { transform: scale(.96); }
@property --seg { syntax: "<color>"; inherits: true; initial-value: #1a2554; }

/* ---------- Privacy ---------- */
.privacy-band { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.privacy-band h2 { font: 700 clamp(36px, 5vw, 68px)/1.02 var(--display); letter-spacing: -.045em; margin: 0; color: var(--navy); }
.privacy-band ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 24px; }
.privacy-band li { padding-left: 22px; border-left: 2px solid var(--amber); color: var(--muted); }
.privacy-band li strong { display: block; color: var(--ink); font-weight: 600; font-size: 18px; margin-bottom: 2px; }

/* ---------- Formats as file badges ---------- */
.formats-sec { padding-top: 0; }
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 32px; }
.fgroup h3 { font: 600 16px var(--text); margin: 0 0 12px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.fgroup h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.fgroup p { margin: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.fgroup b { font: 600 12.5px/1 var(--text); color: color-mix(in srgb, var(--c) 70%, #141A2E); background: color-mix(in srgb, var(--c) 11%, white); padding: 7px 9px; border-radius: 7px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, white); }

/* ---------- FAQ: smooth open ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font: 600 18px/1.4 var(--text); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px; background: linear-gradient(var(--amber-text), var(--amber-text)) center/14px 2px no-repeat, linear-gradient(var(--amber-text), var(--amber-text)) center/2px 14px no-repeat; transition: transform 250ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 300ms var(--ease-out), content-visibility 300ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq .ans p { margin: 12px 0 0; color: var(--muted); max-width: 46em; }

/* ---------- Waitlist ---------- */
.cta { position: relative; overflow: hidden; background: radial-gradient(60% 90% at 100% 100%, rgba(28,110,140,.9), transparent 70%), radial-gradient(50% 70% at 0% 0%, rgba(43,60,153,.8), transparent 70%), var(--night); color: #fff; border-radius: 32px; padding: 80px 72px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; }
.cta img { width: 168px; height: 168px; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); }
.cta h2 { font: 700 clamp(28px, 3.6vw, 46px)/1.08 var(--display); letter-spacing: -.035em; margin: 0 0 14px; }
.cta p { color: var(--on-dark); margin: 0 0 26px; max-width: 34em; }
.form { display: flex; flex-wrap: wrap; gap: 10px; }
.form input[type=email] { flex: 1 1 260px; font: 400 16px var(--text); padding: 15px 16px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); background: rgba(255,255,255,.07); color: #fff; transition: box-shadow 150ms ease, background-color 150ms ease; }
.form input[type=email]:focus { outline: none; box-shadow: inset 0 0 0 2px var(--amber); background: rgba(255,255,255,.1); }
.form input::placeholder { color: rgba(255,255,255,.5); }
.form label.agree { flex-basis: 100%; display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: rgba(255,255,255,.66); }
.form label.agree a { color: #fff; }
.form .status { flex-basis: 100%; font-size: 15px; min-height: 1.4em; margin: 0; }

/* ---------- Footer ---------- */
footer { padding: 48px 0 64px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
footer a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { footer a:hover { color: var(--ink); } }

/* ---------- Legal pages ---------- */
.doc { max-width: 760px; padding: 56px 0 80px; }
.doc h1 { font: 700 clamp(30px, 4vw, 44px)/1.12 var(--display); letter-spacing: -.03em; color: var(--navy); margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 36px; }
.doc h2 { font: 600 21px/1.3 var(--display); letter-spacing: -.015em; margin: 40px 0 10px; color: var(--navy); }
.doc p, .doc li { color: #3b4256; }
.doc ul, .doc ol { padding-left: 22px; }
.doc .callout { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }

/* ---------- Cookie banner ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 20px; margin: 0 auto; z-index: 50; width: min(680px, calc(100vw - 32px)); background: var(--card); border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 20px 50px -20px rgba(11,22,56,.4); padding: 18px 20px; display: flex; gap: 16px; align-items: center; font-size: 14.5px; transition: opacity 250ms ease, transform 400ms var(--ease-out); }
@starting-style { .consent { opacity: 0; transform: translateY(16px); } }
.consent p { margin: 0; color: var(--muted); }
.consent .btns { display: flex; gap: 8px; flex-shrink: 0; }
.consent .btn { padding: 10px 14px; font-size: 14px; }
.consent[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero > .wrap:first-child, .rings, .privacy-band, .cta { grid-template-columns: 1fr; }
  .hero > .wrap:first-child { gap: 24px; }
  .hero { background: radial-gradient(70% 40% at 0% 20%, rgba(43,60,153,.55), transparent 70%), linear-gradient(180deg, var(--night) 0%, var(--navy) 72%, var(--paper) 72%); }
  .window { width: 72%; height: 58%; top: 12%; }
  .ring { width: 52%; }
  .file.ghost { width: 14%; }
  .desk { aspect-ratio: 3 / 3.9; }
  .window { top: 10%; height: 46%; }
  .keys { bottom: auto; top: 59%; }
  .hud { left: 5%; right: 5%; top: auto; bottom: 4%; width: auto; padding: 10px 14px; font-size: 12.5px; }
  .hud-row:nth-child(1), .hud-row:nth-child(2), .hud-tip { display: none; }
  .hud-status { margin-top: 6px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .bento { grid-template-columns: 1fr; }
  .bento > .tile { grid-column: auto; grid-row: auto; }
  .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rings, .cta { padding: 52px 28px; border-radius: 24px; }
  .nav nav { display: none; }
  .nav .lang { margin-left: auto; }
  .consent { flex-direction: column; align-items: stretch; }
  .toast { right: 4%; bottom: 4%; }
}
@media (max-width: 560px) {
  :root { --page: calc(100vw - 32px); }
  section { padding: 72px 0; }
  .nav .btn-sm { display: none; }
  .hero { padding-top: 40px; }
  .hero-title { font-size: clamp(26px, 8.2vw, 44px); }
  .hero .actions .btn { flex: 1 1 100%; }
  .desk { aspect-ratio: 3 / 4.2; border-radius: 16px; }
  .desk-bar span:not(.clock):not(.apple) { display: none; }
  .window { left: 5%; width: 90%; }
  .ring { width: 70%; }
  .keys { gap: 6px; }
  .key { min-width: 60px; height: 46px; } .key.wide { min-width: 80px; }
  .toast { display: none; }
  .formats { grid-template-columns: 1fr; }
  .compare { min-height: 240px; }
  .tabs-base, .tabs-active { gap: 0; }
  .ring-tab { padding: 10px 9px; font-size: 13.5px; gap: 6px; }
  .cta img { width: 112px; height: 112px; }
}

/* Reduced motion: keep fades that explain, drop movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-title .ln, .js .hero-side, .js .desk { opacity: 1; animation: none !important; }
  .vignette * { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .big-ring .seg, .big-ring .lbl, .file.new { animation: fade 200ms ease both !important; }
  .ring .seg, .ring .hub, .ring .hubtext { transform: none !important; }
}
