:root {
  color-scheme: light;
  --brand: #d07a00;
  --text: #222222;
  --muted: #8a8a8a;
  --border: #e6e6e6;
  --input-bg: #eaf2ff;
  --danger: #d92d20;
  --success: #12b76a;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #ffffff;
  color: var(--text);
}

.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #f2f2f2;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 22%, white 78%);
  display: grid;
  place-items: center;
  font-size: 16px;
}

.topbar-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-link {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.topbar-link-btn {
  border: none;
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}

.topbar-link-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-user-label {
  font-size: 13px;
  color: var(--muted);
}

.page {
  max-width: 420px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.brand {
  text-align: center;
  margin-top: 22px;
  margin-bottom: 38px;
}

.brand-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--brand);
}

.brand-subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.section-title h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.section-title p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.form {
  margin-top: 18px;
}

.label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 8px;
}

.turnstile-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 12px;
  box-shadow: var(--shadow);
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius);
  background: var(--input-bg);
  border: 1px solid #d8e6ff;
  padding: 12px 12px;
}

.input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
}

.icon {
  width: 18px;
  height: 18px;
  opacity: 0.65;
}

.btn {
  width: 100%;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn-primary {
  margin-top: 18px;
  background: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 80%, white 20%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(208, 122, 0, 0.22);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text);
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.btn-row .btn-primary {
  margin-top: 0;
}

.btn-compact {
  width: auto;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
}

.btn-bottom-left {
  position: fixed;
  left: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  box-shadow: var(--shadow);
}

body[data-page="verify"] .page {
  padding-bottom: 108px;
}

.otp-input {
  width: 100%;
  height: 58px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.55em;
  padding-left: 0.55em;
  outline: none;
  background: #ffffff;
}

.otp-input:focus {
  border-color: color-mix(in srgb, var(--brand) 55%, white 45%);
  box-shadow: 0 0 0 4px rgba(208, 122, 0, 0.12);
}

.msg {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.4;
  min-height: 18px;
}

.msg.ok {
  color: var(--success);
}

.msg.bad {
  color: var(--danger);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.hidden {
  display: none !important;
}

.link {
  display: inline-block;
  margin-top: 16px;
  color: #2b62ff;
  font-size: 13px;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.turnstile-inline {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: #fffdf8;
}

.landing {
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 18px 44px;
}

.hero {
  text-align: center;
  padding: 26px 0 12px;
}

.hero-title {
  font-size: 54px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #1f1f1f;
}

.hero-subtitle {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
}

.hero-desc {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.cta {
  margin: 22px auto 0;
  width: 220px;
  height: 62px;
  border-radius: 999px;
  border: none;
  background: var(--brand);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 18px 28px rgba(208, 122, 0, 0.25);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cta:active {
  transform: translateY(1px);
}

.features {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feature-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #f0f0f0;
  box-shadow: var(--shadow);
  padding: 16px 14px;
  text-align: center;
}

.feature-icon {
  font-size: 34px;
  margin-top: 6px;
}

.feature-title {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.feature-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.quote {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 0;
}
