/* ==========================================================================
   soundboyselecta.com: the shared stylesheet

   Tokens, base styles, layout and components for every page. Plain CSS with
   no build step, because Netlify publishes site/ exactly as it is.

   A page that uses it
   -------------------
   In <head>, in this order:

     <meta name="color-scheme" content="light dark">
     <meta name="theme-color" content="#f7f4ee" media="(prefers-color-scheme: light)">
     <meta name="theme-color" content="#0e0d0b" media="(prefers-color-scheme: dark)">
     <link rel="icon" href="/favicon-32.png" sizes="32x32" type="image/png">
     <link rel="icon" href="/favicon-16.png" sizes="16x16" type="image/png">
     <link rel="icon" href="/favicon.svg" type="image/svg+xml">
     <link rel="apple-touch-icon" href="/apple-touch-icon.png">
     <link rel="preconnect" href="https://fonts.googleapis.com">
     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
     <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,800&display=swap">
     <link rel="stylesheet" href="/site.css">
     <script src="/site.js" defer></script>

   Then copy the skip link, header and footer from index.html as they are and
   put aria-current="page" on the nav link for the page you are on (in both
   the bar and the menu). Page-only layout goes in the page's own <style>;
   anything two pages share belongs here.

   The icons (favicon.svg, favicon-32.png, favicon-16.png, favicon.ico,
   apple-touch-icon.png) are rendered from brand/ by scripts/render-icons.swift.
   Never edit them by hand.

   Contents
     1. Tokens: colour, type, space, radii, shadow, for light and dark;
        .theme-dark for a dark block on a light page
     2. Base: reset, links, focus ring, .visually-hidden, .skip-link
     3. Layout: .container, .section (--alt band), .text-block,
        .section-head, .split (--flip), .grid (--3, --4), .flow
     4. Type: .eyebrow, .display-1 (h1), .display-2 (h2), .title, .lede,
        .fine, .wordmark
     5. Header and menu: .site-header, .brand, .site-nav, .site-menu
     6. Footer: .site-footer
     7. Buttons and links: .btn (--primary, --lg, --block), .btn-row,
        .link-more
     8. Cards and lists: .card, .badge, .feature-list, .steps, .checks, kbd
     9. Media: .stage (--grille), .window, .phone (--inset, __island),
        .tablet, .media-caption, .media-toggle
    10. Price and download: .price-card, .download-panel, .notify, .honeypot
    11. Motion preferences
   ========================================================================== */


/* 1. Tokens ================================================================

   Light is the default; dark follows the system. .theme-dark puts the dark
   values on one block of a light page (the download panel uses it), so keep
   it in step with the dark media query below.

   Every text colour pair here passes WCAG AA in both themes:
   --ink and --ink-2 on --bg, --bg-alt and --surface; --ink-3 for fine print
   at 4.5:1 or more; --accent-ink for green text and links.                 */

:root {
  color-scheme: light dark;

  /* The icon's own colours, the same in both themes. A cream cabinet on a
     warm near-black tile, a dark cone, one green dust cap. */
  --sb-tile: #141210;
  --sb-cream: #f1e8d6;
  --sb-cone: #1a1712;
  --sb-surround: #3a342a;
  --sb-green: #33d99a;

  /* Surfaces */
  --bg: #f7f4ee;            /* the page: warm paper */
  --bg-alt: #efe9df;        /* alternate section band */
  --surface: #fffdf9;       /* cards */
  --stage: #eee4d0;         /* the cream backdrop a window sits on */
  --stage-dots: rgba(58, 52, 42, 0.11);
  --fill: rgba(40, 32, 18, 0.07);     /* tonal controls: secondary buttons */
  --fill-2: rgba(40, 32, 18, 0.12);   /* their hover */
  --glass: rgba(247, 244, 238, 0.76);
  --glass-line: rgba(23, 21, 15, 0.08);
  --scrim: rgba(23, 21, 15, 0.28);    /* under an open menu */

  /* Text */
  --ink: #17150f;
  --ink-2: #58524a;
  --ink-3: #6a6357;
  --line: rgba(23, 21, 15, 0.10);
  --line-2: rgba(23, 21, 15, 0.18);
  --control-line: rgba(23, 21, 15, 0.5);  /* a text field's edge: 3:1 on the page */

  /* The one accent. Green fills buttons in both themes; as text on a light
     page it has to be the deeper --accent-ink to be readable. */
  --accent: var(--sb-green);
  --accent-hover: #2ccf90;
  --accent-ink: #05704a;
  --on-accent: #06291b;
  --accent-soft: rgba(51, 217, 154, 0.18);
  --focus: #05704a;

  /* Shadows: warm, soft, layered */
  --shadow-1: 0 1px 2px rgba(40, 30, 15, 0.05), 0 2px 10px rgba(40, 30, 15, 0.04);
  --shadow-2: 0 2px 6px rgba(40, 30, 15, 0.05), 0 18px 44px -14px rgba(40, 30, 15, 0.18);
  --shadow-window: 0 2px 6px rgba(28, 20, 8, 0.10), 0 28px 70px -20px rgba(28, 20, 8, 0.42);
  --shadow-device: 0 10px 24px -12px rgba(28, 20, 8, 0.28), 0 34px 64px -28px rgba(28, 20, 8, 0.48);

  /* Type. Bricolage Grotesque 800 for the wordmark and display headings;
     the Mac's own face for everything else. */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --text-xs: 0.8125rem;                                   /* 13: fine print */
  --text-sm: 0.9375rem;                                   /* 15: captions, nav */
  --text-md: 1.0625rem;                                   /* 17: body */
  --text-lg: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);  /* 19 to 22: lede */
  --text-xl: clamp(1.375rem, 1.2rem + 0.75vw, 1.75rem);   /* 22 to 28 */
  --text-2xl: clamp(2rem, 1.35rem + 2.8vw, 3.5rem);       /* 32 to 56: h2 */
  --text-3xl: clamp(2.625rem, 1.4rem + 5.2vw, 5.25rem);   /* 42 to 84: h1 */

  --leading-display: 1.02;
  --leading-body: 1.52;
  --tracking-display: -0.028em;
  --tracking-wordmark: -0.0227em;   /* -1px at 44px, as on the logo board */

  /* Space: a 4px grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;
  --space-13: 128px;

  --gutter: clamp(20px, 5vw, 48px);
  --container: 1200px;
  --measure: 38rem;
  --section-space: clamp(72px, 4rem + 5vw, 128px);
  --header-height: 60px;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --duration: 180ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d0b;
    --bg-alt: #151310;
    --surface: #1c1a16;
    --stage: #1b1915;
    --stage-dots: rgba(241, 232, 214, 0.055);
    --fill: rgba(241, 232, 214, 0.09);
    --fill-2: rgba(241, 232, 214, 0.15);
    --glass: rgba(14, 13, 11, 0.74);
    --glass-line: rgba(241, 232, 214, 0.08);
    --scrim: rgba(0, 0, 0, 0.6);

    --ink: #f5f0e6;
    --ink-2: #bab2a4;
    --ink-3: #9a9285;
    --line: rgba(241, 232, 214, 0.10);
    --line-2: rgba(241, 232, 214, 0.18);
    --control-line: rgba(241, 232, 214, 0.4);

    --accent-hover: #55e6ae;
    --accent-ink: #45e0a4;
    --accent-soft: rgba(51, 217, 154, 0.16);
    --focus: #45e0a4;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 18px 44px -14px rgba(0, 0, 0, 0.6);
    --shadow-window: 0 2px 8px rgba(0, 0, 0, 0.4), 0 30px 80px -20px rgba(0, 0, 0, 0.85);
    --shadow-device: 0 10px 24px -12px rgba(0, 0, 0, 0.6), 0 34px 70px -28px rgba(0, 0, 0, 0.9);
  }
}

/* A dark block on any page, in either theme. Keep in step with the above. */
.theme-dark {
  --bg: #0e0d0b;
  --bg-alt: #151310;
  --surface: #1c1a16;
  --stage: #1b1915;
  --stage-dots: rgba(241, 232, 214, 0.055);
  --fill: rgba(241, 232, 214, 0.09);
  --fill-2: rgba(241, 232, 214, 0.15);
  --ink: #f5f0e6;
  --ink-2: #bab2a4;
  --ink-3: #9a9285;
  --line: rgba(241, 232, 214, 0.10);
  --line-2: rgba(241, 232, 214, 0.18);
  --control-line: rgba(241, 232, 214, 0.4);
  --accent-hover: #55e6ae;
  --accent-ink: #45e0a4;
  --accent-soft: rgba(51, 217, 154, 0.16);
  --focus: #45e0a4;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 18px 44px -14px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
  color: var(--ink);
}


/* 2. Base ================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--text-md) / var(--leading-body) var(--font-sans);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  flex: none;
}

button,
input {
  font: inherit;
  letter-spacing: inherit;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

::selection {
  background: var(--accent-soft);
}

/* The sticky header covers the top of whatever a link jumps to. */
[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: var(--gutter);
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}


/* 3. Layout =============================================================== */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* Vertical rhythm for stacked content: .flow puts --flow between children. */
.flow > * + * {
  margin-block-start: var(--flow, var(--space-4));
}

.section {
  padding-block: var(--section-space);
}

.section--alt {
  background: var(--bg-alt);
}

/* A block of words: eyebrow, heading, lede, then a list or buttons. Spaces
   its children so a heading sits close to its eyebrow and a list stands a
   little apart from the paragraph above it. */
.text-block > * + * {
  margin-top: var(--space-5);
}

.text-block > :is(.eyebrow, .badge) + * {
  margin-top: var(--space-3);
}

.text-block > :is(ul, ol, .btn-row) {
  margin-top: var(--space-8);
}

.text-block > .link-more {
  margin-top: var(--space-4);
}

/* The heading of a section whose content runs full width below it. */
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-10));
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lede {
  margin-inline: auto;
}

/* Words beside a picture. Stacks below 900px; .split--flip puts the picture
   first on wide screens (the words still come first when stacked). */
.split {
  display: grid;
  gap: var(--space-9) var(--space-11);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .split--flip {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .split--flip > :first-child {
    order: 2;
  }
}

/* Equal columns that fill the row: set --grid-min on the grid to change
   how narrow a column may get before the row wraps. */
.grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min, 280px)), 1fr));
}

/* Fixed counts, for sets that should never leave a short last row:
   --3 is 1, 2, then 3 across; --4 is 1, 2, then 4 across. */
@media (min-width: 600px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* 4. Type ================================================================= */

.eyebrow {
  color: var(--accent-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.display-1,
.display-2,
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-synthesis: none;
}

.display-1 {
  font-size: var(--text-3xl);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.display-2 {
  font-size: var(--text-2xl);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.title {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.lede {
  max-width: var(--measure);
  color: var(--ink-2);
  font-size: var(--text-lg);
  line-height: 1.45;
  letter-spacing: -0.014em;
  text-wrap: pretty;
}

.fine {
  color: var(--ink-3);
  font-size: var(--text-xs);
  line-height: 1.5;
  letter-spacing: 0;
}

/* A link in small print is small: an invisible margin around it makes it a
   44px target without moving the text or stretching its focus ring. */
.fine a {
  position: relative;
}

.fine a::after {
  content: "";
  position: absolute;
  inset: -14px -4px;
}

/* The wordmark is a drawing, not text: the optical size is fixed at the
   size the logo board was drawn at, so it looks the same at every size. */
.wordmark {
  font-variation-settings: "opsz" 44;
  letter-spacing: var(--tracking-wordmark);
  line-height: 1;
}


/* 5. Header and menu ======================================================

   A glass bar that stays at the top. Wide screens get the links in the bar;
   narrow ones get Download and a menu button. The menu is a <details>, so it
   opens without JavaScript; site.js closes it after a link is followed.    */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass);
  border-bottom: 1px solid var(--glass-line);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--bg);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-inline-end: auto;
  color: var(--ink);
  text-decoration: none;
}

.brand__icon {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 22.5%;
}

/* On a dark page the icon's own tile is nearly the page's colour: a hairline
   gives it its edge back. */
@media (prefers-color-scheme: dark) {
  .brand__icon {
    box-shadow: 0 0 0 1px rgba(241, 232, 214, 0.16);
  }
}

.brand .wordmark {
  font-size: 22px;
}

.site-nav {
  display: none;
}

.site-nav ul,
.site-menu ul,
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul {
  display: flex;
  gap: 2px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease);
}

.site-nav a:hover {
  background: var(--fill);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.site-menu > summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.site-menu > summary::-webkit-details-marker {
  display: none;
}

.site-menu > summary:hover {
  background: var(--fill);
}

/* Two bars that cross into an X when the menu is open. */
.menu-bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--duration) var(--ease);
}

.menu-bars::before {
  top: 2px;
}

.menu-bars::after {
  bottom: 2px;
}

.site-menu[open] .menu-bars::before {
  transform: translateY(3.25px) rotate(45deg);
}

.site-menu[open] .menu-bars::after {
  transform: translateY(-3.25px) rotate(-45deg);
}

.site-menu__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: var(--space-2) var(--gutter) var(--space-6);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

/* Dims the page under the open menu; a tap on it closes the menu. */
.site-menu__panel::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 100vh;
  background: var(--scrim);
}

.site-menu__panel li a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  text-decoration: none;
}

.site-menu__panel li a[aria-current="page"] {
  color: var(--accent-ink);
}

/* On a 320px phone the bar has no room for Download, so the menu has it
   instead. Anywhere wider it is in the bar. */
.site-menu__panel .btn {
  display: none;
  width: 100%;
  margin-top: var(--space-6);
}

@media (max-width: 359px) {
  .site-header__inner > .site-header__download {
    display: none;
  }

  .site-menu__panel .btn {
    display: flex;
  }
}

@media (min-width: 860px) {
  :root {
    --header-height: 64px;
  }

  .site-nav {
    display: block;
    margin-inline-end: var(--space-2);
  }

  .site-menu {
    display: none;
  }
}


/* 6. Footer =============================================================== */

.site-footer {
  padding-block: var(--space-10) var(--space-11);
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: var(--text-sm);
}

.site-footer__inner {
  display: grid;
  gap: var(--space-6) var(--space-9);
}

.site-footer .brand {
  margin: 0;
}

.site-footer__tagline {
  margin-top: var(--space-2);
  color: var(--ink-2);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-1);
  margin-inline: -12px;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer li a:hover {
  background: var(--fill);
  color: var(--ink);
}

.site-footer__legal {
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

@media (min-width: 860px) {
  .site-footer__inner {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .site-footer ul {
    justify-content: flex-end;
  }

  .site-footer__legal {
    grid-column: 1 / -1;
  }
}


/* 7. Buttons and links ====================================================

   .btn is a tonal pill, the secondary action. Add --primary for the green
   one, the one thing on screen to press; --lg for heroes and panels; --block
   to fill the width. Every button is at least 44px tall, for thumbs.
   .link-more is a text link with a chevron, for "read more" moves.        */

.btn {
  --btn-bg: var(--fill);
  --btn-ink: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;  /* shows up in forced-colours mode */
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.btn:hover {
  --btn-bg: var(--fill-2);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  --btn-bg: var(--accent);
  --btn-ink: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(6, 41, 27, 0.16);
}

.btn--primary:hover {
  --btn-bg: var(--accent-hover);
}

.btn--lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: var(--text-md);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

/* A text link that goes somewhere: "Every feature ›". */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.link-more::after {
  content: "";
  width: 0.5em;
  height: 0.5em;
  margin-top: 0.05em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 1px;
  transform: rotate(45deg) scale(0.85);
}

.link-more:hover {
  text-decoration: underline;
}


/* 8. Cards, badges, lists, steps, keys ==================================== */

.card {
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.card h3 {
  margin-bottom: var(--space-2);
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -0.016em;
}

.card p {
  color: var(--ink-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

/* Statements with a bold lead-in, separated by hairlines. */
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.feature-list > li {
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.feature-list strong {
  color: var(--ink);
  font-weight: 600;
}

/* Numbered steps. Each number sits on a little speaker cone: dark cone,
   surround ring, and the number where the green dust cap would be. */
.steps {
  display: grid;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: var(--space-4);
  counter-increment: step;
}

.steps > li::before {
  content: counter(step);
  content: counter(step) / "";  /* the <ol> already says the number */
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, transparent 0 64%, var(--sb-surround) 65% 71%, transparent 72%),
    var(--sb-cone);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--sb-green);
  font: 800 1.125rem / 1 var(--font-display);
  font-synthesis: none;
}

.steps h3 {
  align-self: end;
  padding-top: 2px;
  font-size: var(--text-md);
  letter-spacing: -0.014em;
}

.steps p {
  color: var(--ink-2);
}

/* A green tick before each item. */
.checks {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks > li {
  position: relative;
  padding-left: 30px;
}

.checks > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.6 3.5 7.4-8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.6 3.5 7.4-8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* A key on the keyboard: <kbd>⌘Z</kbd>. */
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7em;
  height: 1.6em;
  padding: 0 0.4em;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xs);
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line-2);
  color: var(--ink);
  font: 600 0.8em / 1 var(--font-sans);
  letter-spacing: 0;
  vertical-align: 0.08em;
  white-space: nowrap;
}


/* 9. Media ================================================================

   Screenshots and videos are the real app. The frames around them are drawn
   here in CSS, so they stay sharp at any size and follow the theme.

   .stage    a rounded cream (dark in dark mode) backdrop; --grille adds the
             perforated dots of a speaker grille
   .window   a Mac window: the corners, the edge and the shadow. The current
             screenshots carry the app's own title strip, so no fake traffic
             lights are drawn on top.
   .phone    an iPhone: bezel, corners, side buttons. Add
             <span class="phone__island"></span> when the screenshot has a
             status bar (it sits where the Dynamic Island would).
   .tablet   an iPad with an even bezel.

   Phones get pictures their own size. A screenshot is a <picture> whose one
   <source media="(max-width: 699px)"> is AVIF, a tenth to a fifth of the
   JPEG's weight: 470 wide for the phone shots, and for the Mac and iPad
   shots both 800 and 1000 with sizes="90vw", the widest any is drawn on a
   phone, so a 2x phone takes the 800 and a 3x phone the 1000. Wider screens,
   and browsers without AVIF, get the JPEG <img>, which also carries the size
   and the alt text. The hero video does the same with desktop-loop-960.mp4.
   The JPEG and MP4 files themselves never change.

   Make an AVIF from its JPEG with sips, for example
     sips -s format avif -s formatOptions 60 -z 624 1000 x.jpg --out x-1000.avif
   keeping both sides even and under 1024. macOS writes a larger AVIF as a
   grid of tiles, which Firefox can't decode and Chrome can draw black, and
   Firefox refuses an odd side. That is why desktops keep the JPEGs.          */

.stage {
  position: relative;
  padding: clamp(14px, 4.5vw, 64px);
  border-radius: var(--radius-xl);
  background-color: var(--stage);
}

.stage--grille {
  background-image: radial-gradient(circle, var(--stage-dots) 1.2px, transparent 1.7px);
  background-size: 11px 11px;
  background-position: center;
}

.window {
  position: relative;
  overflow: hidden;
  border-radius: clamp(8px, 1.1vw, 14px);
  background: #0b0c10;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), var(--shadow-window);
  isolation: isolate;
}

.window::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11);
  pointer-events: none;
}

/* The <picture> only chooses the file. It is a plain block, so the rules
   below size and round the <img> inside it as if it stood alone. */
picture {
  display: block;
}

.window > picture > img,
.window > video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* The phone's proportions come from the screenshots: 600 x 1304. The bezel
   is 3.6% of the width; corner radii are in percent of the box's own width
   and height, so they scale with it. */
.phone {
  position: relative;
  padding: 3.6%;
  border-radius: 15.5% / 7.4%;
  background: #0c0b0a;
  box-shadow: inset 0 0 0 1px #4a463f, inset 0 0 0 3px #1c1a17, var(--shadow-device);
}

.phone > picture > img,
.phone > video {
  width: 100%;
  aspect-ratio: 600 / 1304;
  object-fit: cover;
  border-radius: 12.8% / 5.9%;
  background: var(--screen, #000);
}

/* A web page captured without a status bar (the phone remote): the page is
   drawn a little in from the edge so the rounded corners don't cut into it.
   Set --screen to the page's own background so the margin doesn't show. */
.phone--inset > picture > img {
  padding: 5% 2.5% 2.5%;
  object-fit: contain;
}

.phone__island {
  position: absolute;
  top: 2.9%;
  left: 50%;
  width: 29.5%;
  aspect-ratio: 126 / 37;
  border-radius: var(--radius-pill);
  background: #000;
  transform: translateX(-50%);
}

/* Side buttons: action and volume on the left, power on the right. */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 2px;
  background: #2e2b27;
}

.phone::before {
  left: -2px;
  top: 17%;
  height: 21%;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(#2e2b27 0 17%, transparent 17% 33%, #2e2b27 33% 62%, transparent 62% 71%, #2e2b27 71%);
}

.phone::after {
  right: -2px;
  top: 25%;
  height: 11%;
  border-radius: 0 2px 2px 0;
}

.tablet {
  position: relative;
  padding: 3%;
  border-radius: 5.2% / 6.8%;
  background: #0c0b0a;
  box-shadow: inset 0 0 0 1px #4a463f, inset 0 0 0 3px #1c1a17, var(--shadow-device);
}

.tablet > picture > img {
  width: 100%;
  aspect-ratio: 1600 / 1199;
  object-fit: cover;
  border-radius: 2.4% / 3.2%;
  background: #000;
}

/* A caption under a picture, with room on the right for a play/pause
   button when the picture is a video. */
.media-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-5);
  color: var(--ink-3);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.media-caption p {
  max-width: 68ch;
}

.media-caption strong {
  color: var(--ink-2);
  font-weight: 600;
}

/* Play and pause for a video that plays by itself. site.js shows it and
   takes the browser's own controls away; without JavaScript the video
   keeps the browser's controls instead. */
.media-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--fill);
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--duration) var(--ease);
}

.media-toggle:hover {
  background: var(--fill-2);
}

.media-toggle[hidden] {
  display: none;
}

.media-toggle svg {
  width: 16px;
  height: 16px;
}

.media-toggle .icon-play,
.media-toggle[data-state="paused"] .icon-pause {
  display: none;
}

.media-toggle[data-state="paused"] .icon-play {
  display: block;
}


/* 10. Price, download panel, launch email form ============================ */

/* The price card is the brightest thing on the page: white on a light page,
   and on a dark one the cream of the speaker cabinet. Its text colours stay
   dark in both. */
.price-card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #ffffff;
  color: #17150f;
  box-shadow: var(--shadow-2);
  color-scheme: light;
  --ink: #17150f;
  --ink-2: #57514a;
  --ink-3: #5f584d;
  --line: rgba(23, 21, 15, 0.12);
  --fill: rgba(40, 32, 18, 0.07);
  --fill-2: rgba(40, 32, 18, 0.12);
  --accent-ink: #05704a;
  --focus: #05704a;
}

@media (prefers-color-scheme: dark) {
  .price-card {
    border-color: transparent;
    background: var(--sb-cream);
  }
}

.price-card__amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}

.price-card__figure {
  font: 800 clamp(3.75rem, 2.8rem + 4vw, 5.5rem) / 0.9 var(--font-display);
  font-synthesis: none;
  letter-spacing: -0.035em;
}

.price-card__term {
  color: var(--ink-2);
  font-size: var(--text-md);
}

.price-card .checks {
  margin-block: var(--space-7);
  padding-top: var(--space-7);
  border-top: 1px solid var(--line);
}

.price-card .fine {
  margin-top: var(--space-4);
  color: var(--ink-3);
}

/* The download panel: the dark tile the speaker sits on, in both themes. */
.download-panel {
  padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 72px);
  border-radius: var(--radius-xl);
  background: #1c1a16;
  box-shadow: inset 0 0 0 1px rgba(241, 232, 214, 0.08), var(--shadow-2);
  text-align: center;
}

.download-panel__icon {
  width: clamp(88px, 10vw, 120px);
  height: auto;
  margin: 0 auto var(--space-7);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5));
}

.download-panel .lede {
  margin: var(--space-5) auto 0;
}

.download-panel .btn-row {
  justify-content: center;
  margin-top: var(--space-8);
}

.download-panel__notes {
  display: grid;
  gap: var(--space-3);
  max-width: 40rem;
  margin: var(--space-7) auto 0;
}

/* The launch email form. Netlify reads it at deploy time: keep the form's
   name, data-netlify, the honeypot and the hidden form-name input. */
.notify {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* The field takes the row; the button keeps its size beside it, or fills
   the width when it wraps onto a line of its own. */
.notify input[type="email"] {
  flex: 999 1 240px;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--control-line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-md);
}

.notify input[type="email"]::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.notify input[type="email"]:focus-visible {
  border-color: var(--focus);
  outline-offset: 1px;
}

.notify .btn {
  flex: 1 0 auto;
}

/* Netlify's honeypot: a person never sees it, a bot fills it in. */
.honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* 11. Motion ============================================================== */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Privacy and terms: privacy.html, terms.html =============================

   A page of long-form text: the title, the date it was last changed, a
   contents list, then the text at a reading measure. On wide screens the
   contents list sits beside the text and stays in view as it scrolls.
   Nothing above this section is changed by it; the footer rule at the end
   marks the page you are on wherever a footer link says aria-current.     */

.legal {
  padding-block: clamp(40px, 6vw, 88px) var(--section-space);
}

.legal__layout {
  display: grid;
  gap: var(--space-8);
}

.legal__head,
.legal__toc,
.legal__body {
  max-width: 40rem;
}

.legal__head > * + * {
  margin-top: var(--space-4);
}

.legal__updated {
  color: var(--ink-3);
  font-size: var(--text-sm);
}

.legal__head > .legal__callout {
  margin-top: var(--space-7);
}

/* A paragraph set apart: the plain-words summary at the top of the privacy
   policy, and the warning about what the app does to files. */
.legal__callout {
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--ink);
  line-height: 1.55;
}

/* The warning is a dark card in both themes: give it .theme-dark too. */
.legal__callout--warn {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1);
}

.legal__callout strong {
  font-weight: 600;
}

/* The contents list: a card above the text on a phone, a column beside it
   on a wide screen. */
.legal__toc {
  padding: var(--space-5) var(--space-5) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-size: var(--text-sm);
}

.legal__toc ol {
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line-2);
}

.legal__toc a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px var(--space-4);
  border-left: 2px solid transparent;
  color: var(--ink-2);
  line-height: 1.35;
  text-decoration: none;
}

.legal__toc a:hover {
  border-left-color: var(--accent);
  color: var(--ink);
}

/* The text itself. */
.legal__body {
  color: var(--ink-2);
  line-height: 1.6;
  text-wrap: pretty;
}

.legal__body > * + * {
  margin-top: var(--space-4);
}

.legal__body > h2 {
  margin-top: var(--space-9);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--text-xl);
  letter-spacing: -0.018em;
}

.legal__body > h2:first-child {
  margin-top: 0;
}

.legal__body > h2 + * {
  margin-top: var(--space-3);
}

.legal__body > .legal__callout {
  margin-block: var(--space-6);
}

.legal__body strong {
  color: var(--ink);
  font-weight: 600;
}

.legal__body .feature-list {
  margin-top: var(--space-5);
}

.legal__body code {
  padding: 0.1em 0.35em;
  border-radius: var(--radius-xs);
  background: var(--fill);
  color: var(--ink);
  font: 0.85em / 1.5 var(--font-mono);
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (min-width: 1000px) {
  .legal__layout {
    grid-template-columns: 14rem minmax(0, 40rem);
    grid-template-rows: auto 1fr;
    column-gap: clamp(var(--space-10), 7vw, var(--space-13));
    row-gap: var(--space-9);
  }

  .legal__head,
  .legal__body {
    grid-column: 2;
  }

  .legal__toc {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }
}

/* Beside the text, it follows the reader down, when there is room for it. */
@media (min-width: 1000px) and (min-height: 640px) {
  .legal__toc {
    position: sticky;
    top: calc(var(--header-height) + var(--space-8));
  }
}

/* The page you are on, in the footer: these two pages have no link in the
   header's nav, so the footer is where they say "you are here". */
.site-footer li a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
