/* AppQu — Liquid Glass theme (Apple HIG).
   Glass ONLY on navigation and controls. Content cards stay solid.
   No glass-on-glass, no drag. Tint (solid fill, no blur) for the active
   control and the primary action. */
:root {
  --bg: #05070f;
  --surface: #0e1424;
  --surface-2: #080d1a;
  --ink: #f4f6ff;
  --muted: #a7aec2;
  --accent: #3d5bff;
  --accent-ink: #ffffff;
  --focus: #9db1ff;
  --field-red: #ff3b1f;
  --field-dark: #050a5c;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.28);
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --margin: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  letter-spacing: -0.005em;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; margin: 0; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
::selection { background: var(--accent); color: var(--accent-ink); }

/* Ambient field: fixed, blurred solid shapes in the content layer.
   No gradient fills; the blur softens the solid shapes. */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient span { position: absolute; display: block; border-radius: 50%; filter: blur(90px); }
.ambient .b1 { width: 560px; height: 560px; left: -120px; top: -80px; background: #2436ff; opacity: 0.5; }
.ambient .b2 { width: 480px; height: 480px; right: -140px; top: 38%; background: #ff3b1f; opacity: 0.32; }
.ambient .b3 { width: 620px; height: 620px; left: 30%; bottom: -260px; background: #1a2aff; opacity: 0.4; }
.nav, main, .footer { position: relative; z-index: 1; }

/* Glass material, shared by navigation and controls only. */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 12px 32px rgba(0, 0, 0, 0.35); /* taste-skill-ignore: Liquid Glass requested by user; glass only on nav and controls */
}

/* Navigation: floating glass pill, sticky. */
.nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 16px var(--margin) 0;
  padding: 12px 24px;
  border-radius: 999px;
}
.wordmark { font-size: 28px; font-weight: 600; letter-spacing: -0.04em; text-decoration: none; }
.nav nav { display: flex; gap: 28px; flex-wrap: wrap; }
.nav nav a { font-size: 15px; text-decoration: none; }
.nav nav a:hover { text-decoration: underline; }
.nav nav a:active { transform: scale(1.06); }

/* Hero: headline upper-left, blue stage with the interface fragment */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 24px;
  padding: 150px var(--margin) 0;
  min-height: 92svh;
  overflow: hidden;
}
.hero-copy { grid-column: 1 / 7; grid-row: 1; position: relative; z-index: 1; }
.hero-copy h1 { font-size: clamp(52px, 5.2vw, 80px); }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; margin-top: 32px; }
.button {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.button:hover { background: #2f4bff; }
.button:active { transform: scale(1.06); }
.note { font-size: var(--step-small); color: var(--muted); margin-top: 16px; }
.stage {
  grid-column: 5 / 13;
  grid-row: 1;
  align-self: start;
  margin-top: 320px;
  min-height: 46svh;
  background: var(--accent);
  clip-path: polygon(96px 0, 100% 0, 100% 100%, 0 100%, 0 96px);
  padding: 56px;
  color: var(--accent-ink);
}
.fragment { max-width: 620px; background: #ffffff; color: #0a0a0a; padding: 28px; border-radius: 20px; }
.fragment-title { font-size: 15px; font-weight: 500; }
.fragment-list { list-style: none; margin: 20px 0 0; padding: 0; }
.fragment-list li {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 17px;
  border-top: 2px solid #f3f3f3;
}
.fragment-list li.selected { font-weight: 600; }
.fragment-foot { font-size: var(--step-small); color: #4d4d4d; margin-top: 16px; }

/* Showcase: full-bleed field, one control blown up */
.showcase {
  background: var(--accent);
  color: var(--accent-ink);
  min-height: 640px;
  padding: 96px var(--margin);
  transition: background-color 0.4s ease;
}
.showcase[data-field="red"] { background: var(--field-red); color: #0a0a0a; }
.showcase[data-field="black"] { background: #0a0a0a; color: var(--accent-ink); }
.showcase[data-field="dark"] { background: var(--field-dark); color: var(--accent-ink); }
.showcase h2 { font-size: clamp(28px, 2.6vw, 40px); }
.showcase > p { font-size: 17px; max-width: 52ch; margin-top: 16px; }
.control { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 64px; }
.control button {
  font-family: inherit;
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 20px 32px;
  color: var(--accent-ink);
  border-radius: 999px;
  cursor: pointer;
}
.control button:active { transform: scale(1.06); }
.control button[aria-pressed="true"] { background: #0a0a0a; color: var(--accent-ink); border-color: transparent; box-shadow: none; /* taste-skill-ignore: solid tint, no glass on active control */ -webkit-backdrop-filter: none; backdrop-filter: none; }
.showcase[data-field="red"] .control button[aria-pressed="true"] { background: #ffffff; color: #0a0a0a; }
.status { font-size: 17px; margin-top: 48px; }
.showcase .button-light { background: #ffffff; color: #0a0a0a; }
.showcase .button-light:hover { background: #f3f3f3; }

/* Apps: banded list, one solid band per app */
.apps { padding: 120px var(--margin); }
.apps-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  flex-wrap: wrap;
}
.apps-head h2 { font-size: var(--step-head); }
.apps-head > div > p { font-size: 17px; margin-top: 12px; }
.search { font-size: 15px; font-weight: 500; display: grid; gap: 8px; }
.search input {
  font-family: inherit;
  font-size: 17px;
  padding: 14px 20px;
  width: min(320px, 80vw);
  border-radius: 999px;
  color: var(--ink);
}
.search input::placeholder { color: rgba(244, 246, 255, 0.6); }
.app {
  display: grid;
  grid-template-columns: 96px 1fr 360px;
  gap: 32px;
  align-items: start;
  margin-top: 56px;
  padding: 32px;
  background: var(--surface);
  border-radius: 24px;
}
.app:nth-child(even) { background: var(--surface-2); }
.app-mark {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  background: var(--mark);
  color: #ffffff;
  font-size: 44px;
  font-weight: 600;
  border-radius: 20px;
}
.app-text h3 { font-size: clamp(28px, 3vw, 40px); }
.app-text > p { margin-top: 12px; max-width: 56ch; }
.meta { font-size: var(--step-small); color: var(--muted); }
.links { display: flex; gap: 24px; flex-wrap: wrap; }
.links a { font-weight: 500; }
.links a:hover { color: var(--focus); }
.mini { background: #ffffff; color: #0a0a0a; padding: 20px; font-size: 15px; border-radius: 16px; }
.mini-title { font-weight: 500; }
.mini-foot { font-size: var(--step-small); color: #4d4d4d; margin-top: 12px; }
.bubble { background: #f3f3f3; padding: 12px 16px; margin-top: 8px; max-width: 90%; border-radius: 12px; }
.bubble.me { background: var(--accent); color: var(--accent-ink); margin-left: auto; }
.letters { display: flex; gap: 12px; }
.letters span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: #f3f3f3;
  font-size: 28px;
  font-weight: 600;
  border-radius: 12px;
}
.letters span.on { background: var(--field-red); color: #ffffff; }
.bar { height: 16px; background: #f3f3f3; margin-top: 12px; border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); }
.canvas {
  height: 120px;
  background: #f3f3f3;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.canvas span { background: var(--field-dark); color: #ffffff; padding: 12px 20px; font-weight: 600; border-radius: 8px; }
.score { font-size: 56px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.score span { font-size: 17px; font-weight: 400; letter-spacing: 0; margin-left: 8px; }
.empty { margin-top: 48px; font-size: var(--step-lead); }

/* FAQ: heading sticky left, accordion tiles right (tiles stay solid) */
.faq {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 24px;
  padding: 120px var(--margin);
  background: var(--surface-2);
}
.faq h2 { grid-column: 1 / 5; font-size: clamp(28px, 4vw, 60px); position: sticky; top: 96px; align-self: start; }
.tiles { grid-column: 5 / 13; display: grid; gap: 8px; }
.tiles details { background: var(--surface); padding: 0 24px; border-radius: 20px; }
.tiles details[open] { background: var(--accent); color: var(--accent-ink); }
.tiles summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.tiles summary::-webkit-details-marker { display: none; }
.tiles summary::after { content: "+"; font-size: 28px; font-weight: 400; flex: none; }
.tiles details[open ] summary::after { content: "\2212"; }
.tiles details p { font-size: 17px; max-width: 52ch; padding: 0 0 24px; }

/* Footer: board of solid tiles */
.footer {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  padding: 8px;
}
.tile { background: var(--surface); padding: 24px; min-height: 220px; border-radius: 24px; }
.tile-title { font-weight: 500; margin-bottom: 12px; }
.tile ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tile a:hover { color: var(--focus); }
.small { font-size: var(--step-small); color: var(--muted); margin-top: 16px; }
.statement { grid-column: 1 / 5; }
.statement > p:first-child { font-size: 24px; line-height: 1.3; }
.footer .tile:nth-child(2) { grid-column: 5 / 8; }
.footer .tile:nth-child(3) { grid-column: 8 / 10; }
.footer .tile:nth-child(4) { grid-column: 10 / 13; }
.wordmark-tile {
  grid-column: 1 / 9;
  background: #000000;
  color: var(--accent-ink);
  min-height: 320px;
  display: grid;
  place-items: center;
}
.wordmark-tile p { font-size: clamp(64px, 9vw, 144px); font-weight: 600; letter-spacing: -0.04em; }
.accent-tile {
  grid-column: 9 / 13;
  background: var(--accent);
  color: var(--accent-ink);
  min-height: 320px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.accent-tile p:first-child { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.accent-tile .arrow { font-size: 48px; text-align: right; }
.accent-tile:hover { background: #2f4bff; }

/* Motion: entrances, shutter, press zoom */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .showcase > *, .app, .tiles details, .footer .tile {
    animation: rise 0.7s ease both;
  }
  .showcase > *:nth-child(2) { animation-delay: 0.08s; }
  .showcase > *:nth-child(3) { animation-delay: 0.16s; }
  .stage { animation: shutter 1.1s ease both; }
  .stage .fragment { animation: settle 1.1s ease both; }
  .app:nth-child(3) { animation-delay: 0.06s; }
  .app:nth-child(4) { animation-delay: 0.12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes shutter { from { clip-path: polygon(96px 0, 100% 0, 100% 0, 0 0, 0 96px); } to { clip-path: polygon(96px 0, 100% 0, 100% 100%, 0 100%, 0 96px); } }
  @keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
  .button, .control button, .links a, .nav nav a { transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Reduced transparency: glass becomes near-solid. */
@media (prefers-reduced-transparency: reduce) {
  .glass, .control button, .search input {
    background: rgba(10, 14, 28, 0.94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Phone: its own composition */
@media (max-width: 900px) {
  .nav { top: 12px; padding: 10px 18px; }
  .hero { padding-top: 96px; grid-template-columns: 1fr; }
  .hero-copy { grid-column: 1; }
  .hero-copy h1 { font-size: 10vw; }
  .stage { grid-column: 1; grid-row: auto; margin: 64px calc(var(--margin) * -1) 0; padding: 88px 16px 24px; clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%, 0 72px); }
  .fragment { padding: 20px; }
  .showcase { min-height: 86svh; }
  .control button { font-size: 22px; padding: 16px 20px; }
  .app { grid-template-columns: 64px 1fr; gap: 16px; padding: 20px; }
  .app-mark { width: 64px; height: 64px; font-size: 32px; }
  .mini { grid-column: 1 / -1; }
  .faq { grid-template-columns: 1fr; }
  .faq h2 { grid-column: 1; position: static; font-size: 9vw; }
  .tiles { grid-column: 1; margin-top: 32px; }
  .tiles summary { font-size: 18px; min-height: 64px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .wordmark-tile, .accent-tile, .statement, .footer .tile:nth-child(2), .footer .tile:nth-child(3), .footer .tile:nth-child(4) { grid-column: auto; }
  .wordmark-tile { grid-column: 1 / -1; min-height: 160px; }
  .accent-tile { grid-column: 1 / -1; min-height: 160px; }
  .nav nav { gap: 16px; }
}
