@import url("/assets/onboarding-tokens.css");

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}
html {
  background: var(--canvas);
  font-family: var(--font-body);
  color: var(--ink);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  min-height: 100svh;
  position: relative;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
input,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: var(--s1);
  transition: color var(--fast) var(--ease-out);
}
button {
  font-weight: var(--weight-medium);
}
[hidden] {
  display: none !important;
}
:where(button, a, input, textarea, summary, select):focus-visible {
  outline: var(--focus-width) solid var(--focus);
  outline-offset: var(--s1);
}
:where(button, a, summary) {
  transition:
    transform var(--fast) var(--ease-out),
    opacity var(--fast) var(--ease-out),
    background-color var(--fast) var(--ease-out),
    border-color var(--fast) var(--ease-out),
    box-shadow var(--fast) var(--ease-out),
    color var(--fast) var(--ease-out);
}
:where(button, a, summary):active {
  transform: scale(var(--press-scale));
}
:where(button, input):disabled {
  opacity: var(--disabled-opacity);
  cursor: not-allowed;
}
button[aria-busy="true"] {
  cursor: progress;
}
button[aria-busy="true"] .icon {
  opacity: 0;
}
a:hover {
  text-decoration: none;
  color: var(--accent);
}
summary:hover {
  color: var(--accent);
}

/* ---------- Atmosphere: mesh, sun, grain, ridge ---------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--canvas);
  pointer-events: none;
}
.atmosphere .blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.atmosphere .a {
  width: 70vmax;
  height: 70vmax;
  left: -20vmax;
  top: -30vmax;
  background: radial-gradient(closest-side, var(--mesh-a), transparent 70%);
}
.atmosphere .b {
  width: 80vmax;
  height: 80vmax;
  right: -30vmax;
  top: -10vmax;
  background: radial-gradient(closest-side, var(--mesh-b), transparent 70%);
}
.atmosphere .c {
  width: 60vmax;
  height: 60vmax;
  left: 20vmax;
  bottom: -35vmax;
  background: radial-gradient(closest-side, var(--mesh-c), transparent 70%);
}
.atmosphere .sun {
  position: absolute;
  width: 26vmax;
  height: 26vmax;
  right: 6vw;
  top: -6vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--sun) 0%, transparent 72%);
  opacity: 0.32;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .atmosphere .sun {
  mix-blend-mode: screen;
  opacity: 0.22;
}
.atmosphere .ridge {
  position: absolute;
  left: -2vw;
  right: -2vw;
  bottom: 0;
  height: min(28vh, 320px);
  background: var(--ridge);
  opacity: var(--ridge-opacity);
  mask: url("/assets/ridge.svg") center bottom/cover no-repeat;
  -webkit-mask: url("/assets/ridge.svg") center bottom/cover no-repeat;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  filter: var(--grain-filter);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---------- Shell ---------- */
.app {
  min-height: 100svh;
  max-width: var(--shell-w);
  margin: auto;
  padding: var(--s6);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
}
.app-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  margin-bottom: var(--s8);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-h);
  gap: var(--s2);
  font: var(--weight-bold) var(--text-xl)/var(--leading-tight) var(--font-display);
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
}
.brand img {
  width: var(--icon-lg);
  height: var(--icon-xl);
  transition: transform var(--slow) var(--ease-out);
}
.brand:hover img {
  transform: rotate(-8deg) scale(1.08);
}
[data-theme="dark"] .brand img {
  filter: brightness(0) invert(1);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.icon-button {
  border: var(--stroke) solid var(--line);
  border-radius: var(--r-pill);
  width: var(--touch-h);
  height: var(--touch-h);
  background: var(--glass-card);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-card);
}
.icon-button:hover {
  background: var(--surface-raised);
  transform: translateY(-1px);
  border-color: var(--control-border);
}
.icon-button .icon {
  transition: transform var(--slow) var(--ease-out);
}
.icon-button:hover .icon {
  transform: rotate(-20deg);
}
.icon {
  display: inline-block;
  flex: none;
  width: var(--icon-md);
  height: var(--icon-md);
  background: currentColor;
  mask: var(--icon-url) center/contain no-repeat;
  -webkit-mask: var(--icon-url) center/contain no-repeat;
}
.icon-arrow {
  --icon-url: url("/assets/arrow-right.svg");
}
.icon-lock {
  --icon-url: url("/assets/lock.svg");
}
.icon-check {
  --icon-url: url("/assets/check.svg");
}
.icon-sun {
  --icon-url: url("/assets/sun.svg");
}
.icon-moon {
  --icon-url: url("/assets/moon.svg");
}
.icon-back {
  --icon-url: url("/assets/chevron-left.svg");
}
.icon-hotel {
  --icon-url: url("/assets/building-cottage.svg");
}
.icon-chatgpt {
  --icon-url: url("/assets/brand-openai.svg");
}
.icon-claude {
  --icon-url: url("/assets/brand-claude.svg");
}
.icon-chevron {
  --icon-url: url("/assets/chevron-down.svg");
}
.icon-skill-key {
  --icon-url: url("/assets/skill-key.svg");
}
.icon-skill-calendar {
  --icon-url: url("/assets/skill-calendar.svg");
}
.icon-skill-scale {
  --icon-url: url("/assets/skill-scale.svg");
}
.icon-skill-receipt {
  --icon-url: url("/assets/skill-receipt.svg");
}
.icon-skill-megaphone {
  --icon-url: url("/assets/skill-megaphone.svg");
}
.icon-skill-headset {
  --icon-url: url("/assets/skill-headset.svg");
}
.icon-skill-tool {
  --icon-url: url("/assets/skill-tool.svg");
}

.workspace {
  display: contents;
}
main {
  flex: 1;
  min-width: 0;
}
main:focus {
  outline: none;
}
.scene {
  display: none;
}

/* ---------- Progress ---------- */
.step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s6);
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.02em;
}
.step strong {
  color: var(--ink);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
}
.step-bars {
  display: flex;
  gap: var(--s1);
}
.step-bars i {
  width: var(--s8);
  height: var(--s1);
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.step-bars i.done::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left;
}

/* ---------- Type ---------- */
h1 {
  font: var(--weight-regular) var(--text-title)/var(--leading-tight) var(--font-display);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--s4);
  text-wrap: balance;
}
h1 .w {
  display: inline-block;
  white-space: pre;
}
h2 {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  margin: 0 0 var(--s3);
}
p {
  color: var(--muted);
  margin: 0 0 var(--s6);
}
.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent);
  font-weight: var(--weight-medium);
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.eyebrow::before {
  content: "";
  width: var(--s6);
  height: var(--stroke);
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: var(--r-pill);
}
.lede {
  font-size: var(--text-base);
  max-width: var(--content-w);
}
.fine {
  font-size: var(--text-xs);
  color: var(--muted);
  text-align: center;
  margin: var(--s3) 0;
}
.fine a {
  font-weight: var(--weight-medium);
}

/* ---------- Buttons ---------- */
.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  width: 100%;
  min-height: var(--control-h);
  padding: var(--s3) var(--s5);
  border: var(--stroke) solid transparent;
  border-radius: var(--r-md);
  color: var(--on-accent);
  background: linear-gradient(180deg, var(--accent-2), var(--accent) 55%, var(--accent-hover));
  background-size: 100% 160%;
  background-position: 0 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-decoration: none;
  box-shadow: var(--shadow-button);
  transition:
    transform var(--fast) var(--ease-out),
    box-shadow var(--fast) var(--ease-out),
    background-position var(--slow) var(--ease-out),
    opacity var(--fast);
}
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-std);
}
.button:hover {
  color: var(--on-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-button), var(--shadow-float);
  background-position: 0 100%;
}
.button:hover::after {
  transform: translateX(120%);
}
.button:active {
  transform: scale(var(--press-scale));
}
.button .icon {
  transition: transform var(--slow) var(--ease-out);
}
.button:hover .icon-arrow {
  transform: translateX(4px);
}
.button.secondary {
  background: var(--glass-card);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-card);
}
.button.secondary::after {
  display: none;
}
.button.secondary:hover {
  background: var(--surface-raised);
  color: var(--ink);
  border-color: var(--control-border);
  box-shadow: var(--shadow-float);
}
.button + .button {
  margin-top: var(--s3);
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-sm);
  min-height: var(--touch-h);
  padding: var(--s2) var(--s3);
  border-radius: var(--r-sm);
}
.text-button:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.text-action {
  display: block;
  text-align: center;
  margin: var(--s3) auto;
}
.button-row {
  margin-top: var(--s8);
}

/* ---------- Forms ---------- */
.fields {
  display: grid;
  gap: var(--s3);
  margin: var(--s8) 0;
}
.fields label,
.field-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
input:not([type="checkbox"]):not([type="radio"]),
select {
  width: 100%;
  min-height: var(--control-h);
  border: var(--stroke) solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-raised);
  padding: var(--s3) var(--s4);
  font-size: var(--text-base);
  box-shadow: var(--shadow-card);
  transition:
    border-color var(--fast) var(--ease-out),
    box-shadow var(--fast) var(--ease-out);
}
input:hover {
  border-color: var(--control-border);
}
input:not([type="checkbox"]):focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-card), var(--glow);
}
input::placeholder {
  color: var(--faint);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  color: var(--muted);
  font-weight: var(--weight-regular) !important;
  margin: var(--s3) 0;
}
input[type="checkbox"] {
  appearance: none;
  width: var(--icon-lg);
  height: var(--icon-lg);
  flex: none;
  margin: 0;
  border: var(--stroke) solid var(--control-border);
  border-radius: var(--r-sm);
  background: var(--surface-raised);
  cursor: pointer;
  transition:
    background var(--fast) var(--ease-out),
    border-color var(--fast) var(--ease-out),
    box-shadow var(--fast) var(--ease-out);
}
input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--glow);
}
input[type="checkbox"]:checked:after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--on-accent);
  mask: url("/assets/check.svg") center/var(--icon-md) no-repeat;
  -webkit-mask: url("/assets/check.svg") center/var(--icon-md) no-repeat;
}
.connected {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-xs);
  color: var(--selected-ink);
  background: var(--selected);
  padding: var(--s1) var(--s3) var(--s1) var(--s2);
  border-radius: var(--r-pill);
  margin-bottom: var(--s5);
}
.connected .icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

/* Hotel cards */
.hotel-list {
  display: grid;
  gap: var(--s2);
  max-height: var(--hero-art-w);
  overflow: auto;
  padding: var(--s1);
  margin: 0 calc(var(--s1) * -1);
}
.hotel-row {
  display: flex;
  gap: var(--s4);
  align-items: center;
  min-height: var(--s16);
  padding: var(--s3) var(--s4);
  cursor: pointer;
  border: var(--stroke) solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass-card);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--fast) var(--ease-out),
    box-shadow var(--fast) var(--ease-out),
    border-color var(--fast) var(--ease-out),
    background var(--fast) var(--ease-out);
}
.hotel-row:hover {
  background: var(--surface-raised);
  transform: translateY(-1px);
  box-shadow: var(--shadow-float);
  border-color: var(--control-border);
}
.hotel-row:has(input:checked) {
  background: var(--selected);
  border-color: var(--accent);
  box-shadow: var(--shadow-card), var(--glow);
}
.hotel-row input {
  border-radius: var(--r-pill);
}
.hotel-row span:not(.icon) {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  flex: 1;
  letter-spacing: -0.01em;
}
.hotel-row > .icon {
  color: var(--muted);
  transition:
    color var(--fast),
    transform var(--slow) var(--ease-out);
}
.hotel-row:has(input:checked) > .icon {
  color: var(--accent);
  transform: scale(1.1);
}
.hotel-row:has(input:disabled) {
  opacity: var(--disabled-opacity);
  cursor: not-allowed;
}
.hotel-count {
  font-size: var(--text-xs);
  margin: var(--s3) 0 var(--s6);
}

/* Billing */
.billing-toggle {
  position: relative;
  display: flex;
  background: var(--surface-hover);
  border: var(--stroke) solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s1);
  gap: var(--s1);
  box-shadow: inset 0 1px 2px rgba(27, 46, 32, 0.06);
}
.billing-toggle::before {
  content: "";
  position: absolute;
  top: var(--s1);
  bottom: var(--s1);
  left: var(--s1);
  width: calc(50% - var(--s1) - var(--s1) / 2);
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: var(--shadow-button);
  transition: transform var(--slow) var(--ease-out);
}
.billing-toggle:has([data-plan="monthly"][aria-pressed="true"])::before {
  transform: translateX(calc(100% + var(--s1)));
}
.billing-toggle button {
  position: relative;
  flex: 1;
  border: 0;
  border-radius: var(--r-sm);
  min-height: var(--touch-h);
  background: transparent;
  font-size: var(--text-sm);
  color: var(--muted);
  transition: color var(--slow) var(--ease-out);
}
.billing-toggle button:hover {
  color: var(--ink);
}
.billing-toggle button[aria-pressed="true"] {
  color: var(--on-accent);
}
.billing-toggle button:active {
  transform: none;
}
.best {
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  margin-left: var(--s2);
  opacity: 0.85;
}
.price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  margin: var(--s6) 0 var(--s3);
}
.amount {
  font-family: var(--font-display);
  font-size: var(--text-price);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--ink), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-info {
  font-size: var(--text-base);
}
.price-info small {
  font-size: var(--text-xs);
  display: block;
  color: var(--muted);
}
.saving {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-size: var(--text-xs);
  margin-bottom: var(--s5);
}
.badge {
  display: inline-flex;
  align-items: center;
  background: var(--selected);
  color: var(--selected-ink);
  border-radius: var(--r-pill);
  padding: var(--s1) var(--s3);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  border: var(--stroke) solid rgba(40, 78, 62, 0.12);
}
.beta {
  margin: 0 0 var(--s4);
  padding: var(--s3) var(--s4);
  border: var(--stroke) solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}
.beta summary {
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

/* Disclosure, notices, code */
details {
  margin: var(--s4) 0;
  font-size: var(--text-sm);
}
summary {
  min-height: var(--touch-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  list-style: none;
  border-radius: var(--r-sm);
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "";
  width: var(--icon-sm);
  height: var(--icon-sm);
  background: currentColor;
  mask: url("/assets/chevron-down.svg") center/contain no-repeat;
  -webkit-mask: url("/assets/chevron-down.svg") center/contain no-repeat;
  transition: transform var(--slow) var(--ease-out);
}
details[open] > summary::after {
  transform: rotate(180deg);
}
details p {
  margin: var(--s3) 0;
}
.beta-body {
  padding: var(--s2) 0 var(--s3);
}
.beta-body input {
  margin-top: var(--s2);
}
.beta-note {
  font-size: var(--text-sm);
  margin: var(--s3) 0;
  text-align: left;
}
.error {
  font-size: var(--text-sm);
  color: var(--error);
  background: var(--error-surface);
  border: var(--stroke) solid color-mix(in srgb, var(--error) 25%, transparent);
  border-radius: var(--r-sm);
  padding: var(--s4);
  margin: var(--s4) 0;
  overflow-wrap: anywhere;
}
.error:empty {
  display: none;
}
.notice {
  padding: var(--s4);
  background: var(--selected);
  color: var(--selected-ink);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  margin: var(--s6) 0;
}
.code,
.connector-url {
  font-family: var(--font-code) !important;
  font-size: var(--text-sm) !important;
  overflow-wrap: anywhere;
}
.code {
  background: var(--surface-hover);
  padding: var(--s4);
  border-radius: var(--r-sm);
  user-select: all;
  border: var(--stroke) dashed var(--control-border);
}
.connector-url {
  margin: var(--s3) 0;
}
.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-size: var(--text-xs);
  color: var(--muted);
  margin: var(--s4) 0 0;
}
.trust .icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

/* ---------- Artwork (postcard) ---------- */
.hero-art,
.scene img {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  display: block;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface-raised), var(--selected));
  box-shadow: var(--shadow-float);
  border: var(--stroke) solid var(--glass-stroke);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition:
    transform var(--slow) var(--ease-out),
    box-shadow var(--slow) var(--ease-out);
  will-change: transform;
}
.hero-art:hover,
.scene img:hover {
  box-shadow:
    var(--shadow-float),
    0 0 0 1px var(--glass-stroke);
}
[data-theme="dark"] .hero-art,
[data-theme="dark"] .scene img {
  filter: saturate(0.92) brightness(0.94);
}

/* ---------- Screens ---------- */
.welcome {
  padding-top: var(--s2);
}
.welcome h1 {
  font-size: var(--text-hero);
}
.welcome h1 .l2 {
  font-style: italic;
}
.welcome h1 .l2 > span {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 60%, var(--sun) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}
.welcome .hero-art {
  width: var(--hero-art-w);
  max-width: 100%;
  margin: 0 auto var(--s6);
}
.welcome .lede {
  margin-bottom: var(--s6);
}
.journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s2);
  list-style: none;
  padding: 0;
  font-size: var(--text-xs);
  color: var(--muted);
  margin: var(--s8) 0;
}
.journey li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--s2);
  text-align: center;
}
.journey li + li::before {
  content: "";
  position: absolute;
  top: var(--s3);
  right: calc(50% + var(--s5));
  width: calc(100% - var(--s8));
  height: var(--stroke);
  background: var(--control-border);
  opacity: 0.5;
}
.journey-number {
  display: grid;
  place-items: center;
  width: var(--s6);
  height: var(--s6);
  border: var(--stroke) solid var(--control-border);
  border-radius: 50%;
  color: var(--accent);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.journey-label {
  white-space: nowrap;
  font-weight: var(--weight-medium);
}
.welcome .trust {
  text-align: center;
  text-wrap: balance;
}
.hotel-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: var(--s3) var(--s4);
  background: var(--selected);
  border-radius: var(--r-pill);
  color: var(--selected-ink);
  font-size: var(--text-xs);
  width: fit-content;
  max-width: 100%;
  margin: var(--s6) auto;
  overflow-wrap: anywhere;
}
.hotel-chip .icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
}
.assistant-screen .lede {
  margin-bottom: var(--s8);
}
.app-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
  border: 0;
  padding: 0;
  margin: 0 0 var(--s6);
}
.app-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: var(--tile-h);
  gap: var(--s3);
  border: var(--stroke) solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass-card);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition:
    transform var(--fast) var(--ease-out),
    box-shadow var(--fast) var(--ease-out),
    border-color var(--fast) var(--ease-out),
    background var(--fast) var(--ease-out);
}
.app-choice:hover {
  background: var(--surface-raised);
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
  border-color: var(--control-border);
}
.app-choice:has(input:checked) {
  background: var(--selected);
  border-color: var(--accent);
  box-shadow: var(--shadow-card), var(--glow);
}
.app-choice:has(input:focus-visible) {
  outline: var(--focus-width) solid var(--focus);
  outline-offset: var(--s1);
}
.app-choice:active {
  transform: scale(var(--press-scale));
}
.app-choice:has(input:disabled) {
  opacity: var(--disabled-opacity);
  cursor: not-allowed;
}
.app-choice input {
  position: absolute;
  opacity: 0;
  width: var(--icon-sm);
  height: var(--icon-sm);
  right: var(--s3);
  top: var(--s3);
  margin: 0;
}
.app-choice > .icon {
  width: var(--icon-xl);
  height: var(--icon-xl);
  transition: transform var(--slow) var(--ease-out);
}
.app-choice:hover > .icon {
  transform: translateY(-2px) scale(1.06);
}
.app-choice .choice-check {
  position: absolute;
  right: var(--s3);
  top: var(--s3);
  width: var(--icon-md);
  height: var(--icon-md);
  opacity: 0;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 50%;
  padding: 0;
  mask: none;
  -webkit-mask: none;
  transform: scale(0.6);
  transition:
    opacity var(--fast) var(--ease-out),
    transform var(--slow) var(--ease-out);
}
.app-choice .choice-check::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: currentColor;
  mask: url("/assets/check.svg") center/contain no-repeat;
  -webkit-mask: url("/assets/check.svg") center/contain no-repeat;
}
.app-choice:has(input:checked) .choice-check {
  opacity: 1;
  transform: scale(1);
}
.app-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.other-app {
  text-align: center;
  margin: var(--s2) 0;
}
.other-app summary {
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--muted);
}
.guide-heading {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: var(--s6) 0;
}
.guide-heading > .icon {
  width: var(--icon-xl);
  height: var(--icon-xl);
}
.guide-heading span {
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
}
.guide-stage {
  margin: var(--s8) 0;
  background: var(--glass-card);
  border: var(--stroke) solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s6);
  box-shadow: var(--shadow-card);
}
.guide-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2);
  font-size: var(--text-sm);
  margin: 0;
  color: var(--ink);
}
.guide-path > span:not(.icon) {
  padding: var(--s1) var(--s3);
  border-radius: var(--r-pill);
  background: var(--surface-raised);
  border: var(--stroke) solid var(--line);
  box-shadow: var(--shadow-card);
}
.guide-path > .icon {
  width: 24px;
  height: 24px;
  color: var(--ink);
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: currentColor;
}
.guide-caption {
  margin: var(--s4) 0 0;
  font-size: var(--text-xs);
}
.guide-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s4);
}
.guide-nav p {
  margin: 0;
  font-size: var(--text-xs);
}
.instructions {
  padding-left: var(--s5);
  font-size: var(--text-sm);
  color: var(--muted);
}
.instructions li {
  margin-bottom: var(--s4);
}
.assistant-options {
  display: flex;
  gap: var(--s2);
  margin: var(--s5) 0;
}
.assistant-options button {
  min-height: var(--touch-h);
  flex: 1;
  background: var(--surface-hover);
  border: var(--stroke) solid var(--control-border);
  border-radius: var(--r-sm);
}
.assistant-options button[aria-pressed="true"] {
  background: var(--selected);
  border-color: var(--accent);
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding-top: var(--s6);
  font-size: var(--text-xs);
  color: var(--muted);
}
footer a {
  display: flex;
  align-items: center;
  min-height: var(--touch-h);
  text-decoration: none;
}
.skip {
  position: absolute;
  transform: translateY(-200%);
  z-index: 2;
  background: var(--surface-raised);
  padding: var(--s3);
}
.skip:focus {
  transform: none;
}

/* Toast (glass) */
#toast:not(:empty) {
  position: fixed;
  bottom: var(--s6);
  left: 50%;
  transform: translateX(-50%);
  padding: var(--s3) var(--s5);
  background: var(--surface-raised);
  border: var(--stroke) solid var(--line);
  box-shadow: var(--shadow-float);
  border-radius: var(--r-pill);
  max-width: calc(100% - var(--s12));
  font-size: var(--text-sm);
  z-index: 3;
}
@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
  #toast:not(:empty) {
    background: var(--glass);
    border-color: var(--glass-border);
    backdrop-filter: blur(var(--blur)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  }
}

/* Skeletons */
.loading-view {
  padding-top: var(--s6);
}
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--skeleton);
  border-radius: var(--r-sm);
  height: var(--s4);
  margin-bottom: var(--s4);
}
.skeleton.title {
  height: var(--s12);
  width: var(--skeleton-w);
}
.skeleton.tile {
  height: var(--tile-h);
  margin: var(--s8) 0;
}
.skeleton.action {
  height: var(--control-h);
}
.sr-only {
  position: absolute;
  width: var(--stroke);
  height: var(--stroke);
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  body {
    padding: var(--s12) var(--s8);
  }
  .app {
    min-height: calc(100svh - var(--s24));
    border: var(--stroke) solid var(--glass-stroke);
    border-radius: var(--r-lg);
    padding: var(--s8) var(--s10);
    background: var(--glass-shell);
    box-shadow: var(--shadow-shell);
  }
  @supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
    .app {
      backdrop-filter: blur(var(--blur-shell)) saturate(140%);
      -webkit-backdrop-filter: blur(var(--blur-shell)) saturate(140%);
    }
  }
  .app-header {
    margin-bottom: var(--s8);
  }
  .workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s16);
    align-items: center;
    flex: 1;
  }
  .scene {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    padding-right: var(--s10);
    position: relative;
  }
  .scene::after {
    content: "";
    position: absolute;
    right: 0;
    top: 8%;
    bottom: 8%;
    width: var(--stroke);
    background: linear-gradient(180deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  }
  .scene img {
    width: 100%;
  }
  .scene h2 {
    font: var(--weight-regular) var(--text-title)/var(--leading-title) var(--font-display);
    letter-spacing: var(--tracking-tight);
    margin: var(--s6) 0 var(--s4);
  }
  .scene p {
    font-size: var(--text-sm);
    max-width: var(--hero-art-w);
  }
  .scene .eyebrow {
    margin: 0 0 var(--s5);
  }
  .scene .scene-footer {
    font-size: var(--text-xs);
    margin: var(--s8) 0 0;
    color: var(--muted);
  }
  main {
    width: 100%;
    max-width: var(--content-w);
    margin: auto;
  }
  .welcome .hero-art {
    display: none;
  }
  .welcome h1 {
    font-size: var(--text-hero);
  }
  footer {
    padding-top: var(--s6);
  }
  body[data-route="hotels"] .workspace {
    align-items: start;
  }
  body[data-route="hotels"] .scene {
    justify-content: center;
  }
  body[data-route="welcome"] .scene > p,
  body[data-route="welcome"] .scene > h2 {
    display: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 899px) {
  .app {
    max-width: var(--sheet-w);
    padding: calc(var(--s6) + env(safe-area-inset-top, 0px))
      calc(var(--s6) + env(safe-area-inset-right, 0px))
      calc(var(--s6) + env(safe-area-inset-bottom, 0px))
      calc(var(--s6) + env(safe-area-inset-left, 0px));
  }
  #toast:not(:empty) {
    bottom: calc(var(--s6) + env(safe-area-inset-bottom, 0px));
  }
  body[data-route="hotels"] .hotel-row {
    min-height: 56px;
    padding: var(--s2) var(--s4);
  }
  body[data-route="hotels"] .hotel-count {
    margin: var(--s2) 0 var(--s4);
  }
  body[data-route="hotels"] .billing h2 {
    margin-bottom: var(--s2);
  }
  body[data-route="hotels"] .price {
    margin: var(--s4) 0 var(--s2);
  }
  body[data-route="hotels"] .saving {
    margin-bottom: var(--s3);
  }
  body[data-route="hotels"] .beta {
    margin: 0 0 var(--s2);
  }
  body[data-route="hotels"] .trust {
    margin-top: var(--s3);
  }
  body[data-route="hotels"] .app-header {
    margin-bottom: var(--s5);
  }
  body[data-route="hotels"] h1 {
    font-size: var(--text-title);
  }
  body[data-route="hotels"] .step {
    margin-bottom: var(--s5);
  }
  body[data-route="hotels"] footer {
    display: none;
  }
  body[data-route="welcome"] .app-header {
    margin-bottom: var(--s4);
  }
  .welcome h1 {
    font-size: var(--text-title);
  }
  .welcome .hero-art {
    width: var(--hero-mobile-w);
    margin-bottom: var(--s5);
  }
  .welcome .eyebrow {
    margin-bottom: var(--s4);
    justify-content: center;
  }
  .welcome .eyebrow::before {
    display: none;
  }
  body[data-route="welcome"] footer {
    padding-top: var(--s4);
  }
  body[data-route="hotels"] .connected {
    margin-bottom: var(--s4);
  }
  body[data-route="hotels"] h1 {
    margin-bottom: var(--s3);
  }
}
@media (min-width: 900px) and (max-height: 780px) {
  body {
    padding: var(--s6) var(--s8);
  }
  .app {
    min-height: calc(100svh - var(--s12));
  }
  .app-header {
    margin-bottom: var(--s5);
  }
}
@media (min-width: 900px) and (max-width: 1120px) {
  .workspace {
    gap: var(--s10);
  }
  .scene {
    padding-right: var(--s8);
  }
  .scene h2 {
    font-size: var(--text-title-sm);
  }
  .scene .scene-footer {
    display: none;
  }
}
@media (max-width: 380px) {
  .app {
    padding: calc(var(--s5) + env(safe-area-inset-top, 0px))
      calc(var(--s5) + env(safe-area-inset-right, 0px))
      calc(var(--s5) + env(safe-area-inset-bottom, 0px))
      calc(var(--s5) + env(safe-area-inset-left, 0px));
  }
  h1,
  .welcome h1 {
    font-size: var(--text-title);
  }
  .best {
    display: none;
  }
  .saving {
    flex-wrap: wrap;
  }
  .price-info {
    font-size: var(--text-sm);
  }
  body[data-route="hotels"] h1 {
    font-size: var(--text-title-sm);
  }
  body[data-route="hotels"] .step {
    margin-bottom: var(--s3);
  }
  body[data-route="hotels"] .amount {
    font-size: var(--text-hero);
  }
  body[data-route="hotels"] .hotel-row {
    min-height: var(--s12);
  }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .screen-enter {
    animation: screen-in var(--enter) var(--ease-out) backwards;
  }
  .screen-enter .stagger {
    animation: rise var(--enter) var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * var(--stagger));
  }
  .screen-enter h1 .w > span {
    display: inline-block;
    animation: word-in 0.7s var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 55ms + 60ms);
  }
  .screen-enter .step-bars i.done::after {
    animation: fill var(--slow) var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 90ms + 120ms);
  }
  .screen-exit {
    animation: screen-out var(--exit) var(--ease-in) both;
  }
  .price {
    animation: pop var(--slow) var(--ease-out) backwards;
  }
  #toast:not(:empty) {
    animation: toast-in var(--slow) var(--ease-out) backwards;
  }
  .skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, var(--skeleton-hi), transparent);
    animation: shimmer 1.6s var(--ease-std) infinite;
  }
  .atmosphere .a {
    animation: drift-a var(--ambient) ease-in-out infinite alternate;
  }
  .atmosphere .b {
    animation: drift-b calc(var(--ambient) * 1.3) ease-in-out infinite alternate;
  }
  .atmosphere .c {
    animation: drift-c calc(var(--ambient) * 1.1) ease-in-out infinite alternate;
  }
  .scene img,
  .hero-art {
    animation: float 1.2s var(--ease-out) backwards;
  }
  @keyframes screen-in {
    from {
      opacity: 0;
      transform: translateY(var(--move));
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(var(--move));
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes word-in {
    from {
      opacity: 0;
      transform: translateY(0.6em) rotate(1.5deg);
      filter: blur(6px);
    }
    to {
      opacity: 1;
      transform: none;
      filter: blur(0);
    }
  }
  @keyframes fill {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }
  @keyframes screen-out {
    to {
      opacity: 0;
      transform: translateY(calc(var(--move) * -1));
    }
  }
  @keyframes pop {
    from {
      opacity: 0;
      transform: scale(0.94);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  @keyframes toast-in {
    from {
      opacity: 0;
      transform: translate(-50%, var(--s4));
    }
    to {
      opacity: 1;
      transform: translate(-50%, 0);
    }
  }
  @keyframes shimmer {
    to {
      transform: translateX(100%);
    }
  }
  @keyframes drift-a {
    to {
      transform: translate(8vmax, 6vmax) scale(1.08);
    }
  }
  @keyframes drift-b {
    to {
      transform: translate(-10vmax, 8vmax) scale(1.12);
    }
  }
  @keyframes drift-c {
    to {
      transform: translate(6vmax, -8vmax) scale(1.06);
    }
  }
  @keyframes float {
    from {
      opacity: 0;
      transform: perspective(900px) translateY(var(--s6)) rotateX(6deg);
    }
    to {
      opacity: 1;
      transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .button::after {
    display: none;
  }
}

/* Google Identity branding: standard G and approved light/dark colors.
   https://developers.google.com/identity/branding-guidelines */
:root {
  --google-surface: #fff;
  --google-ink: #1f1f1f;
  --google-border: #747775;
  --google-state: #303030;
}
:root[data-theme="dark"] {
  --google-surface: #131314;
  --google-ink: #e3e3e3;
  --google-border: #8e918f;
  --google-state: #fff;
}
.button.google-signin {
  background: var(--google-surface);
  color: var(--google-ink);
  border: 1px solid var(--google-border);
  border-radius: var(--r-pill);
  box-shadow: none;
  font-family: Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.25px;
  gap: 12px;
  transition:
    transform var(--fast) var(--ease-out),
    opacity var(--fast) var(--ease-out);
}
.button.google-signin img {
  width: 20px;
  height: 20px;
  flex: none;
  object-fit: contain;
}
.button.google-signin::after {
  background: var(--google-state);
  transform: none;
  opacity: 0;
  transition: opacity var(--fast) var(--ease-out);
}
.button.google-signin:hover {
  background: var(--google-surface);
  color: var(--google-ink);
  box-shadow: none;
  transform: none;
}
.button.google-signin:not(:disabled):hover::after {
  opacity: 0.08;
}
.button.google-signin:not(:disabled):active::after,
.button.google-signin:focus-visible::after {
  opacity: 0.12;
}
.button.google-signin:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.button.google-signin[aria-busy="true"] {
  cursor: progress;
}

/* Embedded passkeys use the same app fields and controls. */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin: var(--s6) 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: var(--stroke);
  background: var(--line);
  flex: 1;
}
#passkey-form .fields {
  margin: 0 0 var(--s4);
}
#passkey-form .passkey-hint {
  margin-top: var(--s3);
}
#passkey-form input:disabled {
  opacity: var(--disabled-opacity);
  cursor: wait;
}
.text-button {
  font: inherit;
  color: inherit;
  text-decoration: underline;
  border: 0;
  background: none;
  padding: var(--s2);
  cursor: pointer;
}
.text-button:hover {
  color: var(--accent);
}
.text-button:focus-visible {
  outline: var(--focus-width) solid var(--focus);
  outline-offset: var(--s1);
}
.text-button:active {
  opacity: var(--disabled-opacity);
}
.text-button:disabled {
  opacity: var(--disabled-opacity);
  cursor: wait;
}

/* Account details */
.account-overview {
  margin: var(--s6) 0;
  padding: var(--s5);
  border: var(--stroke) solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass-card);
  box-shadow: var(--shadow-card);
}
.account-overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.account-overview-heading h2 {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: 0;
  font: var(--weight-medium) var(--text-sm)/1.5 var(--font-body);
}
.account-overview-heading h2 span {
  color: var(--muted);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s1) var(--s3);
  border-radius: var(--r-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--selected-ink);
  background: var(--selected);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.status-attention {
  color: var(--error);
  background: var(--error-surface);
}
.status-neutral {
  color: var(--muted);
  background: var(--surface-hover);
}
.account-hotels {
  list-style: none;
  padding: 0;
  margin: 0;
}
.account-hotels li {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4) 0;
  color: var(--ink);
  font: var(--weight-medium) var(--text-base)/1.4 var(--font-body);
  overflow-wrap: anywhere;
}
.account-hotels li + li {
  border-top: var(--stroke) solid var(--line);
}
.account-hotels .icon {
  width: var(--icon-lg);
  height: var(--icon-lg);
  flex: none;
  color: var(--accent);
}
.account-hotels li:last-child {
  padding-bottom: var(--s1);
}
.account-empty {
  font-size: var(--text-sm);
  margin: 0;
}
.connection-help {
  margin: var(--s5) 0;
}
.connection-help > summary {
  justify-content: center;
  color: var(--muted);
}
.help-content {
  padding: var(--s4) var(--s5);
  border: var(--stroke) solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass-card);
  text-align: left;
}
.help-content h2 {
  font: var(--weight-bold) var(--text-base)/1.4 var(--font-body);
  margin: var(--s5) 0 var(--s2);
}
.help-content h2:first-child {
  margin-top: 0;
}
.help-content .sharing-note {
  border-top: var(--stroke) solid var(--line);
  padding-top: var(--s4);
  margin-top: var(--s5);
}
.connection-caption {
  text-align: center;
  font-size: var(--text-xs);
  margin: var(--s3) 0 var(--s5);
  color: var(--muted);
}
.connect-screen .guide-heading {
  margin-top: var(--s4);
}
.assistant-screen .lede {
  margin-bottom: var(--s5);
}
.assistant-screen .app-choice {
  min-height: 112px;
  gap: var(--s2);
}
.account-email {
  overflow-wrap: anywhere;
}
.account-summary {
  display: grid;
  gap: var(--s4);
  margin: var(--s6) 0;
}
.account-summary > div {
  padding: var(--s5);
  border: var(--stroke) solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass-card);
  box-shadow: var(--shadow-card);
}
.account-summary dt {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--s2);
}
.account-summary dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  overflow-wrap: anywhere;
}
.account-summary .account-detail {
  margin-top: var(--s2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Current beta and upcoming hospitality skills. */

/* ---------- Welcome: now / next path ---------- */
.path {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-top: var(--s6);
  border-top: var(--stroke) solid var(--line);
  display: grid;
  gap: var(--s6);
  text-align: left;
}
.path > li {
  min-width: 0;
}
.path > li + li {
  padding-top: var(--s6);
  border-top: var(--stroke) solid var(--line);
}
.path-tag {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: var(--weight-bold);
  color: var(--accent);
  margin-bottom: var(--s2);
  line-height: 1.4;
}
.path-next .path-tag {
  color: var(--muted);
}
.path h2 {
  font: var(--weight-regular) var(--text-lg)/var(--leading-title) var(--font-display);
  letter-spacing: -0.01em;
  margin: 0 0 var(--s2);
}
.path p {
  font-size: var(--text-sm);
  margin: 0 0 var(--s3);
}
.skills {
  list-style: none;
  padding: 0;
  margin: var(--s1) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.skills li {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3) var(--s2) var(--s2);
  border-radius: var(--r-pill);
  border: var(--stroke) solid var(--line);
  background: var(--glass-card);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--ink);
  line-height: 1.3;
}
.skills .icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
  color: var(--accent);
}
.skill-details {
  margin: var(--s3) 0 0;
  font-size: var(--text-xs);
}
.skill-details summary {
  min-height: var(--touch-h);
  color: var(--muted);
  font-weight: var(--weight-medium);
  justify-content: flex-start;
  gap: var(--s2);
}
.skill-details summary::after {
  margin-left: auto;
}
.skill-list {
  list-style: none;
  padding: var(--s2) 0 0;
  margin: 0;
  display: grid;
  gap: var(--s3);
}
.skill-list li {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
}
.skill-list .icon {
  width: var(--icon-md);
  height: var(--icon-md);
  flex: none;
  color: var(--accent);
  margin-top: 2px;
}
.skill-list strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--ink);
}
.skill-list span {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: var(--leading-body);
}
@media (max-width: 899px) {
  .welcome .trust {
    margin-top: var(--s3);
  }
}
@media (min-width: 900px) {
  body[data-route="welcome"] .workspace {
    align-items: start;
  }
  body[data-route="welcome"] .scene {
    align-self: start;
    position: sticky;
    top: var(--s10);
    min-height: calc(100svh - var(--s24) - var(--s16));
  }
  body[data-route="welcome"] .scene::after {
    top: 0;
    bottom: 0;
  }
  body[data-route="welcome"] main {
    margin-top: var(--s4);
  }
}

/* Keep three assistant choices generous on small screens. */
.icon-other {
  --icon-url: url("/assets/other-assistant.svg");
}
.icon-grok {
  --icon-url: url("/assets/brand-grok.svg");
}
.grok-steps {
  padding-left: 1.4em;
  margin: var(--s5) 0;
  color: var(--muted);
  line-height: 1.6;
}
.grok-steps li + li {
  margin-top: var(--s3);
}

.connection-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  margin: 24px 0 12px;
  border: var(--stroke) solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.connection-card > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  min-width: 0;
}
.connection-card strong {
  font-size: clamp(15px, 4vw, 20px);
  font-weight: 650;
}
.connection-card small {
  font-size: 13px;
  color: var(--muted);
}
.connection-card > .icon {
  width: 28px;
  height: 28px;
  color: var(--ink);
}
.connection-note {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}
.connection-steps {
  padding-left: 24px;
  margin: 28px 0;
  line-height: 1.5;
}
.connection-steps > li {
  padding-left: 6px;
  margin-bottom: 24px;
}
.connection-steps > li::marker {
  color: var(--accent);
  font-weight: 700;
}
.connection-steps p {
  font-size: var(--text-sm);
  margin: 8px 0 12px;
  color: var(--muted);
}
.connection-steps .connector-url {
  font-size: 14px;
  min-width: 0;
  width: 100%;
}
.connection-steps .button {
  margin-top: 12px;
}

.prompt-preview {
  padding: 24px;
  margin: 24px 0;
  border: var(--stroke) solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.prompt-preview p {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.35;
  margin: 0 0 12px;
}
.prompt-preview span {
  font-size: 13px;
  color: var(--muted);
}
.setup-message {
  width: 100%;
  min-height: 200px;
  padding: 16px;
  border: var(--stroke) solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-raised);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

.assistant-guide .setup-requirements {
  padding: 16px;
  border-radius: var(--r-sm);
  background: var(--surface-raised);
  font-size: var(--text-sm);
  line-height: 1.6;
  text-align: left;
}
.assistant-guide .plugin-preview-note {
  text-align: left;
  line-height: 1.6;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}
.setup-stage {
  margin: 16px 0;
  border: var(--stroke) solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass-card);
  text-align: left;
}
.setup-stage > summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.setup-stage > summary::-webkit-details-marker {
  display: none;
}
.setup-stage > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 24px;
}
.setup-stage[open] > summary::after {
  content: "−";
}
.setup-stage > summary small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  margin-top: 4px;
}
.setup-letter {
  color: var(--accent);
  font-size: 24px;
}
.setup-stage-body {
  padding: 0 20px 20px;
}
.setup-stage-body .connection-steps {
  margin-top: 8px;
}
.setup-stage-body > label {
  display: block;
  margin: 20px 0 8px;
  font-size: 14px;
}
.setup-stage-body .connector-url {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 14px;
}
.setup-stage-body code {
  overflow-wrap: anywhere;
}
.setup-stage-body .button {
  margin: 12px 0 0;
}
.setup-stage-body p {
  line-height: 1.6;
}
.setup-extra {
  margin: 16px 0;
}
.setup-extra summary {
  cursor: pointer;
  padding: 8px 0;
}
.example-question {
  min-height: 110px;
}
.setup-stage > summary:focus-visible,
.setup-extra > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hotel-chat-start {
  margin: 24px 0;
  padding: 24px;
  border: var(--stroke) solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass-card);
}
.hotel-chat-start h2 {
  margin-bottom: 8px;
}
.hotel-chat-start p {
  margin-bottom: 16px;
}
.hotel-chat-start .fine {
  margin: 12px 0 0;
}
.hotel-chat-start .button {
  margin-bottom: 0;
}

/* Terms use a native, initially unchecked checkbox for keyboard and touch access. */
.terms-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0 8px;
  font-size: 14px;
  line-height: 1.6;
}
.terms-consent input[type="checkbox"] {
  appearance: auto;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}
.terms-consent label {
  font: inherit;
  margin: 0;
}
.terms-consent a {
  text-decoration: underline;
}
.legal-document {
  max-width: 760px;
  margin: 40px auto;
  padding: 24px;
}
footer {
  flex-wrap: wrap;
}

.terms-consent input[type="checkbox"]:checked:after {
  display: none;
}

.account-feedback {
  margin: var(--s8) 0;
  padding-top: var(--s6);
  border-top: 1px solid var(--line);
}
.account-feedback select,
.account-feedback textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.account-feedback textarea {
  resize: vertical;
  min-height: 140px;
}
#feedback-status {
  overflow-wrap: anywhere;
  font-size: 0.875rem;
}

/* Email verification keeps instructions readable and separate from the action. */
.email-check-instructions {
  padding: var(--s6);
  margin-bottom: var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-raised);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.email-check-status {
  font-weight: var(--weight-medium);
  margin: 0 0 var(--s4);
}
.email-check-instructions ol {
  margin: 0;
  padding-left: 1.4em;
}
.email-check-instructions li + li {
  margin-top: var(--s3);
}
.email-check-help {
  margin: var(--s4) 0 0;
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}
.email-check-alternative {
  display: block;
  width: fit-content;
  margin: var(--s4) auto 0;
  padding: var(--s3);
  font-size: var(--text-base);
  text-align: center;
}

/* Muse leads the assistant chooser without hiding the user's other options. */
.app-choice.recommended-choice {
  grid-column: 1 / -1;
  padding: var(--s4);
}
.recommendation-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}
.choice-description {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}
.icon-muse {
  --icon-url: url("/assets/bot.svg");
}
.muse-guide #setup-message {
  min-height: 260px;
}
