/* Sonevia's website. The app's own look: true black, white type, the system blue, the icon's eleven bars. */

:root {
  color-scheme: light dark;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f2f2f5;
  --line: rgba(0, 0, 0, 0.1);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0066cc;
  --accent-text: #ffffff;
  --teal: #0a7f78;
  --amber: #a35a00;
  --green: #1d7a35;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.08);
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
}

/* Dark tokens: the page in dark mode, and every dark band in either mode. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #111113;
    --surface-2: #1c1c1f;
    --line: rgba(255, 255, 255, 0.12);
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --accent: #2997ff;
    --accent-text: #000000;
    --teal: #4fd8cc;
    --amber: #ffb340;
    --green: #4cd964;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 40px rgba(0, 0, 0, 0.5);
  }
}
.dark {
  color-scheme: dark;
  --bg: #000000;
  --surface: #111113;
  --surface-2: #1c1c1f;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --accent: #2997ff;
  --accent-text: #000000;
  --teal: #4fd8cc;
  --amber: #ffb340;
  --green: #4cd964;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 40px rgba(0, 0, 0, 0.5);
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: 1.03; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: 1.3125rem; line-height: 1.2; letter-spacing: -0.015em; font-weight: 650; }
h4 { font-size: 1.0625rem; line-height: 1.3; font-weight: 650; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: 0 0 0.4em; }
strong { font-weight: 650; }
code { font: 0.92em ui-monospace, "SF Mono", Menlo, monospace; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--accent-text); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
h1 + .lede, h2 + .lede { margin-top: 16px; }
.lede { font-size: clamp(1.125rem, 2vw, 1.3125rem); line-height: 1.5; color: var(--muted); max-width: 40em; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--bg); backdrop-filter: none; } }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 1.1875rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); font-size: 0.9375rem; opacity: 0.82; }
.nav a:hover { opacity: 1; text-decoration: none; }
.nav a[aria-current="page"] { opacity: 1; font-weight: 600; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 10px; font-size: 0.9375rem; font-weight: 600;
  border: 1px solid var(--line);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--surface-2); }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  display: grid;
}
.menu nav a { color: var(--text); padding: 10px 12px; border-radius: 10px; }
.menu nav a:hover { background: var(--surface-2); text-decoration: none; }
.menu nav a[aria-current="page"] { font-weight: 650; }
@media (max-width: 860px) { .nav { display: none; } .menu { display: block; } }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .actions { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; font-size: 1rem; border: 1px solid transparent; transition: transform 120ms ease-out, background-color 160ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.btn-ghost { color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 22px 8px 16px; border-radius: 14px;
  background: var(--text); color: var(--bg); border: 1px solid var(--line);
}
.store:hover { text-decoration: none; }
.store small { display: block; font-size: 0.6875rem; letter-spacing: 0.02em; opacity: 0.75; line-height: 1.2; }
.store b { display: block; font-size: 1.0625rem; line-height: 1.2; font-weight: 650; }
.store svg { width: 22px; height: 22px; flex: none; }
.store.is-soon { background: transparent; color: var(--text); border-color: var(--line); cursor: default; }
a.store:active { transform: scale(0.97); }

/* ---------- The eleven bars ---------- */
.bars { display: flex; align-items: center; justify-content: center; gap: 2.2%; height: 100%; }
.bars span {
  display: block; width: 5.9%; border-radius: 999px; background: currentColor; height: var(--h);
  transform-origin: center; animation: breathe 3.6s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.72); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 112px) 0 0; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2;
  background:
    radial-gradient(40% 40% at 30% 30%, rgba(41, 151, 255, 0.22), transparent 70%),
    radial-gradient(36% 36% at 72% 38%, rgba(79, 216, 204, 0.16), transparent 70%);
}
.hero-mark { position: absolute; z-index: -1; left: 50%; top: 36%; width: min(1100px, 150vw); height: 560px; transform: translate(-50%, -50%); color: rgba(255, 255, 255, 0.035); }
.hero-copy { text-align: center; max-width: 880px; margin-inline: auto; }
.hero-copy .app-icon { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 24px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 20px 50px rgba(41, 151, 255, 0.25); }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lede { margin: 0 auto 32px; color: #c7c7cc; }
.hero-copy .actions { justify-content: center; }
.hero-note { margin-top: 18px; font-size: 0.875rem; color: var(--muted); }
.hero-stage {
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 3vw, 40px);
  margin-top: clamp(48px, 7vw, 80px); padding-inline: var(--gutter);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.hero-stage .device { width: clamp(180px, 25vw, 300px); }
.hero-stage .device.side { width: clamp(150px, 21vw, 256px); margin-bottom: 40px; opacity: 0.9; }
@media (max-width: 640px) { .hero-stage .device.side { display: none; } .hero-stage .device { width: min(72vw, 300px); } }

/* ---------- Devices ---------- */
.device {
  position: relative; border-radius: 15% / 7%; padding: 2.4%; background: #0c0c0e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.device img { border-radius: 13% / 6%; width: 100%; background: #000; }
.tablet { border-radius: 4.6%; padding: 1.6%; background: #0c0c0e; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 60px -20px rgba(0, 0, 0, 0.55); }
.tablet img { border-radius: 3.4%; width: 100%; }
.watch { border-radius: 26%; padding: 7%; background: #0c0c0e; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 24px 48px -18px rgba(0, 0, 0, 0.6); }
.watch img { border-radius: 20%; width: 100%; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section.tight { padding: clamp(48px, 7vw, 88px) 0; }
.section + .section:not(.dark) { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-bottom: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.pair { display: flex; gap: clamp(14px, 3vw, 28px); justify-content: center; align-items: flex-start; }
.pair .device { width: min(46%, 280px); }
.pair .device:nth-child(2) { margin-top: 56px; }

.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.points li { margin: 0; padding-left: 28px; position: relative; }
.points li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 12px; height: 12px; border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
}
.points strong { display: block; color: var(--text); }
.points span { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; }
.card .icon svg { width: 22px; height: 22px; }

.formats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; padding: 0; list-style: none; }
.formats li { margin: 0; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.02em; }

.band { border-radius: 32px; padding: clamp(32px, 6vw, 72px); background: var(--surface); border: 1px solid var(--line); }
.quiet-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px 32px; margin-top: 40px; }
.quiet-list h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.quiet-list p { color: var(--muted); margin: 0; font-size: 0.96875rem; }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 0.75rem;
  font-weight: 650; letter-spacing: 0.02em; white-space: nowrap; vertical-align: 0.12em; border: 1px solid currentColor;
}
.tag-pro { color: var(--accent); }
.tag-free { color: var(--green); }
.tag-beta { color: var(--amber); }
.tag-limited { color: var(--muted); }
.tag-store { color: var(--accent); }
.tag-testflight { color: var(--teal); }
.tag-dev { color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 18px 20px; border-radius: 16px; background: var(--surface-2); font-size: 0.9375rem; color: var(--muted); }
.legend div { display: flex; gap: 8px; align-items: center; }

/* ---------- Page header ---------- */
.page-head { padding: clamp(56px, 9vw, 104px) 0 clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); margin-bottom: 18px; }

/* ---------- Features directory ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 0.9375rem; }
.toc a:hover { text-decoration: none; background: color-mix(in srgb, var(--surface-2) 70%, var(--accent)); }
.group { padding: 48px 0; border-top: 1px solid var(--line); }
.group > header { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 24px; }
.group > header p { color: var(--muted); max-width: 44em; margin: 0; }
.flist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.flist li { margin: 0; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.flist h3 { font-size: 1.0625rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.flist p { margin: 0; color: var(--muted); font-size: 0.96875rem; }

/* ---------- Pro ---------- */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tier { border-radius: 28px; padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); }
.tier.pro { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 55%); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.tier h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: 10px; }
.tier > p { color: var(--muted); }
.tier h3 { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; font-weight: 650; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { margin: 0; padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }

/* ---------- Changelog ---------- */
.notice { padding: 16px 20px; border-radius: 16px; background: var(--surface-2); color: var(--muted); font-size: 0.9375rem; }
.notice strong { color: var(--text); }
.release { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 48px 0; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .release { grid-template-columns: 1fr; gap: 14px; } }
.release-meta { position: sticky; top: 84px; align-self: start; }
@media (max-width: 760px) { .release-meta { position: static; } }
.release-meta .version { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; display: block; }
.release-meta time, .release-meta .date { display: block; color: var(--muted); margin: 6px 0 10px; font-size: 0.9375rem; }
.release h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.release h3 { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.release ul { padding-left: 1.1em; }
.release li { margin-bottom: 0.5em; }
.release .builds { margin-top: 26px; display: grid; gap: 10px; }
.release details { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: var(--surface); }
.release summary { cursor: pointer; font-weight: 600; }
.release details ul { margin: 12px 0 4px; }

/* ---------- Roadmap ---------- */
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .lanes { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .lanes { grid-template-columns: 1fr; } }
.lane { border-radius: 22px; background: var(--surface-2); padding: 18px; }
.lane > h2 { font-size: 1.125rem; letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: center; margin: 4px 4px 4px; }
.lane > p { font-size: 0.875rem; color: var(--muted); margin: 4px 4px 14px; }
.lane ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lane li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.lane li h3 { font-size: 1rem; margin-bottom: 4px; }
.lane li p { margin: 0; font-size: 0.90625rem; color: var(--muted); }

/* ---------- Prose ---------- */
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 48px 0 14px; }
.prose h3 { margin: 28px 0 10px; }
.prose p, .prose li { color: var(--text); }
.prose .muted { color: var(--muted); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; font-size: 1.0625rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--muted); transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p, .faq details > div li { color: var(--muted); }
.faq details > div strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 0.9375rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h2 { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; font-weight: 650; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.fine { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.8125rem; display: grid; gap: 6px; }
.fine p { margin: 0; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.lost .bars { width: 180px; height: 120px; margin: 0 auto 32px; color: var(--muted); }

/* Dark bands get a faint glow, so they still read as their own section when the whole page is dark. */
.section.dark { background: radial-gradient(70% 55% at 50% 0%, rgba(41, 151, 255, 0.09), transparent 70%), var(--bg); }
.section.dark + .section, .section + .section.dark { border-top: 1px solid var(--line); }

/* Mac window captures: the window's own corners and a soft shadow, no device frame. */
.mac img { width: 100%; border-radius: 1.4% / 2.1%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 70px -24px rgba(0, 0, 0, 0.7); background: #1c1c1e; }
.mac-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); margin-top: clamp(32px, 5vw, 56px); }
@media (max-width: 640px) { .mac-pair { grid-template-columns: 1fr; } }
