/* Sitara site: Velvet palette (docs/BRAND.md). Nothing is fetched from anywhere else: no fonts, scripts or images from other hosts. */
:root {
  color-scheme: light dark;
  --bg: #FAF6F1; --surface: #FFFFFF; --raised: #F0E8E1;
  --text: #1F1A1A; --text-2: #625855; --text-3: #736966;
  --accent: #8E2433; --accent-text: #FAF6F1;
  --emph: #8E2433;            /* italic words in headings */
  --line: rgba(31, 26, 26, .1);
  --img-outline: rgba(0, 0, 0, .1);
  --shadow: 0 1px 2px rgba(31, 26, 26, .05), 0 8px 24px -8px rgba(31, 26, 26, .12);
  --shadow-lg: 0 2px 4px rgba(31, 26, 26, .06), 0 24px 48px -16px rgba(31, 26, 26, .28);
  /* The stage (hero, screen frames) is always dark, like the player. */
  --stage: #141110; --stage-text: #F5EEE8; --stage-text-2: #B8ADA8; --gold: #E0B868;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 2rem);
  --max: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1817; --surface: #252122; --raised: #302B2C;
    --text: #F5EEE8; --text-2: #B8ADA8; --text-3: #998E89;
    --accent: #E0B868; --accent-text: #1A1817;
    --emph: #E0B868;
    --line: rgba(245, 238, 232, .1);
    --img-outline: rgba(255, 255, 255, .1);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -16px rgba(0, 0, 0, .7);
    --stage: #110E0D;
  }
}

/* Base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: .15em; }
a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); color: var(--text); padding: .5rem .75rem; border-radius: 8px; z-index: 20; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Header, shared by every page */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 600 1.35rem/1 var(--serif); color: var(--text); text-decoration: none; padding: .5rem 0; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-header nav { display: flex; gap: .25rem; }
.site-header nav a { color: var(--text-2); text-decoration: none; font-size: .95rem; padding: .75rem .6rem; border-radius: 8px; transition: color .15s ease-out; }
.site-header nav a:hover { color: var(--text); }
.site-header nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
@media (max-width: 30rem) { .nav-extra { display: none; } }

/* Footer, shared by every page */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0 3rem; color: var(--text-2); font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-bottom: .75rem; }
.site-footer nav a { color: var(--text); text-decoration: none; padding: .5rem 0; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: .5rem 0; max-width: 46rem; }
.site-footer .legal { color: var(--text-3); font-size: .8rem; }

/* Privacy and support pages */
.prose { width: min(42rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.prose h1 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem); margin: 2.5rem 0 .5rem; }
.prose h2 { font-size: 1.35rem; margin: 2.25rem 0 .5rem; }
.prose h3 { font-size: 1.1rem; margin: 1.5rem 0 .25rem; }
.prose p, .prose ul, .prose ol { margin: .75rem 0; }
.prose li { margin: .35rem 0; }
.lead { font-size: 1.2rem; color: var(--text-2); }
.updated { color: var(--text-2); font-size: .95rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; margin: 1.25rem 0; }
dt { font-weight: 600; margin-top: 1rem; }
dd { margin: .25rem 0 0; }
/* Marks text the owner must confirm or replace before publishing (check.sh lists them). */
mark.owner-confirm { background: #E0B868; color: #1F1A1A; padding: 0 .25em; border-radius: 3px; }

/* Landing page */
.home main > section { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: clamp(3.5rem, 8vw, 7rem); }
.home h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); line-height: 1.08; letter-spacing: -.015em; margin: .25rem 0 1rem; }
.home h2 em, .hero h1 em { font-style: italic; font-weight: 500; color: var(--emph); }
.home h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; margin: 0 0 .35rem; }
.home main p { color: var(--text-2); font-size: 1.125rem; margin: 0 0 1rem; }
.eyebrow, .kicker { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Hero: a dark stage in both appearances, so the screenshots sit in their own light. */
.home main > .hero {
  width: min(78rem, 100% - 2 * clamp(.5rem, 2vw, 1.5rem)); padding: 0; margin-top: clamp(.5rem, 2vw, 1.5rem);
  display: grid; overflow: hidden; border-radius: clamp(24px, 3vw, 36px); color: var(--stage-text);
  /* Matches the screenshot's own backdrop (warm black, a wine band in the middle) so the picture has no visible edge. */
  background:
    radial-gradient(55% 60% at 18% 30%, rgba(163, 41, 58, .22), transparent 70%),
    linear-gradient(180deg, #171212 0%, #261617 50%, #0B0A0A 100%);
  box-shadow: var(--shadow-lg);
}
.hero-copy { padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 6vw, 4.5rem) 1rem; }
.hero .kicker { color: var(--gold); }
.hero h1 { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.022em; margin: .75rem 0 1.25rem; }
.hero h1 em { color: var(--gold); }
.hero .hero-lead { color: var(--stage-text-2); font-size: clamp(1.125rem, 1rem + .5vw, 1.3rem); max-width: 30rem; margin: 0 0 2rem; }
.hero-art { display: flex; justify-content: center; align-items: flex-end; padding: 0 clamp(1rem, 4vw, 2rem); }
.hero-art img {
  display: block; width: 100%; max-width: 36rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 18%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 18%);
  mask-composite: intersect;
}
@media (min-width: 60rem) {
  .home main > .hero { grid-template-columns: 1.05fr 1fr; align-items: center; min-height: 40rem; }
  .hero-copy { padding-bottom: clamp(2.5rem, 7vw, 5rem); }
  .hero-art { align-self: end; padding: 3rem 2rem 0 0; }
}

/* App Store badge: Apple's artwork, unaltered; clear space of at least a quarter of its height. */
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.badge { display: inline-block; line-height: 0; border-radius: 10px; }
.badge img { height: 54px; width: auto; }
.badge:focus-visible { outline-offset: 4px; }
.hero .badge:focus-visible { outline-color: var(--gold); }
.home main .cta-note { font-size: .9rem; color: var(--text-3); margin: 0; }
.home .hero .cta-note { color: var(--stage-text-2); }

/* At a glance */
.facts { list-style: none; margin: clamp(2rem, 4vw, 3rem) auto 0; padding: 0; width: min(var(--max), 100% - 2 * var(--gutter)); display: grid; gap: 0; }
.facts li { padding: 1.1rem 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .15rem; }
.facts li:first-child { border-top: 0; }
.facts strong { font: 600 1.2rem/1.3 var(--serif); }
.facts span { color: var(--text-2); font-size: .95rem; }
@media (min-width: 46rem) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li { border-top: 0; border-left: 1px solid var(--line); padding: .25rem 1.5rem; align-items: center; text-align: center; }
  .facts li:first-child { border-left: 0; }
}

/* Feature rows */
.feature { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature-copy { max-width: 32rem; }
@media (min-width: 60rem) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature.flip .feature-copy { order: 2; }
}
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: .1rem; top: .38em; width: .8em; height: .8em; background: var(--accent);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.feature-art { justify-self: center; width: 100%; max-width: 28rem; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 2vw, 1.25rem); max-width: 34rem; }
.duo .screen:last-child { margin-top: clamp(2rem, 6vw, 4rem); }
.duo .screen:first-child { margin-bottom: clamp(2rem, 6vw, 4rem); }
.screen {
  margin: 0; position: relative; overflow: hidden; background: var(--stage);
  border-radius: clamp(20px, 2.5vw, 28px); aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg);
}
.screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--img-outline); pointer-events: none; }
.screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.duo .screen { aspect-ratio: 9 / 14; }
.devices .feature-art { max-width: 36rem; }
.screen.wide { aspect-ratio: 5 / 4; }

/* Pro */
.bento { display: grid; gap: 1rem; }
.tile { margin: 0; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.tile figcaption, .tile.more, .tile.price { padding: 1.5rem 1.5rem 1.25rem; }
.home .tile p { font-size: 1rem; margin: 0; }
.tile .screen { aspect-ratio: 4 / 3; border-radius: 0; box-shadow: none; margin-top: auto; }
.tile .screen::after { box-shadow: inset 0 1px 0 var(--img-outline); }
.tile.price {
  color: #F5EEE8; justify-content: center;
  background: radial-gradient(90% 70% at 80% 0%, rgba(224, 184, 104, .16), transparent 70%), linear-gradient(160deg, #6E1B28, #3A0B13);
}
.tile.price h3 { color: #F5EEE8; }
.home .tile.price .amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .6rem; font-family: var(--serif); font-weight: 600; line-height: 1; margin: .75rem 0 .6rem; font-variant-numeric: lining-nums; }
.tile.price .amount ins { text-decoration: none; color: var(--gold); font-size: clamp(3rem, 2.4rem + 2vw, 4rem); }
/* Struck-through regular price: #D8C9C2 on the tile's lightest wine (#6E1B28) is 7.0:1. */
.tile.price .amount del { color: #D8C9C2; font-size: 1.5rem; font-weight: 500; text-decoration-thickness: 2px; }
.home .tile.price .amount-note { color: #E7DCD5; font-size: .95rem; }
.tile.price .ticks li { color: #F5EEE8; }
.tile.price .ticks li::before { background: var(--gold); }
.ticks.cols { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .6rem 1.5rem; }
@media (min-width: 40rem) { .bento { grid-template-columns: 1fr 1fr; } .tile.more { grid-column: 1 / -1; } }
@media (min-width: 64rem) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .tile .screen { aspect-ratio: 1 / 1; }
  .ticks.cols { grid-template-columns: repeat(4, auto); justify-content: space-between; }
}
.tile .screen.focus-mid img { object-position: 50% 42%; }

/* Privacy */
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.promises li { background: var(--surface); border-radius: 22px; padding: 1.5rem; box-shadow: var(--shadow); }
.promises svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.home .promises p { font-size: .975rem; margin: 0; }
@media (max-width: 35.99rem) {
  .promises li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.25rem; }
  .promises svg { grid-row: span 2; margin: 0; }
}
@media (min-width: 36rem) { .promises { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .promises { grid-template-columns: repeat(4, 1fr); } }
.home .more-link { margin: 1.5rem 0 0; font-size: 1rem; }
.more-link a { font-weight: 600; text-decoration: none; }
.more-link a::after { content: " \203A"; }
.more-link a:hover { text-decoration: underline; }

/* Gallery: swipe on phones and tablets, a grid on wide screens */
.shots {
  list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: .5rem var(--gutter) 1.25rem;
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; overscroll-behavior-x: contain;
}
.shots li { flex: 0 0 min(15rem, 70vw); scroll-snap-align: start; }
.shots img { display: block; width: 100%; border-radius: 22px; outline: 1px solid var(--img-outline); outline-offset: -1px; box-shadow: var(--shadow); background: var(--stage); }
@media (min-width: 75rem) {
  .shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem 1.25rem; overflow: visible; margin: 0; padding: 0; }
}
.home .credit { font-size: .85rem; color: var(--text-3); margin: 1.25rem 0 0; }

/* Closing call to action */
.home main > .closer { text-align: center; max-width: 44rem; padding-bottom: 2rem; }
.closer-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow-lg); margin-bottom: 1.5rem; }
.closer .cta { align-items: center; margin-top: 2rem; }
.home main .disclaimer { font-size: .9rem; color: var(--text-3); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 36rem; }

/* Motion: sections settle in as they scroll into view, tied to scrolling rather than a timer, so nothing waits on a clock.
   The hero shows at once. Browsers without scroll-driven animations, and Reduce Motion, get no motion. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .feature-copy, .feature-art, .section-head, .bento > *, .promises > li, .closer > * {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 45%;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
