/* ============================================================
   SoundBar — shared styles for the showcase and legal pages.
   Same look as the App Store screenshots: a dark desktop with an
   amber glow bottom right, a cool blue one top left, a faint dot
   grid taken from the app icon, and the icon's amber as the accent.
   ============================================================ */

:root {
  color-scheme: dark;
  --ground: #0c0e13;
  --surface: rgba(38, 38, 42, 0.62);   /* the panel's menu material */
  --surface-solid: #1a1c22;
  --brand: #FFB454;                    /* AccentColor, dark appearance */
  --brand-deep: #E0851A;               /* AccentColor, light appearance */
  --text: rgba(255, 255, 255, 0.92);
  --text-2: rgba(255, 255, 255, 0.62);
  --text-3: rgba(255, 255, 255, 0.40);
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --shadow: 0 0 0 .5px rgba(0,0,0,.6), 0 24px 60px -18px rgba(0,0,0,.6), inset 0 0 0 .5px rgba(255,255,255,.10);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;

  --maxw: 1140px;
  --readw: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The screenshots' desktop, fixed behind everything. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(70vw 55vw at 92% 108%, rgba(255,160,60,.34), transparent 70%),
    radial-gradient(50vw 40vw at 104% 30%, rgba(224,110,40,.16), transparent 70%),
    radial-gradient(65vw 55vw at -8% -12%, rgba(70,90,140,.32), transparent 70%),
    linear-gradient(160deg, #1b1e27 0%, #10131a 55%, #16110d 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1.4px, transparent 1.8px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(100deg, #000 0%, rgba(0,0,0,.45) 45%, transparent 75%);
          mask-image: linear-gradient(100deg, #000 0%, rgba(0,0,0,.45) 45%, transparent 75%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.06; text-wrap: balance; margin: 0; color: #fff; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand);
}

/* ---------------- header ---------------- */
header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  background: rgba(16, 18, 24, 0.55);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: #fff; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links .lnk { font-size: 14.5px; color: var(--text-2); transition: color .2s; }
.nav-links .lnk:hover { color: #fff; }
.nav-cta {
  font-weight: 600; font-size: 14px; color: #1d1206;
  padding: 8px 16px; border-radius: 100px; background: var(--brand);
  transition: filter .2s, transform .2s;
}
.nav-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
@media (max-width: 720px) { .nav-links .lnk { display: none; } }

/* ---------------- App Store badge ---------------- */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 13px; padding: 10px 18px 10px 16px;
  transition: transform .2s, border-color .2s;
}
.appstore:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.6); }
.appstore .apple { width: 24px; height: 28px; fill: #fff; flex: none; }
.appstore .txt { display: flex; flex-direction: column; line-height: 1.1; }
.appstore .txt small { font-size: 11px; letter-spacing: 0.02em; opacity: 0.9; }
.appstore .txt span { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------------- footer ---------------- */
footer { border-top: 1px solid var(--line-soft); padding: 40px 0 56px; margin-top: 30px; }
.foot-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { font-size: 14px; color: var(--text-2); transition: color .2s; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: #fff; }
.foot-links a[aria-current="page"] { font-weight: 600; }
.copy-line { font-size: 13px; color: var(--text-3); }
.disclaimer { margin: 24px 0 0; font-size: 12.5px; color: var(--text-3); max-width: 70ch; }

/* ================= showcase page ================= */

/* hero */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero .appicon { width: 96px; height: 96px; margin: 0 0 26px -6px; }
.hero h1 { font-size: clamp(40px, 6vw, 66px); font-weight: 700; }
.hero .lead { font-size: clamp(17px, 2vw, 21px); color: var(--text-2); max-width: 30ch; margin: 22px 0 0; line-height: 1.45; }
.cta-row { display: flex; align-items: center; gap: 18px 22px; margin-top: 34px; flex-wrap: wrap; }
.meta { font-size: 14px; color: var(--text-3); }
.meta b { color: var(--text-2); font-weight: 500; }

/* Screenshot crops sit on the page like they sit on the desktop: no frame, just
   rounded, with the panel's own shadow. */
.shot { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface-solid); }
.shot img { width: 100%; }
/* Crops of the desktop: feather the edges so the panel floats on the page's own
   desktop instead of sitting in a box of wallpaper. */
.shot.fade { border-radius: 0; box-shadow: none; background: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 90%, transparent), linear-gradient(to bottom, #000 80%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 90%, transparent), linear-gradient(to bottom, #000 80%, transparent);
          mask-composite: intersect; }
.shot.fade.all {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 86%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 86%, transparent); }

/* feature rows */
.features { display: flex; flex-direction: column; gap: clamp(72px, 10vw, 130px); padding: clamp(30px, 6vw, 70px) 0; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.feature:nth-child(odd) .art { order: -1; }   /* hero has its image right, so the rows start left */
.feature .art { display: flex; justify-content: center; }
.feature .art .shot { max-width: 460px; width: 100%; }
.feature h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; margin-top: 14px; }
.feature p { color: var(--text-2); font-size: clamp(16px, 1.8vw, 18px); margin: 18px 0 0; max-width: 34ch; }

.points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 14px; }
.points li { display: flex; gap: 14px; align-items: flex-start; font-size: 16.5px; color: var(--text-2); line-height: 1.45; }
.points li b { color: #fff; font-weight: 600; }
.points svg { width: 20px; height: 20px; flex: none; margin-top: 2px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 860px) {
  .hero-grid, .feature { grid-template-columns: 1fr; text-align: center; }
  .hero .appicon { margin: 0 auto 22px; }
  .hero .lead, .feature p { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .feature .art, .feature:nth-child(odd) .art { order: 1; }   /* text above image when stacked */
  .points { text-align: left; max-width: 26rem; margin-left: auto; margin-right: auto; }
}

/* small features */
.grid-section { padding: clamp(50px, 8vw, 96px) 0; }
.grid-head { text-align: center; max-width: 40ch; margin: 0 auto clamp(34px, 5vw, 52px); }
.grid-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin-top: 12px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
  border-radius: 14px; padding: 24px 22px 26px; box-shadow: var(--shadow);
}
.card .ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,180,84,.16); margin-bottom: 16px; }
.card .ico svg { width: 20px; height: 20px; stroke: var(--brand); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.card p { color: var(--text-2); font-size: 14.5px; margin: 8px 0 0; line-height: 1.55; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* CTA */
.cta-band { padding: clamp(50px, 8vw, 100px) 0 clamp(30px, 5vw, 60px); }
.cta-inner {
  position: relative; overflow: hidden; text-align: center;
  background: var(--surface); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border-radius: 24px; box-shadow: var(--shadow);
  padding: clamp(44px, 7vw, 72px) 26px;
}
.cta-inner::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 110% at 50% 120%, rgba(255,160,60,.22), transparent 65%); }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; margin-top: 12px; }
.cta-inner p { color: var(--text-2); margin: 16px auto 0; max-width: 44ch; font-size: 17px; }
.cta-inner .cta-row { justify-content: center; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ================= legal pages ================= */
main.legal-main { padding: clamp(40px, 7vw, 76px) 0 clamp(30px, 5vw, 56px); }
.legal { max-width: var(--readw); margin: 0 auto; color: rgba(255,255,255,.78); line-height: 1.72; }
.legal h2 { font-weight: 700; font-size: clamp(30px, 5vw, 46px); }
.legal h2 + p { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); margin: 14px 0 30px; }
.legal h3 { font-weight: 600; letter-spacing: -0.01em; font-size: clamp(19px, 2.6vw, 23px); margin: 2.2em 0 0.2em; }
.legal p, .legal li { font-size: clamp(15.5px, 1.8vw, 17px); }
.legal p { margin: 1em 0; }
.legal ul { margin: 1em 0; padding-left: 1.3em; }
.legal li { margin: 0.55em 0; }
.legal li::marker { color: var(--brand); }
.legal a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,180,84,.45); }
.legal a:hover { color: #fff; text-decoration-color: #fff; }
