/* ChewPacaStudios site stylesheet. MASTER COPY: edit tools/site/site.css in HarpHero2, then run
   tools/site/sync_css.sh. Each site repo carries an identical copy (check_site.py --css-master). */

:root {
  --bg: #191E23;
  --band: #21282E;
  --card: #2B333B;
  --line: #3D4955;
  --line-soft: #5A6672;
  --text: #FFFFFF;
  --text-2: #E2E6EA;
  --text-3: #C7C7C7;
  --text-4: #AEB8C2;
  --text-dim: #8A96A3;
  --studio: #4FC3F7;
  --harp: #4FC3F7;
  --flute: #FFC83D;
  --tab: #0CC0DF;
  --accent: var(--studio);
  --gutter: 24px;
  --heading: Montserrat, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { filter: brightness(1.2); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--heading); letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 72px; padding-bottom: 72px; }
.band { background: var(--band); border-top: 1px solid var(--card); border-bottom: 1px solid var(--card); }
.section-title { font-weight: 700; font-size: 32px; margin-bottom: 32px; }
.section-title + .section-lead { margin-top: -24px; margin-bottom: 32px; color: var(--text-3); }
.muted { color: var(--text-3); }
.small { font-size: 14px; color: var(--text-dim); }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--card); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 18px; padding-bottom: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-family: var(--heading); font-weight: 800; font-size: 20px; letter-spacing: -0.01em;
}
.brand img { width: 44px; height: 44px; }
.brand span span { color: var(--studio); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  color: var(--text-3); text-decoration: none; font-weight: 500;
  padding: 10px 14px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--text); background: var(--card); filter: none; }
.site-footer { border-top: 1px solid var(--card); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 28px; padding-bottom: 28px; color: var(--text-dim); font-size: 14px;
}

/* Buttons and tags */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 22px; border-radius: 14px; font-weight: 600; text-decoration: none;
}
.btn--primary { background: var(--accent); color: #000; }
.btn--light { background: #FFFFFF; color: #000; }
.btn--ghost { border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(25, 30, 35, 0.4); color: var(--text); }
.btn--outline { border: 1px solid var(--accent); color: var(--accent); }
.btn--soon { border: 1px dashed var(--line-soft); color: var(--text-4); font-weight: 500; }
.badge-play { display: inline-flex; min-height: 48px; align-items: center; }
.badge-play img { height: 68px; width: auto; margin: -10px -11px; } /* the official badge carries its own clear space */
.eyebrow {
  color: var(--accent); font-size: 14px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* Home hero (photo) */
.hero {
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(25, 30, 35, 0.9) 0%, rgba(25, 30, 35, 0.72) 36%, rgba(25, 30, 35, 0.12) 68%, rgba(25, 30, 35, 0) 100%),
    linear-gradient(0deg, #191E23 0%, rgba(25, 30, 35, 0) 16%),
    url("assets/hero-2000.jpg");
  background-image:
    linear-gradient(90deg, rgba(25, 30, 35, 0.9) 0%, rgba(25, 30, 35, 0.72) 36%, rgba(25, 30, 35, 0.12) 68%, rgba(25, 30, 35, 0) 100%),
    linear-gradient(0deg, #191E23 0%, rgba(25, 30, 35, 0) 16%),
    image-set(url("assets/hero-2000.webp") type("image/webp"), url("assets/hero-2000.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: 60% 50%;
}
.hero .wrap {
  min-height: 420px; padding-top: 128px; padding-bottom: 112px;
  display: flex; flex-direction: column; justify-content: center; gap: 0;
}
.hero h1 {
  max-width: 760px; margin-top: 16px; font-weight: 800;
  font-size: clamp(36px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.02em;
}
.hero .lead { margin-top: 24px; max-width: 560px; color: var(--text-2); font-size: 19px; }
.hero .btns { margin-top: 36px; }

/* App cards (home) */
.app-cards { display: flex; flex-direction: column; gap: 28px; }
.app-card {
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: center;
  background: radial-gradient(120% 90% at 85% 50%, var(--glow) 0%, transparent 60%), var(--card);
}
.app-card--harp { --accent: var(--harp); --glow: rgba(79, 195, 247, 0.22); }
.app-card--flute { --accent: var(--flute); --glow: rgba(255, 200, 61, 0.16); }
.app-card--tab { --accent: var(--tab); --glow: rgba(12, 192, 223, 0.2); }
.app-card__text { padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.app-card__visual { padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.app-card__head { display: flex; align-items: center; gap: 16px; }
.app-card__head .eyebrow { font-size: 13px; letter-spacing: 0.1em; }
.app-card h3 { font-weight: 800; font-size: 34px; line-height: 1.15; }
.app-card .pitch { color: var(--text-2); font-size: 18px; }
.app-icon { flex-shrink: 0; width: 64px; height: 64px; border-radius: 16px; background: var(--bg); }
.app-icon--white { background: #FFFFFF; padding: 8px; }
.app-icon--big { width: 180px; height: 180px; border-radius: 44px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.app-icon--big.app-icon--white { padding: 22px; }
.ticks { display: flex; flex-direction: column; gap: 10px; color: var(--text-3); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { flex-shrink: 0; margin-top: 2px; width: 22px; height: 22px; stroke: var(--accent); }
.ticks strong { color: var(--text); }
.app-card__visual.phones, .phones { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 0; }
.phones picture { display: contents; }
.phone { border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.phones .phone { width: 30%; max-width: 160px; opacity: 0.92; }
.phones .phone--left { transform: rotate(-6deg) translateX(18px); }
.phones .phone--right { transform: rotate(6deg) translateX(-18px); }
.phones .phone--center { width: 36%; max-width: 196px; position: relative; z-index: 1; opacity: 1; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 360px; }
.chip {
  padding: 6px 14px; border-radius: 999px; background: rgba(25, 30, 35, 0.6);
  border: 1px solid var(--line); color: var(--text-2); font-size: 14px;
}
.tabline { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font: 600 18px ui-monospace, Menlo, monospace; }
.tabline span { padding: 8px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); color: var(--text); }
.tabline .draw { color: var(--tab); }
.tabline .tech { color: var(--flute); }

/* About and contact (home) */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 48px; }
.about__me { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.about__me img { width: 160px; height: 160px; border-radius: 20px; object-fit: cover; border: 1px solid var(--line); }
.about__me > div { flex: 1 1 220px; min-width: 0; }
.about__me h2 { margin-bottom: 12px; font-weight: 700; font-size: 32px; }
.points { display: flex; flex-direction: column; gap: 20px; }
.points li { display: flex; gap: 16px; color: var(--text-3); }
.points strong { color: var(--text); }
.num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.contact .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.contact h2 { font-weight: 700; font-size: 28px; margin-bottom: 8px; }

/* App page */
.app-page--harp { --accent: var(--harp); --glow: rgba(79, 195, 247, 0.2); }
.app-page--flute { --accent: var(--flute); --glow: rgba(255, 200, 61, 0.18); }
.app-hero { background: radial-gradient(70% 90% at 50% 0%, var(--glow) 0%, transparent 70%), var(--bg); }
.app-hero .wrap {
  padding-top: 80px; padding-bottom: 72px; display: grid; gap: 48px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.app-hero__text { display: flex; flex-direction: column; gap: 20px; }
.app-hero h1 { font-weight: 800; font-size: clamp(40px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }
.app-hero .pitch { max-width: 520px; color: var(--text-2); font-size: 20px; }
.app-hero .btns { margin-top: 8px; }
.phone-frame {
  width: min(100%, 320px); aspect-ratio: 9 / 19.5; margin: 0 auto; border-radius: 40px;
  border: 10px solid var(--card); background: var(--band); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center;
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; }
.phone-frame .logo-tile { width: 160px; height: 160px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.tiles--narrow { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.tile {
  display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
a.tile:hover { border-color: var(--accent); filter: none; }
.tile b { font-weight: 600; font-size: 18px; }
.tile span { color: var(--text-4); font-size: 15px; overflow-wrap: anywhere; }
.tile span[data-email] { font-size: 14px; overflow-wrap: normal; word-break: keep-all; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps .num { width: 40px; height: 40px; border-radius: 12px; font-weight: 700; }
.steps b { font-weight: 600; font-size: 18px; }
.steps p { color: var(--text-3); }

/* Plain text pages (legal placeholders, 404) */
.text-page { max-width: 720px; margin: 0 auto; padding: 72px var(--gutter); }
.text-page h1 { font-weight: 800; font-size: clamp(30px, 5vw, 44px); margin-bottom: 20px; }
.text-page p + p { margin-top: 16px; }
.text-page p { color: var(--text-3); }

@media (max-width: 720px) {
  .hero {
    background-image:
      linear-gradient(0deg, rgba(25, 30, 35, 0.92) 0%, rgba(25, 30, 35, 0.7) 60%, rgba(25, 30, 35, 0.5) 100%),
      url("assets/hero-960.jpg");
    background-image:
      linear-gradient(0deg, rgba(25, 30, 35, 0.92) 0%, rgba(25, 30, 35, 0.7) 60%, rgba(25, 30, 35, 0.5) 100%),
      image-set(url("assets/hero-960.webp") type("image/webp"), url("assets/hero-960.jpg") type("image/jpeg"));
    background-position: 55% 50%;
  }
  .hero .wrap { padding-top: 88px; padding-bottom: 72px; }
  .phone-frame { width: min(100%, 240px); }
  .app-card__text { padding: 28px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .app-card__text { padding: 24px 20px; }
  .app-card h3 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
