/* BusGoGo / 巴士Go — editorial maker style */
:root {
  --bg: #f3ebe0;
  --bg-soft: #ebe1d3;
  --paper: #faf6f0;
  --ink: #2a2420;
  --ink-soft: #5c534c;
  --muted: #7a7168;
  --line: #d9cfc2;
  --cta: #6b2d2d;
  --cta-hover: #542222;
  --cta-text: #faf6f0;
  --shadow: 0 18px 40px rgba(42, 36, 32, 0.12);
  --radius: 28px;
  --radius-sm: 16px;
  --max: 1080px;
  --font: "Noto Sans TC", "PingFang HK", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Language gate */
.lang-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.lang-gate[hidden] {
  display: none;
}

.lang-gate__card {
  width: min(440px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.lang-gate__brand {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.lang-gate__sub {
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.lang-gate__actions {
  display: grid;
  gap: 12px;
}

.lang-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  background: var(--bg-soft);
  border-color: var(--ink-soft);
  outline: none;
}

.lang-btn--primary {
  background: var(--cta);
  border-color: var(--cta);
  color: var(--cta-text);
}

.lang-btn--primary:hover,
.lang-btn--primary:focus-visible {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  color: var(--cta-text);
}

body.gate-open {
  overflow: hidden;
}

body.gate-open .site {
  visibility: hidden;
}

/* Site chrome */
.site {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(243, 235, 224, 0.9);
  border-bottom: 1px solid transparent;
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
}

.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.brand__zh {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand__en {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
  outline: none;
}

.lang-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  border-color: var(--ink-soft);
  outline: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 56px 0;
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.section__title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__lead {
  margin: 0 0 36px;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Hero */
.hero {
  padding: 48px 0 64px;
}

.hero__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
}

.hero__kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero__subtitle {
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  max-width: 28rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.btn:focus-visible {
  outline: 3px solid rgba(107, 45, 45, 0.35);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--cta);
  color: var(--cta-text);
}

.btn--primary:hover {
  background: var(--cta-hover);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--ink-soft);
}

.btn--block {
  width: 100%;
}

.hero__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero__visual {
  position: relative;
}

.hero__frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero__frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: #ddd4c7;
}

.hero__caption {
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero__real {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.hero__real img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
}

.hero__real p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Feature pills / checklist */
.pill-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .pill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pill {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 18px 16px;
}

.pill h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.pill p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Feature gallery */
.feature-gallery {
  display: grid;
  gap: 22px;
}

@media (min-width: 760px) {
  .feature-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .feature-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-card:first-child {
    grid-column: span 2;
  }
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(42, 36, 32, 0.06);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-card__body {
  padding: 18px 18px 20px;
}

.feature-card__body h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.feature-card__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.illus-note {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Scenes */
.scene-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .scene-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.scene-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.scene-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.scene-card__body {
  padding: 18px 18px 20px;
}

.scene-card__body h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.scene-card__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Shop */
.shop {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.shop__panel {
  display: grid;
  gap: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px 22px;
  box-shadow: var(--shadow);
}

@media (min-width: 860px) {
  .shop__panel {
    grid-template-columns: 0.9fr 1.1fr;
    padding: 36px;
    gap: 40px;
  }
}

.price-box {
  margin: 18px 0 22px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px dashed var(--line);
}

.price-box strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.price-box span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.pay-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pay-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.pay-list .dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--cta);
  flex: 0 0 auto;
}

.form {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.field .req {
  color: var(--cta);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 3px solid rgba(107, 45, 45, 0.2);
  border-color: var(--cta);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.form-error {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8e8e6;
  color: #6b2d2d;
  border: 1px solid #e4c4bf;
  font-size: 0.92rem;
}

.form-error.is-visible {
  display: block;
}

.form-success {
  display: none;
  margin-top: 8px;
  padding: 16px 16px;
  border-radius: 12px;
  background: #e8f0e6;
  border: 1px solid #c7d9c2;
  color: #2f4a2a;
  font-size: 0.95rem;
}

.form-success.is-visible {
  display: block;
}

.preview-banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7e8;
  border: 1px solid #ecd7a8;
  color: #6a5220;
  font-size: 0.9rem;
}

/* App teaser */
.app-teaser {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.app-teaser p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 46rem;
}

/* Footer */
.footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0 0 10px;
  max-width: 48rem;
}

.footer strong {
  color: var(--ink-soft);
}

[data-i18n],
[data-i18n-html] {
  /* marker only */
}
