/* YellowLight website. One stylesheet, no web fonts, no external files. Light and dark mode follow the visitor's
   system setting. Colors come from the app icon (Resources/Icon): an amber tile (#FFD55E to #F08800 at its edge)
   with navy voice bars and a fermata, the music pause mark (#34437F to #121939); the site's navy is #2A4274 and its
   amber #FFB224 (macOS's own orange, #FF9F0A, is the app's warning color). */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: #182033;
  --text-muted: #4a5468;
  --border: #dce2ec;
  --link: #2a55c0;
  --link-hover: #1b3c8e;
  --accent: #ffb224;
  --accent-text: #1c1708;
  --navy: #2a4274;
  --navy-soft: #e8edf7;
  --amber-text: #9a5300;
  --icon-bg: var(--navy-soft);
  --icon-fg: var(--navy);
  --check-bg: var(--navy);
  --step-bg: linear-gradient(135deg, #3f5b97, #16244a);
  --step-text: #ffffff;
  --focus: #2a55c0;
  --code-bg: #eef1f7;
  --callout-bg: #fff6e3;
  --callout-border: #f2c873;
  --shadow: 0 1px 2px rgba(20, 30, 50, 0.06), 0 8px 24px rgba(20, 30, 50, 0.08);

  --menu-bg: rgba(246, 247, 250, 0.97);
  --menu-text: #1d1d1f;
  --menu-muted: #6b7079;
  --menu-sep: rgba(0, 0, 0, 0.1);
  --menubar-bg: #e9edf3;

  --radius: 14px;
  --wrap: 1080px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1219;
    --bg-soft: #121927;
    --surface: #172030;
    --surface-raised: #1c2637;
    --text: #e8edf4;
    --text-muted: #a9b4c4;
    --border: #2a3547;
    --link: #8db4ff;
    --link-hover: #b7d0ff;
    --accent: #ffb73d;
    --accent-text: #1c1708;
    --navy: #8fa8dc;
    --navy-soft: #1d2842;
    --amber-text: #ffb73d;
    --icon-bg: #2a2412;
    --icon-fg: #ffb73d;
    --check-bg: #ffb73d;
    --step-bg: linear-gradient(135deg, #ffcf6e, #ff9f0a);
    --step-text: #1c1708;
    --focus: #8db4ff;
    --code-bg: #1d2737;
    --callout-bg: #2a2313;
    --callout-border: #6e5523;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);

    --menu-bg: rgba(40, 42, 48, 0.97);
    --menu-text: #f2f2f4;
    --menu-muted: #9a9ea8;
    --menu-sep: rgba(255, 255, 255, 0.12);
    --menubar-bg: #232a35;
  }
}

/* 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(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

@media (min-width: 720px) {
  body {
    font-size: 1.0625rem;
  }
  :root {
    --gutter: 24px;
  }
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--link-hover);
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.1rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
}

h3 {
  font-size: 1.15rem;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

kbd {
  font-family: var(--font);
  font-size: 0.9em;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0 0.35em;
  background: var(--surface);
}

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

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

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 10;
  background: var(--accent);
  color: var(--accent-text);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
  color: var(--accent-text);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 36px;
  height: 36px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0;
  display: inline-block;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

/* Sections */

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-intro {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.08em;
  margin-bottom: 32px;
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-text);
  margin-bottom: 8px;
}

/* Hero */

.hero {
  padding: 48px 0 56px;
}

.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 920px) {
  .hero {
    padding: 72px 0 80px;
  }
  .hero .wrap {
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
  }
}

.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 0 12px -8px;
  display: block;
}

.lede {
  font-size: 1.15em;
  color: var(--text-muted);
  max-width: 560px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 28px 0 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 650;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 12px;
  line-height: 1.25;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(150, 90, 0, 0.18);
}

.button:hover {
  color: var(--accent-text);
  filter: brightness(1.05);
}

.button svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.text-link {
  font-weight: 600;
}

.note {
  font-size: 0.92em;
  color: var(--text-muted);
  margin: 0;
}

/* Illustrations */

.figure {
  margin: 0;
}

.figure figcaption {
  font-size: 0.9em;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

.screen-art {
  display: block;
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.pill-breath {
  animation: breathe 1.6s ease-in-out infinite alternate;
}

@keyframes breathe {
  from {
    opacity: 0.75;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pill-breath {
    animation: none;
  }
}

/* Cards */

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.card h3 {
  margin-bottom: 0.35em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--icon-bg);
  color: var(--icon-fg);
  margin-bottom: 12px;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

/* Amber and red: the three states of the light */

.signal-art {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  border-radius: 12px;
}

/* How it works */

.how {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 920px) {
  .how {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 56px;
  }
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 56px;
  margin-bottom: 28px;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--step-text);
  background: var(--step-bg);
}

.steps h3 {
  margin-bottom: 0.3em;
  padding-top: 6px;
}

.steps p {
  color: var(--text-muted);
  margin-bottom: 0.6em;
}

.aside-box {
  border-left: 4px solid #ff9f0a;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin-top: 8px;
}

.aside-box h3 {
  margin-bottom: 0.3em;
}

.aside-box p {
  margin: 0;
  color: var(--text-muted);
}

/* The menu illustration (HTML so it stays readable text) */

.menu-mock {
  max-width: 360px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.35;
}

.menubar-mock {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  background: var(--menubar-bg);
  border: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
  padding: 5px 12px;
  color: var(--menu-text);
  font-size: 13px;
}

.menubar-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 7px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}

.menubar-item.is-open {
  background: rgba(127, 127, 127, 0.28);
}

.menubar-item svg {
  width: 18px;
  height: 18px;
}

.menubar-dim {
  color: var(--menu-muted);
}

.menu-panel {
  list-style: none;
  margin: 6px 0 0 auto;
  padding: 5px;
  width: 330px;
  max-width: 100%;
  background: var(--menu-bg);
  color: var(--menu-text);
  border: 1px solid var(--menu-sep);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.menu-panel li {
  padding: 3px 10px 3px 26px;
  border-radius: 6px;
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.menu-panel .is-disabled {
  color: var(--menu-muted);
}

.menu-panel .is-checked::before {
  content: "\2713";
  position: absolute;
  left: 9px;
  font-weight: 700;
}

.menu-panel .sep {
  height: 1px;
  padding: 0;
  margin: 5px 10px;
  background: var(--menu-sep);
}

.menu-panel .key {
  color: var(--menu-muted);
}

/* Privacy promise */

.promise {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.promise li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 18px 54px;
  position: relative;
}

.promise li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 21px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--check-bg);
}

.promise li::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 25px;
  width: 6px;
  height: 11px;
  border: solid var(--bg);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.promise strong {
  display: block;
  margin-bottom: 2px;
}

.promise span {
  color: var(--text-muted);
}

/* Requirements / download */

.download {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 920px) {
  .download {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

.req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.req-list li {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.req-list li:first-child {
  border-top: 0;
}

.req-list strong {
  display: block;
}

.req-list span {
  color: var(--text-muted);
  font-size: 0.95em;
}

.store-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.store-box img {
  width: 112px;
  height: 112px;
  display: block;
  margin: 0 auto 8px;
}

.store-box .actions {
  justify-content: center;
  margin: 20px 0 12px;
}

/* Documents (privacy policy, support) */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px var(--gutter) 64px;
}

.doc h1 {
  margin-bottom: 0.25em;
}

.doc h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.8vw, 1.6rem);
  margin-top: 2em;
  padding-top: 0.2em;
}

.doc h3 {
  margin-top: 1.6em;
}

.doc li {
  margin-bottom: 0.4em;
}

.meta {
  color: var(--text-muted);
  margin-bottom: 2em;
}

.callout {
  background: var(--callout-bg);
  border: 1px solid var(--callout-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 1.5em;
}

.callout p:last-child {
  margin-bottom: 0;
}

.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 22px;
  background: var(--bg-soft);
  margin-bottom: 2em;
}

.toc h2 {
  font-size: 1rem;
  margin: 0 0 0.5em;
  padding: 0;
}

.toc ol {
  margin: 0;
  padding-left: 1.3em;
}

.toc li {
  margin-bottom: 0.2em;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95em;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

thead th {
  border-top: 0;
  background: var(--bg-soft);
  font-weight: 650;
}

tbody th {
  font-weight: 650;
  white-space: nowrap;
}

.where {
  display: inline-block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.95em;
}

/* On phones, stack the storage table into blocks */
@media (max-width: 640px) {
  .stack-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .stack-table tr {
    display: block;
    border-top: 1px solid var(--border);
    padding: 6px 0;
  }
  .stack-table tbody tr:first-child {
    border-top: 0;
  }
  .stack-table th,
  .stack-table td {
    display: block;
    border: 0;
    padding: 6px 14px;
    white-space: normal;
  }
  .stack-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
  }
}

/* FAQ */

.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 14px 44px 14px 18px;
  position: relative;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4em;
  font-weight: 400;
  color: var(--text-muted);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details > div {
  padding: 0 18px 6px;
  color: var(--text);
}

.faq details[open] summary {
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.steps-plain li {
  margin-bottom: 0.6em;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 32px 0 40px;
  font-size: 0.92em;
  color: var(--text-muted);
}

.site-footer .wrap {
  display: grid;
  gap: 10px;
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer p {
  margin: 0;
}

.fine-print {
  font-size: 0.9em;
}

@media print {
  .site-header nav,
  .skip-link,
  .site-footer nav {
    display: none;
  }
  .faq details > div {
    display: block;
  }
}
