/* ============================================================================
   Caerus Digital website, drawn in Apple's design language (live since 2026-10-04).

   One stylesheet for every page in Mockups/CompanyWebsite/. Apple Human Interface
   Guidelines foundations: SF Pro (system font) only, Regular to Bold weights,
   semantic label/background colors with light and dark values, one accent
   (system blue) for links and buttons, Liquid Glass only on the floating nav.
   Content is full-width bands with hairlines, never floating cards (Matt's
   standing "no cards" override). Light/dark follows the system setting.
   ========================================================================== */

:root {
  color-scheme: light dark;
  --label: #1d1d1f;
  --label-2: rgba(60, 60, 67, .72);
  --label-3: rgba(60, 60, 67, .45);
  --separator: rgba(60, 60, 67, .2);
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-inverse: #000000;
  --label-inverse: #f5f5f7;
  --label-inverse-2: rgba(235, 235, 245, .66);
  --tint: #0071e3;
  --tint-hover: #0077ed;
  --link: #0066cc;
  --link-inverse: #2997ff;
  --fill: rgba(120, 120, 128, .12);
  --glass: rgba(250, 250, 252, .72);
  --gold: #b07d00;          /* the brand's gold, used only for the wordmark mark */
  --radius-media: 18px;
  --max: 980px;
  --max-wide: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --label: #f5f5f7;
    --label-2: rgba(235, 235, 245, .7);
    --label-3: rgba(235, 235, 245, .4);
    --separator: rgba(84, 84, 88, .65);
    --bg: #000000;
    --bg-2: #161617;
    --bg-inverse: #f5f5f7;
    --label-inverse: #1d1d1f;
    --label-inverse-2: rgba(60, 60, 67, .72);
    --tint: #0a84ff;
    --tint-hover: #409cff;
    --link: #2997ff;
    --link-inverse: #0066cc;
    --fill: rgba(120, 120, 128, .24);
    --glass: rgba(22, 22, 23, .72);
    --gold: #ffb400;
  }
}

/* ── Base ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--label);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.47; letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--label); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--bg); padding: 8px 12px; border-radius: 8px; }

/* ── Type scale (apple.com-style marketing sizes, HIG weights) ────────── */
.eyebrow { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--label-2); margin-bottom: 8px; }
.eyebrow.tint { color: var(--gold); }
.display { font-size: clamp(40px, 6vw, 64px); line-height: 1.06; font-weight: 700; letter-spacing: -.015em; }
.headline { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -.003em; }
.title { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.125; font-weight: 600; letter-spacing: .004em; }
.title-3 { font-size: 21px; line-height: 1.19; font-weight: 600; letter-spacing: .011em; }
.subhead { font-size: clamp(19px, 2vw, 24px); line-height: 1.33; font-weight: 500; color: var(--label-2); letter-spacing: .009em; }
.body-2 { color: var(--label-2); }
.caption { font-size: 14px; line-height: 1.43; color: var(--label-2); letter-spacing: -.016em; }
.center { text-align: center; }
.measure, .wrap.measure { max-width: 680px; margin-left: auto; margin-right: auto; }
main { overflow-x: clip; }

/* ── Global nav: the one Liquid Glass layer, frozen at the top ─────────── */
.gnav {
  position: sticky; top: 0; z-index: 50; height: 48px;
  background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--separator);
}
.gnav-inner { max-width: var(--max); margin: 0 auto; height: 48px; padding: 0 22px; display: flex; align-items: center; gap: 28px; }
.gnav-brand { display: flex; align-items: center; gap: 8px; color: var(--label); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.gnav-brand:hover { text-decoration: none; }
.gnav-brand .mark { display: block; height: 22px; }
.gnav-brand .mark img { width: auto; height: 22px; }
.gnav-links { display: flex; gap: 26px; margin-left: auto; }
.gnav-links a { color: var(--label); opacity: .8; font-size: 13px; letter-spacing: -.01em; }
.gnav-links a:hover { opacity: 1; text-decoration: none; }
.gnav-links a[aria-current="page"] { opacity: 1; font-weight: 600; }
.gnav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--label); font: inherit; font-size: 14px; padding: 10px 0; min-height: 44px; cursor: pointer; }

/* ── Local nav: product name + one action, frozen under the global nav ── */
.lnav {
  position: sticky; top: 48px; z-index: 40; height: 52px;
  background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--separator);
}
.lnav-inner { max-width: var(--max); margin: 0 auto; height: 52px; padding: 0 22px; display: flex; align-items: center; gap: 22px; }
.lnav-title { font-size: 21px; font-weight: 600; letter-spacing: .011em; color: var(--label); margin-right: auto; }
.lnav-title:hover { text-decoration: none; }
.lnav-links { display: flex; gap: 22px; }
.lnav-links a { font-size: 12px; color: var(--label); opacity: .8; }
.lnav-links a:hover { opacity: 1; text-decoration: none; }

/* ── Buttons (HIG: one prominent action per view, pill shape, 44pt) ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 11px 22px; border-radius: 980px; border: 0;
  background: var(--tint); color: #fff; font: inherit; font-size: 17px; font-weight: 400; letter-spacing: -.022em;
  cursor: pointer; transition: background .15s, transform .1s;
}
.btn:hover { background: var(--tint-hover); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.secondary { background: transparent; color: var(--tint); box-shadow: inset 0 0 0 1px var(--tint); }
.btn.secondary:hover { background: var(--tint); color: #fff; }
.btn.small { min-height: 30px; padding: 4px 14px; font-size: 13px; }
.btn[disabled], .btn.is-disabled { background: var(--fill); color: var(--label-3); box-shadow: none; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center; margin-top: 26px; }
.actions.leading { justify-content: flex-start; }
.more { font-size: 17px; color: var(--link); }
.more::after { content: " \203A"; }
.band.inverse .more, .band.inverse a:not(.btn) { color: var(--link-inverse); }

/* ── Bands: every section is full width; alternate grounds to group ───── */
.band { padding: 96px 22px; background: var(--bg); }
.band.alt { background: var(--bg-2); }
.band.inverse { background: var(--bg-inverse); color: var(--label-inverse); }
.band.inverse h1, .band.inverse h2, .band.inverse h3, .band.inverse h4 { color: var(--label-inverse); }
.band.inverse .subhead, .band.inverse .body-2, .band.inverse .caption, .band.inverse .eyebrow { color: var(--label-inverse-2); }
.band.tight { padding-top: 56px; padding-bottom: 56px; }
.wrap { max-width: var(--max); margin: 0 auto; }
.wrap.wide { max-width: var(--max-wide); }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head .subhead { margin-top: 14px; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 88px 22px 72px; text-align: center; }
.hero .app-icon { width: 128px; height: 128px; border-radius: 28px; margin: 0 auto 28px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.hero .display + .subhead { margin-top: 14px; }
.hero .lede { max-width: 680px; margin: 22px auto 0; font-size: 19px; line-height: 1.42; color: var(--label-2); }
.price-line { margin-top: 16px; font-size: 14px; color: var(--label-2); }
.store-badge { display: inline-block; }
.store-badge img { height: 44px; }
.store-badge.is-disabled { opacity: .4; filter: grayscale(1); cursor: not-allowed; }
.status-capsule { display: inline-block; padding: 3px 10px; border-radius: 980px; background: var(--fill); color: var(--label-2); font-size: 12px; font-weight: 600; letter-spacing: 0; }

/* ── Columns separated by hairlines (no boxes) ────────────────────────── */
.cols { display: grid; gap: 0; }
.cols.c2 { grid-template-columns: repeat(2, 1fr); }
.cols.c3 { grid-template-columns: repeat(3, 1fr); }
.cols.c4 { grid-template-columns: repeat(4, 1fr); }
.cols > * { padding: 4px 28px; border-left: 1px solid var(--separator); }
.cols > *:first-child { border-left: 0; padding-left: 0; }
.cols > *:last-child { padding-right: 0; }
.cols h3 { font-size: 21px; line-height: 1.19; margin-bottom: 8px; }
.cols p { color: var(--label-2); font-size: 15px; line-height: 1.47; }
.band.inverse .cols > * { border-color: rgba(235, 235, 245, .2); }

/* ── Plain rows: list with inset hairlines (HIG lists) ────────────────── */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--separator); }
.rows > li, .rows > a.row { display: flex; align-items: baseline; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--separator); color: var(--label); }
.rows > a.row:hover { text-decoration: none; background: var(--fill); }
.rows .row-title { font-size: 19px; font-weight: 600; flex: 0 0 240px; }
.rows .row-text { color: var(--label-2); flex: 1; }
.rows .chevron { color: var(--label-3); margin-left: auto; }
.rows .chevron::after { content: "\203A"; font-size: 22px; }
.checks { list-style: none; padding: 0; margin: 14px 0 0; }
.checks li { position: relative; padding: 4px 0 4px 26px; color: var(--label-2); font-size: 15px; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--tint); font-weight: 600; }

/* ── Split: media beside copy ─────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split .media img { border-radius: var(--radius-media); }
.split.top { align-items: start; }
.pullquote { margin: 28px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); font-size: 19px; line-height: 1.42; color: var(--label); }
.pullquote cite { display: block; margin-top: 10px; font-size: 13px; font-style: normal; color: var(--label-2); }

/* ── Screenshot gallery: a wrapping grid, never a sideways scroller ─────
   (Matt, 2026-10-04: "no horizontal scrolling ... the images are going off
   the screen"). Phone shots 4 across, iPad shots 3 across, fewer as it narrows. */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 24px; margin: 0; padding: 0; overflow: visible; }
.gallery.ipad, .gallery:has(.shot.ipad) { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.shot { margin: 0; min-width: 0; width: auto; }
.shot img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 0 0 1px var(--separator); background: #000; }
.shot.ipad img { border-radius: 14px; }
.shot figcaption { margin-top: 14px; }
.shot figcaption strong { display: block; font-size: 17px; font-weight: 600; color: var(--label); margin-bottom: 4px; }
.band.inverse .shot figcaption strong { color: var(--label-inverse); }
.shot figcaption span { font-size: 14px; line-height: 1.43; color: var(--label-2); }
.band.inverse .shot figcaption span { color: var(--label-inverse-2); }

/* ── Legal / long-form prose ──────────────────────────────────────────── */
.prose { max-width: 760px; margin: 0 auto; font-size: 15px; line-height: 1.6; }
.prose h2 { font-size: 32px; line-height: 1.125; margin-bottom: 6px; }
.prose .updated { font-size: 13px; color: var(--label-2); margin-bottom: 28px; }
.prose h3 { font-size: 19px; margin: 32px 0 8px; }
.prose h4 { font-size: 17px; margin: 28px 0 8px; }
.prose .lead { font-size: 17px; }
.prose .legalese { font-size: 13px; line-height: 1.55; color: var(--label-2); }
.prose .summary { padding: 16px 0 16px 18px; border-left: 3px solid var(--tint); margin: 0 0 24px; color: var(--label); }
.prose ul { padding-left: 1.2em; }
.prose hr { border: 0; border-top: 1px solid var(--separator); margin: 36px 0; }

/* ── Forms (HIG text fields: label above, 44pt rows) ──────────────────── */
.form { max-width: 680px; margin: 0 auto; }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-size: 13px; font-weight: 600; color: var(--label-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--separator);
  background: var(--bg); color: var(--label); font: inherit; font-size: 17px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--tint); box-shadow: 0 0 0 4px rgba(0, 113, 227, .18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; row-gap: 0; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.choices input { accent-color: var(--tint); width: 18px; height: 18px; }
.field .is-invalid, .field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: #ff3b30; box-shadow: 0 0 0 4px rgba(255, 59, 48, .15); }
@media (prefers-color-scheme: dark) { .field .is-invalid { border-color: #ff453a; } }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 18px; }
.choices label { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 400; color: var(--label); min-height: 32px; }
.form-section { font-size: 21px; font-weight: 600; margin: 36px 0 14px; padding-top: 24px; border-top: 1px solid var(--separator); }

/* ── Mockup notice: what is turned off in the mockup ──────────────────── */
.mock-note { font-size: 12px; color: var(--label-3); margin-top: 10px; }

/* ── Footer (apple.com-style directory) ───────────────────────────────── */
.gfooter { background: var(--bg-2); color: var(--label-2); font-size: 12px; line-height: 1.33; padding: 24px 22px 32px; }
.gfooter-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 24px; align-items: start; }
.gfooter-brand strong { display: block; color: var(--label); font-size: 13px; font-weight: 600; }
.gfooter-brand span { color: var(--gold); }
.gfooter-origin { margin: 0; text-align: center; font-style: normal; }
.gfooter-legal { margin: 0; text-align: right; }

/* ── Breakpoints (match the live site: 980 / 720 / 460) ───────────────── */
@media (max-width: 980px) {
  .gnav-links { display: none; position: absolute; top: 48px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 22px 16px; background: var(--bg); border-bottom: 1px solid var(--separator); }
  .gnav-links.is-open { display: flex; }
  .gnav-links a { font-size: 17px; padding: 12px 0; border-bottom: 1px solid var(--separator); opacity: 1; }
  .gnav-toggle { display: block; }
  .cols.c4 { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .cols.c4 > :nth-child(3) { border-left: 0; padding-left: 0; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
}
@media (max-width: 720px) {
  .band { padding: 64px 20px; }
  .hero { padding: 64px 20px 56px; }
  .cols.c2, .cols.c3, .cols.c4 { grid-template-columns: 1fr; row-gap: 24px; }
  .cols > * { border-left: 0; padding: 0; }
  .lnav-links { display: none; }
  .rows > li, .rows > a.row { flex-direction: column; gap: 4px; }
  .rows .row-title { flex: none; }
  .rows .chevron { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .gfooter-inner { grid-template-columns: 1fr; text-align: center; }
  .gfooter-legal { text-align: center; }
}
@media (max-width: 460px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .gallery:has(.shot.ipad) { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
