:root {
  --navy: #1f2c5c;
  --navy-d: #141c3d;
  --gold: #e9a23b;
  --green: #4e8a34;
  --red: #d6393e;
  --ink: #1f2c5c;
  --muted: #5a6480;
  --line: #e3e6ee;
  --wash: #eef1f8;
  --sand: #f4f6fb;
  --banner: #fff3d6;
  --banner-ink: #6b4a00;
  --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Poppins, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.45;
}
a { color: var(--navy); }
a:hover { color: var(--red); }
button, input, select, textarea { font-family: inherit; }
#demobar {
  background: var(--banner);
  color: var(--banner-ink);
  font-size: 12.5px;
  line-height: 1.4;
  text-align: center;
  padding: 8px 16px;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.util {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  align-items: center;
  padding: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
}
.translate-menu { display: inline-flex; align-items: center; gap: 8px; }
.translate-menu select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  max-width: 11rem;
  padding: 6px 8px;
}
.tr-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.topbar .tr-status { color: #d8dcea; }
.tr-status[hidden] { display: none; }
.tr-status i {
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: tr-spin 0.7s linear infinite;
}
@keyframes tr-spin { to { transform: rotate(360deg); } }
#google_translate_element {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
iframe.skiptranslate, .goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.util a, .util button {
  background: none;
  border: none;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 14px;
}
.brand-name { display: flex; align-items: center; gap: 12px; }
.mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  border-right-color: var(--red);
  border-bottom-color: #6fa84c;
  flex-shrink: 0;
}
.brand b {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  display: block;
}
.brand span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
#menubtn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
}
.nav {
  display: none;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
}
.nav.open { display: flex; }
.nav a { text-decoration: none; }
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 32px 0 28px;
}
.hero h1 {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
  max-width: 18ch;
}
.hero p { margin: 12px 0 0; max-width: 42ch; font-size: 15px; color: #d8dcea; }
.vera-card {
  margin-top: -8px;
  background: var(--white);
  border: 2px solid var(--navy);
  box-shadow: 0 6px 18px rgba(31, 44, 92, 0.12);
}
.vera-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--navy);
  color: var(--white);
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.vera-head b {
  display: block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 15px;
}
.vera-head span { font-size: 12px; color: #d8dcea; }
.online { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #8cc86a; }
.vera-body { padding: 14px; background: var(--sand); }
.bubble {
  max-width: 36rem;
  background: var(--wash);
  border-radius: 14px 14px 14px 4px;
  padding: 10px 12px;
  font-size: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips a, .chips button, .chip {
  background: var(--white);
  border: 1.5px solid var(--green);
  color: var(--green);
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.composer, .vin {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.composer input, .vin input, .f input, .f select, .f textarea, .steps select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
}
.composer input { flex: 1; min-width: 0; }
.iconbtn, .sendbtn, .go {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.iconbtn {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0;
}
.iconbtn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sendbtn, .go { padding: 0 16px; }
.fine { font-size: 12px; color: var(--muted); padding: 8px 14px 12px; }
.section { padding: 28px 0 8px; }
.section h2, .band h2 {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 12px;
}
.lede { color: var(--muted); max-width: 68ch; }
.cards { display: grid; gap: 12px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 16px;
}
.card b { display: block; margin-bottom: 6px; }
.card p { margin: 0 0 8px; color: #3d4450; font-size: 14px; }
.asklink { font-weight: 600; font-size: 14px; }
.band {
  margin-top: 28px;
  background: var(--navy);
  color: var(--white);
  padding: 28px 0 32px;
}
.band h2 { color: var(--white); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.stat b {
  display: block;
  font-family: Oswald, sans-serif;
  font-size: 32px;
  color: var(--gold);
}
.stat span { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.support-grid { display: grid; gap: 12px; }
.support-card { background: var(--wash); padding: 14px; }
.contact {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 16px;
  max-width: 640px;
}
footer.site {
  margin-top: 28px;
  background: var(--navy-d);
  color: #d8dcea;
  text-align: center;
  font-size: 12px;
  padding: 16px 20px 28px;
  line-height: 1.5;
}
.sheet {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--sand);
}
body[data-page="ask"] {
  background: #e6ebf5;
}
body[data-page="ask"] .sheet {
  width: min(680px, 100%);
  margin: 0 auto;
  box-shadow: 0 0 0 1px #d5dbe8;
}
body[data-page="ask"] .thread {
  gap: 8px;
  padding: 16px 16px 8px;
}
body[data-page="ask"] .msg {
  max-width: 88%;
  font-size: 15px;
  line-height: 1.55;
}
body[data-page="ask"] .chips { margin-top: 0; }
body[data-page="ask"] .fine {
  text-align: center;
  padding-bottom: 14px;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--navy);
  color: var(--white);
}
.topbar a.back {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--white);
  text-decoration: none;
  font-size: 22px;
}
.topbar .who { flex: 1; }
.topbar b { color: var(--gold); text-transform: uppercase; letter-spacing: 0.04em; }
.topbar span { display: block; font-size: 12px; color: #d8dcea; }
.langbtn {
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.thread { flex: 1; overflow: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 36rem; font-size: 14px; line-height: 1.45; padding: 10px 12px; border-radius: 14px; }
.msg.u { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; }
.msg.v { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .src { display: block; margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.panel {
  margin: 0 14px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.f label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; }
.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0;
  background: var(--white);
  cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--green); background: #f3f8f1; }
.choice b { display: block; }
.choice span { color: var(--muted); font-size: 13px; }
.steps { padding: 8px 16px 28px; max-width: 720px; margin: 0 auto; width: 100%; }
.kicker { color: var(--muted); font-size: 13px; margin: 8px 0; }
h1.step {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 32px;
  margin: 0 0 8px;
}
.row-actions { display: flex; gap: 8px; margin-top: 16px; }
.row-actions .go { flex: 1; padding: 12px; }
.ghost {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
}
.note {
  background: var(--wash);
  border-left: 4px solid var(--green);
  padding: 10px 12px;
  font-size: 13px;
  margin-top: 12px;
}
.review-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.review-row button { background: none; border: none; color: var(--green); font-weight: 600; cursor: pointer; }
.okbox { background: var(--wash); border-left: 4px solid var(--green); padding: 12px 14px; }
.ref { font-family: Oswald, sans-serif; font-size: 28px; color: var(--gold); }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
body[data-page="apply"] { background: #e6ebf5; }
body[data-page="apply"] .sheet {
  width: min(680px, 100%);
  margin: 0 auto;
  box-shadow: 0 0 0 1px #d5dbe8;
}
.nav a { display: inline-block; padding: 8px 0; }
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .util { justify-content: space-between; gap: 12px; }
  .translate-menu { margin-right: auto; }
  .translate-menu select { max-width: 9rem; font-size: 16px; }
  .brand b { font-size: 17px; line-height: 1.15; }
  .brand span { letter-spacing: 0.04em; }
  .hero { padding: 22px 0 20px; }
  .hero h1 { font-size: 28px; max-width: none; }
  .vera-card { margin-top: 16px; }
  .section h2, .band h2 { font-size: 24px; }
  .stat b { font-size: 28px; }
  #demobar { padding: 8px 12px; }
  body[data-page="ask"],
  body[data-page="apply"] { background: var(--sand); }
  body[data-page="ask"] .sheet,
  body[data-page="apply"] .sheet {
    width: 100%;
    box-shadow: none;
  }
  .topbar { padding: 10px 12px; gap: 8px; }
  .topbar .who { min-width: 0; }
  .topbar .who span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .composer input, .vin input, .f input, .f select, .f textarea {
    font-size: 16px;
  }
  .composer, .vin {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
  .row-actions { flex-wrap: wrap; }
  .row-actions .go, .row-actions .ghost, .row-actions .iconbtn { min-height: 44px; }
  h1.step { font-size: 26px; }
  .steps { padding-left: 14px; padding-right: 14px; }
  footer.site { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
@media (min-width: 800px) {
  #menubtn { display: none; }
  .nav { display: flex; }
  .cards, .support-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 42px; }
  .vera-card { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
