:root {
  --night: #1c0e17;
  --plum: #3a1c2d;
  --rose: #d9a3b8;
  --blush: #f3dfe6;
  --mist: rgba(243, 223, 230, 0.68);
  --gold: #d4b27a;
  --serif: "Italiana", "Didot", "Bodoni 72", serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
}
:root:lang(ru) { --serif: "Forum", "Italiana", "Didot", serif; }
:root:lang(he) {
  --serif: "Frank Ruhl Libre", "David", serif;
  --sans: "Heebo", "Arial Hebrew", system-ui, sans-serif;
}
:root:lang(he) h1, :root:lang(he) h2, :root:lang(he) .app h3, :root:lang(he) .root { font-weight: 300; letter-spacing: 0; }
:root:lang(he) h1 { line-height: 1.12; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(217, 163, 184, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(120, 50, 85, 0.35), transparent 70%),
    var(--night);
  color: var(--blush);
  font: 300 1.0625rem/1.7 var(--sans);
  overflow-x: hidden;
}
#dust { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
header, main, footer { position: relative; z-index: 1; }

a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

.top {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 28px 24px;
}
.mark { white-space: nowrap; font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.04em; text-decoration: none; margin: 0; }
.top-link { font-size: 0.95rem; color: var(--mist); text-decoration: none; }
.top-link:hover { color: var(--blush); }
.top-right { display: flex; align-items: center; gap: 18px; }
.langs { display: flex; gap: 4px; }
.langs button {
  font: 400 0.85rem/1 var(--sans); color: var(--mist); background: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px; padding: 6px 8px; white-space: nowrap;
}
.langs button:hover { color: var(--blush); }
.langs button[aria-pressed="true"] { color: var(--blush); border-color: rgba(212, 178, 122, 0.6); }
.langs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.top-btn { font-size: 0.92rem; text-decoration: none; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--blush); white-space: nowrap; }
.top-btn:hover { background: var(--blush); color: var(--night); }

main { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* hero: the dial is the one bold thing on the page */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px; align-items: center; min-height: calc(100vh - 100px); padding-bottom: 64px;
}
.hero-text { order: -1; }
h1 {
  font: 400 clamp(2.6rem, 5.6vw, 4.6rem)/1.04 var(--serif);
  margin: 0 0 28px; letter-spacing: 0.005em;
}
h1 span {
  display: block; margin-top: 18px;
  font-size: 0.5em; line-height: 1.2; color: var(--rose);
}
.lead { max-width: 34em; color: var(--mist); margin: 0 0 36px; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  border: 1px solid rgba(243, 223, 230, 0.35); text-decoration: none;
  font-weight: 400; font-size: 1rem; transition: background 0.25s, border-color 0.25s;
}
.btn:hover { border-color: var(--blush); }
.btn.primary { background: var(--blush); color: var(--night); border-color: var(--blush); }
.btn.primary:hover { background: #fff; }

.dial { position: relative; width: min(100%, 600px); aspect-ratio: 1; justify-self: center; border-radius: 50%; overflow: hidden; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: turn 240s linear infinite; }
.ring-line { fill: none; stroke: rgba(243, 223, 230, 0.28); stroke-width: 1; }
.ring-line.faint { stroke: rgba(243, 223, 230, 0.12); }
.ticks line { stroke: rgba(243, 223, 230, 0.35); stroke-width: 1; }
.ticks line.major { stroke: var(--gold); stroke-width: 1.5; }
.ring-text { direction: ltr; fill: var(--blush); font: 400 21px var(--sans); letter-spacing: 0.06em; }

.portrait {
  position: absolute; inset: 22%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(243, 223, 230, 0.25), 0 0 120px 10px rgba(217, 163, 184, 0.22);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* a single slow hand: time passing, one sweep per minute */
.hand {
  position: absolute; left: 50%; top: 50%; width: 1px; height: 47%;
  transform-origin: 50% 0; transform: rotate(180deg);
  background: linear-gradient(to bottom, transparent 0 46%, var(--gold) 46% 100%);
  animation: sweep 60s linear infinite;
}
.hand::after {
  content: ""; position: absolute; bottom: -3px; left: -3px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px 3px rgba(212, 178, 122, 0.7);
}

@keyframes turn { to { transform: rotate(-360deg); } }
@keyframes sweep { from { transform: rotate(180deg); } to { transform: rotate(540deg); } }

/* sections */
section:not(.hero) { padding: 96px 0; border-top: 1px solid rgba(243, 223, 230, 0.1); }
h2 { font: 400 clamp(2rem, 3.6vw, 2.9rem)/1.1 var(--serif); margin: 0 0 24px; }
section p { max-width: 38em; }
.anna > p { color: var(--mist); }

.powers { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 56px; max-width: 920px; }
.powers li { padding-inline-start: 26px; position: relative; color: var(--mist); }
.powers li::before { content: "✦"; position: absolute; inset-inline-start: 0; top: 0; color: var(--gold); font-size: 0.85em; }
.powers strong { color: var(--blush); font-weight: 500; }

.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; max-width: 920px; }
.app h3 { font: 400 1.75rem/1.2 var(--serif); margin: 0 0 8px; }
.app p { margin: 0; color: var(--mist); }
.app .stores { margin-top: 14px; display: flex; gap: 22px; }
.stores a { color: var(--rose); text-underline-offset: 4px; }
.stores a:hover { color: var(--blush); }

.ask { text-align: start; }
.ask p { color: var(--mist); margin: 0 0 32px; }

.foot {
  max-width: 1180px; margin: 0 auto; padding: 48px 24px 64px;
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  border-top: 1px solid rgba(243, 223, 230, 0.1); font-size: 0.92rem; color: var(--mist);
}
.foot p { margin: 0 0 6px; }
.foot .mark { color: var(--blush); margin-bottom: 10px; }
.foot a { text-underline-offset: 3px; }

/* legal pages */
.doc { max-width: 760px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.doc h2 { font-size: 1.6rem; margin-top: 44px; }
.doc p, .doc li { color: var(--mist); }
.doc .updated { color: var(--rose); }


.hint { margin: 18px 0 0; font-size: 0.92rem; color: var(--rose); }
.sec-lead { color: var(--mist); margin: 0 0 40px; }
.powers { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: 22px 40px; }
.apps { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: 40px; }

/* decision tree */
.tree { --line: rgba(212, 178, 122, 0.55); max-width: 1040px; }
.root {
  width: max-content; margin: 0 auto; padding: 10px 26px; border-radius: 999px;
  border: 1px solid var(--gold); font: 400 1.35rem/1.2 var(--serif); position: relative;
}
.root::after { content: ""; position: absolute; left: 50%; top: 100%; height: 28px; border-left: 1px solid var(--line); }
.tones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; position: relative; margin-top: 28px; padding-top: 26px; }
.tones::before { content: ""; position: absolute; top: 0; left: calc(100% / 6); right: calc(100% / 6); border-top: 1px solid var(--line); }
.tone {
  position: relative; font: 400 1rem/1.25 var(--sans); color: var(--blush); cursor: pointer;
  background: rgba(58, 28, 45, 0.55); border: 1px solid rgba(243, 223, 230, 0.25);
  border-radius: 14px; padding: 14px 10px; transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.tone::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: 26px; border-left: 1px solid var(--line); }
.tone:hover { border-color: var(--blush); }
.tone[aria-selected="true"] { background: var(--blush); color: var(--night); border-color: var(--blush); }
.tone[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; top: 100%; height: 28px; border-left: 1px solid var(--gold); }
.tone:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.panel {
  margin-top: 28px; padding: 32px; border: 1px solid rgba(212, 178, 122, 0.35); border-radius: 20px;
  background: rgba(28, 14, 23, 0.6); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px;
}
.panel[hidden] { display: none; }
.panel.enter .chat .msg, .panel.enter .branches li { animation: grow 0.45s ease both; }
.panel.enter .branches li:nth-child(n) { animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes grow { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.voice-note { color: var(--mist); margin: 0 0 18px; font-size: 0.98rem; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.msg { margin: 0; max-width: 85%; padding: 9px 14px; border-radius: 16px; font-size: 0.95rem; line-height: 1.45; }
.msg-sep { margin: 6px 0; text-align: center; font-size: 0.8rem; color: var(--rose); }
.msg.in { align-self: flex-start; background: rgba(243, 223, 230, 0.1); border-end-start-radius: 4px; }
.msg.out { align-self: flex-end; background: rgba(217, 163, 184, 0.28); color: #fff; border-end-end-radius: 4px; }

.branches { list-style: none; margin: 0; padding: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 14px; }
.branches li { position: relative; display: grid; grid-template-columns: 8.5em minmax(0, 1fr); align-items: baseline; gap: 6px 12px; }
.branches li::before { content: ""; position: absolute; inset-inline-start: -22px; top: 0.85em; width: 16px; border-top: 1px solid var(--line); }
.branches li::after { content: ""; position: absolute; inset-inline-start: -22px; top: -7px; bottom: -7px; border-inline-start: 1px solid var(--line); }
.branches li:first-child::after { top: 0; }
.branches li:last-child::after { bottom: auto; height: calc(0.85em + 7px); }
.node { font-weight: 500; color: var(--blush); }
.leaves { display: flex; flex-wrap: wrap; gap: 6px; }
.leaves i {
  font-style: normal; font-size: 0.84rem; color: var(--mist); padding: 2px 10px;
  border: 1px solid rgba(243, 223, 230, 0.18); border-radius: 999px;
}
.tree-foot { color: var(--mist); font-size: 0.95rem; margin: 22px 0 0; }

.tree-cta { margin-top: 28px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; max-width: none; }
.steps li { counter-increment: step; color: var(--mist); border-top: 1px solid rgba(212, 178, 122, 0.45); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font: 400 2.2rem/1 var(--serif); color: var(--gold); margin-bottom: 12px; }
.steps strong { color: var(--blush); font-weight: 500; }
.kind-list, .facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 56px; max-width: 980px; }
.kind-list li, .facts li { color: var(--mist); padding-inline-start: 26px; position: relative; }
.kind-list li::before, .facts li::before { content: "✦"; position: absolute; inset-inline-start: 0; color: var(--gold); font-size: 0.85em; }
.kind-list strong { color: var(--blush); font-weight: 500; }
.facts li::before { content: "—"; color: var(--rose); }

@media (max-width: 1000px) {
  .powers, .apps, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .panel { grid-template-columns: 1fr; padding: 22px 18px; gap: 28px; }
  .kind-list, .facts, .steps { grid-template-columns: 1fr; gap: 14px; }
  .branches li { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .tones { gap: 8px; }
  .tone { font-size: 0.88rem; padding: 12px 6px; }
  .msg { max-width: 92%; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 40px; padding-top: 8px; }
  .hero-text { order: -1; }
  .dial { width: min(86%, 400px); }
  .powers, .apps { grid-template-columns: 1fr; gap: 20px; }
  section:not(.hero) { padding: 64px 0; }
  .top-link { display: none; }
}
@media (max-width: 420px) {
  .top, main, .foot { padding-left: 16px; padding-right: 16px; }
  .btn { width: 100%; text-align: center; }
  .top-right { gap: 12px; }
  .langs { gap: 0; }
  .langs button { padding: 6px 5px; font-size: 0.8rem; }
  .top-btn { display: none; }
  .mark { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ring, .hand { animation: none; }
  .panel.enter .chat .msg, .panel.enter .branches li { animation: none; }
}
