/* Real High Miami · Onboarding wizard */
:root {
  --ink: #0a1220;
  --ink-2: #0d1628;
  --card: #121d33;
  --card-2: #16233d;
  --line: #1e2b45;
  --line-2: #2c3b5a;
  --cream: #fff2e1;
  --sky: #b7c9e2;
  --mute: #8a97ad;
  --dim: #3c4354;
  --cyan: #0acdff;
  --teal: #087996;
  --danger: #ff8a8a;
  --head: "Montserrat", Arial, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gx: 72%;
  --gy: 30%;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--sky);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
::selection { background: var(--cyan); color: var(--ink); }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(20px); transition: left 1.6s var(--ease), top 1.6s var(--ease), opacity 1.2s; }
.g1 {
  width: 900px; height: 900px; left: calc(var(--gx) - 450px); top: calc(var(--gy) - 450px);
  background: radial-gradient(circle, rgba(8, 121, 150, .32) 0%, rgba(8, 121, 150, .08) 40%, transparent 70%);
}
.g2 {
  width: 700px; height: 700px; left: calc(100% - var(--gx) - 350px); top: calc(100% - var(--gy) - 200px);
  background: radial-gradient(circle, rgba(10, 205, 255, .10) 0%, transparent 65%);
}
.ridge { position: absolute; left: 0; width: 100%; height: 220px; fill: none; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ridge path { stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.r1 { bottom: 4%; stroke: rgba(183, 201, 226, .10); }
.r2 { bottom: -2%; stroke: rgba(10, 205, 255, .10); }
.ridge.draw path { animation: draw 2.6s var(--ease) forwards; }
.r2.draw path { animation-delay: .35s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.grain {
  position: absolute; inset: -50%;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .05; animation: grain 7s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); }
}

/* ---------- top ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 30; background: rgba(30, 43, 69, .6); }
.progress span {
  display: block; height: 100%; width: 0; background: var(--cyan);
  box-shadow: 0 0 12px rgba(10, 205, 255, .8); transition: width .9s var(--ease);
}
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  background: linear-gradient(to bottom, rgba(10, 18, 32, .92), rgba(10, 18, 32, .6) 70%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.logo svg { width: 32px; height: 17px; }
.logo-real { font-family: var(--head); font-weight: 800; font-size: 18px; letter-spacing: .06em; }
.logo-miami { font-family: var(--head); font-weight: 300; font-size: 18px; letter-spacing: .06em; }
.top-right { display: flex; align-items: center; gap: 14px; }
.saved { font-size: 12px; color: var(--mute); opacity: 0; transition: opacity .4s; display: flex; align-items: center; gap: 6px; }
.saved.on { opacity: 1; }
.saved::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.lang {
  font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .14em;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(18, 29, 51, .6); color: var(--cream); cursor: pointer;
  transition: border-color .3s, background .3s, transform .2s;
}
.lang:hover { border-color: var(--cyan); background: rgba(10, 205, 255, .08); }
.lang:active { transform: scale(.96); }

/* ---------- stage ---------- */
.stage { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px clamp(20px, 5vw, 64px) 40px; }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.panel.single { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.panel.leaving { animation: leave .45s var(--ease) forwards; }
.panel.back.leaving { animation-name: leaveBack; }
@keyframes leave { to { opacity: 0; transform: translateX(-40px); filter: blur(6px); } }
@keyframes leaveBack { to { opacity: 0; transform: translateX(40px); filter: blur(6px); } }

.side { position: sticky; top: 96px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); font-weight: 600; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--sky);
}
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.stepnum { font-family: var(--head); font-size: 12px; letter-spacing: .14em; color: var(--mute); margin-bottom: 18px; display: block; }
.stepnum b { color: var(--cyan); font-weight: 700; }

h1.title {
  font-family: var(--head); color: var(--cream); font-weight: 300;
  font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.02em; margin: 18px 0 22px;
}
h1.title strong { font-weight: 800; }
.title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.title .w > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 80ms); }
@keyframes rise { to { transform: none; } }
.underline { display: block; height: 2px; width: 100%; max-width: 420px; background: var(--cyan); transform-origin: left; transform: scaleX(0); animation: grow 1.1s var(--ease) .55s forwards; box-shadow: 0 0 10px rgba(10, 205, 255, .5); }
@keyframes grow { to { transform: none; } }
.lead { color: var(--sky); font-size: 17px; max-width: 520px; margin: 22px 0 0; }

.fade { opacity: 0; transform: translateY(18px); filter: blur(4px); animation: fadeUp .8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 60ms + 250ms); }
@keyframes fadeUp { to { opacity: 1; transform: none; filter: none; } }

/* stepper */
.stepper { list-style: none; padding: 0; margin: 36px 0 0; position: relative; }
.stepper::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 1px; background: var(--line-2); }
.stepper .fill { position: absolute; left: 11px; top: 12px; width: 1px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); transition: height .9s var(--ease); }
.stepper li { position: relative; display: flex; align-items: center; gap: 14px; padding: 7px 0; }
.stepper button {
  display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--head); font-size: 13px; font-weight: 600; color: #5d6a82; text-align: left; transition: color .3s;
}
.stepper button:disabled { cursor: default; }
.stepper .dot {
  width: 23px; height: 23px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--ink); border: 1px solid var(--line-2); font-size: 10px; color: var(--mute); transition: all .4s var(--ease);
}
.stepper li.done button { color: var(--mute); }
.stepper li.done .dot { border-color: var(--teal); color: var(--cyan); }
.stepper li.cur button { color: var(--cream); }
.stepper li.cur .dot { border-color: var(--cyan); background: var(--cyan); color: var(--ink); box-shadow: 0 0 0 5px rgba(10, 205, 255, .12), 0 0 16px rgba(10, 205, 255, .5); }
.stepper li:not(.cur) button:not(:disabled):hover { color: var(--sky); }

/* card */
.card {
  position: relative; background: linear-gradient(180deg, rgba(18, 29, 51, .92), rgba(13, 22, 40, .92));
  border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3.4vw, 40px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(10, 205, 255, .45), transparent 30%, transparent 70%, rgba(255, 242, 225, .12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* fields */
.field { margin-bottom: 26px; }
.field.hidden { display: none; }
.field.reveal { animation: fadeUp .6s var(--ease) both; }
.label { display: flex; gap: 10px; font-family: var(--head); color: var(--cream); font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.label .n { color: var(--cyan); font-weight: 700; font-size: 12px; padding-top: 2px; min-width: 22px; letter-spacing: .04em; }
.label .star { color: var(--cyan); }
.hint { color: var(--mute); font-size: 13px; margin: -4px 0 10px 32px; }
.control { margin-left: 32px; position: relative; }
.input {
  width: 100%; background: rgba(10, 18, 32, .65); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 13px 16px; color: var(--cream); font-size: 15.5px; outline: none; resize: vertical;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
textarea.input { min-height: 96px; line-height: 1.5; }
textarea.input.big { min-height: 140px; }
textarea.input.huge { min-height: 220px; }
.input::placeholder { color: #5b6880; }
.input:hover { border-color: #3a4c70; }
.input:focus { border-color: var(--cyan); background: rgba(10, 18, 32, .9); box-shadow: 0 0 0 4px rgba(10, 205, 255, .12), 0 0 24px -4px rgba(10, 205, 255, .35); }
.input[type="date"] { max-width: 240px; color-scheme: dark; }
.input.error { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 138, 138, .12); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 18, 32, .55);
  color: var(--sky); font-size: 14.5px; font-weight: 500; user-select: none;
  transition: border-color .3s, background .3s, color .3s, box-shadow .3s, transform .15s;
}
.chip:hover { border-color: #3f557d; color: var(--cream); }
.chip:active { transform: scale(.95); }
.chip .tick { width: 14px; height: 14px; display: none; }
.chip[aria-pressed="true"] { border-color: var(--cyan); background: rgba(10, 205, 255, .12); color: var(--cream); box-shadow: 0 0 18px -4px rgba(10, 205, 255, .55); }
.chip[aria-pressed="true"] .tick { display: block; }
.chip[aria-pressed="true"] .tick path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: tick .4s var(--ease) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.chip:focus-visible, .btn:focus-visible, .lang:focus-visible, .stepper button:focus-visible, .linkbtn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.other-input { margin-top: 10px; max-width: 360px; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  font-family: var(--head); font-weight: 700; font-size: 15px; border-radius: 999px; padding: 16px 30px;
  border: 1px solid transparent; text-decoration: none; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .3s, background .3s, border-color .3s, color .3s;
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.back .arr { transform: none; }
.btn.back:hover .arr { transform: translateX(-4px); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--cream); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(255, 242, 225, .35); }
.btn.primary:hover { box-shadow: 0 14px 40px -10px rgba(255, 242, 225, .55), 0 0 0 4px rgba(255, 242, 225, .08); }
.btn.primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
}
.btn.primary:hover::after { animation: shine .9s var(--ease); }
@keyframes shine { to { transform: translateX(120%); } }
.btn.ghost { background: transparent; color: var(--cream); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--sky); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(10, 18, 32, .25); border-top-color: var(--ink); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-meta { font-size: 12px; color: var(--mute); }
.kbd { font-size: 12px; color: var(--mute); margin-left: 32px; margin-top: 8px; opacity: 0; transition: opacity .3s; }
.field:focus-within .kbd { opacity: 1; }

/* welcome */
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; }
.meta li { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.meta li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }
.note { font-size: 13.5px; color: var(--mute); margin: 4px 0 0; }
.errmsg { color: var(--danger); font-size: 13.5px; margin: 14px 0 0; min-height: 1em; }
.resume { border: 1px dashed var(--line-2); border-radius: 14px; padding: 16px 18px; margin-bottom: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.resume p { margin: 0; color: var(--cream); font-family: var(--head); font-weight: 600; font-size: 14px; }
.linkbtn { background: none; border: 0; color: var(--mute); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 4px; }
.linkbtn:hover { color: var(--cream); }

.welcome-field .control, .welcome-field .hint { margin-left: 0; }

/* floating cards on welcome */
.float-stack { position: relative; height: 230px; margin-top: 44px; max-width: 420px; }
.fcard {
  position: absolute; background: rgba(18, 29, 51, .9); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); backdrop-filter: blur(6px);
  opacity: 0; animation: fcIn 1s var(--ease) forwards, bob 6s ease-in-out infinite;
}
.fcard .t { font-family: var(--head); font-weight: 700; color: var(--cream); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.fcard .s { font-size: 12px; color: var(--mute); margin-top: 2px; }
.fcard .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(10, 205, 255, .12); color: var(--cyan); flex: none; }
.fcard .ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fc1 { left: 0; top: 0; width: 300px; transform: rotate(-2deg); animation-delay: .7s, 1.7s; }
.fc2 { right: 0; top: 92px; transform: rotate(1.5deg); animation-delay: .95s, 2.4s; }
.fc3 { left: 30px; top: 158px; transform: rotate(-1deg); animation-delay: 1.2s, 3s; }
.fc1 .typing { margin-top: 10px; background: var(--card-2); border-radius: 10px; padding: 9px 12px; font-size: 13px; color: var(--cream); min-height: 38px; }
.typing .caret { display: inline-block; width: 1px; height: 14px; background: var(--cyan); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.live { position: absolute; right: 14px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(10, 205, 255, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(10, 205, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 205, 255, 0); } }
@keyframes fcIn { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -6px; } }

/* marquee */
.marquee { position: relative; z-index: 1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(18, 29, 51, .55); overflow: hidden; padding: 14px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; width: max-content; animation: marq 40s linear infinite; }
.marquee span { font-family: var(--head); font-weight: 700; color: var(--cream); font-size: 14px; padding: 0 22px; display: flex; align-items: center; gap: 44px; white-space: nowrap; }
.marquee span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
@keyframes marq { to { transform: translateX(-50%); } }

/* review */
.rev-sec { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 14px; overflow: hidden; background: rgba(10, 18, 32, .45); }
.rev-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.rev-head h3 { margin: 0; font-family: var(--head); font-size: 15px; color: var(--cream); font-weight: 700; display: flex; align-items: center; gap: 12px; }
.rev-head h3 .n { color: var(--cyan); font-size: 12px; }
.rev-count { font-size: 12px; color: var(--mute); }
.meter { height: 3px; background: var(--line); }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--cyan)); width: 0; transition: width 1.2s var(--ease); }
.rev-list { margin: 0; padding: 4px 20px 16px; }
.rev-list div { padding: 10px 0; border-top: 1px solid rgba(30, 43, 69, .7); }
.rev-list dt { font-size: 12.5px; color: var(--mute); margin-bottom: 2px; }
.rev-list dd { margin: 0; color: var(--cream); font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.rev-list dd.empty { color: var(--dim); font-style: italic; }
.rev-who { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; font-size: 14px; color: var(--mute); }
.rev-who b { color: var(--cream); font-weight: 600; }

/* done */
.done { text-align: center; padding-top: clamp(20px, 6vh, 70px); }
.done h1.title { margin-left: auto; margin-right: auto; }
.done .lead { margin-left: auto; margin-right: auto; margin-top: 0; }
.done h1.title { margin-bottom: 18px; }
.done .eyebrow { justify-content: center; }
.check { width: 92px; height: 92px; margin: 0 auto 10px; position: relative; }
.check svg { width: 100%; height: 100%; }
.check circle { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease) .2s forwards; filter: drop-shadow(0 0 8px rgba(10, 205, 255, .7)); }
.check path { fill: none; stroke: var(--cream); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .6s var(--ease) .9s forwards; }
.check::after { content: ""; position: absolute; inset: -20px; border-radius: 50%; background: radial-gradient(circle, rgba(10, 205, 255, .25), transparent 65%); animation: pulse 2.4s ease-out 1s infinite; opacity: 0; }
@keyframes pulse { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.4); } }
.spark { position: fixed; z-index: 2; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); pointer-events: none; animation: spark 2.4s var(--ease) forwards; }
@keyframes spark { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } }

/* footer */
.foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 22px clamp(20px, 5vw, 64px); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mute); }
.foot p { margin: 0; max-width: 640px; }
.foot a { color: var(--sky); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.foot a:hover { color: var(--cream); border-color: var(--cyan); }
.noscript { position: relative; z-index: 2; text-align: center; color: var(--cream); }

/* honeypot */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .panel { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .side { position: static; }
  .stepper { display: none; }
  h1.title { font-size: clamp(36px, 10vw, 54px); }
  .float-stack { display: none; }
  .lead { font-size: 16px; }
}
@media (max-width: 560px) {
  .top { padding: 14px 18px; }
  .logo-real, .logo-miami { font-size: 15px; }
  .logo svg { width: 26px; }
  .saved { display: none; }
  .stage { padding: 12px 16px 28px; }
  .control, .hint, .kbd { margin-left: 0; }
  .label .n { min-width: 0; }
  .nav { flex-direction: column-reverse; align-items: stretch; }
  .nav .btn { width: 100%; }
  .nav-meta { text-align: center; }
  .btn { padding: 15px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain, .marquee .track { animation: none !important; }
}

/* ---------- voice answers ---------- */
.control.has-mic .input { padding-right: 60px; }
.mic {
  position: absolute; right: 8px; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(18, 29, 51, .9); color: var(--cream);
  transition: border-color .3s, background .3s, color .3s, box-shadow .3s, transform .15s;
}
.control.is-line .mic { top: 4px; }
.control.is-area .mic { top: 8px; }
.mic:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 16px -4px rgba(10, 205, 255, .6); }
.mic:active { transform: scale(.92); }
.mic:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.mic-ic { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mic .bars { display: none; align-items: center; gap: 2px; height: 16px; }
.mic .bars i { width: 3px; height: 100%; border-radius: 2px; background: var(--ink); animation: eq 0.9s ease-in-out infinite; transform-origin: center; }
.mic .bars i:nth-child(2) { animation-delay: -.6s; } .mic .bars i:nth-child(3) { animation-delay: -.3s; }
.mic .bars i:nth-child(4) { animation-delay: -.75s; } .mic .bars i:nth-child(5) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.mic[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--ink); box-shadow: 0 0 0 0 rgba(10, 205, 255, .55); animation: micPing 1.6s infinite; }
.mic[aria-pressed="true"] .mic-ic { display: none; }
.mic[aria-pressed="true"] .bars { display: flex; }
@keyframes micPing { 0% { box-shadow: 0 0 0 0 rgba(10, 205, 255, .55); } 70% { box-shadow: 0 0 0 14px rgba(10, 205, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 205, 255, 0); } }
.control.listening .input { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(10, 205, 255, .14), 0 0 30px -6px rgba(10, 205, 255, .5); }
.mic-status { font-size: 12.5px; color: var(--mute); margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .4s, margin .4s; }
.mic-status.on { max-height: 80px; opacity: 1; margin-top: 8px; }
.mic-status.live { color: var(--cyan); }
.mic-status.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); margin-right: 8px; vertical-align: 1px; animation: blink 1s steps(1) infinite; }
.mic-status.ok { color: var(--sky); }
.mic-status.err { color: var(--danger); }
.control.is-line .kbd { margin-left: 0; }

.mic-hint { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 13px; color: var(--sky); }
.mic-hint .mic-ic { width: 26px; height: 26px; padding: 5px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--cyan); flex: none; }

.micbox { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(10, 205, 255, .25); background: linear-gradient(135deg, rgba(10, 205, 255, .08), rgba(18, 29, 51, .2)); }
.micbox-ic { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(10, 205, 255, .14); color: var(--cyan); animation: micPing 2.4s infinite; }
.micbox-ic .mic-ic { width: 20px; height: 20px; }
.micbox-t { margin: 0; font-family: var(--head); font-weight: 700; font-size: 14.5px; color: var(--cream); }
.micbox-s { margin: 4px 0 12px; font-size: 13.5px; color: var(--sky); }
.btn.small { padding: 10px 18px; font-size: 13px; }
.btn.small.on { border-color: var(--teal); color: var(--cyan); cursor: default; }
@media (max-width: 560px) {
  .micbox { flex-direction: column; }
}

/* voice mode toggle (header) */
.voice {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 14px 8px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(18, 29, 51, .6); color: var(--sky);
  transition: border-color .3s, background .3s, color .3s, box-shadow .3s, transform .2s;
}
.voice[hidden] { display: none; }
.voice svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.voice::after { content: ""; width: 26px; height: 14px; border-radius: 999px; background: var(--line-2); box-shadow: inset 0 0 0 2px var(--line-2); transition: background .3s; position: relative;
  background-image: radial-gradient(circle at 7px 50%, var(--mute) 4px, transparent 4.5px); }
.voice:hover { border-color: var(--cyan); color: var(--cream); }
.voice:active { transform: scale(.96); }
.voice:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.voice[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); background: rgba(10, 205, 255, .1); box-shadow: 0 0 16px -4px rgba(10, 205, 255, .6); }
.voice[aria-pressed="true"]::after { background-color: var(--cyan); box-shadow: inset 0 0 0 2px var(--cyan); background-image: radial-gradient(circle at 19px 50%, var(--ink) 4px, transparent 4.5px); }
.mic-next { color: var(--cyan) !important; font-weight: 600; margin-left: 6px; text-decoration: none !important; border-bottom: 1px solid rgba(10, 205, 255, .4) !important; padding: 0 0 1px !important; }
.mic-next:hover { color: var(--cream) !important; }
.mic-status.live { pointer-events: auto; }
@media (max-width: 560px) {
  .voice { padding: 7px 10px; }
  .voice span { display: none; }
}
