/* Seize Apps — shared stylesheet for the studio site (index + app pages).
   Tokens mirror brand/design-tokens.json: navy ink, Seize blue, SF Pro Rounded. */
:root {
  color-scheme: dark;
  --ink: #0A0F1E;
  --ink-deep: #060A14;
  --surface: #141B2D;
  --surface-raised: #19233A;
  --blue: #0077FF;
  --cyan: #00BBFF;
  --white: #FFFFFF;
  --text-2: #A8B6C8;
  --muted: #8899B0;
  --line: rgba(136, 153, 176, .18);
  --soft-line: rgba(255, 255, 255, .08);
  --green: #31D158;
  --page: min(1180px, calc(100% - 40px));
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--ink);
  color: var(--white);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed; inset: 0; z-index: -2; content: "";
  background:
    radial-gradient(circle at 78% 12%, rgba(0, 119, 255, .17), transparent 28rem),
    radial-gradient(circle at 12% 52%, rgba(0, 187, 255, .07), transparent 24rem),
    var(--ink);
  pointer-events: none;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }
::selection { background: var(--cyan); color: var(--ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }
.shell { width: var(--page); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { display: flex; min-height: 96px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); font-size: 18px; font-weight: 750; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { position: relative; width: 31px; height: 31px; border: 2px solid var(--blue); border-radius: 50%; }
.brand-mark::before { position: absolute; inset: 5px; content: ""; border: 2px solid var(--white); border-right-color: transparent; border-radius: 50%; transform: rotate(-35deg); }
.brand-mark::after { position: absolute; top: -4px; left: 50%; width: 4px; height: 9px; border-radius: 5px; background: var(--cyan); content: ""; transform: translateX(-50%); }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--muted); font-size: 14px; font-weight: 650; letter-spacing: .02em; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); }

/* Type */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { width: 32px; height: 1px; background: currentColor; content: ""; }
h1 { margin: 0; max-width: 14ch; font-size: clamp(46px, 6.4vw, 92px); font-weight: 800; letter-spacing: -.06em; line-height: .95; }
h1 span, h2 span { color: var(--muted); }
h2 { margin: 0; max-width: 20ch; font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
h3 { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.lede { max-width: 36rem; margin: 28px 0 0; color: var(--text-2); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; }
.lede strong { color: var(--white); font-weight: 700; }
p { margin: 0; }
.section { padding: clamp(72px, 9vw, 128px) 0 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 44px; }
.section-head p { color: var(--text-2); font-size: 17px; line-height: 1.6; max-width: 34rem; }

/* Hero */
.hero { padding: 48px 0 24px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 11px; margin-top: 40px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.scroll-cue span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--cyan); transition: transform .25s ease, border-color .25s ease; }
.scroll-cue:hover span { border-color: var(--cyan); transform: translateY(3px); }

/* App cards */
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.app-card { display: flex; flex-direction: column; gap: 18px; padding: 26px; border: 1px solid var(--soft-line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 60%), var(--surface); color: inherit; text-decoration: none; transition: transform .25s ease, border-color .25s ease; }
.app-card:hover { transform: translateY(-3px); border-color: var(--line); }
.app-card img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.app-card h3 { font-size: 24px; }
.app-card .one-liner { color: var(--text-2); font-size: 16px; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tags span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.card-more { color: var(--cyan); font-size: 14px; font-weight: 700; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.principle { padding: 24px 0 0; border-top: 1px solid var(--line); }
.principle .num { display: block; margin-bottom: 14px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.principle h3 { margin-bottom: 10px; }
.principle p { color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* Studio */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.person { display: flex; gap: 18px; padding: 26px; border: 1px solid var(--soft-line); border-radius: var(--radius); background: var(--surface); }
.person .initials { display: grid; flex-shrink: 0; width: 56px; height: 56px; place-items: center; border-radius: 50%; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.person .initials.a { background: rgba(0, 119, 255, .22); color: var(--cyan); }
.person .initials.b { background: rgba(0, 187, 255, .16); color: var(--white); }
.person h3 { margin-bottom: 4px; }
.person .role { color: var(--cyan); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.person p.bio { margin-top: 12px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.studio-note { grid-column: 1 / -1; color: var(--text-2); font-size: 17px; line-height: 1.65; max-width: 48rem; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; margin-top: clamp(72px, 9vw, 128px); border: 1px solid var(--soft-line); border-radius: var(--radius); background: linear-gradient(135deg, rgba(0, 119, 255, .18), rgba(0, 187, 255, .06)), var(--surface); }
.contact h2 { font-size: clamp(26px, 3vw, 36px); }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--blue); color: var(--white); font-size: 15px; font-weight: 750; text-decoration: none; box-shadow: 0 12px 30px rgba(0, 119, 255, .32); transition: transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; }

/* App page */
.app-hero { padding: 40px 0 0; }
.app-hero-copy { max-width: 44rem; }
.app-hero .icon { width: 96px; height: 96px; margin-bottom: 28px; border-radius: 24px; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.app-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.store-badge { display: inline-flex; margin-top: 28px; }
.store-badge[hidden] { display: none; }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: clamp(48px, 6vw, 80px); }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border: 1px solid var(--soft-line); border-radius: 28px; background: var(--surface); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.shots figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 24px 0 0; border-top: 1px solid var(--line); }
.feature .num { display: block; margin-bottom: 14px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.feature p { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.privacy-box { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 32px; margin-top: clamp(56px, 7vw, 96px); border: 1px solid var(--soft-line); border-radius: var(--radius); background: var(--surface); }
.privacy-box p { color: var(--text-2); font-size: 16px; line-height: 1.6; }
.privacy-box .links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.note { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Footer */
.site-footer { margin-top: clamp(80px, 10vw, 140px); padding: 40px 0 48px; border-top: 1px solid var(--soft-line); background: var(--ink-deep); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.footer-signoff { margin: 0 0 8px; font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.copyright { margin: 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.footer-links a:hover { color: var(--white); }

@media (max-width: 900px) {
  .app-grid, .principles, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head, .studio, .privacy-box { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-box .links { justify-content: flex-start; }
}
@media (max-width: 680px) {
  :root { --page: calc(100% - 32px); }
  .site-header { min-height: 80px; }
  .site-nav { gap: 18px; }
  .app-grid, .principles, .features { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .contact { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-card, .button, .scroll-cue span { transition: none; }
}

/* App page without screenshots yet (Cycle Timers): a ring illustration in the brand colours */
.shots-placeholder { position: relative; aspect-ratio: 1; max-width: 420px; margin: 0 auto; border-radius: 50%; background: conic-gradient(var(--blue) 0 68%, rgba(255, 255, 255, .10) 68% 100%); -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%); mask: radial-gradient(circle, transparent 58%, #000 59%); }
.shots:has(.shots-placeholder) { grid-template-columns: minmax(0, 1fr); }
