:root {
  --bg: #f6faf5;
  --ink: #1d2a3a;
  --muted: #6b7686;
  --line: #e2ece0;
  --card: #ffffff;
  --teal: #0e6e3c;
  --teal-2: #2f9a58;
  --pink: #8cd63e;
  --sky: #9fe0b8;
  --sun: #f7c948;
  --shadow: 0 10px 30px -12px rgba(31, 46, 70, 0.22), 0 2px 6px rgba(31, 46, 70, 0.06);
  --r: 22px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Nunito, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* soft pastel blobs */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: float 18s ease-in-out infinite; }
.blobs i:nth-child(1) { width: 520px; height: 520px; background: #c9eed6; left: 28%; top: 6%; }
.blobs i:nth-child(2) { width: 380px; height: 380px; background: #e1f5c4; right: -60px; top: 38%; animation-delay: -6s; }
.blobs i:nth-child(3) { width: 340px; height: 340px; background: #d4f0ea; left: -80px; bottom: -40px; animation-delay: -11s; }
.blobs i:nth-child(4) { width: 260px; height: 260px; background: #d8f3e6; left: 52%; bottom: 4%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -24px) scale(1.06); } }

/* top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 3vw, 36px) 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-face { width: 38px; height: 38px; border-radius: 50%; background: #0b0d10; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--teal), var(--shadow); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.brand-face b { width: 7px; height: 9px; border-radius: 50%; background: #19e6f0; box-shadow: 0 0 6px #19e6f0; animation: blink 4.5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
.brand-word { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: 0.5px; color: var(--teal); }
.topbar-tag { font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }

/* layout */
.app {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(260px, 310px);
  grid-template-areas: 'left stage right' 'panel panel panel';
  gap: 20px 24px;
  padding: 10px clamp(16px, 3vw, 36px) 40px;
  max-width: 1500px; margin: 0 auto;
}
.left { grid-area: left; }
.stage-wrap { grid-area: stage; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.right { grid-area: right; display: flex; flex-direction: column; gap: 14px; }
.panel { grid-area: panel; }

.eyebrow { margin: 0 0 6px; font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--teal); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px #ffe1ec; }
.hero h1 { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: clamp(36px, 4vw, 54px); line-height: 1; margin: 6px 0 12px; letter-spacing: -0.5px; }
.hero h1 em { font-style: normal; color: var(--teal); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: -2px; right: -4px; bottom: 2px; height: 12px; background: #d8f2b0; border-radius: 8px; z-index: -1; }
.lede { margin: 0 0 22px; color: var(--muted); line-height: 1.55; font-size: 15.5px; }

/* steps */
.steps { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 14px; border-radius: 18px; border: 2px solid transparent; background: rgba(255, 255, 255, 0.82); box-shadow: var(--shadow); transition: transform 0.15s, border-color 0.15s; }
.step:hover { transform: translateY(-2px); }
.step.on { border-color: var(--teal); background: #fff; }
.step .num { font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 12px; color: var(--muted); }
.step.on .num { color: var(--teal); }
.step .label { flex: 1; font-weight: 800; font-size: 15px; }
.step .mini { display: flex; }
.step .mini i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; box-shadow: 0 0 0 1px var(--line); }
.step .mini i.rainbow { background: conic-gradient(#ff8fb8, #f7c948, #8ed1b5, #7ec8e3, #b9a4e0, #ff8fb8); }
.step svg { color: var(--muted); width: 16px; height: 16px; }

/* stage */
.stage { position: relative; width: 100%; height: min(72vh, 720px); min-height: 440px; }
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: none; cursor: grab; outline: none; }
.stage canvas:active { cursor: grabbing; }
.loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); font-weight: 700; transition: opacity 0.5s; z-index: 2; }
.loader.done { opacity: 0; pointer-events: none; }
.loader-face { width: 74px; height: 74px; border-radius: 50%; background: #0b0d10; border: 7px solid #fff; box-shadow: 0 0 0 3px var(--teal), var(--shadow); display: flex; align-items: center; justify-content: center; gap: 12px; animation: bob 1.4s ease-in-out infinite; }
.loader-face b { width: 12px; height: 16px; border-radius: 50%; background: #19e6f0; box-shadow: 0 0 10px #19e6f0; animation: blink 2.2s infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.bubble { position: absolute; top: 9%; left: 58%; background: #fff; padding: 10px 16px; border-radius: 18px 18px 18px 4px; font-family: 'Baloo 2', sans-serif; font-weight: 600; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px) scale(0.9); transition: 0.35s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; z-index: 3; }
.bubble.show { opacity: 1; transform: none; }

.toolbar { display: flex; align-items: center; gap: 6px; padding: 7px; background: rgba(255, 255, 255, 0.9); border-radius: 18px; box-shadow: var(--shadow); margin-top: -8px; position: relative; z-index: 2; flex-wrap: wrap; justify-content: center; }
.tool { height: 40px; min-width: 40px; border-radius: 13px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--ink); transition: background 0.15s, transform 0.15s; }
.tool:hover { background: #f4eee6; }
.tool:active { transform: scale(0.94); }
.tool[aria-pressed='true'] { background: #e3f3f8; color: var(--teal); }
.tool.wide { padding: 0 14px; font-weight: 800; font-size: 14px; }
.tool.accent { background: var(--teal); color: #fff; }
.tool.accent:hover { background: var(--teal-2); }
.tool-sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.hint { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

/* cards */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.summary .namefield { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; padding: 4px 4px 4px 14px; border-radius: 14px; background: #fbf6ef; border: 2px solid var(--line); }
.summary .namefield span { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.summary .namefield input { flex: 1; min-width: 0; border: 0; background: transparent; font: 700 20px 'Baloo 2', sans-serif; color: var(--teal); padding: 6px 0; outline: none; }
.spec { list-style: none; margin: 0 0 16px; padding: 0; }
.spec li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.spec li span { color: var(--muted); }
.spec li b { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.spec li i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.actions { display: flex; gap: 8px; }
.actions.small { margin-top: 8px; }
.btn { flex: 1; height: 46px; border-radius: 15px; border: 2px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; transition: transform 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-1px); background: #fbf6ef; }
.btn.primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn.primary:hover { background: var(--teal-2); }
.btn.ghost { height: 40px; font-size: 14px; }
.btn.icon { flex: none; width: 40px; }
.about summary { list-style: none; display: flex; justify-content: space-between; font-weight: 800; cursor: pointer; }
.about summary::-webkit-details-marker { display: none; }
.about summary span { color: var(--teal); font-size: 20px; line-height: 1; }
.about[open] summary span { transform: rotate(45deg); }
.about ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.5; font-size: 14px; }
.about li { margin-bottom: 8px; }
.about b { color: var(--ink); }

/* options panel */
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; }
.panel-head h2 { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 26px; margin: 0; }
.muted { color: var(--muted); margin: 4px 0 0; font-size: 14.5px; }
.sub { font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 16px; margin: 18px 0 10px; }
.accs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 8px; }
.acc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; border: 2px solid var(--line); background: #fff; text-align: left; transition: transform 0.15s, border-color 0.15s; }
button.acc:hover { transform: translateY(-2px); }
.acc.on { border-color: var(--teal); background: #f2faf3; }
.acc:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.acc-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #eef4ef; color: var(--c, var(--muted)); }
.acc.on .acc-icon { background: #fff; box-shadow: 0 0 0 2px var(--line); }
.acc-icon svg { width: 26px; height: 26px; }
.acc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.acc-text b { font-size: 15px; font-weight: 800; }
.acc-text small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.acc-state { flex: none; font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 20px; background: #eef4ef; color: var(--muted); }
.acc.on .acc-state { background: var(--teal); color: #fff; }
.acc.soon { border-style: dashed; background: transparent; color: var(--muted); }
.theme-acc { display: block; font-size: 11.5px; font-weight: 700; color: var(--teal-2); }
.mini i.off { background: repeating-linear-gradient(45deg, #fff 0 3px, #d5ddd7 3px 6px); }
.zone { padding: 14px 0; border-top: 1px dashed var(--line); }
.zone:first-of-type { border-top: 0; }
.zone-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.zone-head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.chosen { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.chosen i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.sw { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.08); position: relative; transition: transform 0.15s; padding: 0; }
.sw:hover { transform: scale(1.12); }
.sw.on { box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.12), 0 0 0 3px #fff, 0 0 0 5px var(--teal); }
.sw.on::after { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); }
.sw.custom { background: conic-gradient(#ff8fb8, #f7c948, #8ed1b5, #7ec8e3, #b9a4e0, #ff8fb8); display: inline-flex; overflow: hidden; cursor: pointer; }
.sw.custom input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }

.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 8px; }
.theme { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; border: 2px solid var(--line); background: #fff; text-align: left; transition: transform 0.15s, border-color 0.15s; flex-wrap: wrap; }
.theme:hover { transform: translateY(-2px); }
.theme.on { border-color: var(--teal); background: #f2fafc; }
.theme canvas { border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.theme-name { font-weight: 800; font-size: 14.5px; width: calc(100% - 70px); }
.theme-dots { display: flex; order: 3; width: 100%; padding-left: 2px; }
.theme-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; margin-right: -5px; box-shadow: 0 0 0 1px var(--line); }

.exprs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.expr { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 10px; border-radius: 18px; border: 2px solid var(--line); background: #fff; font-weight: 800; font-size: 13.5px; transition: transform 0.15s; }
.expr:hover { transform: translateY(-2px); }
.expr.on { border-color: var(--teal); background: #f2fafc; }
.expr canvas { border-radius: 50%; border: 5px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.eyecolors { display: flex; flex-wrap: wrap; gap: 10px; }
.eyec { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 99px; border: 2px solid var(--line); background: #fff; font-weight: 800; font-size: 13.5px; }
.eyec i { width: 24px; height: 24px; border-radius: 50%; background: #040506; box-shadow: inset 0 0 0 5px var(--c), 0 0 10px var(--c); }
.eyec.on { border-color: var(--teal); background: #f2fafc; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 16px; font-weight: 700; opacity: 0; transition: 0.3s; z-index: 50; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* embedded in a shop page */
body.embed .topbar, body.embed .hero { display: none; }
body.embed .app { padding-top: 16px; }

/* tablet */
@media (max-width: 1180px) {
  .app { grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); grid-template-areas: 'left left' 'stage right' 'panel panel'; }
  .left { display: grid; grid-template-columns: 1fr; }
  .steps { flex-direction: row; flex-wrap: wrap; }
  .step { width: auto; flex: 1 1 180px; }
}
/* phone */
@media (max-width: 760px) {
  .topbar-tag { display: none; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'left' 'stage' 'panel' 'right'; gap: 14px; }
  .hero h1 { font-size: 38px; }
  .lede { margin-bottom: 14px; }
  .steps { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .step { flex: 0 0 auto; padding: 10px 12px; }
  .step .mini, .step svg { display: none; }
  .stage { height: 62vh; min-height: 380px; }
  .tool.wide span { display: none; }
  .bubble { left: 50%; top: 4%; }
  .card { padding: 16px; }
  .sw { width: 34px; height: 34px; }
}

/* ---------- photo studio ---------- */
.photobar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; background: rgba(255, 255, 255, 0.95); border-radius: 22px; box-shadow: var(--shadow); margin-top: -8px; position: relative; z-index: 2; flex-wrap: wrap; justify-content: center; }
.photobar[hidden], .toolbar[hidden] { display: none; }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: #f4eee6; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 11px; font-weight: 800; font-size: 14px; color: var(--muted); transition: 0.15s; }
.seg button.on { background: #fff; color: var(--teal); box-shadow: 0 2px 6px rgba(31, 46, 70, 0.12); }
.seg.small button { padding: 6px 10px; font-size: 12.5px; }
.shutter { width: 54px; height: 54px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 0 0 4px var(--teal), var(--shadow); display: inline-flex; align-items: center; justify-content: center; transition: transform 0.12s; }
.shutter span { width: 40px; height: 40px; border-radius: 50%; background: var(--pink); transition: 0.15s; }
.shutter:hover span { background: #ff6f9f; }
.shutter:active { transform: scale(0.92); }
.shutter.busy { pointer-events: none; opacity: 0.6; }
.shutter.four span { background: conic-gradient(var(--pink) 0 25%, var(--sun) 0 50%, var(--sky) 0 75%, #8ed1b5 0); }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 4; border-radius: 28px; }
.flash.go { animation: flash 0.55s ease-out; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
.viewtag { position: absolute; left: 50%; top: 4%; transform: translateX(-50%) translateY(-6px); background: var(--ink); color: #fff; padding: 7px 16px; border-radius: 99px; font-family: 'Baloo 2', sans-serif; font-weight: 600; letter-spacing: 1px; opacity: 0; transition: 0.25s; z-index: 3; pointer-events: none; }
.viewtag.show { opacity: 1; transform: translateX(-50%); }
.frame-guide { position: absolute; left: 50%; top: 50%; width: min(78%, 70vh); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: opacity 0.3s; z-index: 1; }
.frame-guide.show { opacity: 1; }
.frame-guide i { position: absolute; width: 34px; height: 34px; border: 4px solid rgba(14, 110, 60, 0.55); }
.frame-guide i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.frame-guide i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.frame-guide i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.frame-guide i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
body.photo-mode .bubble { display: none; }

.modal { position: fixed; inset: 0; background: rgba(29, 42, 58, 0.45); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 60; }
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: 28px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.4); padding: 22px; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; animation: pop 0.35s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes pop { from { transform: scale(0.92); opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.modal-head h2 { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 26px; margin: 0; }
.shots-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.shots-grid.single { grid-template-columns: minmax(0, min(520px, 62vh)); justify-content: center; }
.shots-grid:not(.single) { max-width: min(100%, calc((100vh - 230px) * 1.02)); margin-left: auto; margin-right: auto; }
.shot { position: relative; border-radius: 20px; overflow: hidden; background: #fbf6ef; border: 2px solid var(--line); }
.shot img { display: block; width: 100%; height: auto; }
.shot.clear { background-image: linear-gradient(45deg, #eee 25%, transparent 25%), linear-gradient(-45deg, #eee 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eee 75%), linear-gradient(-45deg, transparent 75%, #eee 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
.shot figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(255, 255, 255, 0.92); padding: 4px 10px; border-radius: 99px; font-weight: 800; font-size: 12.5px; }
.shot button { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .photobar { gap: 8px; }
  .seg button { padding: 7px 10px; font-size: 13px; }
  .modal-card { padding: 16px; border-radius: 22px; }
  .shots-grid { gap: 8px; }
}

/* top bar link to the plain 3D view page */
.topnav { display: flex; align-items: center; gap: 18px; }
.topbar-link { font-weight: 800; font-size: 14px; color: var(--teal); text-decoration: none; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.8); box-shadow: var(--shadow); }
.topbar-link:hover { background: #fff; }

/* ---------- GCare additions: talk bar, talk panel, voice ---------- */
.talkbar { display: flex; gap: 8px; margin: 10px auto 0; max-width: 560px; width: 100%; padding: 0 4px; }
.talkbar input { flex: 1; min-width: 0; font: inherit; font-weight: 600; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.talkbar input:focus { outline: 3px solid var(--sky); outline-offset: 1px; }
.talkbar button { flex: none; }
.lines { display: flex; flex-wrap: wrap; gap: 8px; }
.lines button { font: inherit; font-weight: 700; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.lines button:hover { border-color: var(--teal); }
.moves { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.voicebox { display: grid; gap: 10px; }
.voicebox select { font: inherit; font-weight: 600; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
.voicebox .rate { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); }
.voicebox .rate input { flex: 1; accent-color: var(--teal); }
.note { font-size: 13px; color: var(--muted); margin: 6px 0 0; line-height: 1.45; }
.brand-face.gcare { background: #0b0d0e; }
.brand-face.gcare b { background: #3ef07a; box-shadow: 0 0 8px #3ef07a; }
.bubble { cursor: pointer; }

/* GCARE AI official logo in the header */
.brand-logo { height: 60px; width: auto; display: block; }
@media (max-width: 600px) { .brand-logo { height: 44px; } }

/* Keep "Robot GCARE của bạn" on one line */
.hero h1 { white-space: nowrap; font-size: clamp(26px, 2.4vw, 31px); }

/* Big "talk" button for older users: tap once, then just talk */
.talk-big { display: flex; align-items: center; justify-content: center; gap: 12px; width: calc(100% - 8px); max-width: 552px; margin: 12px auto 0;
  min-height: 68px; padding: 12px 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: #0E6E3C; color: #fff; font: 800 22px/1.2 Nunito, sans-serif; box-shadow: 0 8px 22px rgba(14,110,60,0.28); }
.talk-big svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; flex: none; }
.talk-big:hover { background: #0b5c32; }
.talk-big:focus-visible { outline: 4px solid #8CD63E; outline-offset: 3px; }
.talk-big.listening { background: #c0392b; box-shadow: 0 0 0 0 rgba(192,57,43,0.5); animation: talkPulse 1.6s infinite; }
@keyframes talkPulse { 0% { box-shadow: 0 0 0 0 rgba(192,57,43,0.45); } 70% { box-shadow: 0 0 0 18px rgba(192,57,43,0); } 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0); } }
@media (prefers-reduced-motion: reduce) { .talk-big.listening { animation: none; } }
.stage { height: min(calc(100vh - 300px), 640px); min-height: 380px; }
@media (max-width: 980px) { .stage { height: 56vh; min-height: 340px; } }

/* free demo clock + app sign-up panel */
.demo-pill { margin: 0 auto 8px; text-align: center; font-size: 14px; color: var(--ink); min-height: 20px; }
.demo-pill[hidden] { display: none; }
.demo-pill b { color: var(--teal); }
.demo-pill button { border: 0; background: none; color: var(--teal); font-weight: 800; text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
.plans-card { width: min(760px, 100%); }
.pl-lead { margin: 0 0 14px; line-height: 1.55; }
.pl-acts { flex-wrap: wrap; }
.pl-acts .btn { text-decoration: none; color: var(--ink); min-width: 180px; }
.pl-acts .btn.primary { color: #fff; }
.pl-preview { margin: 16px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .3px; color: #8a5a00; background: #fff6e0; border-radius: 12px; padding: 8px 12px; }
.pl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pl-plan { border: 2px solid var(--line); border-radius: 18px; padding: 14px; }
.pl-plan.hot { border-color: var(--teal); }
.pl-plan b { font-family: 'Baloo 2', sans-serif; font-size: 18px; }
.pl-price { margin: 4px 0 8px; font-size: 22px; font-weight: 800; color: var(--teal); }
.pl-price span { font-size: 12px; font-weight: 600; color: #6b7785; margin-left: 4px; }
.pl-plan ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.pl-note { margin: 12px 0 0; font-size: 12px; color: #6b7785; }
@media (max-width: 640px) { .pl-grid { grid-template-columns: 1fr; } .pl-acts .btn { flex: 1 1 100%; } }

/* Language switch in the top bar */
.topnav { display: flex; align-items: center; gap: 16px; }
.lang-switch { font: 800 14px/1 Nunito, sans-serif; color: #0E6E3C; background: #fff; border: 1.5px solid #cfe5d6; border-radius: 999px; padding: 9px 16px; text-decoration: none; white-space: nowrap; }
.lang-switch:hover { background: #eef8f1; }
@media (max-width: 700px) { .topbar-tag { display: none; } }
