@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --bg: #f3f2f7;
  --surface: #ffffff;
  --surface-soft: #f7f7f7;
  --composer: #f3f3f3;
  --ink: #12161c;
  --muted: #5f6878;
  --dim: #8a93a3;
  --line: rgba(18, 22, 28, 0.08);
  --line-strong: rgba(18, 22, 28, 0.16);
  --blue: #0a84ff;
  --orange: #ff8a00;
  --green: #19a463;
  --coral: #d65a5a;
  --lime: #8aa55a;
  --glass: rgba(255, 255, 255, 0.72);
  --field: rgba(39, 50, 68, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.1);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.08);
  --radius-chat: 16px;
  --radius-card: 8px;
}

/* iOS 26-inspired web surfaces */
body.landing-page,
body.reader-page {
  --ios-page: #f2f2f2;
  --ios-page-deep: #e8edf4;
  --ios-text: #101014;
  --ios-secondary: rgba(16, 16, 20, 0.64);
  --ios-tertiary: rgba(16, 16, 20, 0.42);
  --ios-fill: rgba(255, 255, 255, 0.72);
  --ios-fill-strong: rgba(255, 255, 255, 0.88);
  --ios-fill-muted: rgba(118, 118, 128, 0.11);
  --ios-border: rgba(255, 255, 255, 0.78);
  --ios-hairline: rgba(60, 60, 67, 0.12);
  --ios-blue: #007aff;
  --ios-green: #34c759;
  --ios-radius-large: 28px;
  --ios-radius: 18px;
  --ios-shadow: 0 20px 60px rgba(31, 35, 42, 0.13);
  background:
    linear-gradient(135deg, rgba(0, 122, 255, 0.16), transparent 30%),
    linear-gradient(210deg, rgba(52, 199, 89, 0.14), transparent 26%),
    var(--ios-page);
  color: var(--ios-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

.ios-page-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 14px 0 22px;
}

.ios-nav {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 8px;
  border: 1px solid var(--ios-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 8px 28px rgba(31, 35, 42, 0.08);
  backdrop-filter: blur(22px) saturate(1.18);
}

.ios-brand,
.ios-nav-links,
.landing-actions,
.reader-actions,
.reader-feed-header,
.ios-footer {
  display: flex;
  align-items: center;
}

.ios-brand {
  gap: 9px;
  min-width: 0;
  padding: 6px 12px 6px 6px;
  font-size: 1rem;
  font-weight: 700;
}

.ios-brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--ios-hairline);
}

.ios-nav-links {
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.11);
}

.ios-nav-links a {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ios-secondary);
  font-size: 0.92rem;
  font-weight: 550;
  white-space: nowrap;
}

.ios-nav-links a[aria-current="page"],
.ios-nav-links a:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ios-text);
  box-shadow: 0 1px 4px rgba(31, 35, 42, 0.08);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: 30px;
  align-items: stretch;
  min-height: min(680px, calc(100dvh - 126px));
  padding: clamp(28px, 5vw, 68px) 0 18px;
}

.landing-copy,
.glass-preview,
.reader-auth-panel,
.reader-status-card,
.reader-feed {
  border: 1px solid var(--ios-border);
  background: var(--ios-fill);
  box-shadow: var(--ios-shadow);
  backdrop-filter: blur(30px) saturate(1.2);
}

.landing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: clamp(28px, 6vw, 76px);
  border-radius: var(--ios-radius-large);
}

.landing-copy h1 {
  max-width: none;
  font-size: clamp(4.5rem, 14vw, 10.5rem);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 0.88;
}

.landing-copy p {
  max-width: 620px;
  margin-top: 26px;
  color: var(--ios-secondary);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.42;
}

.landing-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.ios-button,
.apple-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.ios-button:hover,
.apple-button:hover {
  transform: translateY(-1px);
}

.ios-button.primary {
  background: var(--ios-blue);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 122, 255, 0.24);
}

.ios-button.secondary,
.ios-button.quiet {
  background: var(--ios-fill-strong);
  color: var(--ios-text);
  box-shadow: 0 1px 3px rgba(31, 35, 42, 0.08);
}

.apple-button {
  min-width: 190px;
  background: #050505;
  color: #fff;
}

.apple-button:disabled,
.ios-button:disabled {
  cursor: default;
  opacity: 0.48;
  transform: none;
}

.glass-preview {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  padding: 24px;
  border-radius: var(--ios-radius-large);
  overflow: hidden;
}

.glass-preview::before {
  content: "";
  display: block;
  min-height: 250px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(0, 122, 255, 0.72), rgba(255, 255, 255, 0.18) 48%, rgba(52, 199, 89, 0.58)),
    url("/assets/fizz-logo.png") center / 132px no-repeat;
  filter: saturate(1.06);
}

.glass-preview-top {
  justify-content: space-between;
  display: flex;
  align-items: center;
  margin-top: 20px;
  color: var(--ios-secondary);
  font-size: 0.92rem;
}

.glass-preview-top strong {
  color: var(--ios-text);
  font-size: 1.7rem;
}

.glass-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.glass-list div {
  height: 62px;
  border: 1px solid var(--ios-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.landing-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 26px;
}

.landing-band article {
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--ios-hairline);
  border-radius: var(--ios-radius);
  background: rgba(255, 255, 255, 0.72);
}

.landing-band h2 {
  font-size: 1.2rem;
}

.landing-band p {
  margin-top: 10px;
  color: var(--ios-secondary);
  line-height: 1.55;
}

.reader-shell {
  max-width: 980px;
}

.reader-app {
  display: grid;
  gap: 14px;
  padding: 26px 0;
}

.reader-auth-panel,
.reader-status-card,
.reader-feed {
  border-radius: var(--ios-radius-large);
}

.reader-auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: clamp(24px, 4vw, 42px);
}

.reader-auth-panel h1 {
  max-width: 760px;
  font-size: clamp(2.55rem, 7vw, 5.6rem);
  font-weight: 760;
  line-height: 0.98;
}

.reader-auth-panel p {
  max-width: 700px;
  margin-top: 16px;
  color: var(--ios-secondary);
  font-size: 1.08rem;
  line-height: 1.52;
}

.reader-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.reader-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.reader-label {
  color: var(--ios-tertiary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reader-status-card h2,
.reader-feed-header h2 {
  margin-top: 4px;
  font-size: 1.55rem;
  line-height: 1.1;
}

.reader-status-card p {
  margin-top: 7px;
  color: var(--ios-secondary);
  line-height: 1.45;
}

.reader-feed {
  overflow: hidden;
}

.reader-feed-header {
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--ios-hairline);
}

.reader-state {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ios-fill-muted);
  color: var(--ios-secondary);
  font-size: 0.88rem;
  font-weight: 600;
}

.reader-empty {
  display: grid;
  gap: 8px;
  padding: 42px 24px;
  color: var(--ios-secondary);
  line-height: 1.5;
}

.reader-empty strong {
  color: var(--ios-text);
  font-size: 1.1rem;
}

.reader-list {
  display: grid;
  gap: 0;
}

.reader-list .fizz-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ios-hairline);
  background: transparent;
}

.reader-list .fizz-card:last-child {
  border-bottom: 0;
}

.reader-list .fizz-art {
  min-height: 104px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ios-fill-muted);
}

.reader-list .fizz-art img {
  width: 100%;
  height: 100%;
  min-height: 104px;
  object-fit: cover;
}

.reader-list .fizz-symbol {
  display: grid;
  place-items: center;
  min-height: 104px;
  color: var(--ios-blue);
  font-size: 1.1rem;
  font-weight: 760;
}

.reader-list .fizz-card-copy span {
  color: var(--ios-tertiary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reader-list .fizz-card-copy h3 {
  margin-top: 6px;
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  line-height: 1.05;
}

.reader-list .fizz-card-copy p {
  margin-top: 10px;
  color: var(--ios-secondary);
  font-size: 1rem;
  line-height: 1.58;
}

.reader-list .fizz-card-copy ul {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--ios-secondary);
  line-height: 1.48;
}

.reader-list .topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.reader-list .topic-row small {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--ios-fill-muted);
  color: var(--ios-secondary);
  font-size: 0.78rem;
  font-weight: 600;
}

.ios-footer {
  justify-content: space-between;
  gap: 14px;
  padding: 20px 4px 0;
  color: var(--ios-secondary);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .ios-page-shell {
    width: min(100% - 20px, 1120px);
  }

  .ios-nav {
    align-items: stretch;
    flex-direction: column;
    border-radius: 24px;
  }

  .ios-nav-links {
    justify-content: space-between;
    width: 100%;
    overflow-x: auto;
  }

  .landing-hero,
  .reader-auth-panel {
    grid-template-columns: 1fr;
  }

  .landing-copy,
  .glass-preview {
    min-height: auto;
  }

  .landing-band {
    grid-template-columns: 1fr;
  }

  .reader-status-card,
  .reader-feed-header,
  .ios-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .reader-list .fizz-card {
    grid-template-columns: 1fr;
  }

  .reader-list .fizz-art,
  .reader-list .fizz-art img,
  .reader-list .fizz-symbol {
    min-height: 180px;
  }
}

/* Final specificity pass for the prism reader, after legacy app styles. */
body.reader-prism .apple-button.prism-apple {
  min-width: 194px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: #f7f8ff;
  color: #111217;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  font-size: 0.96rem;
  font-weight: 720;
}

body.reader-prism .apple-button.prism-apple:disabled,
body.reader-prism .prism-button:disabled {
  opacity: 0.58;
  color: #111217;
}

body.reader-prism .auth-note {
  color: var(--prism-muted);
  font-size: 0.95rem;
  font-weight: 580;
  line-height: 1.45;
}

body.reader-prism .fetch-button:disabled {
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.78), rgba(105, 212, 255, 0.72));
  color: rgba(8, 16, 24, 0.78);
  opacity: 0.72;
}

body.reader-prism .reader-empty-v2 {
  color: var(--prism-muted);
}

body.reader-prism .reader-empty-v2 strong {
  color: var(--prism-ink);
}

/* Taste + Figma Code Prism Liquid Glass redesign */
body.prism-site,
body.reader-prism {
  --prism-bg: #111217;
  --prism-ink: #f7f8ff;
  --prism-muted: rgba(247, 248, 255, 0.68);
  --prism-faint: rgba(247, 248, 255, 0.42);
  --prism-line: rgba(255, 255, 255, 0.16);
  --prism-glass: rgba(255, 255, 255, 0.105);
  --prism-glass-strong: rgba(255, 255, 255, 0.17);
  --prism-cyan: #69d4ff;
  --prism-blue: #4f8cff;
  --prism-lime: #a7e889;
  --prism-radius: 28px;
  --prism-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(79, 140, 255, 0.34), transparent 30%),
    radial-gradient(circle at 86% 0%, rgba(167, 232, 137, 0.18), transparent 28%),
    linear-gradient(135deg, #101117 0%, #191d2c 58%, #101117 100%);
  color: var(--prism-ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

body.prism-site::before,
body.reader-prism::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(132deg, transparent 0 42%, rgba(255, 255, 255, 0.14) 42.2%, transparent 48%),
    radial-gradient(circle at 40% 70%, rgba(105, 212, 255, 0.2), transparent 28%);
  opacity: 0.9;
}

.prism-shell,
.reader-shell-v2 {
  width: min(1180px, calc(100% - 34px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 16px 0 26px;
}

.prism-nav {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px;
  border: 1px solid var(--prism-line);
  border-radius: 999px;
  background: rgba(16, 17, 23, 0.62);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(26px) saturate(1.25);
}

.prism-brand,
.prism-nav-links,
.prism-actions,
.prism-footer,
.reader-control-board,
.feed-toolbar,
.control-group.auth-group {
  display: flex;
  align-items: center;
}

.prism-brand {
  gap: 10px;
  min-width: 0;
  padding: 6px 12px 6px 6px;
  color: var(--prism-ink);
  font-weight: 760;
}

.prism-brand img {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.prism-nav-links {
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.prism-nav-links a {
  min-height: 36px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--prism-muted);
  font-size: 0.92rem;
  font-weight: 650;
  white-space: nowrap;
}

.prism-nav-links a[aria-current="page"],
.prism-nav-links a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--prism-ink);
}

.prism-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.8fr);
  gap: 22px;
  align-items: stretch;
  min-height: min(740px, calc(100dvh - 122px));
  padding: clamp(24px, 6vw, 78px) 0 28px;
}

.prism-hero-copy,
.prism-showcase,
.prism-flow article,
.reader-prism-hero,
.reader-session-card,
.reader-control-board,
.reader-feed-v2 {
  border: 1px solid var(--prism-line);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.075));
  box-shadow: var(--prism-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(28px) saturate(1.24);
}

.prism-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding: clamp(30px, 6vw, 74px);
  border-radius: 38px;
}

.prism-hero-copy h1 {
  max-width: 860px;
  font-size: clamp(3.2rem, 7.5vw, 7.4rem);
  font-weight: 780;
  line-height: 0.91;
  letter-spacing: 0;
}

.prism-hero-copy p {
  max-width: 690px;
  margin-top: 24px;
  color: var(--prism-muted);
  font-size: clamp(1.08rem, 1.9vw, 1.35rem);
  line-height: 1.48;
}

.prism-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.prism-button,
.apple-button.prism-apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms ease, opacity 180ms ease;
}

.prism-button:hover,
.apple-button.prism-apple:hover {
  transform: translateY(-1px);
}

.prism-button.primary {
  background: linear-gradient(135deg, var(--prism-blue), var(--prism-cyan));
  color: #081018;
  box-shadow: 0 18px 46px rgba(79, 140, 255, 0.25);
}

.prism-button.secondary,
.prism-button.ghost {
  background: rgba(255, 255, 255, 0.13);
  color: var(--prism-ink);
}

.apple-button.prism-apple {
  min-width: 194px;
  background: #f7f8ff;
  color: #111217;
}

.prism-button:disabled,
.apple-button.prism-apple:disabled {
  cursor: default;
  opacity: 0.48;
  transform: none;
}

.prism-showcase {
  position: relative;
  display: grid;
  align-content: end;
  gap: 16px;
  min-height: 560px;
  padding: 22px;
  border-radius: 38px;
  overflow: hidden;
}

.prism-showcase::before {
  position: absolute;
  inset: 22px 22px auto;
  height: 270px;
  border-radius: 30px;
  content: "";
  background:
    linear-gradient(145deg, rgba(80, 65, 255, 0.8), rgba(105, 212, 255, 0.48) 45%, rgba(167, 232, 137, 0.34)),
    url("/assets/fizz-logo.png") center / 130px no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.showcase-screen {
  position: relative;
  z-index: 1;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(15, 17, 28, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.showcase-screen span,
.reader-kicker,
.control-group label {
  color: var(--prism-faint);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-screen strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
}

.showcase-screen p {
  margin-top: 8px;
  color: var(--prism-muted);
  line-height: 1.46;
}

.prism-flow {
  display: grid;
  grid-template-columns: 1.1fr 0.92fr 1fr;
  gap: 14px;
  padding-bottom: 30px;
}

.prism-flow article {
  min-height: 220px;
  padding: 24px;
  border-radius: var(--prism-radius);
}

.prism-flow article:nth-child(2) {
  margin-top: 42px;
}

.prism-flow span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--prism-cyan);
  font-weight: 800;
}

.prism-flow h2 {
  margin-top: 34px;
  font-size: 1.42rem;
}

.prism-flow p {
  margin-top: 10px;
  color: var(--prism-muted);
  line-height: 1.55;
}

.prism-footer {
  justify-content: space-between;
  gap: 14px;
  padding: 18px 3px 0;
  color: var(--prism-muted);
  font-size: 0.94rem;
}

.reader-shell-v2 {
  width: min(1100px, calc(100% - 34px));
}

.reader-studio {
  display: grid;
  gap: 16px;
  padding: 26px 0;
}

.reader-prism-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  padding: clamp(28px, 5vw, 50px);
  border-radius: 34px;
}

.reader-prism-hero h1 {
  max-width: 860px;
  font-size: clamp(2.8rem, 6.5vw, 6.2rem);
  font-weight: 790;
  line-height: 0.94;
}

.reader-prism-hero p {
  max-width: 720px;
  margin-top: 18px;
  color: var(--prism-muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.reader-session-card {
  align-self: end;
  padding: 20px;
  border-radius: 24px;
}

.reader-session-card strong {
  display: block;
  margin-top: 7px;
  font-size: 1.35rem;
}

.reader-session-card p {
  margin-top: 8px;
  font-size: 0.96rem;
}

.reader-control-board {
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px;
  border-radius: 28px;
}

.control-group {
  display: grid;
  gap: 7px;
  min-width: 150px;
}

.control-group.auth-group {
  flex: 1 1 320px;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-note {
  flex-basis: 100%;
  margin: 0;
  color: var(--prism-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.glass-select {
  min-width: 150px;
  min-height: 46px;
  padding: 0 40px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 18px) 54% / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.08));
  color: var(--prism-ink);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 680;
}

.reader-feed-v2 {
  border-radius: 34px;
  overflow: hidden;
}

.feed-toolbar {
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.feed-toolbar h2 {
  margin-top: 5px;
  font-size: 2rem;
  line-height: 1.05;
}

.reader-state {
  max-width: 260px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--prism-muted);
  font-size: 0.9rem;
  font-weight: 720;
  text-align: right;
}

.reader-empty-v2 {
  display: grid;
  gap: 9px;
  padding: 46px 24px;
  color: var(--prism-muted);
  line-height: 1.55;
}

.reader-empty-v2 strong {
  color: var(--prism-ink);
  font-size: 1.16rem;
}

.reader-list-v2 {
  display: grid;
}

.reader-list-v2 .fizz-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
}

.reader-list-v2 .fizz-card:last-child {
  border-bottom: 0;
}

.reader-list-v2 .fizz-art {
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.reader-list-v2 .fizz-art img {
  width: 100%;
  height: 100%;
  min-height: 118px;
  object-fit: cover;
}

.reader-list-v2 .fizz-symbol {
  display: grid;
  place-items: center;
  min-height: 118px;
  color: var(--prism-cyan);
  font-size: 1.1rem;
  font-weight: 790;
}

.reader-list-v2 .fizz-card-copy span {
  color: var(--prism-faint);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.reader-list-v2 .fizz-card-copy h3 {
  margin-top: 7px;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.05;
}

.reader-list-v2 .fizz-card-copy p {
  margin-top: 10px;
  color: var(--prism-muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.reader-list-v2 .fizz-card-copy ul {
  display: grid;
  gap: 8px;
  margin: 15px 0 0;
  padding-left: 18px;
  color: var(--prism-muted);
  line-height: 1.5;
}

.reader-list-v2 .topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.reader-list-v2 .topic-row small {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: var(--prism-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

body.reader-prism[data-reader-theme="paper"] {
  --prism-bg: #f4f1ea;
  --prism-ink: #171512;
  --prism-muted: rgba(23, 21, 18, 0.68);
  --prism-faint: rgba(23, 21, 18, 0.46);
  --prism-line: rgba(23, 21, 18, 0.12);
  background:
    radial-gradient(circle at 10% 0%, rgba(105, 212, 255, 0.14), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(167, 232, 137, 0.16), transparent 28%),
    #f4f1ea;
}

body.reader-prism[data-reader-theme="paper"] .prism-nav,
body.reader-prism[data-reader-theme="paper"] .reader-prism-hero,
body.reader-prism[data-reader-theme="paper"] .reader-session-card,
body.reader-prism[data-reader-theme="paper"] .reader-control-board,
body.reader-prism[data-reader-theme="paper"] .reader-feed-v2 {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(63, 57, 48, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.reader-prism[data-reader-theme="paper"] .glass-select,
body.reader-prism[data-reader-theme="paper"] .prism-button.ghost {
  background-color: rgba(255, 255, 255, 0.72);
  color: var(--prism-ink);
}

body.reader-prism[data-reader-theme="contrast"] {
  --prism-bg: #fbfbfb;
  --prism-ink: #0b0c0e;
  --prism-muted: #22252a;
  --prism-faint: #40444a;
  --prism-line: rgba(0, 0, 0, 0.24);
  background: #fbfbfb;
}

body.reader-prism[data-reader-theme="contrast"] .prism-nav,
body.reader-prism[data-reader-theme="contrast"] .reader-prism-hero,
body.reader-prism[data-reader-theme="contrast"] .reader-session-card,
body.reader-prism[data-reader-theme="contrast"] .reader-control-board,
body.reader-prism[data-reader-theme="contrast"] .reader-feed-v2 {
  background: #fff;
  box-shadow: none;
}

body.reader-prism[data-reader-theme="night"] {
  --prism-ink: #f7f8ff;
  --prism-muted: rgba(247, 248, 255, 0.72);
  --prism-faint: rgba(247, 248, 255, 0.48);
  --prism-line: rgba(255, 255, 255, 0.16);
}

body.reader-prism[data-reader-font="editorial"] .reader-feed-v2,
body.reader-prism[data-reader-font="editorial"] .reader-prism-hero p,
body.reader-prism[data-reader-font="editorial"] .reader-session-card p {
  font-family: ui-serif, "New York", Georgia, serif;
}

body.reader-prism[data-reader-font="editorial"] .reader-list-v2 .fizz-card-copy p,
body.reader-prism[data-reader-font="editorial"] .reader-list-v2 .fizz-card-copy ul {
  font-size: 1.12rem;
}

body.reader-prism[data-reader-font="mono"] .reader-feed-v2,
body.reader-prism[data-reader-font="mono"] .reader-control-board {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

@media (max-width: 820px) {
  .prism-shell,
  .reader-shell-v2 {
    width: min(100% - 22px, 1180px);
  }

  .prism-nav {
    align-items: stretch;
    flex-direction: column;
    border-radius: 28px;
  }

  .prism-nav-links {
    width: 100%;
    overflow-x: auto;
  }

  .prism-hero,
  .reader-prism-hero,
  .prism-flow {
    grid-template-columns: 1fr;
  }

  .prism-hero-copy,
  .prism-showcase {
    min-height: auto;
  }

  .prism-showcase {
    padding-top: 310px;
  }

  .prism-flow article:nth-child(2) {
    margin-top: 0;
  }

  .reader-control-board,
  .feed-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .control-group,
  .glass-select,
  .reader-control-board .prism-button,
  .reader-control-board .apple-button {
    width: 100%;
  }

  .reader-list-v2 .fizz-card {
    grid-template-columns: 1fr;
  }

  .reader-list-v2 .fizz-art,
  .reader-list-v2 .fizz-art img,
  .reader-list-v2 .fizz-symbol {
    min-height: 190px;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 18% 10%, rgba(10, 132, 255, 0.13), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(138, 165, 90, 0.16), transparent 24%),
    linear-gradient(180deg, #f7f8fb 0%, var(--bg) 48%, #eef1f6 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-shell {
  min-height: 100dvh;
}

.nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(232, 232, 232, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px) saturate(1.08);
}

.brand,
.nav-links,
.rail-item,
.chat-title,
.icon-button,
.action-chips,
.suggestion-chip,
.message-row,
.chatbar,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  min-width: 0;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  font-weight: 700;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.nav-links {
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--composer);
  overflow-x: auto;
}

.nav-links a {
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-height: calc(100dvh - 116px);
  padding: 22px 0 20px;
}

.simple-home {
  display: grid;
  gap: 26px;
  padding: 42px 0 28px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 330px);
  gap: 28px;
  align-items: center;
  min-height: min(620px, calc(100dvh - 148px));
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
}

.hero-copy {
  max-width: 720px;
}

.home-hero h1 {
  font-size: 7rem;
  line-height: 0.95;
  font-weight: 800;
}

.hero-device {
  justify-self: end;
  width: min(100%, 300px);
  margin: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #111;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.22);
}

.hero-device img {
  display: block;
  width: 100%;
  border-radius: 25px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}

.resource-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.resource-card h2 {
  margin-top: 12px;
  font-size: 1.45rem;
  line-height: 1.16;
}

.resource-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.62;
}

.resource-card .button,
.resource-card .email-link {
  margin-top: auto;
}

.context-rail {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
}

.rail-panel {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
}

.rail-panel.compact {
  display: grid;
  gap: 8px;
}

.rail-label {
  margin: 2px 6px 8px;
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 600;
}

.rail-item {
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-card);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.rail-item:hover,
.rail-item.active {
  background: var(--composer);
  color: var(--ink);
}

.rail-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--dim);
}

.rail-item.active .rail-dot {
  background: var(--blue);
}

.rail-metric {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: var(--radius-card);
  background: var(--composer);
}

.rail-metric strong {
  font-size: 1.15rem;
}

.rail-metric span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.chat-stage {
  position: relative;
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: var(--radius-chat);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.chat-appbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.icon-button,
.round-action,
.submit-button {
  display: inline-grid;
  place-items: center;
  border: 0;
  cursor: pointer;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: transparent;
}

.icon-button:hover {
  background: var(--composer);
}

.icon-button span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
}

.icon-button span + span {
  width: 12px;
  margin-top: 4px;
}

.icon-button svg,
.submit-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.chat-title {
  justify-content: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.chat-title strong {
  font-size: 1rem;
  font-weight: 650;
}

.chat-title span {
  color: var(--dim);
  font-size: 0.86rem;
}

.chat-thread {
  position: relative;
  display: grid;
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
  padding: 58px 28px 132px;
}

.assistant-block {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
}

.assistant-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--composer);
}

.assistant-avatar img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.assistant-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

h1 {
  max-width: 760px;
  font-size: 4rem;
  line-height: 1.02;
  font-weight: 700;
}

.lead {
  max-width: 690px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.58;
}

.action-chips {
  gap: 12px;
  margin-top: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.suggestion-chip {
  flex: 0 0 205px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  min-height: 74px;
  padding: 14px 16px;
  border-radius: var(--radius-chat);
  background: var(--composer);
}

.suggestion-chip:hover {
  background: #ececec;
}

.suggestion-chip span {
  font-weight: 650;
}

.suggestion-chip small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.message-row.user {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 340px;
  padding: 14px 16px;
  border-radius: var(--radius-chat);
  background: var(--composer);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.message-bubble.compact {
  border-radius: 999px;
}

.assistant-response {
  max-width: 710px;
  padding-left: 52px;
}

.assistant-response > p {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.response-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.response-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.response-grid span,
.card h2 + p,
.policy-index a,
.step-number {
  color: var(--muted);
}

.response-grid span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.response-grid strong {
  display: block;
  font-size: 1.05rem;
}

.response-grid p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.phone-preview {
  position: absolute;
  right: 28px;
  bottom: 126px;
  width: 170px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #111;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
  transform: rotate(2deg);
}

.phone-preview img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.chatbar {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 22px;
  width: min(760px, calc(100% - 44px));
  min-height: 68px;
  transform: translateX(-50%);
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.round-action {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--composer);
}

.round-action span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--dim);
}

.round-action span + span {
  position: absolute;
  transform: rotate(90deg);
}

.composer {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  padding: 7px 8px;
}

.typing-copy {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
}

.composer input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.94rem;
}

.composer input::placeholder {
  color: var(--dim);
}

.submit-button {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}

.submit-button:hover {
  background: #303030;
}

.section,
.policy-hero,
.policy-body,
.support-board {
  padding: 42px 0;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.section h2,
.policy-hero h1 {
  font-size: 3.3rem;
  line-height: 1.05;
  font-weight: 700;
}

.section-header p,
.card p,
.card li,
.policy-body p,
.policy-body li {
  color: var(--muted);
  line-height: 1.62;
}

.grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}

.card h2,
.card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.card ul,
.policy-body ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.button,
.email-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 650;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.button:hover,
.email-link:hover {
  box-shadow: var(--shadow-md);
}

.web-app {
  display: grid;
  gap: 22px;
  padding: 34px 0 28px;
}

.web-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.58fr);
  gap: 18px;
  align-items: stretch;
  min-height: min(620px, calc(100dvh - 146px));
}

.web-hero-copy,
.signin-panel,
.today-shell,
.empty-state,
.fizz-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.54)),
    var(--glass);
  box-shadow: 0 24px 80px rgba(18, 22, 28, 0.09);
  backdrop-filter: blur(24px) saturate(1.14);
}

.web-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 470px;
  padding: clamp(28px, 6vw, 72px);
  border-radius: 34px;
  overflow: hidden;
}

.web-hero-copy h1 {
  max-width: none;
  font-size: clamp(4.2rem, 14vw, 10.5rem);
  line-height: 0.86;
  font-weight: 800;
}

.web-hero-copy .lead {
  max-width: 610px;
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.apple-button,
.text-button {
  border: 0;
  cursor: pointer;
}

.apple-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: #050505;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.apple-button:disabled,
.fetch-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.under-review {
  min-height: 48px;
  border-color: rgba(10, 132, 255, 0.28);
  background: rgba(10, 132, 255, 0.10);
  color: var(--blue);
  cursor: default;
}

.auth-note {
  max-width: 560px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.signin-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 470px;
  padding: 22px;
  border-radius: 34px;
}

.panel-topline,
.today-header,
.resource-strip,
.topic-row {
  display: flex;
  align-items: center;
}

.panel-topline,
.today-header {
  justify-content: space-between;
  gap: 16px;
}

.panel-topline {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.text-button {
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 700;
}

.session-orb {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-top: auto;
  border: 1px solid rgba(10, 132, 255, 0.18);
  border-radius: 31px;
  background: rgba(10, 132, 255, 0.12);
}

.session-orb img {
  width: 64px;
  height: 64px;
  border-radius: 20px;
}

.signin-panel h2 {
  margin-top: 30px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.signin-panel p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.fetch-button {
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
}

.today-shell {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 34px);
  border-radius: 30px;
}

.section-label {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.today-header h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
}

.bundle-status {
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-align: right;
}

.empty-state {
  display: grid;
  gap: 6px;
  min-height: 168px;
  place-content: center;
  padding: 24px;
  border-radius: 22px;
  text-align: center;
}

.empty-state strong {
  font-size: 1.15rem;
}

.empty-state span {
  color: var(--muted);
  line-height: 1.5;
}

.fizz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fizz-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  min-height: 220px;
  padding: 14px;
  border-radius: 24px;
}

.fizz-art {
  min-height: 100%;
  border-radius: 18px;
  background: var(--field);
  overflow: hidden;
}

.fizz-art img,
.fizz-symbol {
  width: 100%;
  height: 100%;
}

.fizz-art img {
  display: block;
  object-fit: cover;
}

.fizz-symbol {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 800;
}

.fizz-card-copy {
  min-width: 0;
  padding: 4px 2px 4px 0;
}

.fizz-card-copy span {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fizz-card-copy h3 {
  margin-top: 7px;
  font-size: 1.22rem;
  line-height: 1.16;
}

.fizz-card-copy p,
.fizz-card-copy li {
  color: var(--muted);
  line-height: 1.48;
}

.fizz-card-copy p {
  margin-top: 8px;
  font-size: 0.95rem;
}

.fizz-card-copy ul {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding-left: 17px;
  font-size: 0.9rem;
}

.topic-row {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.topic-row small {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.10);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 750;
}

.resource-strip {
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px 0;
}

.resource-strip a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  backdrop-filter: blur(18px);
}

body[data-busy] .bundle-status::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--blue);
  vertical-align: middle;
}

.policy-hero {
  max-width: 900px;
}

.policy-hero h1 {
  max-width: 800px;
}

.policy-hero .lead {
  max-width: 780px;
}

.policy-body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.policy-index {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-md);
}

.policy-index a {
  padding: 10px;
  border-radius: var(--radius-card);
  font-size: 0.92rem;
  font-weight: 550;
}

.policy-index a:hover {
  background: var(--composer);
  color: var(--ink);
}

.policy-stack,
.steps {
  display: grid;
  gap: 12px;
}

.policy-stack section {
  scroll-margin-top: 112px;
}

.support-board {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.email-link {
  width: fit-content;
  max-width: 100%;
  margin-top: 24px;
  padding: 10px 14px;
  background: var(--composer);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}

.step h3 {
  margin-bottom: 6px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--composer);
  font-weight: 750;
}

.footer {
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer a {
  font-weight: 600;
}

:focus-visible {
  outline: 3px solid rgba(2, 133, 255, 0.28);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .workspace-grid,
  .home-hero,
  .web-hero,
  .policy-body,
  .support-board,
  .section-header,
  .grid {
    grid-template-columns: 1fr;
  }

  .context-rail,
  .policy-index {
    position: static;
  }

  .context-rail {
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    font-size: 3.1rem;
  }

  .section h2,
  .policy-hero h1 {
    font-size: 2.7rem;
  }

  .phone-preview {
    position: static;
    justify-self: end;
    margin-top: -6px;
    width: 150px;
  }

  .hero-device {
    justify-self: start;
    width: 220px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .web-hero {
    min-height: auto;
  }

  .web-hero-copy,
  .signin-panel {
    min-height: 360px;
  }

  .fizz-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 20px, 640px);
  }

  .nav {
    align-items: stretch;
    flex-direction: column;
    border-radius: var(--radius-chat);
  }

  .brand {
    justify-content: center;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .workspace-grid {
    padding-top: 12px;
  }

  .simple-home {
    padding-top: 18px;
  }

  .home-hero {
    min-height: auto;
    padding: 24px;
    border-radius: var(--radius-chat);
  }

  .web-app {
    padding-top: 18px;
  }

  .web-hero-copy,
  .signin-panel,
  .today-shell {
    border-radius: 22px;
  }

  .web-hero-copy {
    min-height: 340px;
    padding: 24px;
  }

  .web-hero-copy h1 {
    font-size: 4.4rem;
  }

  .hero-actions {
    display: grid;
  }

  .apple-button,
  .under-review,
  .hero-actions .button {
    width: 100%;
  }

  .signin-panel {
    min-height: 320px;
  }

  .today-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .bundle-status {
    max-width: none;
    width: 100%;
    text-align: left;
  }

  .fizz-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .fizz-art {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .home-hero h1 {
    font-size: 3.7rem;
  }

  .hero-device {
    width: 180px;
  }

  .context-rail {
    grid-template-columns: 1fr;
  }

  .chat-stage {
    min-height: 780px;
  }

  .chat-thread {
    padding: 34px 14px 134px;
  }

  .chat-title {
    display: grid;
    gap: 2px;
  }

  .chat-title span {
    display: none;
  }

  .assistant-block {
    grid-template-columns: 1fr;
  }

  .assistant-avatar {
    display: none;
  }

  h1 {
    font-size: 2.35rem;
  }

  .lead {
    font-size: 1rem;
  }

  .action-chips,
  .response-grid {
    grid-template-columns: 1fr;
  }

  .action-chips {
    display: grid;
    overflow: visible;
  }

  .suggestion-chip {
    flex-basis: auto;
    width: 100%;
  }

  .assistant-response {
    padding-left: 0;
  }

  .message-bubble {
    max-width: 100%;
  }

  .phone-preview {
    display: none;
  }

  .chatbar {
    width: calc(100% - 18px);
    bottom: 10px;
    border-radius: var(--radius-chat);
  }

  .round-action {
    width: 38px;
    height: 38px;
  }

  .typing-copy {
    font-size: 0.88rem;
  }

  .composer input {
    font-size: 0.88rem;
  }

  .section,
  .policy-hero,
  .policy-body,
  .support-board {
    padding: 30px 0;
  }

  .section h2,
  .policy-hero h1 {
    font-size: 2.15rem;
  }

  .card {
    padding: 18px;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Final specificity pass for the prism reader, after legacy app styles. */
body.reader-prism .apple-button.prism-apple {
  min-width: 194px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: #f7f8ff;
  color: #111217;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  font-size: 0.96rem;
  font-weight: 720;
}

body.reader-prism .apple-button.prism-apple:disabled,
body.reader-prism .prism-button:disabled {
  opacity: 0.58;
  color: #111217;
}

body.reader-prism .auth-note {
  color: var(--prism-muted);
  font-size: 0.95rem;
  font-weight: 580;
  line-height: 1.45;
}

body.reader-prism .fetch-button:disabled {
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.78), rgba(105, 212, 255, 0.72));
  color: rgba(8, 16, 24, 0.78);
  opacity: 0.72;
}

body.reader-prism .reader-empty-v2 {
  color: var(--prism-muted);
}

body.reader-prism .reader-empty-v2 strong {
  color: var(--prism-ink);
}
