.app-shell {
  min-height: 100dvh;
  padding-bottom: 84px;
}
.chat-shell {
  padding-bottom: 0;
}
.chat-shell main {
  padding-bottom: 0;
}
.topbar {
  height: 74px;
  max-width: var(--content);
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}
.brand-surface { fill: var(--accent); }
.brand-bands { fill: none; stroke: var(--highlight); stroke-width: 4.5; stroke-linecap: round; }
.avatar-small {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}
.avatar-small img {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-soft);
}
main {
  max-width: var(--content);
  margin: auto;
  padding: 20px 28px 80px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}
h2 {
  margin-bottom: 8px;
  font-size: 21px;
  letter-spacing: -0.035em;
}
.subtle {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.7;
}
.button {
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.button:hover:not(:disabled) {
  transform: translateY(-2px);
}
.button.primary {
  color: white;
  background: var(--accent);
  box-shadow: none;
}
.button.primary:hover:not(:disabled) {
  background: var(--accent-dark);
}
.button.secondary {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.button.ghost {
  border: 1px solid var(--line);
  background: white;
}
.button.liked {
  color: white;
  background: var(--warm);
}
.button.wide {
  width: 100%;
}
.button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: var(--panel);
  box-shadow: none;
}
.landing {
  min-height: 100dvh;
  max-width: 1240px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 8vw;
  align-items: center;
}
.hero {
  max-width: 640px;
}
.hero h1 {
  font-size: clamp(34px, 4.2vw, 58px);
}
.hero h1 em {
  color: var(--accent);
  font-style: normal;
}
.lede {
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.fineprint {
  margin: 18px auto 0;
  max-width: 420px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
}
.logo-orbit {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 34px;
  display: grid;
  place-items: center;
  border-radius: 45% 55% 54% 46%;
  color: white;
  background: var(--accent);
  font-size: 30px;
  font-weight: 700;
  transform: rotate(-7deg);
}
.logo-orbit i,
.logo-orbit b {
  position: absolute;
  border-radius: 50%;
}
.logo-orbit i {
  width: 15px;
  height: 15px;
  right: -18px;
  top: 2px;
  background: var(--warm);
}
.logo-orbit b {
  width: 9px;
  height: 9px;
  right: -29px;
  top: 24px;
  background: var(--success-soft);
}
.google-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--accent);
  background: white;
  font-weight: 700;
}
.demo-login {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.55);
}
.demo-login p {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
}
.demo-login div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 13px;
  border: 1px solid var(--control-line);
  border-radius: 999px;
  background: white;
  cursor: pointer;
}
.preview-card {
  min-height: 570px;
  padding: 64px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 44px;
  background: linear-gradient(150deg, var(--accent), var(--accent-dark));
  box-shadow: 0 30px 90px rgba(32, 41, 68, 0.12);
  transform: rotate(1.5deg);
}
.speech {
  max-width: 78%;
  margin: 12px 0;
  padding: 18px 22px;
  border-radius: 24px 24px 24px 8px;
  color: var(--ink);
  background: white;
  line-height: 1.55;
  box-shadow: 0 8px 22px rgba(32, 41, 68, 0.1);
}
.speech.two {
  margin-left: auto;
  border-radius: 24px 24px 8px;
  background: var(--highlight);
}
.reveal-pill {
  margin: 70px auto 0;
  padding: 11px 18px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
}
.form-page {
  max-width: 680px;
  padding-top: 42px;
}
.progress {
  height: 5px;
  margin-bottom: 42px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.profile-progress {
  width: 42%;
}
.stack-form {
  margin-top: 36px;
  display: grid;
  gap: 22px;
}
.stack-form label,
fieldset {
  display: grid;
  gap: 9px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  min-height: 48px;
  border: 1px solid var(--control-line);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 400;
  background: white;
  transition:
    border 0.18s,
    box-shadow 0.18s;
}
textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.6;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  outline: 0;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  margin-bottom: 10px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.choice-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.choice-grid label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--control-line);
  border-radius: 14px;
  background: white;
  cursor: pointer;
}
.choice-grid input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0 8px 0 0;
  accent-color: var(--accent-dark);
}
.choice-grid label:has(input:focus-visible) {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
}
.choice-grid label:has(input:checked) {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}
.consent {
  grid-template-columns: 22px 1fr;
  align-items: start;
  line-height: 1.55;
  min-height: 44px;
  padding: 10px 0;
}
.consent input {
  width: 19px;
  height: 19px;
  min-height: 0;
  margin: 1px 0 0;
  accent-color: var(--accent);
}
.alert {
  padding: 14px 17px;
  border-radius: 14px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  line-height: 1.5;
}
.alert.error {
  color: var(--danger);
  background: var(--danger-soft);
}
