* { box-sizing: border-box; }

:root {
  --bg: #eef4fb;
  --surface: rgba(255, 255, 255, 0.94);
  --line: rgba(20, 63, 111, 0.1);
  --text: #17355a;
  --muted: #5a728c;
  --primary: #ff6200;
  --primary-soft: #fff1e5;
  --accent: #245c9f;
  --accent-strong: #1c497f;
  --shadow: 0 18px 40px rgba(20, 47, 81, 0.1);
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at top left, rgba(223, 240, 61, 0.16), transparent 18%),
    linear-gradient(180deg, #f7faff 0%, var(--bg) 100%);
  color: var(--text);
}

a { color: #1f5da6; text-decoration: none; }

.wrap { width: min(1140px, calc(100% - 2rem)); margin: 0 auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(36, 92, 159, 0.97) 0%, rgba(28, 73, 127, 0.97) 100%);
  color: #fff;
  padding: 16px 0;
  box-shadow: 0 10px 28px rgba(11, 32, 56, 0.16);
  backdrop-filter: blur(12px);
}

.header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.header nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.header a, .header button {
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.page { padding: 34px 0 48px; }

.card,
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 24px;
  backdrop-filter: blur(12px);
}

.card-accent {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
}

.card-accent .pill { background: rgba(255,255,255,.16); color: #fff; }
.card-accent .button { background: #fff; color: var(--accent-strong); }

.checkout-note {
  margin: 0;
  padding: 12px 14px;
  background: #fff5ec;
  border: 1px solid #ffd8bb;
  color: #9c4a00;
  border-radius: 14px;
}

.grid { display: grid; gap: 20px; }
.metrics { grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); margin-bottom: 22px; }
.two-col { grid-template-columns: 1.45fr .95fr; }

.metric strong { display: block; color: var(--primary); font-size: 28px; margin-top: 8px; }
.stack-form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; }

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d7dfea;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(36, 92, 159, 0.35);
  box-shadow: 0 0 0 4px rgba(36, 92, 159, 0.12);
  background: #fff;
}

button.primary,
.button {
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 98, 0, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

button.secondary,
.button.secondary {
  border: none;
  border-radius: 999px;
  background: #dde6f4;
  color: var(--text);
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
}

button.primary:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 98, 0, 0.24);
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #e4ebf5; vertical-align: top; }
.flash { margin-bottom: 18px; padding: 14px 16px; background: #fff5ec; border: 1px solid #ffd8bb; color: #9c4a00; border-radius: 14px; }
.flash-error { background: #fff0f0; border-color: #f5b8b8; color: #8a1f1f; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.list { display: grid; gap: 14px; }
.pill { display: inline-block; background: #edf3ff; color: #1f5da6; padding: 6px 10px; border-radius: 999px; font-size: 13px; }

.card h1,
.card h2,
.card h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
}

.card p,
.metric p,
td,
th {
  line-height: 1.7;
}

.lead-copy {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
}

.subtle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.top-gap {
  margin-top: 16px;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid rgba(20, 63, 111, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
}

.table-shell table {
  min-width: 640px;
}

@media (max-width: 920px) {
  .two-col,
  .header .wrap {
    grid-template-columns: 1fr;
  }

  .header .wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}
