:root {
  --ink: #172026;
  --muted: #66737f;
  --line: #dfe6ec;
  --panel: #ffffff;
  --soft: #f5f8fb;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --danger: #b42318;
  --nav: #101820;
  --gold: #d99b2b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(18px, calc((100vw - 1180px) / 2));
  background: var(--nav);
  color: #fff;
}

.brand {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.topbar-actions {
  margin: 0;
}

.landing {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 380px;
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 150px);
}

.landing-showcase {
  min-height: 610px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.96), rgba(15, 118, 110, 0.78)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1400&q=80") center/cover;
  border-radius: 8px;
}

.landing-showcase h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.screenshot-stack {
  position: relative;
  min-height: 290px;
  margin-top: 34px;
}

.screenshot {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.large-shot {
  width: min(100%, 710px);
  padding: 18px;
}

.small-shot {
  position: absolute;
  right: 8px;
  bottom: 0;
  width: 260px;
  padding: 18px;
}

.shot-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.shot-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c8d3dc;
}

.shot-head,
.shot-stats {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.shot-head {
  align-items: center;
  margin-bottom: 14px;
}

.shot-head small,
.shot-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.shot-head strong {
  display: block;
  font-size: 28px;
}

.shot-head button {
  min-height: 34px;
  font-size: 12px;
}

.shot-stats {
  margin-bottom: 18px;
}

.shot-stats div {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
}

.shot-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}

.shot-table {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.65fr;
  gap: 10px 12px;
}

.shot-table span,
.shot-card-line,
.shot-card-button {
  height: 12px;
  border-radius: 999px;
  background: #dbe4ea;
}

.shot-table span:nth-child(3n + 1) {
  background: #b8c8d3;
}

.shot-card-line {
  margin-bottom: 12px;
}

.shot-card-line.strong {
  width: 68%;
  height: 18px;
  background: #8da3b1;
}

.shot-card-button {
  width: 58%;
  height: 34px;
  margin-top: 18px;
  background: var(--accent);
}

.login-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(23, 32, 38, 0.08);
}

.login-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.form-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 28px;
  align-items: stretch;
  min-height: 500px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.96), rgba(15, 118, 110, 0.78)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1400&q=80") center/cover;
  border-radius: 8px;
}

.hero h1,
.page-head h1,
.narrow h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-text {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-grid,
.grid {
  display: grid;
  gap: 18px;
}

.login-grid {
  align-content: center;
}

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

.panel,
.signup-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(23, 32, 38, 0.06);
}

.panel {
  padding: 24px;
  margin-bottom: 18px;
}

.panel h2,
.signup-band h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.stack,
.settings-grid,
.signup-form,
.profile-grid {
  display: grid;
  gap: 14px;
}

.settings-grid,
.signup-form,
.profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signup-band {
  margin-top: 24px;
  padding: 26px;
}

label {
  display: grid;
  gap: 7px;
  color: #3e4c58;
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  height: 44px;
  border: 1px solid #cfd8e1;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

button,
.link-button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

button:hover,
.link-button:hover {
  background: var(--accent-dark);
}

.secondary {
  background: #243746;
}

.ghost-button {
  min-height: 36px;
  color: var(--ink);
  background: #eef4f7;
}

.ghost-button:hover {
  background: #dbe7ec;
}

.danger {
  min-height: 36px;
  background: #fee4e2;
  color: var(--danger);
}

.danger:hover {
  background: #fecdca;
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0 22px;
}

.page-head h1 {
  color: var(--ink);
  font-size: clamp(32px, 4vw, 48px);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: #0b5f59;
  background: #dff4ef;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-row h2 {
  margin: 0;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.summary-strip div {
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.summary-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #52616f;
  font-size: 12px;
  text-transform: uppercase;
}

code {
  font-size: 12px;
  white-space: nowrap;
}

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

.alert {
  border: 1px solid #fedf89;
  border-radius: 6px;
  padding: 12px;
  color: #7a2e0e;
  background: #fffaeb;
}

.method-list {
  display: grid;
  gap: 12px;
}

.method-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.method-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.method-actions,
.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inline-form input {
  width: 160px;
}

.right {
  text-align: right;
}

.narrow,
.payment-panel {
  max-width: 760px;
  margin-inline: auto;
}

.tenant-login {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
}

.tenant-panel {
  width: min(100%, 480px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(23, 32, 38, 0.08);
}

.tenant-panel h1 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.05;
}

.tokenizer-box {
  min-height: 280px;
  border: 1px dashed #b8c6d1;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
  background: #fbfdff;
}

.form-message {
  min-height: 24px;
  color: var(--danger);
  font-weight: 700;
}

@media (max-width: 880px) {
  main {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .hero,
  .landing,
  .two,
  .settings-grid,
  .signup-form,
  .profile-grid,
  .summary-strip {
    grid-template-columns: 1fr;
  }

  .landing {
    align-items: stretch;
  }

  .landing-showcase {
    min-height: auto;
    padding: 28px;
  }

  .screenshot-stack {
    min-height: auto;
  }

  .small-shot {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .hero-copy {
    min-height: 360px;
    padding: 28px;
  }

  .page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .method-card,
  .method-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
