/* Project pages (Harmonic, PhotoLab): the home page's tokens and nav from app/globals.css,
   a dark hero with the app's drawn interface, then features. Each page sets --glow for its hero
   and keeps its interface illustration's styles local. */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --hairline: #e3e3e8;
  --panel: #f5f5f7;
  --blue: #0071e3;
  --link: #0066cc;
  --link-dark: #2997ff;
  --glow: rgba(0, 113, 227, 0.5);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI Variable Display", "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: #fff; }
body { margin: 0; color: var(--ink); background: #fff; font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.shell { width: min(100% - 44px, 1120px); margin: 0 auto; }

/* Navigation, as on the home page */
.globalnav { position: sticky; top: 0; z-index: 10; height: 48px; background: rgba(250, 250, 252, 0.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.globalnav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.wordmark { display: inline-flex; align-items: center; }
/* Padding gives the link a 44px tap area; the negative margin keeps the header the same height. */
.back { display: inline-block; padding: 13px 0; margin: -13px 0; color: var(--link); font-size: 13px; }
.back:hover { text-decoration: underline; }

/* Hero: dark, with the app's own glow, and the drawn interface rising out of it */
.hero { padding: 64px 0 0; color: #f5f5f7; background: radial-gradient(ellipse 60% 70% at 80% 0%, var(--glow), transparent 70%), #000; }
.hero-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 28px 56px; }
.app-name { display: flex; align-items: center; gap: 18px; }
.app-name img { flex: none; width: 76px; height: 76px; border-radius: 22.5%; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55); }
h1 { margin: 0; font-size: clamp(48px, 7vw, 80px); font-weight: 700; line-height: 1; letter-spacing: -0.045em; }
.tagline { margin: 22px 0 0; font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; }
.intro { margin: 0; color: #a1a1a6; font-size: 17px; line-height: 1.55; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 18px 0 0; color: #a1a1a6; font-size: 13px; line-height: 1.4; }
.pill { padding: 4px 11px; border-radius: 980px; background: rgba(255, 255, 255, 0.12); color: #f5f5f7; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.hero figure { margin: 48px 0 0; }
.frame { position: relative; container-type: inline-size; overflow: hidden; border-radius: 12px 12px 0 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 -10px 60px rgba(0, 0, 0, 0.5); }
.note { margin: 0; padding: 12px 0 0; color: var(--faint); font-size: 12px; line-height: 1.5; }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--hairline); }
.hero + section { border-top: 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
h2 { margin: 0; font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; }
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 19px; line-height: 1.45; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.features li { padding: 26px 24px; border-radius: 22px; background: var(--panel); }
.features svg { width: 30px; height: 30px; color: var(--accent, var(--blue)); }
h3 { margin: 14px 0 0; font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.features p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Spotlights: a picture beside its explanation, alternating sides */
.spotlight { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 56px; }
.spotlight.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.spotlight.flip figure { order: 2; }
.spotlight figure { margin: 0; }
.spotlight .frame { border-radius: 14px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 20px 50px rgba(0, 0, 0, 0.16); }
.spotlight h2 { margin-top: 0; font-size: clamp(28px, 3vw, 38px); }
/* Child combinators keep these rules out of the drawn interfaces inside the figures. */
.spotlight > div > p { margin: 14px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.spotlight > div > ul { margin: 18px 0 0; padding: 0; list-style: none; }
.spotlight > div > ul > li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--hairline); color: var(--ink); font-size: 15px; line-height: 1.45; }
.spotlight > div > ul > li::before { content: ""; position: absolute; top: 17px; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent, var(--blue)); }

/* Built with, and the honest note about availability */
.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.card { padding: 28px; border-radius: 22px; background: var(--panel); }
.card.dark { color: #f5f5f7; background: radial-gradient(ellipse 80% 80% at 100% 0%, var(--glow), transparent 70%), #000; }
.card h2 { font-size: 26px; letter-spacing: -0.028em; }
.card p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.card.dark p { color: #a1a1a6; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.stack li { padding: 5px 12px; border-radius: 980px; background: rgba(255, 255, 255, 0.12); color: #f5f5f7; font-size: 13px; font-weight: 500; }
.other { margin-top: 18px; }
.other a { color: var(--link); font-size: 15px; }
.card.dark .other a { color: var(--link-dark); }
.other a:hover { text-decoration: underline; }

footer { color: var(--muted); font-size: 12px; line-height: 1.4; letter-spacing: -0.01em; }
footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 16px 0 26px; border-top: 1px solid var(--line); }
footer p { margin: 0; }
footer a { color: var(--link); }
footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero-head, .spotlight, .spotlight.flip, .facts { grid-template-columns: minmax(0, 1fr); }
  .spotlight { gap: 28px; }
  .spotlight.flip figure { order: 0; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 32px, 1120px); }
  .hero { padding-top: 40px; }
  .app-name img { width: 56px; height: 56px; }
  .hero figure { margin-top: 32px; }
  .frame { border-radius: 8px 8px 0 0; }
  section { padding: 52px 0; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 22px; }
}
