:root {
  --bg: #efe7da;
  --panel: #fffdf8;
  --panel-strong: #103c3d;
  --panel-soft: #fff5d9;
  --accent: #f2b544;
  --text: #172324;
  --muted: #627071;
  --line: rgba(23, 35, 36, 0.12);
  --ok: #1e7c55;
  --danger: #b5414d;
  --shadow: 0 18px 48px rgba(16, 60, 61, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(242, 181, 68, 0.2), transparent 24%),
    linear-gradient(180deg, #faf6ee 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.hidden {
  display: none !important;
}

.shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 80px);
}

.billing-shell {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-block,
.auth-card,
.billing-card,
.card,
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.hero-block {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.92)),
    linear-gradient(160deg, #fbe8b8 0%, #fffdf8 52%, #dcebea 100%);
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  background: #103c3d;
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

h1,
h2,
h3,
.value {
  font-family: "Chivo", sans-serif;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.8rem, 5.8vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-copy {
  max-width: 680px;
  font-size: 1.14rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 20px;
}

.proof-card,
.feature-card,
.auth-plan {
  border: 1px solid rgba(16, 60, 61, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.proof-card {
  padding: 18px;
}

.proof-card strong {
  display: block;
  font-family: "Chivo", sans-serif;
  font-size: 1.75rem;
  margin-bottom: 6px;
}

.proof-card span {
  color: var(--muted);
  line-height: 1.5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.feature-card {
  padding: 18px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.15;
}

.trust-grid,
.faq-list,
.billing-assurance {
  display: grid;
  gap: 14px;
}

.trust-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.trust-card,
.faq-item,
.assurance-card {
  border: 1px solid rgba(16, 60, 61, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  padding: 18px;
}

.trust-card h3,
.faq-head h3 {
  margin: 0 0 8px;
}

.faq-block {
  margin-top: 18px;
}

.faq-head {
  margin-bottom: 12px;
}

.faq-item strong,
.assurance-card strong {
  display: block;
  font-family: "Chivo", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.hero-list span,
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(16, 60, 61, 0.1);
  border-radius: 999px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  color: var(--panel-strong);
  font-weight: 700;
}

.plan-box {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--panel-soft) 0%, white 100%);
  padding: 20px;
  margin: 20px 0 14px;
}

.plan-box h3 {
  margin: 0;
  font-size: 2rem;
}

.billing-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.billing-points span {
  border: 1px solid rgba(16, 60, 61, 0.1);
  border-radius: 999px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  color: var(--panel-strong);
  font-weight: 700;
}

.billing-assurance {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.auth-card,
.billing-card,
.card,
.stat {
  padding: 22px;
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 28px;
  padding-bottom: 28px;
}

.auth-plan {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(242, 181, 68, 0.12) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.auth-plan strong {
  display: block;
  font-family: "Chivo", sans-serif;
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.auth-plan span:not(.pill) {
  color: var(--muted);
}

.auth-note {
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}

.badge-soft {
  background: rgba(16, 60, 61, 0.08);
}

.billing-card {
  width: min(760px, 100%);
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab,
.button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.tab {
  padding: 12px 16px;
  background: #f2ede3;
  color: var(--muted);
  font-weight: 700;
}

.tab.active {
  background: var(--panel-strong);
  color: white;
}

.auth-form,
.layout,
.grid {
  display: grid;
  gap: 18px;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  background: white;
}

input:focus,
select:focus {
  outline: 2px solid rgba(242, 181, 68, 0.35);
  border-color: rgba(16, 60, 61, 0.24);
}

.button {
  padding: 13px 18px;
  font-weight: 700;
}

.button.primary {
  background: var(--panel-strong);
  color: white;
}

.button.light {
  background: var(--accent);
  color: #4a3610;
}

.button.ghost {
  background: transparent;
  border: 1px solid rgba(16, 60, 61, 0.16);
  color: var(--panel-strong);
}

.feedback {
  margin: 0;
  min-height: 24px;
  color: var(--muted);
}

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

.feedback.error {
  color: var(--danger);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.topbar h2,
.section-head h3 {
  margin: 0;
}

.topbar-copy h2 {
  font-size: 2rem;
}

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

.dashboard-banner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(130deg, rgba(242, 181, 68, 0.18), rgba(255, 255, 255, 0.88) 45%),
    white;
  box-shadow: var(--shadow);
}

.subscription-banner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid rgba(16, 60, 61, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(16, 60, 61, 0.1), rgba(255, 255, 255, 0.95) 44%),
    linear-gradient(180deg, rgba(255, 245, 217, 0.95), white);
  box-shadow: var(--shadow);
}

.subscription-banner h3,
.billing-highlight-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.16;
}

.subscription-banner-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.dashboard-banner h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.banner-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.banner-points span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(16, 60, 61, 0.1);
  border-radius: 999px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--panel-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.billing-highlight {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-bottom: 18px;
}

.billing-highlight-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.84);
}

.billing-highlight-card.emphasis {
  background:
    linear-gradient(180deg, rgba(242, 181, 68, 0.12), rgba(255, 255, 255, 0.95));
}

.billing-checklist {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text);
  display: grid;
  gap: 10px;
}

.billing-checklist li {
  line-height: 1.45;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -28px;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: rgba(242, 181, 68, 0.18);
  transform: rotate(16deg);
}

.value {
  margin: 8px 0 4px;
  font-size: 2rem;
}

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

.section-head {
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .full,
.form-grid button {
  grid-column: 1 / -1;
}

.accent {
  background: linear-gradient(180deg, var(--panel-soft) 0%, var(--panel) 100%);
}

.stack,
.summary-stack {
  display: grid;
  gap: 12px;
}

.trip-item,
.product-item,
.sale-item,
.summary-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
}

.trip-item header,
.product-item header,
.sale-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.trip-item h4,
.product-item h4,
.sale-item h4 {
  margin: 0 0 6px;
  font-family: "Chivo", sans-serif;
  font-size: 1.08rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.pill.open {
  background: rgba(30, 124, 85, 0.12);
  color: var(--ok);
}

.pill.closed {
  background: rgba(181, 65, 77, 0.12);
  color: var(--danger);
}

.inline-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.inline-metrics strong,
.summary-item strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.small {
  padding: 10px 12px;
  font-size: 0.84rem;
}

.danger {
  color: var(--danger);
  border-color: rgba(181, 65, 77, 0.22);
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 18px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .auth-shell,
  .hero-proof,
  .feature-grid,
  .trust-grid,
  .billing-assurance,
  .billing-highlight,
  .dashboard-banner,
  .stats,
  .two,
  .inline-metrics {
    grid-template-columns: 1fr;
  }

  .plan-box {
    flex-direction: column;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-topline,
  .auth-plan,
  .subscription-banner,
  .dashboard-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .subscription-banner-actions {
    width: 100%;
    justify-items: flex-start;
  }

  .banner-points {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 18px, 1220px);
    padding-top: 18px;
  }

  .hero-block,
  .auth-card,
  .billing-card,
  .card,
  .stat {
    border-radius: 20px;
    padding: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }
}
