/* Lotus website – home page: hero with the 3D lotus, terminal demo, feature tiles, install. */

/* ── 3D background ─────────────────────────────────────────────── */
#scene {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  display: block;
  transition: opacity .2s linear;
}
.grain {
  position: fixed; inset: -50%;
  z-index: 1; pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); }
  66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); }
}
header, section { position: relative; z-index: 2; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 16px clamp(56px, 10vh, 110px);
  text-align: center;
  pointer-events: none;
}
.hero > * { pointer-events: auto; }
.hero::before {
  content: ""; position: absolute; inset: auto 0 0; height: 62%; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 70% at 50% 75%, rgba(5, 7, 10, .62), transparent 70%);
}
.eyebrow {
  font: 500 12px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 8px;
}
.title {
  margin: 0;
  font: italic 400 clamp(92px, 17vw, 210px)/.85 var(--serif);
  letter-spacing: -.04em;
}
.title span {
  background: linear-gradient(100deg, var(--text) 20%, var(--logo) 45%, var(--salute) 55%, var(--text) 80%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s var(--ease) infinite;
  padding: 0 .08em;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 60%, 100% { background-position: -50% 0; } }
.tagline { margin: 10px 0 34px; font-size: clamp(17px, 2.2vw, 21px); color: #c9d1cd; }

.install-pill {
  display: flex; align-items: center; gap: 12px;
  max-width: min(100%, 720px);
  padding: 8px 8px 8px 20px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
}
.install-pill code {
  font: 13.5px/1.4 var(--mono); color: var(--text);
  white-space: nowrap; overflow-x: auto; scrollbar-width: none;
  text-align: left;
}
.install-pill code::-webkit-scrollbar { display: none; }
.dollar { color: var(--key); user-select: none; }
.scroll-hint { margin-top: 48px; width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.3); border-radius: 12px; display: grid; justify-items: center; padding-top: 6px; }
.scroll-hint span { width: 3px; height: 8px; border-radius: 2px; background: var(--text); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ── Terminal demo ─────────────────────────────────────────────── */
.demo-section { padding: clamp(80px, 14vh, 160px) 16px 60px; display: flex; flex-direction: column; align-items: center; }
.window {
  --fs: 13px;
  width: min(100%, 1100px);
  border-radius: 14px;
  background: rgba(16, 20, 18, .72);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(28px) saturate(1.5); -webkit-backdrop-filter: blur(28px) saturate(1.5);
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.85), 0 0 0 .5px rgba(255,255,255,.05), 0 0 120px -40px var(--logo);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: box-shadow .8s;
}
.titlebar { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.06); position: relative; }
.titlebar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.titlebar i:nth-child(2) { background: #febc2e; }
.titlebar i:nth-child(3) { background: #28c840; }
.titlebar span { position: absolute; left: 0; right: 0; text-align: center; font: 12px var(--sans); color: var(--muted); pointer-events: none; }
.screen {
  position: relative;
  height: calc(var(--fs) * 1.4 * 30 + 36px);
  padding: 18px 22px;
  font: var(--fs)/1.4 var(--mono);
  color: #f2f4f2;
  overflow: hidden;
}
.screen pre { margin: 0; font: inherit; white-space: pre; }
.screen, .install-pill code, kbd, .un-cmd { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.startscreen { display: flex; gap: calc(var(--fs) * 0.6 * 6); }
.startscreen .logo { color: var(--logo); font-weight: 600; padding-top: calc(var(--fs) * 1.4 * 2); }
.settings { position: absolute; inset: 18px 22px; background: transparent; display: none; }
.screen.alt .startscreen, .screen.alt .promptline, .screen.alt .output { visibility: hidden; }
.screen.alt .settings { display: block; }
.settings canvas.bloom { display: block; image-rendering: pixelated; }
.screen .cell { display: inline-block; width: 1ch; text-align: center; overflow: visible; }
.promptline { color: var(--accent); }
.cursor { display: inline-block; width: .6em; height: 1.15em; vertical-align: -.2em; background: var(--text); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* colors inside the terminal */
.c-logo { color: var(--logo); } .c-key { color: var(--key); font-weight: 600; } .c-accent { color: var(--accent); }
.c-key2 { color: var(--key2); font-weight: 600; } .c-salute { color: var(--salute); font-weight: 600; }
.c-border { color: var(--border); } .c-dim { color: var(--dim); } .c-music { color: var(--music); font-weight: 600; }
.c-bold { font-weight: 600; color: #fff; } .c-red { color: #ff6b6b; } .c-white { color: #fff; }

/* bloom-in of the start screen */
.ln { display: block; opacity: 0; transform: translateX(-6px); filter: blur(4px); transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s var(--ease); }
.ln.on { opacity: 1; transform: none; filter: none; }
.logo .ln { transform: translateY(6px) scale(.98); }
.logo .ln.on { transform: none; }
.screen.clearing .ln { opacity: 0; filter: blur(6px); transition-duration: .25s; }
.flash { animation: flash .5s var(--ease); }
@keyframes flash { 0% { text-shadow: 0 0 12px currentColor; } 100% { text-shadow: none; } }

.demo-caption { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.step { transition: color .4s, opacity .4s; opacity: .55; }
.step.active { color: var(--text); opacity: 1; }
.step.active kbd { border-color: var(--logo); color: var(--logo); }

/* ── Bento ─────────────────────────────────────────────────────── */
.features { padding: 80px 16px 40px; }
.bento {
  width: min(100%, 1100px); margin: 0 auto;
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 250px;
}
.tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden;
  border-radius: 24px;
  padding: 26px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  display: flex; flex-direction: column; justify-content: flex-end;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), border-color .4s;
}
.tile::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--logo) 18%, transparent), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.tile:hover::before { opacity: 1; }
.tile:hover { border-color: var(--line-strong); }
.tile h3 { margin: 0; font: 500 15px var(--sans); color: var(--text); position: relative; }
.tile h3 em { font-style: normal; color: var(--muted); }
.tile-hello { grid-column: span 4; }
.tile-np { grid-column: span 2; grid-row: span 2; }
.tile-themes { grid-column: span 2; }
.tile-settings { grid-column: span 2; }
.tile-speed { grid-column: span 3; }
.tile-uninstall { grid-column: span 3; }

.hello-word {
  position: absolute; left: 26px; right: 26px; top: 50%; transform: translateY(-62%);
  font: italic 400 clamp(56px, 8vw, 104px)/1 var(--serif);
  letter-spacing: -.02em; white-space: nowrap;
  background: linear-gradient(90deg, var(--text), var(--logo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hello-lang { position: absolute; right: 26px; top: 24px; margin: 0; font: 500 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.disc {
  position: absolute; top: 34px; left: 50%; translate: -50% 0;
  width: 190px; height: 190px; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 24%, rgba(255,255,255,.04) 24.5% 25%, transparent 25.5%),
    repeating-radial-gradient(circle, #121414 0 2px, #191c1b 2px 4px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.05);
  animation: spin 6s linear infinite;
}
.disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 20%, rgba(255,255,255,.08) 25%, transparent 30% 70%, rgba(255,255,255,.06) 75%, transparent 80%); }
.disc-label { position: absolute; inset: 36%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--salute), var(--logo) 60%, color-mix(in srgb, var(--logo) 60%, #000)); box-shadow: 0 0 30px -4px var(--logo); }
.disc-label::after { content: ""; position: absolute; inset: 44%; border-radius: 50%; background: #0b0d0c; }
@keyframes spin { to { rotate: 360deg; } }
.np-meta { position: relative; margin-bottom: 18px; }
.eq { display: flex; gap: 3px; height: 18px; align-items: flex-end; margin-bottom: 12px; }
.eq i { width: 4px; border-radius: 2px; background: var(--music); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
.eq i:nth-child(4) { animation-delay: -.15s; } .eq i:nth-child(5) { animation-delay: -.45s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 18px; } }
.np-title { margin: 0; font-weight: 600; font-size: 18px; }
.np-artist { margin: 2px 0 14px; color: var(--muted); }
.np-bar { height: 4px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.np-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--key), var(--logo)); border-radius: inherit; transition: width 1s linear; }

.orbs { position: absolute; inset: 22px 22px 70px; display: flex; align-items: center; justify-content: space-between; }
.orb {
  --c1: #f8b8d0; --c2: #b5d371;
  width: clamp(34px, 3.6vw, 48px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 4%, var(--c1) 22%, var(--c2) 75%, color-mix(in srgb, var(--c2) 40%, #000));
  box-shadow: 0 12px 24px -8px var(--c1), inset -4px -6px 12px rgba(0,0,0,.35);
  position: relative;
  transition: transform .45s var(--ease), box-shadow .45s;
  animation: bob 4s ease-in-out infinite;
}
.orb:nth-child(2) { --c1: #ffd0e0; --c2: #f4a0be; animation-delay: -.8s; }
.orb:nth-child(3) { --c1: #a0dcff; --c2: #3d8ee0; animation-delay: -1.6s; }
.orb:nth-child(4) { --c1: #ffdc8c; --c2: #ff8c5a; animation-delay: -2.4s; }
.orb:nth-child(5) { --c1: #ffffff; --c2: #6e6e6e; animation-delay: -3.2s; }
.orb span { position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; font: 11px var(--mono); color: var(--muted); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.orb:hover { transform: scale(1.15) translateY(-4px); }
.orb:hover span, .orb.active span { opacity: 1; }
.orb.active { transform: scale(1.22); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c1), 0 16px 34px -8px var(--c1); }
@keyframes bob { 50% { translate: 0 -5px; } }

.keys { position: absolute; top: 40px; left: 26px; display: flex; gap: 10px; }
.keys kbd { font-size: 22px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; margin: 0; border-bottom-width: 4px; transition: transform .12s, border-color .2s, color .2s; }
.keys kbd.press { transform: translateY(3px); border-bottom-width: 1px; border-color: var(--logo); color: var(--logo); }
.langs { position: absolute; top: 116px; left: 26px; display: flex; gap: 8px; font: 600 12px var(--mono); }
.langs span { padding: 4px 8px; border-radius: 6px; color: var(--muted); border: 1px solid var(--line); transition: all .3s; }
.langs span.on { color: #111; background: var(--key); border-color: var(--key); }
.tile-settings h3 code { font: 600 15px var(--mono); color: var(--text); }

@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.ring {
  position: absolute; right: 26px; top: calc(50% - 75px); width: 150px; height: 150px; border-radius: 50%;
  background: conic-gradient(var(--key) calc(var(--p) * 1%), rgba(255, 255, 255, .07) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  transition: --p 1.6s var(--ease);
}
.tile-speed.in .ring { --p: 88; }
.speed { position: absolute; left: 26px; top: 40px; font: italic 400 110px/1 var(--serif); letter-spacing: -.03em; }
.speed small { font: 500 20px var(--mono); margin-left: 6px; color: var(--muted); font-style: normal; }

.petals-fall { position: absolute; inset: 0; pointer-events: none; }
.petals-fall i {
  position: absolute; top: -20px; width: 14px; height: 20px;
  border-radius: 50% 0 50% 50%; background: linear-gradient(135deg, #fff, var(--logo));
  opacity: .85; animation: fall 6s linear infinite;
}
.petals-fall i:nth-child(1) { left: 15%; animation-delay: 0s; }
.petals-fall i:nth-child(2) { left: 35%; animation-delay: -1.2s; scale: .7; }
.petals-fall i:nth-child(3) { left: 55%; animation-delay: -2.6s; }
.petals-fall i:nth-child(4) { left: 72%; animation-delay: -3.7s; scale: .6; }
.petals-fall i:nth-child(5) { left: 88%; animation-delay: -4.9s; scale: .85; }
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  10% { opacity: .85; }
  100% { transform: translate(-60px, 290px) rotate(320deg); opacity: 0; }
}
.un-cmd { position: absolute; top: 44%; left: 26px; font: 600 clamp(20px, 2.6vw, 30px) var(--mono); color: var(--text); }
.un-cmd::before { content: "$ "; color: #ff6b6b; }

/* ── Install ───────────────────────────────────────────────────── */
.install { padding: 140px 16px 120px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.install h2 { margin: 0 0 26px; font: italic 400 clamp(64px, 11vw, 140px)/.9 var(--serif); letter-spacing: -.03em; }
.tabs { position: relative; display: inline-flex; padding: 4px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); margin-bottom: 18px; }
.tab { position: relative; z-index: 1; padding: 7px 18px; font-size: 14px; color: var(--muted); border-radius: 9px; transition: color .3s; }
.tab.active { color: var(--bg); }
.tab-glider { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 9px; background: var(--text); transition: transform .45s var(--ease), width .45s var(--ease); }
.install-pill.big { padding: 12px 12px 12px 24px; }
.install-pill.big code { font-size: 15px; }
.install-note { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* ── Systems ───────────────────────────────────────────────────── */
.install-pill.no-copy .install-copy { display: none; }
.platforms { padding: 120px 16px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.platforms h2 { margin: 0 0 14px; font: italic 400 clamp(56px, 9vw, 112px)/.95 var(--serif); letter-spacing: -.03em; }
.pf-lead { max-width: 560px; color: var(--muted); margin: 0 0 36px; }
.pf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: min(1000px, 100%); text-align: left; }
.pf-card { padding: 22px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.pf-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pf-card h3 { margin: 0; font: 600 20px var(--sans, inherit); }
.pf-card p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
@media (max-width: 800px) { .pf-cards { grid-template-columns: 1fr; } }

/* ── Questions ─────────────────────────────────────────────────── */
.faq { padding: 40px 16px 120px; display: flex; flex-direction: column; align-items: center; }
.faq h2 { margin: 0 0 28px; font: italic 400 clamp(48px, 8vw, 96px)/.95 var(--serif); letter-spacing: -.03em; }
.faq-list { width: min(760px, 100%); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 18px; color: var(--muted); line-height: 1.65; }
.faq-more { margin-top: 26px; color: var(--muted); font-size: 14px; }
.faq-more a { color: var(--ink-accent); }

/* ── Reveal on scroll ──────────────────────────────────────────── */
.tile.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.bento .tile:nth-child(2) { transition-delay: .08s; } .bento .tile:nth-child(3) { transition-delay: .16s; }
.bento .tile:nth-child(4) { transition-delay: .24s; } .bento .tile:nth-child(5) { transition-delay: .1s; }
.bento .tile:nth-child(6) { transition-delay: .18s; }
.bento .tile.in { transition-delay: 0s; }

/* hero intro runs in CSS, independent of the 3D scene loading */
.hero .reveal { animation: heroIn 1.1s var(--ease) both; transition: none; }
.hero .reveal:nth-child(2) { animation-delay: .12s; }
.hero .reveal:nth-child(3) { animation-delay: .26s; }
.hero .reveal:nth-child(4) { animation-delay: .4s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* ── Small screens ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .tile-hello, .tile-speed, .tile-uninstall { grid-column: span 2; }
  .tile-np { grid-column: span 2; grid-row: span 2; }
  .tile-themes, .tile-settings { grid-column: span 2; }
  .nav-links a:not(.pill):not(.gh) { display: none; }
}
@media (max-width: 560px) {
  .speed { font-size: 84px; }
  .ring { width: 110px; height: 110px; top: calc(50% - 55px); }
  .demo-caption { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
}

/* demo states */
.screen.cleared .startscreen { display: none; }
.window.narrow .logo { display: none; }
.window.in { transition: transform .4s var(--ease), box-shadow .8s, opacity 1s var(--ease), filter 1s var(--ease); }
.no-webgl { background: radial-gradient(60% 50% at 50% 70%, color-mix(in srgb, var(--logo) 22%, transparent), transparent), var(--bg); }

/* ── Light mode: the hero stays a dark stage, the 3D lotus lives only there ── */
@media (prefers-color-scheme: light) {
  .hero {
    background: #05070a; color: #eef2ee;
    --text: #eef2ee; --muted: #8a938f; --glass: rgba(14, 18, 20, .55); --line: rgba(255, 255, 255, .08);
    --ink-logo: var(--logo); --ink-accent: var(--accent); --ink-key: var(--key);
  }
  #scene { position: absolute; height: 100%; width: 100%; }
  .grain { display: none; }
  .nav { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
  .window { box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .45); }
  .demo-caption kbd { color: var(--text); }
}

/* ── What's new strip ──────────────────────────────────────────── */
.new { padding: 30px 16px 0; }
.new-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.new-list a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--line); font-size: 14px; transition: .25s var(--ease);
}
.new-list a:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.new-list code { background: none; padding: 0; color: var(--ink-key); font-weight: 600; }

/* ── 2.0 tiles ─────────────────────────────────────────────────── */
.tile-ai, .tile-weather, .tile-apps, .tile-visual, .tile-bg, .tile-log { grid-column: span 3; }
.mini-term { position: absolute; left: 22px; right: 22px; top: 24px; font: 13px/1.6 var(--mono); color: var(--text); white-space: pre-wrap; }
.mini-term .p { color: var(--ink-accent); }
.mini-term .a { color: var(--muted); }
.mini-term .caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--text); animation: blink 1s steps(1) infinite; }
.sun { position: absolute; right: 30px; top: 30px; font: 600 15px/1.15 var(--mono); color: var(--ink-key); white-space: pre; animation: sunpulse 3s ease-in-out infinite; }
@keyframes sunpulse { 50% { transform: scale(1.06) rotate(-3deg); } }
.temp { position: absolute; left: 22px; top: 30px; font: italic 400 76px/1 var(--serif); }
.temp small { display: block; font: 500 13px var(--mono); color: var(--muted); margin-top: 6px; }
.vbars { position: absolute; left: 22px; right: 22px; top: 30px; height: 120px; display: flex; align-items: flex-end; gap: 5px; }
.vbars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(to top, var(--key), var(--logo)); animation: vbar 1.2s ease-in-out infinite; }
@keyframes vbar { 0%, 100% { height: 18%; } 50% { height: 92%; } }
.theme-grid { position: absolute; inset: 22px 22px 64px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-content: center; justify-items: center; }
.theme-grid .orb { width: 30px; }
.theme-grid .orb span { display: none; }
@media (max-width: 900px) { .tile-ai, .tile-weather, .tile-apps, .tile-visual, .tile-bg, .tile-log { grid-column: span 2; } }

/* demo: output of /weather and /app */
.output { display: none; margin: 0; }
.screen.out .output { display: block; }
.screen.out .startscreen { display: none; }
.install-shortcut { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.install-shortcut a:not(.btn) { color: var(--ink-accent); }

/* ── 2.3: pets ─────────────────────────────────────────────────── */
.tile-pets { grid-column: 1 / -1; }
.pets-row { position: absolute; left: 30px; right: 30px; top: 40px; display: flex; flex-wrap: wrap; gap: 18px 48px; align-items: center; color: inherit; text-decoration: none; }
.pets-row .pet { display: flex; align-items: center; gap: 16px; }
.pets-row pre { margin: 0; font: 20px/1 var(--mono); color: var(--ink-logo); }
.pets-row .dog pre { color: var(--ink-key); }
.pets-row .say { position: relative; padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: 12px; font: 13px var(--mono); color: var(--text); background: var(--glass); }
@media (max-width: 900px) { .tile-pets { grid-column: span 2; } .pets-row .dog { display: none; } }
