/* OrbytPay home — white & gold, mobile-first */

:root {
  --h-bg: #fffcf7;
  --h-panel: #ffffff;
  --h-panel-2: #faf6ee;
  --h-line: #e8dfc8;
  --h-ink: #1a1612;
  --h-muted: #6b6258;
  --h-accent: #c9a227;
  --h-accent-2: #9a7b1a;
  --h-green: #1a7a4a;
  --h-safe-b: env(safe-area-inset-bottom, 0px);
  --h-safe-t: env(safe-area-inset-top, 0px);
}

.home { min-height: 100dvh; background: var(--h-bg); color: var(--h-ink); display: flex; flex-direction: column; }
.sign-mode-btn {
  flex: 1; font-size: 12.5px; font-weight: 700; padding: 8px 10px; border-radius: 999px;
  border: 1px solid var(--h-line); background: var(--h-panel-2); color: var(--h-muted); cursor: pointer; font-family: inherit;
}
.sign-mode-btn.active { background: linear-gradient(135deg, #d4af37, #c9a227); color: #fff; border-color: var(--h-accent); }

.home-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + var(--h-safe-t)) 20px 14px;
  border-bottom: 1px solid var(--h-line);
  background: rgba(255,252,247,.94);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 40;
}
.home-header .brand {
  font-weight: 800; font-size: 17px; letter-spacing: -.03em;
  display: flex; align-items: center; gap: 9px; color: var(--h-ink); text-decoration: none;
}
.home-header .orb {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--h-ink); position: relative;
}
.home-header .orb::after {
  content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: var(--h-accent); top: -3px; right: -2px;
}
.home-header .links { display: flex; gap: 14px; font-size: 13px; font-weight: 600; }
.home-header .links a { color: var(--h-muted); text-decoration: none; }
.home-header .links a:hover { color: var(--h-ink); }

.home-main {
  flex: 1;
  display: flex; flex-direction: column;
  max-width: 480px; width: 100%; margin: 0 auto;
  padding: 24px 20px calc(32px + var(--h-safe-b));
}

.home-hero { margin-bottom: 24px; }
.home-hero h1 {
  font-size: clamp(26px, 7vw, 34px); letter-spacing: -.04em; line-height: 1.12;
  margin: 0 0 10px; font-weight: 800;
}
.home-hero p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--h-muted); }
.home-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.home-pills span {
  font-size: 11px; font-weight: 600; padding: 6px 11px; border-radius: 999px;
  background: var(--h-panel-2); border: 1px solid var(--h-line); color: var(--h-muted);
}

.tab-bar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--h-panel-2); border-radius: 14px; padding: 4px;
  margin-bottom: 20px; border: 1px solid var(--h-line);
}
.tab-bar button {
  border: none; background: transparent; color: var(--h-muted);
  font: inherit; font-size: 15px; font-weight: 600;
  padding: 14px 12px; border-radius: 11px; cursor: pointer;
  min-height: 48px; transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.tab-bar button.active { background: linear-gradient(135deg, #d4af37, #c9a227); color: #fff; }

.home-card {
  background: var(--h-panel); border: 1px solid var(--h-line);
  border-radius: 20px; padding: 22px 20px 24px;
  box-shadow: 0 8px 32px rgba(26, 22, 18, .06);
}
.home-card h2 { margin: 0 0 4px; font-size: 18px; }
.home-card .card-sub { font-size: 13.5px; color: var(--h-muted); margin: 0 0 20px; line-height: 1.5; }

.home-card label { display: block; font-size: 13px; color: var(--h-muted); margin-bottom: 6px; font-weight: 500; }
.home-card input, .home-card select {
  width: 100%; box-sizing: border-box;
  background: var(--h-panel-2); border: 1px solid var(--h-line); color: var(--h-ink);
  border-radius: 12px; padding: 14px 14px; font-size: 16px; margin-bottom: 14px;
  min-height: 48px;
}
.home-card input:focus, .home-card select:focus {
  border-color: var(--h-accent); outline: none;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .2);
}

.btn-home {
  width: 100%; min-height: 52px; border-radius: 14px; border: none;
  background: linear-gradient(135deg, #d4af37, #c9a227); color: #fff;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  margin-top: 6px; transition: opacity .15s, transform .08s;
  -webkit-tap-highlight-color: transparent;
}
.btn-home:active { transform: scale(.98); }
.btn-home:disabled { opacity: .45; cursor: not-allowed; }
.btn-home.green { background: var(--h-green); color: #fff; }

.home-err {
  background: var(--danger-soft); border: 1px solid #f0c4c0;
  color: var(--danger); border-radius: 12px; padding: 12px 14px; font-size: 14px;
  margin-bottom: 14px; display: none; line-height: 1.45;
}
.home-err.show { display: block; }

.home-panel { display: none; }
.home-panel.active { display: block; }

.home-foot {
  text-align: center; font-size: 12.5px; color: var(--h-muted);
  margin-top: 20px; line-height: 1.6; padding: 0 8px;
}

.success-panel { text-align: center; }
.success-panel .check {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--success-soft); border: 2px solid var(--h-green);
  color: var(--h-green); font-size: 30px; display: flex; align-items: center; justify-content: center;
}
.key-box {
  background: var(--h-panel-2); border: 1px solid var(--h-line); border-radius: 12px;
  padding: 14px 14px 14px; margin: 12px 0; text-align: left; position: relative;
}
.key-box .lbl {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--h-muted); margin-bottom: 6px; font-family: var(--mono);
}
.key-box code { font-family: var(--mono); font-size: 12px; word-break: break-all; display: block; padding-right: 56px; }
.key-box button {
  position: absolute; top: 12px; right: 10px; border: none;
  background: var(--h-line); color: var(--h-accent-2);
  font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; cursor: pointer;
  min-height: 32px;
}
.warn-box {
  background: var(--warn-soft); border: 1px solid #e8d4a8;
  color: var(--warn); border-radius: 12px; padding: 12px 14px; font-size: 13px;
  margin: 14px 0; text-align: left; line-height: 1.5;
}

@media (min-width: 720px) {
  .home-main { max-width: 920px; padding: 40px 32px 60px; }
  .home-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .home-hero { margin-bottom: 0; padding-top: 20px; }
  .home-hero h1 { font-size: 38px; }
  .home-form-col { max-width: 420px; }
}
