* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f6f7f9;
  -webkit-font-smoothing: antialiased;
}

a { color: #0a53b6; text-decoration: none; }
a:hover { color: #1a7fe1; }

@keyframes lpRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes lpHeroBlur { 0% { filter: blur(0px); } 45%, 72% { filter: blur(9px); } 88%, 100% { filter: blur(0px); } }
@keyframes lpCardShow { 0%, 38% { opacity: 0; transform: translateY(6px) scale(0.985); } 50%, 72% { opacity: 1; transform: none; } 84%, 100% { opacity: 0; transform: translateY(4px) scale(0.99); } }
@keyframes lpBarFade { 0%, 76% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lpBarFill { 0% { width: 0%; } 62%, 100% { width: 100%; } }
@keyframes lpBarThumb { 0% { left: 0%; } 62%, 100% { left: 100%; } }

.page {
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  transition: background 320ms ease, color 320ms ease;
}

.page[data-tab="blur"] {
  --page-bg: #f6f7f9;
  --panel: #ffffff;
  --nav-bg: rgba(246,247,249,0.85);
  --lab-bg: #ffffff;
  --ink: #14171c;
  --border: rgba(0,0,0,0.08);
  --accent: #0a53b6;
  --btn-bg: #14171c;
  --btn-fg: #ffffff;
  --tab-track-bg: rgba(0,0,0,0.05);
  --soft-opacity: 0.45;
  --tab-active-bg: #14171c;
  --tab-active-fg: #ffffff;
  --tab-inactive-opacity: 0.55;
}

.page[data-tab="espresso"] {
  --page-bg: #1E1E1E;
  --panel: #262629;
  --nav-bg: rgba(30,30,30,0.85);
  --lab-bg: #232326;
  --ink: #f2f3f5;
  --border: rgba(255,255,255,0.11);
  --accent: #E8B65C;
  --btn-bg: #E8B65C;
  --btn-fg: #241900;
  --tab-track-bg: rgba(255,255,255,0.06);
  --soft-opacity: 0.7;
  --tab-active-bg: #E8B65C;
  --tab-active-fg: #241900;
  --tab-inactive-opacity: 0.6;
}

.blur-only, .espresso-only { transition: none; }
.page[data-tab="espresso"] .blur-only { display: none !important; }
.page[data-tab="blur"] .espresso-only { display: none !important; }

/* nav */
.nav {
  width: 100%;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
}
.nav-inner {
  width: 100%;
  max-width: 980px;
  box-sizing: border-box;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.logo {
  position: relative;
  width: 28px; height: 28px;
  flex: none;
  border-radius: 7px;
  overflow: hidden;
  background: linear-gradient(165deg, #5cb3f4 0%, #1a7fe1 44%, #0a53b6 100%);
}
.logo-glyph {
  position: absolute; left: 6px; top: 6px;
  width: 16px; height: 16px;
  box-sizing: border-box;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.28);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.logo-lock-top {
  width: 5px; height: 4px; box-sizing: border-box;
  border: 1px solid #fff; border-bottom: none;
  border-radius: 3px 3px 0 0; margin-bottom: -0.5px;
}
.logo-lock-body { width: 7px; height: 6px; border-radius: 2px; background: #fff; }
.brand-name { font-size: 15px; font-weight: 650; letter-spacing: -0.2px; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a:not(.btn) { font-size: 13.5px; color: var(--ink); opacity: 0.55; }

.btn { display: flex; align-items: center; gap: 8px; }
.btn[hidden] { display: none; }
.btn-pill { padding: 7px 16px; border-radius: 100px; background: var(--btn-bg); color: var(--btn-fg) !important; font-size: 13px; font-weight: 600; opacity: 1 !important; }
.btn-cta { padding: 13px 26px; border-radius: 100px; background: var(--btn-bg); color: var(--btn-fg) !important; box-shadow: 0 8px 22px rgba(20,23,28,0.22); }
.btn-cta .btn-label { font-size: 15px; font-weight: 650; letter-spacing: -0.2px; }
.closing-cta { align-self: flex-start; margin-top: 8px; padding: 12px 24px; }
.closing-cta .btn-label { font-size: 14px; }

/* hero */
.hero {
  width: 100%; max-width: 980px; box-sizing: border-box;
  padding: 72px 24px 56px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
}
.tabbar {
  display: flex; gap: 4px; padding: 4px;
  border-radius: 100px; background: var(--tab-track-bg); border: 1px solid var(--border);
}
.tab {
  padding: 8px 22px; border-radius: 100px; cursor: pointer;
  font-size: 13px; font-weight: 650; letter-spacing: -0.1px;
  background: transparent; color: var(--ink); opacity: var(--tab-inactive-opacity);
  border: none; font-family: inherit;
  transition: all 220ms ease;
}
.tab.active { background: var(--tab-active-bg); color: var(--tab-active-fg); opacity: 1; }

.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-icon {
  font-size: 15px; line-height: 1; color: #E8B65C;
  text-shadow: 0 0 22px rgba(232,182,92,0.7), 0 0 7px rgba(232,182,92,0.5);
}

.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-headline { font-size: 54px; line-height: 1.06; font-weight: 700; letter-spacing: -1.8px; max-width: 18ch; text-wrap: pretty; }
#hero-blur .hero-card {
  position: relative; box-sizing: border-box; padding: 40px 44px; border-radius: 20px; border: 1px solid rgba(0,0,0,0.14);
}
#hero-blur .hero-headline { max-width: 17ch; animation: lpHeroBlur 4.2s ease-in-out 1 both; }
.hero-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none; animation: lpCardShow 4.2s ease-in-out 1 both;
}
.hero-chip {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 30px; border-radius: 16px;
  background: rgba(255,255,255,0.62); border: 1px solid rgba(255,255,255,0.9);
  backdrop-filter: blur(14px) saturate(150%); box-shadow: 0 16px 40px rgba(16,32,60,0.18);
}
.chip-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.75); border: 1px solid rgba(0,0,0,0.07);
}
.chip-lock-top { width: 9px; height: 7px; box-sizing: border-box; border: 1.8px solid #14171c; border-bottom: none; border-radius: 5px 5px 0 0; opacity: 0.88; }
.chip-lock-body { width: 14px; height: 11px; border-radius: 3px; background: #14171c; opacity: 0.88; }
.chip-label { font-size: 14px; font-weight: 600; letter-spacing: -0.1px; color: #14171c; }

.hero-progress { position: relative; width: 100%; max-width: 320px; height: 16px; pointer-events: none; animation: lpBarFade 4.2s ease-in-out 1 both; }
.hero-progress-track { position: absolute; left: 0; right: 0; top: 6px; height: 4px; border-radius: 3px; overflow: hidden; background: rgba(0,0,0,0.1); }
.hero-progress-fill { height: 100%; border-radius: 3px; background: #0a53b6; animation: lpBarFill 4.2s ease-in-out 1 both; }
.hero-progress-thumb {
  position: absolute; top: 1px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: #fff; border: 1px solid rgba(0,0,0,0.12); box-shadow: 0 1px 4px rgba(16,32,60,0.28);
  animation: lpBarThumb 4.2s ease-in-out 1 both;
}

.hero-body { font-size: 17px; line-height: 1.6; opacity: 0.55; max-width: 52ch; text-wrap: pretty; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 6px; }
.hero-note { font-size: 12.5px; opacity: var(--soft-opacity); }

/* labs (shared) */
.lab { width: 100%; max-width: 980px; box-sizing: border-box; padding: 0 24px 20px; display: flex; flex-direction: column; gap: 22px; }
.lab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.lab-head-text { display: flex; flex-direction: column; gap: 7px; }
.lab-title { font-size: 26px; font-weight: 700; letter-spacing: -0.7px; }
.lab-desc { font-size: 13.5px; line-height: 1.6; opacity: 0.55; max-width: 54ch; text-wrap: pretty; }
#lab-espresso .lab-desc { opacity: 0.6; }
.lab-state { font-size: 12.5px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; }

.lab-panel { position: relative; width: 100%; box-sizing: border-box; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; align-items: center; }

/* blur lab: lid scene */
.lid-panel {
  padding: 56px 24px 30px; border: 1px solid rgba(0,0,0,0.08);
  background: radial-gradient(120% 110% at 50% 0%, #ffffff 0%, #eef1f5 60%, #e2e7ee 100%);
}
.lid-scene { perspective: 1700px; perspective-origin: 50% 68%; width: 100%; max-width: 620px; }
.lid-perspective { position: relative; width: 100%; aspect-ratio: 16 / 10.4; transform-style: preserve-3d; }
.lid-3d { position: absolute; inset: 0; transform-style: preserve-3d; }
.lid-screen-wrap {
  position: absolute; inset: 0; transform-origin: 50% 100%;
  transition: transform 90ms linear;
  border-radius: 12px 12px 3px 3px;
  background: linear-gradient(180deg, #d7dbe1 0%, #c2c7cf 100%);
  padding: 9px 9px 16px; box-sizing: border-box;
}
.lid-screen { position: relative; width: 100%; height: 100%; border-radius: 6px; overflow: hidden; background: #0a0c10; }
.screen-bg { position: absolute; inset: 0; transform: scale(1.06); }
.screen-bg::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 18% 0%, #dfe6ef 0%, #c6d2e0 46%, #a9b8ca 100%);
}
.menubar {
  position: absolute; top: 0; left: 0; right: 0; height: 5.4%;
  display: flex; align-items: center; justify-content: space-between; padding: 0 10px;
  background: rgba(255,255,255,0.5); border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 9px; color: #14171c; z-index: 1;
}
.menubar-left { display: flex; gap: 11px; }
.mb-strong { font-weight: 600; }
.mb-soft { opacity: 0.5; }
.menubar-right { display: flex; gap: 9px; }
.menubar-right span { opacity: 0.75; }
.mail-app {
  position: absolute; top: 13%; left: 7%; right: 7%; bottom: 11%;
  border-radius: 7px; overflow: hidden; display: flex;
  background: rgba(252,252,253,0.96); border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 12px 30px rgba(16,32,60,0.16); color: #14171c;
}
.mail-sidebar { width: 26%; flex: none; border-right: 1px solid rgba(0,0,0,0.07); background: rgba(0,0,0,0.02); }
.traffic-lights { height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 9px; }
.tl { width: 6px; height: 6px; border-radius: 50%; }
.tl-red { background: #ff5f57; } .tl-yellow { background: #febc2e; } .tl-green { background: #28c840; }
.mailbox-list { padding: 3px 6px; display: flex; flex-direction: column; gap: 2px; }
.mailbox { display: flex; justify-content: space-between; padding: 4px 7px; border-radius: 5px; font-size: 9px; opacity: 0.55; }
.mailbox.active { background: rgba(0,0,0,0.05); opacity: 0.9; }
.mb-count { opacity: 0.35; font-variant-numeric: tabular-nums; }
.mail-body { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.mail-subject { font-size: 13px; font-weight: 700; letter-spacing: -0.2px; }
.mail-meta { font-size: 9px; opacity: 0.45; }
.mail-preview { font-size: 9.5px; line-height: 1.7; opacity: 0.75; }
.mail-figures { display: flex; flex-direction: column; }
.mail-figure { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid rgba(0,0,0,0.07); }
.mail-figure span:first-child { font-size: 9px; opacity: 0.5; white-space: nowrap; }
.mail-figure span:last-child { font-size: 10.5px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }

.glass-overlay {
  position: absolute; inset: 0;
  transition: opacity 90ms linear;
  backdrop-filter: blur(10px) saturate(150%) brightness(1.03);
  background: rgba(240,244,250,0.34);
  display: flex; align-items: center; justify-content: center;
}
.glass-overlay::before { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 140px 26px rgba(60,72,92,0.24); }
.glass-tint { display: none; }
.glass-chip {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 16px 24px; border-radius: 14px;
  background: rgba(255,255,255,0.58); border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 12px 30px rgba(16,32,60,0.18);
  transition: opacity 140ms linear;
}
.glass-chip .chip-icon { width: 28px; height: 28px; }
.glass-chip .chip-lock-top { width: 8px; height: 6px; border-width: 1.6px; }
.glass-chip .chip-lock-body { width: 12px; height: 10px; }
.glass-chip .chip-label { font-size: 12.5px; }

.glare {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0) 62%, rgba(255,255,255,0.12) 100%);
}
.lid-label { position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); font-size: 8px; letter-spacing: 0.8px; color: rgba(60,66,76,0.5); }

.lid-base {
  position: absolute; left: -3%; right: -3%; top: 100%; height: 3.2%;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #c9ced6 0%, #aeb4bd 60%, #9aa0a9 100%);
  box-shadow: 0 16px 30px rgba(16,32,60,0.22);
}
.lid-notch { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 14%; height: 34%; border-radius: 0 0 5px 5px; background: rgba(0,0,0,0.12); }

.lid-controls { width: 100%; max-width: 620px; margin-top: 74px; display: flex; flex-direction: column; gap: 14px; }
.lid-controls input[type="range"] { width: 100%; accent-color: #0a53b6; cursor: pointer; }
.lid-scale { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11.5px; opacity: 0.45; }
.lid-buttons { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-dark { padding: 8px 16px; border-radius: 9px; cursor: pointer; font-size: 12.5px; font-weight: 600; background: #14171c; color: #fff; border: none; font-family: inherit; }
.btn-outline { padding: 8px 16px; border-radius: 9px; cursor: pointer; font-size: 12.5px; font-weight: 600; background: #fff; color: #14171c; border: 1px solid rgba(0,0,0,0.12); font-family: inherit; }

/* espresso lab */
.esp-panel { padding: 34px 24px 30px; border: 1px solid var(--border); background: var(--lab-bg); gap: 30px; }
.esp-scene { width: 100%; max-width: 560px; }
.esp-screen {
  position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px 12px 3px 3px;
  box-sizing: border-box; padding: 9px 9px 16px;
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.esp-screen-awake {
  position: absolute; inset: 9px 9px 16px; border-radius: 6px; overflow: hidden;
  transition: opacity 260ms linear;
  background: radial-gradient(120% 100% at 20% 0%, #2b2b2b 0%, #1e1e1e 55%, #141414 100%);
}
.esp-menubar {
  position: absolute; top: 0; left: 0; right: 0; height: 6%;
  display: flex; align-items: center; justify-content: space-between; padding: 0 10px;
  background: rgba(255,255,255,0.05); font-size: 9px; color: rgba(255,255,255,0.7);
}
.esp-menubar .menubar-left { gap: 11px; }
.esp-menubar .sun { color: #E8B65C; }
.esp-menubar .menubar-right { align-items: center; }
.job-card {
  position: absolute; top: 14%; left: 8%; right: 8%; bottom: 12%; border-radius: 8px;
  box-sizing: border-box; padding: 16px 18px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 12px; color: #f2f3f5;
}
.job-title { font-size: 12px; font-weight: 650; }
.job-track { height: 4px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; }
.job-fill { height: 100%; width: 34%; border-radius: 99px; background: #E8B65C; transition: width 400ms linear; }
.job-line { font-size: 9.5px; opacity: 0.5; font-variant-numeric: tabular-nums; }
.job-note { margin-top: auto; font-size: 9.5px; opacity: 0.4; text-wrap: pretty; }
.esp-sleep-overlay {
  position: absolute; inset: 9px 9px 16px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 260ms linear; opacity: 0;
  background: #000; color: rgba(255,255,255,0.3); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
}
.esp-base { height: 10px; margin: 0 -3%; border-radius: 0 0 10px 10px; background: linear-gradient(180deg, #303030 0%, #1c1c1c 100%); }

.esp-controls { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 22px; }
.idle-row { display: flex; flex-direction: column; gap: 9px; }
.idle-caption-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; }
.idle-caption-row span:first-child { opacity: 0.7; }
.idle-caption-row span:last-child { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; }
.idle-track { height: 4px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; }
.idle-fill { height: 100%; width: 0%; border-radius: 99px; background: #d8825a; transition: width 200ms linear, background 300ms ease; }

.duration-row { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
.dur-btn {
  flex: 1; padding: 9px 8px; border-radius: 9px; cursor: pointer; text-align: center;
  font-size: 12.5px; font-weight: 650; background: transparent; color: rgba(242,243,245,0.6);
  border: none; font-family: inherit; transition: all 180ms ease;
}
.dur-btn.active { background: #E8B65C; color: #241900; }

.esp-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.esp-time { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.esp-time span:first-child { font-size: 40px; font-weight: 200; line-height: 1; letter-spacing: -1.6px; font-variant-numeric: tabular-nums; }
.esp-time span:last-child { font-size: 11.5px; opacity: 0.7; }
.esp-toggle { padding: 11px 22px; border: 1px solid transparent; box-shadow: none; cursor: pointer; }
.esp-toggle.on { background: rgba(255,255,255,0.07); color: #f2f3f5 !important; border-color: rgba(255,255,255,0.14); }

/* features / requirements / install */
.features, .requirements, .install {
  width: 100%; max-width: 980px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 26px;
}
.features { padding: 72px 24px 24px; }
.requirements { padding: 56px 24px 24px; gap: 22px; }
.install { padding: 56px 24px 24px; }
.section-title { font-size: 26px; font-weight: 700; letter-spacing: -0.7px; }

.grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.features-grid, .install-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.install-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card { box-sizing: border-box; padding: 22px 20px; background: var(--panel); display: flex; flex-direction: column; gap: 7px; min-height: 132px; }
.install-grid .card { min-height: 150px; gap: 8px; }
.card-title { font-size: 14.5px; font-weight: 650; letter-spacing: -0.1px; }
.card-body { font-size: 13px; line-height: 1.6; opacity: 0.6; text-wrap: pretty; }
.step-num { font-size: 12px; font-weight: 700; letter-spacing: 0.4px; color: var(--accent); }

.requirements-grid { background: none; border: none; border-radius: 0; overflow: visible; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.req { display: flex; flex-direction: column; gap: 6px; }
.req-label { font-size: 12px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; opacity: var(--soft-opacity); }
.req-value { font-size: 14px; line-height: 1.55; opacity: 0.8; text-wrap: pretty; }

.install-head { display: flex; flex-direction: column; gap: 7px; }
.install-sub { font-size: 13.5px; line-height: 1.6; opacity: 0.6; max-width: 56ch; text-wrap: pretty; }

/* closing */
.closing { width: 100%; max-width: 980px; box-sizing: border-box; padding: 56px 24px 72px; display: flex; flex-direction: column; gap: 16px; }
.closing-card { box-sizing: border-box; padding: 30px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.closing-title { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; }
.closing-body { font-size: 14px; line-height: 1.7; opacity: 0.65; max-width: 66ch; text-wrap: pretty; }

/* cursor effects */
.spotlight {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90;
  opacity: 0; transition: opacity 320ms ease;
  background: radial-gradient(300px 300px at var(--sx, 50%) var(--sy, 50%), rgba(232,182,92,0.18) 0%, rgba(232,182,92,0.07) 40%, rgba(10,10,10,0.07) 66%, rgba(8,8,8,0.11) 100%);
}
.shield {
  position: fixed; left: 0; top: 0; width: 120px; height: 80px; margin-left: 14px; margin-top: -94px;
  border-radius: 24px; pointer-events: none; z-index: 90; opacity: 0; transition: opacity 220ms ease;
  backdrop-filter: blur(16px) saturate(145%) brightness(1.03);
  background: rgba(238,243,250,0.26); border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 18px 44px rgba(16,32,60,0.16), inset 0 0 40px 10px rgba(60,72,92,0.08);
}

/* footer */
.footer { width: 100%; border-top: 1px solid var(--border); display: flex; justify-content: center; }
.footer-inner {
  width: 100%; max-width: 980px; box-sizing: border-box; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; opacity: var(--soft-opacity);
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--ink); }

@media (max-width: 640px) {
  .hero-headline { font-size: 38px; letter-spacing: -1.2px; }
  .lab-title { font-size: 22px; }
}

@media (max-width: 480px) {
  .nav-links a:not(.btn) { display: none; }
}

/* paywall */
.paywall-scrim {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; box-sizing: border-box;
  background: rgba(10,12,16,0.5);
  backdrop-filter: blur(6px) saturate(140%);
}
.paywall-scrim[hidden] { display: none; }
.paywall-sheet {
  position: relative; width: 100%; max-width: 420px; box-sizing: border-box;
  border-radius: 20px; padding: 28px 26px 24px;
  background: var(--panel); color: var(--ink); border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(16,32,60,0.35);
  display: flex; flex-direction: column; gap: 18px;
  max-height: calc(100vh - 48px); overflow-y: auto;
}
.paywall-close {
  position: absolute; top: 14px; right: 14px; width: 28px; height: 28px;
  border-radius: 50%; border: none; cursor: pointer;
  background: var(--tab-track-bg); color: var(--ink); opacity: 0.7;
  font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.paywall-close:hover { opacity: 1; }
.paywall-mark { display: flex; align-items: center; gap: 10px; }
.paywall-name { font-size: 16px; font-weight: 650; letter-spacing: -0.2px; }

.paywall-plans { display: flex; flex-direction: column; gap: 8px; }
.plan-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--border); cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.plan-row.selected { border-color: var(--accent); background: var(--tab-track-bg); }
.plan-row input[type="radio"] { accent-color: var(--accent); flex: none; width: 16px; height: 16px; }
.plan-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.plan-row-name { font-size: 14px; font-weight: 650; letter-spacing: -0.1px; }
.plan-row-note { font-size: 12px; opacity: 0.55; }
.plan-row-price {
  flex: none; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums;
  min-width: 3em; text-align: right;
}
.plan-row-price:empty::before {
  content: ''; display: inline-block; width: 3em; height: 0.9em; border-radius: 4px;
  background: var(--tab-track-bg); vertical-align: middle;
}

.paywall-included { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.paywall-included li {
  font-size: 13px; opacity: 0.75; padding-left: 20px; position: relative;
}
.paywall-included li::before {
  content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700;
}

.paywall-pay { width: 100%; justify-content: center; box-shadow: none; }
.paywall-pay:disabled { opacity: 0.5; cursor: not-allowed; }
.paywall-fine-print { font-size: 11.5px; opacity: var(--soft-opacity); text-align: center; text-wrap: pretty; }

@media (max-width: 480px) {
  .paywall-sheet { padding: 24px 20px 20px; }
}

/* welcome page */
.welcome-wrap {
  width: 100%; flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 56px 24px;
}
.welcome-card {
  width: 100%; max-width: 460px; box-sizing: border-box;
  padding: 36px 32px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(16,32,60,0.14);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
}
.welcome-eyebrow { color: var(--accent); }
.welcome-heading { font-size: 28px; font-weight: 700; letter-spacing: -0.6px; }
.welcome-body { font-size: 14.5px; line-height: 1.6; opacity: 0.65; text-wrap: pretty; }

.welcome-license {
  width: 100%; box-sizing: border-box; padding: 14px 16px; border-radius: 12px;
  background: var(--tab-track-bg); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.welcome-license[hidden] { display: none; }
.welcome-license-label { font-size: 11px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; opacity: 0.5; }
.welcome-license-key { font-size: 15px; font-weight: 650; letter-spacing: 0.5px; font-variant-numeric: tabular-nums; word-break: break-all; }

.welcome-email-note { font-size: 12px; line-height: 1.6; opacity: 0.55; text-wrap: pretty; }
.welcome-email-note[hidden] { display: none; }

.welcome-actions { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.welcome-actions .btn { width: 100%; justify-content: center; }
.welcome-back { padding: 12px 24px; }
