/* Liveglass website. Dark-first, same tokens as Sources/LiveglassMac/Theme.swift. */
:root {
  --ink: #0b0b13;
  --night: #1b1530;
  --mist: #edebf5;
  --text: #edebf5;
  --secondary: rgba(237, 235, 245, 0.66);
  --tertiary: rgba(237, 235, 245, 0.42);
  --card: rgba(255, 255, 255, 0.045);
  --stroke: rgba(255, 255, 255, 0.09);
  --iris: #7c5cff;
  --rose: #ff6b9a;
  --amber: #ffb86b;
  --mint: #3ddc97;
  --aurora: linear-gradient(120deg, var(--iris), var(--rose) 55%, var(--amber));
  --radius: 20px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.gradient-text { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tertiary); }

/* Background blooms */
.bloom { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.bloom.iris { width: 640px; height: 640px; background: var(--iris); opacity: 0.32; top: -220px; left: -160px; }
.bloom.rose { width: 520px; height: 520px; background: var(--rose); opacity: 0.2; top: 120px; right: -200px; }
.bloom.amber { width: 420px; height: 420px; background: var(--amber); opacity: 0.1; top: 520px; left: 35%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); background: rgba(11, 11, 19, 0.7); border-bottom: 1px solid var(--stroke); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 650; font-size: 19px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--secondary); font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--aurora); color: #120c1f; box-shadow: 0 8px 30px -8px rgba(255, 107, 154, 0.6); }
.btn-primary:hover { box-shadow: 0 12px 36px -8px rgba(255, 107, 154, 0.75); }
.btn-ghost { background: var(--card); border-color: var(--stroke); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Hero */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--stroke); color: var(--secondary); font-size: 14px; margin-bottom: 28px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.hero h1 { font-size: clamp(42px, 7vw, 80px); font-weight: 700; max-width: 900px; margin: 0 auto; }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--secondary); max-width: 640px; margin: 22px auto 0; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero .fine { margin-top: 14px; color: var(--tertiary); font-size: 14px; }

/* Device mockup (pure CSS) */
.stage { position: relative; margin: 64px auto 0; max-width: 900px; height: 470px; }
.mac { position: absolute; left: 50%; top: 0; transform: translateX(-46%); width: 680px; height: 430px; border-radius: 14px; background: linear-gradient(180deg, #17142a, #100e1d); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 40px 120px -30px rgba(124, 92, 255, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.4); overflow: hidden; }
.mac .titlebar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.mac .titlebar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3550; }
.mac .titlebar span:nth-child(1) { background: #ff5f57; }
.mac .titlebar span:nth-child(2) { background: #febc2e; }
.mac .titlebar span:nth-child(3) { background: #28c840; }
.mac .titlebar em { margin-left: auto; margin-right: auto; font-style: normal; font-size: 12px; color: var(--tertiary); transform: translateX(-24px); }
.mac .desk { position: relative; height: calc(100% - 34px); display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 20%, rgba(124, 92, 255, 0.25), transparent 55%), radial-gradient(circle at 80% 90%, rgba(255, 107, 154, 0.18), transparent 50%); }
.mac .stats { position: absolute; right: 18px; bottom: 16px; display: flex; gap: 8px; }
.mac .stats span { font-size: 11px; color: var(--secondary); padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--stroke); font-variant-numeric: tabular-nums; }
.mac .stats span b { color: var(--mint); font-weight: 600; }

.phone { position: relative; width: 168px; height: 344px; border-radius: 34px; background: #050508; padding: 7px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.16), 0 20px 50px -10px rgba(0, 0, 0, 0.7); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 27px; overflow: hidden; background: linear-gradient(160deg, #6b4dff 0%, #c25bd0 40%, #ff6b9a 65%, #ffb86b 100%); }
.phone .island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 52px; height: 15px; border-radius: 10px; background: #000; z-index: 2; }
.phone .time { position: absolute; top: 9px; left: 20px; font-size: 10px; font-weight: 600; color: #fff; }
.phone .apps { position: absolute; top: 46px; left: 14px; right: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 10px; }
.phone .apps i { aspect-ratio: 1; border-radius: 9px; background: rgba(255, 255, 255, 0.28); backdrop-filter: blur(4px); }
.phone .apps i:nth-child(3n) { background: rgba(255, 255, 255, 0.5); }
.phone .apps i:nth-child(5n) { background: rgba(20, 12, 40, 0.35); }
.phone .dock { position: absolute; bottom: 10px; left: 10px; right: 10px; height: 46px; border-radius: 18px; background: rgba(255, 255, 255, 0.22); display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 8px 10px; }
.phone .dock i { border-radius: 9px; background: rgba(255, 255, 255, 0.55); }
.phone.real { position: absolute; left: 50%; bottom: 0; transform: translateX(-380px) rotate(-6deg); width: 150px; height: 306px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.2), 0 30px 80px -10px rgba(255, 107, 154, 0.45); }
.beam { position: absolute; left: 50%; bottom: 150px; transform: translateX(-236px); width: 150px; z-index: 2; height: 2px; background: linear-gradient(90deg, rgba(255, 107, 154, 0), var(--rose), rgba(124, 92, 255, 0)); filter: blur(0.5px); opacity: 0.8; animation: beam 2.4s ease-in-out infinite; }
@keyframes beam { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }

/* Strip */
.strip { border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.015); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.strip div { text-align: center; }
.strip b { display: block; font-family: var(--display); font-size: 22px; }
.strip span { color: var(--tertiary); font-size: 14px; }

/* Sections */
section { position: relative; }
.section { padding: 110px 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; margin-top: 12px; }
.section-head p { color: var(--secondary); font-size: 19px; margin-top: 16px; }

.card { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 28px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--aurora); color: #120c1f; font-family: var(--display); font-weight: 700; margin-bottom: 18px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--secondary); }
.code { display: inline-flex; gap: 6px; margin-top: 16px; }
.code span { width: 30px; height: 40px; border-radius: 9px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--stroke); display: grid; place-items: center; font-family: var(--display); font-weight: 650; font-size: 20px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature .icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(124, 92, 255, 0.16); border: 1px solid rgba(124, 92, 255, 0.35); margin-bottom: 18px; }
.feature .icon svg { width: 22px; height: 22px; stroke: #c9bcff; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--secondary); font-size: 16px; }

/* Security */
.security { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.security ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.security li { display: flex; gap: 12px; color: var(--secondary); }
.security li svg { flex: none; width: 22px; height: 22px; stroke: var(--mint); margin-top: 2px; }
.security li b { color: var(--text); font-weight: 600; }
.diagram { padding: 32px; }
.diagram .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.diagram .node { text-align: center; font-size: 14px; color: var(--secondary); }
.diagram .node div { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--stroke); }
.diagram .node svg { width: 28px; height: 28px; stroke: var(--text); }
.diagram .node.relay div { border-style: dashed; }
.diagram .wire { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--iris) 0 8px, transparent 8px 14px); opacity: 0.8; position: relative; top: -14px; }
.diagram .caption { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--stroke); color: var(--tertiary); font-size: 14px; }
.diagram .caption code { color: var(--secondary); font-size: 13px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.featured { position: relative; background: linear-gradient(var(--night), var(--night)) padding-box, var(--aurora) border-box; border: 1.5px solid transparent; box-shadow: 0 30px 80px -30px rgba(124, 92, 255, 0.6); }
.plan .tag { position: absolute; top: -13px; left: 28px; padding: 4px 12px; border-radius: 999px; background: var(--aurora); color: #120c1f; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; }
.plan h3 { font-size: 22px; }
.plan .who { color: var(--tertiary); font-size: 15px; margin-top: 6px; min-height: 46px; }
.plan .price { margin: 22px 0 4px; font-family: var(--display); font-size: 46px; font-weight: 700; letter-spacing: -0.03em; }
.plan .price small { font-size: 16px; color: var(--tertiary); font-weight: 500; letter-spacing: 0; }
.plan .alt { color: var(--tertiary); font-size: 14px; min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--secondary); }
.plan li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: rgba(61, 220, 151, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233ddc97' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center/16px no-repeat; }
.plan .btn { width: 100%; }
.pricing-note { text-align: center; color: var(--tertiary); font-size: 14px; margin-top: 28px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--stroke); border-radius: 16px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tertiary); font-size: 22px; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--secondary); padding-bottom: 22px; }

/* CTA */
.cta { position: relative; overflow: hidden; text-align: center; padding: 72px 32px; border-radius: 28px; background: radial-gradient(circle at 20% 0%, rgba(124, 92, 255, 0.45), transparent 60%), radial-gradient(circle at 90% 100%, rgba(255, 107, 154, 0.35), transparent 55%), var(--night); border: 1px solid var(--stroke); }
.cta img { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 24px; box-shadow: 0 20px 50px -10px rgba(124, 92, 255, 0.7); }
.cta h2 { font-size: clamp(32px, 4.4vw, 46px); }
.cta p { color: var(--secondary); margin: 14px auto 30px; max-width: 520px; }
.cta .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
footer { padding: 56px 0 48px; color: var(--tertiary); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; border-top: 1px solid var(--stroke); padding-top: 32px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 72px 0 40px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 44px; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--secondary); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal .updated { color: var(--tertiary); font-size: 14px; }
.notice { margin: 28px 0; padding: 16px 20px; border-radius: 14px; background: rgba(255, 184, 107, 0.1); border: 1px solid rgba(255, 184, 107, 0.35); color: var(--amber); font-size: 15px; }

/* Responsive */
@media (max-width: 960px) {
  .features, .plans { grid-template-columns: 1fr 1fr; }
  .security { grid-template-columns: 1fr; gap: 40px; }
  .stage { transform: scale(0.8); transform-origin: top center; height: 380px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding: 56px 0 40px; }
  .stage { transform: translateX(8px) scale(0.44); height: 220px; margin-top: 40px; }
  .strip .wrap { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .section { padding: 76px 0; }
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
  .card { padding: 24px; }
  .cta { padding: 56px 22px; }
  .wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam { animation: none; }
  .btn { transition: none; }
}

/* Pricing: monthly option under the Anywhere button */
.plan-link { display: block; text-align: center; margin-top: 12px; font-size: 14px; color: var(--secondary); }
.plan-link:hover { color: var(--text); }

/* License page */
.license-box { margin-top: 28px; display: grid; gap: 16px; }
.license-box label { font-weight: 600; font-size: 15px; }
.license-box input, .license-box textarea { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.05); color: var(--text); font: 15px/1.4 var(--font); }
.license-box textarea { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: none; min-height: 110px; word-break: break-all; }
.license-box input:focus, .license-box textarea:focus { outline: 2px solid var(--iris); outline-offset: 1px; }
.license-box .row { display: flex; gap: 10px; flex-wrap: wrap; }
.license-box .hint { color: var(--tertiary); font-size: 14px; }
.status { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--card); color: var(--secondary); font-size: 15px; }
.status.ok { border-color: rgba(61, 220, 151, 0.4); background: rgba(61, 220, 151, 0.08); color: var(--mint); }
.status.bad { border-color: rgba(255, 107, 154, 0.4); background: rgba(255, 107, 154, 0.08); color: var(--rose); }
[hidden] { display: none !important; }
