/* =========================================================================
   COBBLED CONNECTIONS, "The Atelier."
   Deep ocean canvas, a breathing azure/teal/sunshine aurora, a Cobbled
   dot-grid, and translucent glass surfaces that lift off the dark on layered
   shadow + an azure glow. Cool-blue, luxe, calm. Playfair editorial display,
   Merriweather for the literary line, Inter for the UI, JetBrains Mono for
   eyebrows. Tokens trace to brand/tokens (deep-ocean + azure + sunshine).
   ========================================================================= */
:root {
  /* brand core */
  --azure: #2e8fe0;        /* pool azure, primary */
  --azure-bright: #4aa3ef; /* lifted azure for hover/highlight on dark */
  --azure-hover: #2378c8;
  --azure-deep: #155faa;   /* deep ocean */
  --amber: #ffc53d;        /* sunshine */
  --gold: #ffd66b;
  --green: #1f9b52;        /* money green, lifted for dark surfaces */
  --green-deep: #0f5c30;
  --teal: #1fc5d6;
  --coral: #ff8a6b;
  --plum: #b08cc0;         /* lifted plum for legibility on dark */
  --gold-ink: #ffd06a;
  /* surface + ink */
  --bg: #0e2638;           /* deep ocean, page base */
  --text: #eef4fb;         /* primary text on dark */
  --muted: #a8c0d6;        /* secondary text */
  --subtle: #7e98ad;       /* tertiary / meta, AA on the deep ground */
  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.09);
  --hair: rgba(157, 182, 204, 0.2);
  --hair-2: rgba(157, 182, 204, 0.12);
  --card: rgba(255, 255, 255, 0.05);
  /* type */
  --display: 'Playfair Display', Georgia, serif;
  --literary: 'Merriweather', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  /* depth, layered shadow + inner highlight = the lift off the dark */
  --shadow: 0 26px 60px -28px rgba(0, 0, 0, 0.62);
  --shadow-lg: 0 40px 90px -38px rgba(0, 0, 0, 0.78);
  --lift: 0 26px 60px -28px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --glow: 0 16px 40px -16px rgba(46, 143, 224, 0.5);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
:selection { background: rgba(46, 143, 224, 0.32); }
/* brand em-rule on dark: italic + pool azure + bold (cool-blue spotlight) */
em { font-style: italic; font-family: var(--display); color: var(--azure-bright); font-weight: 700; }
b { font-weight: 700; color: #fff; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 2px solid var(--azure-bright); outline-offset: 2px; border-radius: 6px;
}
/* headings receive focus only programmatically (SR focus move), no ring */
.display:focus, .display:focus-visible { outline: none; }

/* ---- cinematic canvas (deep ocean, breathing aurora) -------------------- */
.canvas {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(140% 120% at 50% -10%, #1a4d77 0%, #0e2638 46%, #08182597 100%), #0b1f30;
}
.aurora { position: absolute; border-radius: 50%; filter: blur(100px); mix-blend-mode: screen; opacity: 0.5; }
.a1 { width: 58vw; height: 58vw; left: -10vw; top: -12vw; background: radial-gradient(circle, var(--azure), transparent 64%); opacity: 0.5; animation: drift1 40s ease-in-out infinite; }
.a2 { width: 50vw; height: 50vw; right: -12vw; top: 10vw; background: radial-gradient(circle, var(--teal), transparent 62%); opacity: 0.34; animation: drift2 48s ease-in-out infinite; }
/* a warm sunshine whisper so the deep field never reads cold-clinical */
.a3 { width: 44vw; height: 44vw; left: 24vw; bottom: -18vw; background: radial-gradient(circle, var(--amber), transparent 60%); opacity: 0.2; animation: drift3 56s ease-in-out infinite; }
.grain { position: absolute; inset: 0; opacity: 0.035; 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='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.dotgrid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(157, 182, 204, 0.12) 1px, transparent 1.4px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
}
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(5vw, 4vw) scale(1.12); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1.05); } 50% { transform: translate(-4vw, 6vw) scale(0.95); } }
@keyframes drift3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-3vw, -5vw) scale(1.15); } }

/* ---- chrome ------------------------------------------------------------- */
.chrome { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(18px, 4vw, 44px); }
.chrome-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.chrome-logo em { color: var(--azure-bright); }
.chrome-client { display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateX(8px); transition: all 0.5s var(--ease); }
body.personalized .chrome-client { opacity: 1; transform: none; }
.chrome-mono { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--azure), var(--azure-deep)); color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; box-shadow: var(--glow); }
.chrome-name { font-size: 14px; font-weight: 600; color: var(--text); max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chrome-footer { margin-top: auto; padding: 24px clamp(18px, 4vw, 44px); text-align: center; color: var(--subtle); font-size: 12.5px; }
.chrome-footer b { color: var(--muted); }

/* ---- layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: clamp(12px, 3vw, 24px) clamp(18px, 4vw, 30px) 40px; }

/* ---- progress rail ------------------------------------------------------ */
.progress { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: clamp(18px, 4vh, 34px); }
.progress-dots { display: flex; align-items: center; gap: 7px; }
.pdot { height: 8px; width: 8px; border-radius: 999px; background: rgba(157, 182, 204, 0.22); transition: all 0.45s var(--ease); }
.pdot.done { width: 8px; background: var(--azure); }
.pdot.on { width: 30px; background: var(--azure-bright); box-shadow: 0 0 14px rgba(46, 143, 224, 0.7); }
.progress-label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); }

/* ---- stage transition machine (out → enter → in → rest) ----------------- */
.stage-shell { position: relative; flex: 1 1 auto; display: flex; align-items: flex-start; justify-content: center; }
.stage { width: 100%; max-width: 1060px; margin: 0 auto; }
.stage.center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.phase-out { opacity: 0; transform: translateX(var(--slide, -26px)) scale(0.985); transition: opacity 0.26s ease, transform 0.26s ease; }
.phase-enter { opacity: 0; transform: translateX(var(--slide, 26px)) scale(0.985); transition: none; }
.phase-in { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.phase-rest { opacity: 1; transform: none; transition: none; }

/* ---- typography --------------------------------------------------------- */
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--azure-bright); margin-bottom: 14px; }
.display { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 6vw, 46px); line-height: 1.08; letter-spacing: -0.018em; margin: 0 0 16px; color: #fff; }
.q-display { font-size: clamp(26px, 5vw, 40px); }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 24px; max-width: 56ch; line-height: 1.62; }
.stage.center .lead { margin-left: auto; margin-right: auto; }
.fineprint { font-size: 12.5px; color: var(--subtle); margin: 18px 0 0; letter-spacing: 0.02em; }

/* ---- buttons ------------------------------------------------------------ */
.btn { position: relative; font: inherit; font-family: var(--body); font-weight: 600; font-size: 15px; padding: 13px 26px; border-radius: 11px; border: none; cursor: pointer; letter-spacing: -0.005em; overflow: hidden; transition: transform 0.22s var(--ease), box-shadow 0.25s, background 0.2s, color 0.2s; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, var(--azure-bright) 0%, var(--azure) 44%, var(--azure-deep) 100%); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, var(--glow); }
.btn-primary:after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 46%); pointer-events: none; }
.btn-primary:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 22px 50px -14px rgba(46, 143, 224, 0.85); }
.btn-go { display: inline-flex; align-items: center; gap: 0.55rem; }
.btn-go .arr { font-size: 1.1em; transition: transform 0.25s var(--ease); }
.btn-go:not(:disabled):hover .arr { transform: translateX(3px); }
.btn.xl { font-size: 17px; padding: 16px 38px; border-radius: 12px; }
.btn-green { background: linear-gradient(180deg, #2bbd6a 0%, var(--green) 50%, var(--green-deep) 100%); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 14px 36px -14px rgba(27, 160, 80, 0.7); }
.btn-green:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 22px 48px -14px rgba(27, 160, 80, 0.8); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); color: var(--muted); border: 1px solid var(--hair-2); font-weight: 600; padding: 12px 18px; }
.btn-ghost:not(:disabled):hover { color: #fff; border-color: var(--azure); background: rgba(46, 143, 224, 0.12); }
.btn-ghost.subtle { color: var(--subtle); font-size: 13px; min-height: 40px; padding: 8px 14px; margin-top: 20px; border-color: transparent; background: transparent; }
.btn-ghost.subtle:hover { color: var(--muted); }
.btn-copy { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid var(--hair); font-size: 14px; padding: 10px 18px; border-radius: 10px; }
.btn-copy.copied { background: rgba(31, 160, 80, 0.22); color: #b9f3cf; border-color: rgba(43, 189, 106, 0.5); }
.btn-check { background: rgba(31, 197, 214, 0.16); color: #bff3f8; border: 1px solid rgba(31, 197, 214, 0.42); font-size: 14px; padding: 10px 18px; border-radius: 10px; margin-top: 12px; }
.stage-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: clamp(22px, 4vh, 34px); }
.stage-nav .spacer { flex: 1; }

/* ---- welcome ------------------------------------------------------------ */
.welcome { padding-top: clamp(8px, 4vh, 40px); }
.welcome .markwrap { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.welcome-owner { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--azure-bright); font-weight: 700; margin-bottom: 0.7rem; }
.welcome-word { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6.2vw, 4.4rem); line-height: 1.02; letter-spacing: -0.025em; color: #fff; }
.welcome-word em, .welcome-word .dot { color: var(--azure-bright); }
.welcome-tag { font-family: var(--literary); font-style: italic; font-size: clamp(1.12rem, 2.3vw, 1.45rem); color: #bcd6ef; margin: 1rem auto 0; max-width: 26ch; line-height: 1.4; }
.welcome-lead { font-size: 17px; color: var(--muted); max-width: 48ch; margin: 1.3rem auto 2.2rem; line-height: 1.62; }
.welcome .fineprint { letter-spacing: 0.03em; }

/* ---- dot-grid mark ------------------------------------------------------ */
.mark { display: block; overflow: visible; filter: drop-shadow(0 6px 22px rgba(46, 143, 224, 0.32)); }
.mark circle { transform-box: fill-box; }

/* ---- interview: text + options ------------------------------------------ */
.concierge-input { width: 100%; max-width: 560px; font-family: var(--display); font-size: clamp(24px, 5vw, 34px); color: #fff; background: transparent; border: none; border-bottom: 2px solid var(--hair); padding: 8px 2px 12px; outline: none; transition: border-color 0.25s; text-align: center; }
.stage.center .concierge-input { margin: 0 auto; display: block; }
.concierge-input:placeholder { color: var(--subtle); opacity: 0.7; }
.concierge-input:focus, .concierge-input:focus-visible { border-color: var(--azure-bright); outline: none; box-shadow: none; }
.optgrid { display: grid; gap: 11px; width: 100%; max-width: 720px; margin: 0 auto; }
.optgrid:not(.multi) { grid-template-columns: 1fr; }
.optgrid.multi { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.opt { position: relative; text-align: left; font: inherit; font-family: var(--body); cursor: pointer; display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border-radius: 14px; background: var(--glass); border: 1.5px solid var(--hair); color: var(--text); box-shadow: var(--lift); transition: all 0.2s var(--ease); }
.opt:hover { background: var(--glass-2); border-color: var(--hair); transform: translateY(-2px); box-shadow: 0 30px 64px -28px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.opt.on { background: linear-gradient(135deg, rgba(46, 143, 224, 0.22), rgba(21, 95, 170, 0.14)); border-color: var(--azure); box-shadow: var(--glow); }
.opt-label { font-size: 16px; font-weight: 600; color: #fff; }
.opt-hint { font-size: 13px; color: var(--muted); }
.opt-check { position: absolute; top: 12px; right: 13px; width: 20px; height: 20px; border-radius: 999px; background: var(--azure); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; animation: popCheck 0.35s var(--ease); }

/* ---- step 01: voice-first describe -------------------------------------- */
.voice-wrap { max-width: 640px; margin: 0 auto; }
.mic-zone { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 1rem; margin: 0.5rem auto 1.8rem; }
.mic-orb { position: relative; width: 104px; height: 104px; display: flex; align-items: center; justify-content: center; }
.mic-btn { position: relative; z-index: 1; width: 104px; height: 104px; border-radius: 999px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid var(--azure); background: rgba(46, 143, 224, 0.1); color: var(--azure-bright); box-shadow: 0 18px 40px -16px rgba(46, 143, 224, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08); transition: transform 0.2s var(--ease), box-shadow 0.3s, background 0.25s, color 0.25s; }
.mic-btn:hover { transform: translateY(-2px); }
.mic-btn:active { transform: scale(0.95); }
.mic-btn.live { background: var(--azure); color: #fff; box-shadow: 0 20px 50px -14px rgba(46, 143, 224, 0.8); }
.mic-ring { position: absolute; width: 104px; height: 104px; border-radius: 999px; border: 2px solid var(--azure); pointer-events: none; animation: ringPulse 1.8s ease-out infinite; }
.mic-ring.b { animation-delay: 0.9s; }
.mic-bars { display: flex; align-items: center; gap: 3.5px; height: 34px; }
.mic-bars span { width: 4px; border-radius: 9px; background: #fff; animation: wave 0.9s ease-in-out infinite; }
.mic-status { font-size: 15px; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.mic-status.live { color: var(--azure-bright); }
.voice-field-wrap { max-width: 560px; margin: 0 auto; text-align: left; }
.voice-field-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.voice-field-tag { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--subtle); }
.voice-field-count { font-size: 12px; color: var(--subtle); }
.voice-field { width: 100%; min-height: 96px; resize: vertical; padding: 16px 18px; border: 1.5px solid var(--hair); border-radius: 14px; font-family: var(--body); font-size: 16px; line-height: 1.55; color: #fff; background: var(--glass); box-shadow: var(--lift); transition: border-color 0.2s, box-shadow 0.2s; }
.voice-field:placeholder { color: var(--subtle); }
.voice-field.has { border-color: rgba(46, 143, 224, 0.4); }
.voice-field:focus { outline: none; border-color: var(--azure-bright); box-shadow: 0 0 0 4px rgba(46, 143, 224, 0.16); }
.voice-note { margin-top: 0.6rem; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 0.45rem; }
.voice-note:before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--amber); flex: 0 0 auto; }

/* ---- step 02: pains + the honest value read ----------------------------- */
.pains-layout { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); align-items: flex-start; width: 100%; }
.pains-left { flex: 1 1 420px; min-width: 300px; }
.pains-right { flex: 1 1 320px; min-width: 270px; align-self: stretch; }
.pains-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.85rem; }
.pain { position: relative; text-align: left; font: inherit; font-family: var(--body); cursor: pointer; display: flex; flex-direction: column; gap: 0.3rem; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--hair); background: var(--glass); box-shadow: var(--lift); transition: all 0.25s var(--ease); }
.pain:hover { transform: translateY(-3px); box-shadow: 0 30px 64px -26px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.pain-top { display: flex; align-items: center; gap: 0.5rem; }
.pain-dot { width: 10px; height: 10px; border-radius: 999px; flex: 0 0 auto; opacity: 0.6; transition: opacity 0.25s; }
.pain.on .pain-dot { opacity: 1; }
.pain-label { font-weight: 600; font-size: 16px; color: #fff; }
.pain-sub { font-size: 13.5px; color: var(--muted); }
.pain-check { position: absolute; top: 11px; right: 13px; width: 20px; height: 20px; border-radius: 999px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10.5px; animation: popCheck 0.35s var(--ease); }
.analysis { background: rgba(255, 255, 255, 0.06); border-radius: 20px; padding: 1.75rem; border-top: 4px solid var(--azure); box-shadow: var(--shadow); backdrop-filter: blur(14px) saturate(140%); animation: panelRise 0.5s var(--ease) both; }
.analysis-tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); display: block; margin-bottom: 0.9rem; }
.analysis-hours { display: flex; align-items: baseline; gap: 0.55rem; margin-bottom: 0.4rem; }
.analysis-hours .big { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.4rem); line-height: 0.9; color: var(--azure-bright); }
.analysis-hours .unit { font-size: 15px; color: var(--muted); font-weight: 600; }
.analysis-line { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0.4rem 0 1.3rem; }
.analysis-rule { height: 1px; background: var(--hair-2); margin: 0 0 1.1rem; }
.analysis-relief-tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); margin-bottom: 0.85rem; }
.relief-list { display: flex; flex-direction: column; gap: 0.7rem; }
.relief { display: flex; align-items: flex-start; gap: 0.6rem; animation: panelRise 0.4s var(--ease) both; }
.relief .tick { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 999px; background: rgba(43, 189, 106, 0.18); color: #58e08c; display: flex; align-items: center; justify-content: center; font-size: 10px; margin-top: 1px; }
.relief .txt { font-size: 15px; line-height: 1.45; color: var(--text); }
.analysis-idle { background: rgba(255, 255, 255, 0.03); border: 1.5px dashed var(--hair); border-radius: 20px; padding: 2.25rem 2rem; min-height: 220px; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 0.6rem; }
.analysis-idle .a { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: #8fa9c0; line-height: 1.4; }
.analysis-idle .b { font-size: 15px; color: #7e98ad; line-height: 1.5; }

/* ---- glass / instruction card + steps ----------------------------------- */
.card { background: var(--glass); border: 1.5px solid var(--hair); border-radius: 20px; padding: clamp(18px, 3.5vw, 30px); box-shadow: var(--shadow); backdrop-filter: blur(14px) saturate(140%); }
ol.steps { margin: 0; padding: 0; counter-reset: s; list-style: none; }
ol.steps li { position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--hair-2); font-size: 15.5px; color: var(--text); }
ol.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
ol.steps li:before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 10px; width: 27px; height: 27px; border-radius: 50%; background: rgba(46, 143, 224, 0.18); color: var(--azure-bright); font-family: var(--mono); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.note { margin-top: 16px; background: rgba(157, 182, 204, 0.08); border-radius: 12px; padding: 13px 15px; font-size: 14px; color: var(--muted); }

/* ---- self-check --------------------------------------------------------- */
.selfcheck { margin-top: 16px; border: 1.5px dashed rgba(31, 197, 214, 0.42); border-radius: 14px; padding: 14px 16px; }
.selfcheck-tag { display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 5px; }
.selfcheck p { margin: 0; font-size: 15px; color: var(--text); }

/* ---- launch ------------------------------------------------------------- */
.launch-wrap { margin-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.launch-wrap.center { align-items: center; text-align: center; margin: 10px auto 6px; }
.btn.launch { display: inline-flex; align-items: center; gap: 9px; }
.btn.launch:before { content: ''; width: 16px; height: 16px; background: currentColor; -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E"); mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E"); }
.launch-web { display: inline-flex; align-items: center; min-height: 40px; font-size: 13.5px; font-weight: 600; color: var(--azure-bright); text-decoration: none; }
.launch-web:hover { text-decoration: underline; }
.launch-hint { margin: 0; font-size: 12.5px; color: var(--subtle); }

/* ---- compose (slow + dramatic; the C is the builder) -------------------- */
.markwrap.building .mark { animation: buildPulse 2.4s ease-in-out infinite; }
@keyframes buildPulse { 0%, 100% { transform: scale(1); filter: drop-shadow(0 6px 22px rgba(46, 143, 224, 0.3)); } 50% { transform: scale(1.05); filter: drop-shadow(0 10px 32px rgba(46, 143, 224, 0.55)); } }
.compose-think { font-size: 14.5px; color: var(--subtle); margin: 2px 0 18px; font-style: italic; font-family: var(--literary); }
.compose-lines { margin: 6px 0 0; max-width: 460px; width: 100%; }
.stage.center .compose-lines { margin-left: auto; margin-right: auto; text-align: left; }
.compose-line { display: flex; align-items: center; gap: 13px; padding: 10px 0; font-size: 16px; color: var(--subtle); opacity: 0; transform: translateY(8px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), color 0.4s; }
.compose-line.in { opacity: 1; transform: none; }
.compose-line.done { color: var(--text); }
.cl-ico { position: relative; width: 18px; height: 18px; flex: none; }
.cl-spin { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(157, 182, 204, 0.25); border-top-color: var(--azure-bright); animation: spin 0.7s linear infinite; }
.compose-line.done .cl-spin { opacity: 0; }
.cl-check { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; background: var(--green); border-radius: 50%; transform: scale(0); }
.compose-line.done .cl-check { animation: popCheck 0.4s var(--ease) forwards; }
.compose-done { margin-top: 24px; opacity: 0; transform: translateY(8px); transition: opacity 0.6s, transform 0.6s; pointer-events: none; }
.compose-done.in { opacity: 1; transform: none; pointer-events: auto; }
.compose-ready { font-family: var(--display); font-size: 24px; color: #fff; margin: 0 0 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- assistant reveal --------------------------------------------------- */
.assistant-card { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 10px auto 0; max-width: 560px; }
.mono-badge { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, var(--azure), var(--azure-deep)); color: #fff; font-family: var(--mono); font-size: 22px; font-weight: 600; box-shadow: var(--glow); }
.mono-badge.xl { width: 72px; height: 72px; border-radius: 20px; font-size: 26px; flex: none; }
.assistant-knows { font-size: 16px; color: var(--muted); margin: 16px 0 4px; max-width: 46ch; }
.reveal { animation: reveal 0.7s var(--ease) both; }

/* ---- motion: masked line reveals + color echoes (inspired) -------------- */
/* display headings wipe up into view from a clip mask, the "opening" motif */
.display.rise-in { animation: dispRise 0.85s var(--ease) both; }
@keyframes dispRise {
  from { opacity: 0; clip-path: inset(0 0 110% 0); transform: translateY(0.24em); }
  to   { opacity: 1; clip-path: inset(0 0 -14% 0); transform: none; }
}
/* word-by-word rise (welcome wordmark) */
.rw { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.02em 0.09em 0.16em; margin: -0.02em -0.09em -0.16em; }
.rw > i { display: inline-block; font-style: inherit; transform: translateY(118%); animation: wordRise 0.9s var(--ease) forwards; }
@keyframes wordRise { to { transform: translateY(0); } }
/* staggered rise-fade for the welcome sub-lines */
.stagger { opacity: 0; animation: riseFade 0.75s var(--ease) forwards; }
@keyframes riseFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* a single straight emphasis line, the brand gradient bar, drawn in */
.accent-line { height: 3px; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--azure-deep), var(--azure), var(--amber)); box-shadow: 0 0 16px rgba(46, 143, 224, 0.5); animation: lineDraw 0.9s var(--ease) 0.1s forwards; }
@keyframes lineDraw { to { width: 100%; } }

/* ---- collapse / copy ---------------------------------------------------- */
details.collapse { margin-top: 18px; border: 1px solid var(--hair); border-radius: 14px; padding: 2px 16px; background: var(--glass); }
details.collapse > summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--azure-bright); padding: 13px 0; list-style: none; }
details.collapse > summary:-webkit-details-marker { display: none; }
details.collapse > summary:before { content: '＋ '; }
details.collapse[open] > summary:before { content: '－ '; }
.copyblock { margin-top: 12px; }
.copytext { margin: 10px 0 4px; background: rgba(0, 0, 0, 0.35); color: #cfe0ef; border-radius: 12px; padding: 14px 16px; font-size: 12px; line-height: 1.55; white-space: pre-wrap; max-height: 220px; overflow: auto; font-family: var(--mono); border: 1px solid var(--hair-2); }

/* ---- connect: instruction + the orbit hub ------------------------------- */
.connect-layout { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); align-items: flex-start; width: 100%; }
.connect-left { flex: 1 1 420px; min-width: 300px; }
.connect-right { flex: 1 1 300px; min-width: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; }
.hub { position: relative; width: 300px; height: 300px; max-width: 100%; }
.hub-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.hub-ring { width: 138px; height: 138px; border-radius: 999px; padding: 7px; display: flex; align-items: center; justify-content: center; transition: background 0.6s var(--ease); }
.hub-ring-inner { width: 100%; height: 100%; background: rgba(255, 255, 255, 0.05); border-radius: 999px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(157, 182, 204, 0.16), inset 0 2px 10px rgba(0, 0, 0, 0.3); }
.hub-node { position: absolute; width: 62px; height: 62px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 1.4rem; background: rgba(255, 255, 255, 0.06); color: var(--azure-bright); border: 1.5px solid var(--hair); box-shadow: var(--lift); transition: all 0.45s var(--ease); }
.hub-node.cur { border-color: var(--azure); box-shadow: 0 8px 24px -6px rgba(46, 143, 224, 0.6); }
.hub-node.done { color: #fff; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.6); }
.hub-node .ndone { position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 999px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-family: var(--body); animation: popCheck 0.4s var(--ease); }
.hub-count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---- connect mark ------------------------------------------------------- */
.mark-row { margin-top: 16px; }
.mark-btn { font: inherit; font-family: var(--body); font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--hair); background: rgba(255, 255, 255, 0.04); color: var(--muted); cursor: pointer; transition: all 0.2s; }
.mark-btn:hover { border-color: var(--azure); color: #fff; }
.mark-btn.on { background: rgba(31, 160, 80, 0.18); border-color: rgba(43, 189, 106, 0.5); color: #b9f3cf; }

/* come-back-to-finish cue */
.return-note { margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 197, 61, 0.12); border: 1px solid rgba(255, 197, 61, 0.34); border-radius: 13px; padding: 13px 15px; font-size: 14px; color: var(--text); }
.return-note:before { content: '↩'; color: var(--gold); font-weight: 700; font-size: 16px; line-height: 1.3; }
.return-note b { color: var(--gold); }

/* ---- live payoff (command hero) ----------------------------------------- */
.live-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; border-radius: 999px; background: rgba(31, 160, 80, 0.18); color: #8fe3b1; font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.live-badge .tick { width: 18px; height: 18px; border-radius: 999px; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; animation: popCheck 0.5s var(--ease); }
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.95rem; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.chip.azure { background: rgba(46, 143, 224, 0.16); color: #bcdcf6; }
.chip.green { background: rgba(31, 160, 80, 0.16); color: #9fe7bd; }
.chip.neutral { background: rgba(157, 182, 204, 0.12); color: var(--muted); }

/* ---- the morning check-in (daily front door) ---------------------------- */
.brief-card { margin-top: 4px; padding: 22px 24px; border-radius: 20px; background: linear-gradient(135deg, rgba(46, 143, 224, 0.22), rgba(21, 95, 170, 0.1)); border: 1.5px solid rgba(46, 143, 224, 0.42); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.brief-eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--azure-bright); }
.brief-q { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 4.5vw, 30px); color: #fff; line-height: 1.1; }
.brief-sub { font-size: 14px; color: var(--muted); max-width: 56ch; line-height: 1.55; }
.brief-btn { align-self: flex-start; margin-top: 10px; }
.centers { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 11px; margin-top: 12px; }
.center-card { display: flex; flex-direction: column; gap: 3px; text-decoration: none; padding: 15px 16px; border-radius: 15px; background: var(--glass); border: 1.5px solid var(--hair); box-shadow: var(--lift); transition: all 0.2s var(--ease); }
.center-card:hover { border-color: var(--azure); transform: translateY(-2px); box-shadow: 0 30px 64px -28px rgba(0, 0, 0, 0.7); }
.center-label { font-size: 15px; font-weight: 700; color: #fff; }
.center-sub { font-size: 12.5px; color: var(--muted); }
.center-go { font-size: 12px; font-weight: 600; color: var(--azure-bright); margin-top: 4px; }

/* ---- command center ----------------------------------------------------- */
.cmd-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.cmd-hero .display { margin: 4px 0 8px; }
.section-h { font-family: var(--display); font-size: 23px; color: #fff; margin: 34px 0 6px; }
.section-sub { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 11px; }
.tile { text-align: left; font: inherit; font-family: var(--body); cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--glass); border: 1.5px solid var(--hair); position: relative; box-shadow: var(--lift); transition: all 0.2s var(--ease); }
.tile:hover { background: var(--glass-2); transform: translateY(-2px); box-shadow: 0 30px 64px -28px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.tile.on { border-color: rgba(43, 189, 106, 0.5); background: linear-gradient(135deg, rgba(31, 160, 80, 0.2), rgba(255, 255, 255, 0.04)); }
.tile-dot { position: absolute; top: 16px; right: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--subtle); }
.tile.on .tile-dot { background: #2bbd6a; box-shadow: 0 0 12px rgba(43, 189, 106, 0.7); }
.tile-name { font-size: 15.5px; font-weight: 600; color: #fff; }
.tile-blurb { font-size: 12.5px; color: var(--muted); }
.tile-status { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle); margin-top: 4px; }
.tile.on .tile-status { color: #8fe3b1; }

/* the weekly ritual, signature card */
.ritual-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none; padding: 20px 22px; border-radius: 18px; background: linear-gradient(135deg, rgba(255, 197, 61, 0.16), rgba(46, 143, 224, 0.12)); border: 1.5px solid rgba(255, 197, 61, 0.4); box-shadow: var(--shadow); transition: all 0.2s var(--ease); }
.ritual-card:hover { transform: translateY(-2px); border-color: var(--amber); }
.ritual-eyebrow { display: block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.ritual-q { display: block; font-family: var(--display); font-size: 21px; color: #fff; }
.ritual-sub { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.ritual-go { font-weight: 600; font-size: 15px; color: var(--gold); white-space: nowrap; }

/* plays */
.play-theme { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin: 22px 0 10px; }
.plays { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 11px; }
.play-card { display: flex; flex-direction: column; gap: 5px; text-decoration: none; padding: 16px 18px; border-radius: 15px; background: var(--glass); border: 1.5px solid var(--hair); box-shadow: var(--lift); transition: all 0.2s var(--ease); }
.play-card:hover { border-color: var(--azure); transform: translateY(-2px); box-shadow: 0 30px 64px -28px rgba(0, 0, 0, 0.7); }
.play-title { font-size: 15.5px; font-weight: 700; color: #fff; }
.play-prompt { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.play-go { font-size: 12.5px; font-weight: 600; color: var(--azure-bright); margin-top: 4px; }

/* tailored deck */
.deck { display: grid; gap: 11px; }
.deck-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; text-decoration: none; padding: 16px 18px; border-radius: 16px; background: var(--glass); border: 1.5px solid var(--hair); box-shadow: var(--lift); transition: all 0.2s var(--ease); }
.deck-card:hover { border-color: var(--azure); transform: translateY(-2px); box-shadow: 0 30px 64px -28px rgba(0, 0, 0, 0.7); }
.deck-n { font-family: var(--mono); font-size: 13px; color: var(--azure-bright); opacity: 0.85; }
.deck-q { font-family: var(--display); font-size: 17px; color: #fff; line-height: 1.25; }
.deck-go { font-size: 12.5px; font-weight: 600; color: var(--azure-bright); white-space: nowrap; }

/* concierge slot (reserved, unwired) */
.concierge-card { margin-top: 30px; padding: 24px; border-radius: 20px; background: linear-gradient(135deg, rgba(46, 143, 224, 0.16), rgba(255, 197, 61, 0.08)); border: 1.5px solid rgba(46, 143, 224, 0.35); }
.concierge-tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.concierge-card h3 { font-family: var(--display); font-size: 22px; color: #fff; margin: 8px 0 8px; }
.concierge-card p { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.concierge-cta { display: inline-block; font-weight: 600; font-size: 15px; color: var(--azure-bright); }

/* ---- interview follow-ups (free-text "other" + the month picker) -------- */
.followup-field { width: 100%; max-width: 560px; margin: 14px auto 0; display: block; min-height: 72px; resize: vertical; padding: 14px 16px; border: 1.5px solid var(--hair); border-radius: 14px; font-family: var(--body); font-size: 16px; line-height: 1.5; color: #fff; background: var(--glass); box-shadow: var(--lift); transition: border-color 0.2s, box-shadow 0.2s; }
.followup-field:placeholder { color: var(--subtle); }
.followup-field:focus { outline: none; border-color: var(--azure-bright); box-shadow: 0 0 0 4px rgba(46, 143, 224, 0.16); }
.followup { max-width: 560px; margin: 16px auto 0; animation: panelRise 0.45s var(--ease) both; }
.followup-tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--azure-bright); margin-bottom: 10px; text-align: center; }
.month-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.month { font: inherit; font-family: var(--body); font-weight: 600; font-size: 14px; padding: 12px 0; border-radius: 11px; border: 1.5px solid var(--hair); background: var(--glass); color: var(--text); cursor: pointer; box-shadow: var(--lift); transition: all 0.18s var(--ease); }
.month:hover { transform: translateY(-2px); border-color: var(--azure); color: #fff; }
.month.on { background: linear-gradient(135deg, rgba(46, 143, 224, 0.24), rgba(21, 95, 170, 0.16)); border-color: var(--azure); box-shadow: var(--glow); color: #fff; }

/* ---- assistant reveal, the splash ------------------------------------- */
.assistant-splash { position: relative; display: flex; justify-content: center; margin: 6px 0 4px; }
.splash-halo { position: relative; display: inline-flex; }
.splash-halo:before, .splash-halo:after { content: ''; position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none; }
.splash-halo:before { width: 230px; height: 230px; background: radial-gradient(circle, rgba(46, 143, 224, 0.4), transparent 62%); animation: haloPulse 3.2s ease-in-out infinite; }
.splash-halo:after { width: 320px; height: 320px; background: radial-gradient(circle, rgba(255, 197, 61, 0.16), transparent 64%); animation: haloPulse 3.2s ease-in-out 0.6s infinite; }
@keyframes haloPulse { 0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.92); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
.assistant-h { margin-top: 6px; }

/* ---- connect completion splash ----------------------------------------- */
.connect-complete { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 26px 24px 28px; margin-bottom: 22px; border-radius: 22px; background: linear-gradient(135deg, rgba(31, 160, 80, 0.18), rgba(46, 143, 224, 0.14)); border: 1.5px solid rgba(43, 189, 106, 0.45); box-shadow: var(--shadow); animation: completeIn 0.6s var(--ease) both; }
@keyframes completeIn { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }
.cc-burst { position: relative; }
.cc-burst:before { content: ''; position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(43, 189, 106, 0.35), transparent 60%); z-index: -1; animation: haloPulse 2.8s ease-in-out infinite; }
.cc-tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #8fe3b1; margin-top: 6px; }
.cc-title { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 4.5vw, 30px); color: #fff; line-height: 1.12; }
.cc-title em { color: #8fe3b1; }
.cc-sub { font-size: 15px; color: var(--muted); max-width: 44ch; margin-bottom: 6px; }

/* ---- hub node colour-build on connect ---------------------------------- */
.hub-node.done { animation: nodeFill 0.6s var(--ease) both; }
@keyframes nodeFill { 0% { transform: translate(-50%, -50%) scale(0.9); filter: saturate(0.2) brightness(1.4); } 60% { transform: translate(-50%, -50%) scale(1.12); } 100% { transform: translate(-50%, -50%) scale(1.05); filter: none; } }

/* ---- owner-saved shortcuts --------------------------------------------- */
.shortcut-card { padding: 0; align-items: stretch; }
.shortcut-q { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; text-decoration: none; padding: 16px 6px 16px 18px; flex: 1; min-width: 0; }
.shortcut-q .deck-n { color: var(--amber); }
.shortcut-del { flex: none; width: 40px; align-self: stretch; border: none; background: transparent; color: var(--subtle); font-size: 15px; cursor: pointer; border-left: 1px solid var(--hair-2); border-radius: 0 16px 16px 0; transition: all 0.18s; }
.shortcut-del:hover { color: #ff8a6b; background: rgba(255, 138, 107, 0.1); }
.shortcut-add { display: flex; gap: 10px; margin-top: 11px; }
.shortcut-input { flex: 1; min-width: 0; font: inherit; font-family: var(--body); font-size: 15px; color: #fff; background: var(--glass); border: 1.5px solid var(--hair); border-radius: 12px; padding: 12px 16px; box-shadow: var(--lift); transition: border-color 0.2s, box-shadow 0.2s; }
.shortcut-input:placeholder { color: var(--subtle); }
.shortcut-input:focus { outline: none; border-color: var(--azure-bright); box-shadow: 0 0 0 4px rgba(46, 143, 224, 0.14); }
@media (max-width: 480px) { .month-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- between-screen builder (the C, always assembling) ------------------ */
.builder { position: fixed; inset: 0; z-index: 26; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity 0.22s ease; }
.builder.show { opacity: 1; }
.builder-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; transform: scale(0.96); }
.builder.show .builder-inner { animation: builderPop 0.6s var(--ease) both; }
@keyframes builderPop { 0% { transform: scale(0.8); } 55% { transform: scale(1.04); } 100% { transform: scale(1); } }
.builder .mark { filter: drop-shadow(0 10px 34px rgba(46, 143, 224, 0.55)); animation: buildPulse 1.2s ease-in-out infinite; }
.builder-cap { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--azure-bright); }

/* ---- toast -------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 24px); background: #06141f; color: #fff; font-size: 14px; font-weight: 600; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--hair); opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 30; max-width: 92vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- keyframes ---------------------------------------------------------- */
@keyframes dotPop { from { transform: scale(0.2); } to { transform: scale(1); } }
@keyframes popCheck { 0% { transform: scale(0); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@keyframes ringPulse { 0% { transform: scale(0.82); opacity: 0.5; } 100% { transform: scale(2); opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes panelRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(10px) scale(0.99); letter-spacing: 0.02em; } to { opacity: 1; transform: none; } }

/* ---- mobile + installed-app (safe areas, standalone) -------------------- */
.chrome { padding-top: calc(18px + env(safe-area-inset-top)); padding-left: calc(clamp(18px, 4vw, 44px) + env(safe-area-inset-left)); padding-right: calc(clamp(18px, 4vw, 44px) + env(safe-area-inset-right)); }
.chrome-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.wrap { padding-left: calc(clamp(18px, 4vw, 30px) + env(safe-area-inset-left)); padding-right: calc(clamp(18px, 4vw, 30px) + env(safe-area-inset-right)); }
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 820px) {
  .pains-layout, .connect-layout { flex-direction: column; }
  .pains-right, .connect-right { align-self: stretch; }
}
@media (max-width: 620px) {
  .chrome-name { display: none; }
  .deck-card { grid-template-columns: auto 1fr; }
  .deck-go { grid-column: 2; justify-self: end; }
}
@media (max-width: 480px) {
  .display { font-size: clamp(28px, 8vw, 38px); }
  .q-display { font-size: clamp(24px, 7vw, 32px); }
  .btn.xl { width: 100%; justify-content: center; }
  .stage-nav { flex-wrap: wrap; }
  .stage-nav .btn-primary, .stage-nav .btn-green { flex: 1; justify-content: center; }
  .ritual-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .brief-btn { width: 100%; justify-content: center; }
  .cmd-hero { flex-direction: column; align-items: flex-start; text-align: left; }
  .mono-badge.xl { width: 60px; height: 60px; font-size: 22px; }
  .opt, .pain { padding: 15px 16px; }
  .aurora { filter: blur(80px); opacity: 0.42; }
}

/* ---- reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .aurora { animation: none; }
  .phase-out, .phase-enter, .phase-in, .phase-rest { transition: none !important; opacity: 1 !important; transform: none !important; }
  .stage, .reveal, .compose-line, .compose-done, .analysis, .relief, .followup, .connect-complete { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .mic-ring, .mic-bars span, .cl-spin, .accent-line, .markwrap.building .mark, .splash-halo:before, .splash-halo:after, .cc-burst:before { animation: none !important; }
  .compose-line.done .cl-check { animation: none !important; transform: none !important; }
  .compose-line.done .cl-spin { opacity: 0; }
  .hub-node.done { animation: none !important; }
  .display.rise-in, .rw > i, .stagger { animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .mark circle { animation: none !important; opacity: 1 !important; transform: none !important; }
}
