/* Action Wheel website.
   Palette from the app itself: the icon's slate gear, coral play button, amber and green
   dots, and the ring's default coral centre / teal icons. Dark first, light on request. */

:root {
  --bg: #0d1117;
  --bg-2: #121821;
  --surface: #161d27;
  --surface-2: #1c2531;
  --line: #263142;
  --fg: #e8edf4;
  --fg-2: #a7b3c4;
  --fg-3: #74829a;
  --coral: #e8736b;
  --coral-2: #da6b6b;
  --teal: #4a9c9e;
  --teal-ink: #4a7c7e;
  --amber: #f2b33d;
  --green: #5dbb63;
  --slate: #5b6b80;
  --ring-line: rgba(142, 160, 181, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, ui-monospace, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6f8;
    --bg-2: #eef1f5;
    --surface: #ffffff;
    --surface-2: #f3f5f8;
    --line: #dde3ea;
    --fg: #141a23;
    --fg-2: #4a5566;
    --fg-3: #6b778a;
    --teal: #3d8789;
    --ring-line: rgba(91, 107, 128, 0.12);
    --shadow: 0 18px 50px rgba(20, 26, 35, 0.12);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; }

.skip {
  position: absolute; left: 12px; top: -48px;
  padding: 8px 14px; border-radius: 10px;
  background: var(--coral); color: #fff; z-index: 50;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */

.top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 650; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand .ver {
  font: 600 11px/1 var(--mono); color: var(--fg-3);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 7px;
}

.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav a { color: var(--fg-2); font-size: 14.5px; }
.nav a:hover { color: var(--fg); text-decoration: none; }

.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 12.5px; }
.lang a { padding: 4px 10px; color: var(--fg-3); }
.lang a[aria-current="true"] { background: var(--surface-2); color: var(--fg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px;
  font-weight: 600; font-size: 15.5px; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 26px color-mix(in srgb, var(--coral) 35%, transparent); }
.btn-primary:hover { background: #ef7f77; }
.btn-ghost { border-color: var(--line); color: var(--fg); background: var(--surface); }
.btn-ghost:hover { border-color: var(--fg-3); }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: 0.85; margin-top: 3px; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }

/* Concentric rings behind the hero: the wheel, as a motif. */
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto;
  width: 1100px; height: 1100px; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 139px, var(--ring-line) 140px 141px, transparent 142px 279px,
      var(--ring-line) 280px 281px, transparent 282px 419px, var(--ring-line) 420px 421px, transparent 422px);
  pointer-events: none;
}

.hero .wrap { position: relative; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--fg-2); letter-spacing: 0.02em;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--surface);
}
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: var(--amber); }
.dots i:nth-child(2) { background: var(--green); }
.dots i:nth-child(3) { background: var(--coral); }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.1; margin: 0; }

.hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 750; margin: 22px 0 18px; }
.hero h1 em { font-style: normal; color: var(--coral); white-space: nowrap; }
.lead { font-size: 18.5px; color: var(--fg-2); max-width: 34em; margin: 0 0 28px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--fg-3); font-size: 13.5px; }
.chips span { display: inline-flex; align-items: center; gap: 7px; }
.chips svg { width: 15px; height: 15px; color: var(--green); }

/* ---------- the live wheel ---------- */

.stage {
  position: relative; height: 440px; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--fg-3) 26%, transparent) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(160deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair;
}

/* A pretend application window, so the ring visibly opens "over another app". */
.fakeapp {
  position: absolute; inset: 34px 30px 66px 30px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); pointer-events: none;
}
.fakeapp .bar { height: 30px; display: flex; gap: 6px; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line); }
.fakeapp .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.fakeapp .lines { padding: 18px 20px; display: grid; gap: 11px; }
.fakeapp .lines b { display: block; height: 9px; border-radius: 6px; background: color-mix(in srgb, var(--fg-3) 22%, transparent); }
.fakeapp .lines b.hl { background: color-mix(in srgb, var(--teal) 40%, transparent); }

.stage-hint {
  position: absolute; left: 0; right: 0; bottom: 18px; text-align: center;
  font-size: 13.5px; color: var(--fg-2); pointer-events: none; transition: opacity 0.2s;
}
.stage-hint kbd {
  font: 600 11.5px var(--mono); padding: 2px 6px; border-radius: 5px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg);
}
.stage.has-wheel .stage-hint { opacity: 0; }

.toast {
  position: absolute; left: 50%; top: 14px; transform: translate(-50%, -8px);
  padding: 8px 14px; border-radius: 10px; font-size: 13.5px; max-width: calc(100% - 28px);
  background: color-mix(in srgb, var(--bg) 88%, transparent); border: 1px solid var(--line);
  color: var(--fg); opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: var(--amber); font-weight: 650; }

.wheel {
  --b: 50px;          /* outer button */
  --c: 45px;          /* centre button, the app's 40/44 ratio */
  --grow: 1.12;
  position: absolute; width: 0; height: 0; z-index: 3;
}

.slot { position: absolute; transform: translate(-50%, -50%); }

.wbtn {
  --wb-bg: #ffffff; --wb-fg: var(--teal-ink); --wb-border: #e8f4f4;
  width: var(--b); height: var(--b); border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--wb-bg); color: var(--wb-fg); border: 2px solid var(--wb-border);
  box-shadow: 0 3px 11px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s ease-out, background 0.12s, color 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.wbtn svg { width: 45%; height: 45%; }
.wbtn.center { --wb-bg: var(--coral-2); --wb-fg: #fff; --wb-border: var(--coral-2); width: var(--c); height: var(--c); }

/* Hover effects, one per RingHoverEffect in the app. .on = the drag gesture's highlight. */
.wheel[data-hover="grow"] .wbtn:is(:hover, .on) { transform: scale(var(--grow)); }
.wheel[data-hover="grow"] .wbtn:not(.center):is(:hover, .on) { background: var(--wb-fg); color: var(--wb-bg); border-color: var(--wb-bg); }
.wheel[data-hover="grow"] .wbtn.center:is(:hover, .on) { background: #e0807f; }

.wheel[data-hover="glow"] .wbtn:is(:hover, .on) {
  transform: scale(var(--grow));
  box-shadow: 0 0 22px 5px color-mix(in srgb, var(--wb-bg) 75%, transparent);
}

.wheel[data-hover="lift"] .wbtn:is(:hover, .on) {
  transform: scale(var(--grow)) translateY(-1px);
  box-shadow: 0 13px 24px rgba(0, 0, 0, 0.62);
}

.wbtn:active, .wbtn.pressed { transform: scale(0.94) !important; filter: brightness(0.92); }

.wheel-label {
  position: absolute; transform: translate(-50%, 0); white-space: nowrap; z-index: 4;
  font-size: 12.5px; padding: 3px 9px; border-radius: 7px; pointer-events: none;
  background: color-mix(in srgb, var(--bg) 90%, transparent); border: 1px solid var(--line); color: var(--fg);
}

.controls { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; align-items: center; font-size: 13.5px; color: var(--fg-2); }
.controls label { display: inline-flex; align-items: center; gap: 8px; }
.controls select {
  font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; padding: 6px 28px 6px 10px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-3) 50%), linear-gradient(135deg, var(--fg-3) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.controls .open-kb {
  margin-left: auto; font: inherit; color: var(--fg-2); background: none; border: 1px dashed var(--line);
  border-radius: 9px; padding: 6px 10px; cursor: pointer;
}

/* ---------- sections ---------- */

section { padding: 84px 0; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.kicker { font: 650 12.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); margin-bottom: 12px; }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 42px); font-weight: 720; margin-bottom: 14px; }
.section-head p { color: var(--fg-2); font-size: 17.5px; margin: 0; }

/* How it works: three beats around a dial. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font: 700 15px var(--mono); color: #fff; margin-bottom: 16px;
}
.step:nth-child(1)::before { background: var(--amber); color: #2b1d00; }
.step:nth-child(2)::before { background: var(--green); color: #082a0b; }
.step:nth-child(3)::before { background: var(--coral); }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--fg-2); font-size: 15.5px; }
.step kbd { font: 600 12px var(--mono); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface-2); }

/* Features: a bento of uneven tiles. */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { grid-column: span 2; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.tile.wide { grid-column: span 3; }
.tile.full { grid-column: span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.tile .ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent, var(--teal)) 16%, transparent); color: var(--accent, var(--teal));
}
.tile .ic svg { width: 21px; height: 21px; }
.tile h3 { font-size: 19.5px; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--fg-2); font-size: 15px; }
.tile ul { margin: 12px 0 0; padding-left: 18px; color: var(--fg-2); font-size: 14.5px; }

.swatches { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.swatches i { width: 26px; height: 26px; border-radius: 50%; display: block; border: 2px solid var(--surface-2); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }

/* Mini satellite ring illustration for the Groups tile. */
.mini-group { position: relative; height: 140px; margin-top: 12px; }
.mini-group i { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid #e8f4f4; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.mini-group i.p { width: 34px; height: 34px; background: var(--teal); border-color: var(--teal); }

/* ---------- AI ---------- */

.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ai-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.ai-card h3 { font-size: 22px; margin-bottom: 10px; }
.ai-card p { color: var(--fg-2); margin: 0 0 14px; font-size: 15.5px; }
.ai-card ul { margin: 0; padding-left: 18px; color: var(--fg-2); font-size: 14.5px; }
.ai-card li { margin: 4px 0; }

.tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.tools span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; color: var(--fg-2); }

/* A drawing of the AI task window. */
.taskwin { border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; margin-top: 18px; font-size: 13.5px; }
.taskwin .tt { padding: 10px 14px; font-weight: 650; border-bottom: 1px solid var(--line); }
.taskwin .body { padding: 12px 14px; color: var(--fg-2); font-family: var(--mono); font-size: 12.5px; }
.taskwin .body s { color: var(--coral); text-decoration-thickness: 1.5px; }
.taskwin .body ins { color: var(--green); text-decoration: none; }
.taskwin .acts { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.taskwin .acts span { padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.taskwin .acts span.p { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- privacy ---------- */

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.pillar h3 { font-size: 17px; margin-bottom: 6px; }
.pillar p { margin: 0; color: var(--fg-2); font-size: 14.5px; }

/* ---------- download ---------- */

.dl { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: stretch; }
.dl-card {
  padding: 34px; border-radius: 24px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, color-mix(in srgb, var(--coral) 22%, var(--surface)), var(--surface) 60%);
  border: 1px solid var(--line);
}
.dl-card h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 10px; }
.dl-card p { color: var(--fg-2); margin: 0 0 24px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 13.5px; color: var(--fg-3); }
.dl-meta a { color: var(--fg-2); }
.dl-steps { padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.dl-steps ol { margin: 0; padding-left: 20px; color: var(--fg-2); }
.dl-steps li { margin: 0 0 12px; }
.dl-steps li b { color: var(--fg); }
.note {
  margin-top: 18px; padding: 12px 14px; border-radius: 12px; font-size: 14px;
  border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent);
  background: color-mix(in srgb, var(--amber) 9%, transparent); color: var(--fg-2);
}
.note b { color: var(--fg); }
code { font: 0.92em var(--mono); padding: 1px 5px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 34px 16px 0; position: relative;
  font-weight: 620; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--fg-3); border-bottom: 2px solid var(--fg-3); transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 18px; color: var(--fg-2); }

/* ---------- footer ---------- */

.foot { padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.foot nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.foot a { color: var(--fg-2); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .nav a.opt { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide { grid-column: span 1; }
  .tile.full { grid-column: span 2; grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .dl, .ai-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { padding-top: 44px; }
  .nav { gap: 12px; }
  .nav a { display: none; }
  .steps, .bento, .pillars { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile.full { grid-column: span 1; }
  .stage { height: 380px; }
  .fakeapp { inset: 26px 16px 60px 16px; }
  .controls .open-kb { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
