:root {
  color-scheme: light;
  --bg: #f6f8f4;
  --surface: #ffffff;
  --surface-soft: #eef4ed;
  --ink: #16211c;
  --muted: #5e6b64;
  --line: #dbe4dc;
  --green: #136f42;
  --green-dark: #0b4f32;
  --mint: #dff4e8;
  --gold: #b98222;
  --blue: #294c73;
  --danger: #b42318;
  --shadow: 0 16px 44px rgba(16, 34, 26, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(223, 244, 232, 0.72), rgba(246, 248, 244, 0.88) 34rem),
    var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand img {
  width: 56px;
  height: 40px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 0.18rem;
}

.site-nav,
.auth-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.site-nav {
  justify-content: center;
}

.site-nav a {
  color: #36443c;
  font-weight: 650;
  font-size: 0.92rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
}

.site-nav a.active,
.site-nav a:hover {
  background: var(--surface-soft);
  color: var(--green-dark);
}

.button {
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.56rem 0.88rem;
  font-weight: 760;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 22px rgba(19, 111, 66, 0.22);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--green-dark);
}

.button.warning {
  background: #fff7e8;
  border-color: #efd09a;
  color: #79510d;
}

.button.danger {
  background: #fff1f1;
  border-color: #f2b8b8;
  color: var(--danger);
}

.view-root {
  min-height: calc(100vh - 220px);
}

.section {
  padding: clamp(2rem, 6vw, 5.5rem) clamp(1rem, 5vw, 5rem);
}

.section.tight {
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  width: fit-content;
  border: 1px solid #c6dfcf;
  background: rgba(255, 255, 255, 0.76);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.page-title h1 {
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 0.97;
  letter-spacing: 0;
  margin: 1rem 0;
}

.hero p,
.page-title p {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
  max-width: 52rem;
}

.hero-copy {
  min-width: 0;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card img {
  display: block;
  width: 100%;
  min-height: 280px;
  object-fit: cover;
}

.hero-card-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.hero-stat {
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.hero-stat:last-child {
  border-right: 0;
}

.hero-stat strong {
  display: block;
  color: var(--green-dark);
  font-size: 1.2rem;
}

.hero-stat span {
  color: var(--muted);
  font-size: 0.82rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

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

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

.card,
.tier-card,
.auth-card,
.data-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 9px 28px rgba(22, 33, 28, 0.07);
}

.card,
.tier-card,
.data-panel {
  padding: 1.2rem;
}

.card h3,
.tier-card h3,
.data-panel h2,
.data-panel h3 {
  margin: 0 0 0.5rem;
}

.card p,
.tier-card p {
  color: var(--muted);
  line-height: 1.55;
}

.tier-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.tier-card.featured {
  border-color: rgba(19, 111, 66, 0.35);
  box-shadow: 0 16px 42px rgba(19, 111, 66, 0.14);
}

.price {
  color: var(--green-dark);
  font-size: 1.55rem;
  font-weight: 850;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.52rem;
}

.feature-list li {
  color: #34483c;
  line-height: 1.42;
  padding-left: 1.35rem;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--green);
  border-radius: 999px;
}

.comparison-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 9px 28px rgba(22, 33, 28, 0.07);
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: #f5faf6;
  color: var(--green-dark);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.beta-note {
  border-left: 4px solid var(--gold);
  background: #fffaf1;
  color: #5c451d;
  padding: 1rem;
  border-radius: 8px;
  line-height: 1.55;
}

.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.68fr);
  gap: 1.5rem;
  align-items: start;
}

.auth-card {
  padding: clamp(1.2rem, 4vw, 2rem);
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: #32433a;
  font-weight: 720;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.inline-check input {
  width: 1.05rem;
  min-height: 1.05rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cedbd1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 2.65rem;
  padding: 0.65rem 0.72rem;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

.page-title {
  margin-bottom: 1.4rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.42fr);
  gap: 1.2rem;
  align-items: start;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.45rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.78rem;
}

.status-pill.blue {
  background: #e7f0fb;
  color: var(--blue);
}

.status-pill.gold {
  background: #fff1cf;
  color: #73510e;
}

.saved-list {
  display: grid;
  gap: 0.75rem;
}

.history-list {
  display: grid;
  gap: 0.75rem;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem;
  background: #fff;
}

.saved-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
}

.saved-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.saved-item p,
.muted,
.form-note {
  color: var(--muted);
}

.warning-text {
  color: var(--danger);
  font-weight: 720;
}

.saved-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.result-box {
  background: #f7fbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0.6rem;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.admin-table select {
  min-width: 9rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  width: min(420px, calc(100vw - 2rem));
  background: #15261d;
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 0.95rem 1rem;
  line-height: 1.45;
}

.launch-toggle {
  border-color: #b8d1c2;
}

.launch-scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(12, 26, 18, 0.28);
}

.launch-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(520px, 100vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 44px rgba(16, 34, 26, 0.18);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.launch-panel.open {
  transform: translateX(0);
}

.launch-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.launch-panel-header h2 {
  margin: 0.55rem 0 0;
  font-size: 1.45rem;
}

.launch-close {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 900;
}

.launch-panel-body {
  overflow: auto;
  padding: 1rem;
}

.launch-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  background: #f7fbf8;
}

.launch-progress p,
.launch-detail,
.launch-error {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.launch-error {
  color: var(--danger);
  font-weight: 720;
}

.launch-phase {
  margin-top: 1rem;
}

.launch-tracker-page {
  display: grid;
  gap: 0.3rem;
  max-width: 900px;
}

.launch-phase h3 {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
}

.launch-step {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  background: #fff;
}

.launch-step.verified {
  border-color: #a9d7ba;
  background: #effaf3;
}

.launch-step.current {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(185, 130, 34, 0.16);
}

.launch-check {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.launch-check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--green);
}

.launch-step.verified .launch-check,
.launch-step.verified .launch-step-main strong {
  color: var(--green-dark);
}

.launch-step-main {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.launch-step-main strong {
  font-size: 0.92rem;
  line-height: 1.25;
}

.launch-step-main a {
  width: fit-content;
  color: var(--blue);
  font-weight: 760;
  font-size: 0.85rem;
}

.empty-state {
  border: 1px dashed #b9cabb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 1.2rem;
}

.legal-page {
  max-width: 900px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 9px 28px rgba(22, 33, 28, 0.07);
  padding: clamp(1.2rem, 4vw, 2rem);
}

.legal-page h2 {
  margin: 1.5rem 0 0.5rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #17231d;
  color: #f6fbf7;
  padding: 1.4rem clamp(1rem, 5vw, 5rem);
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner span {
  color: #c9d8ce;
}

.footer-inner nav {
  margin-left: auto;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-inner a {
  color: #e7f4ea;
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .auth-wrap,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid,
  .grid.three,
  .grid.two,
  .grid.five,
  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner nav {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding-inline: 0.9rem;
  }

  .pricing-grid,
  .grid.three,
  .grid.two,
  .grid.five,
  .metric-row,
  .hero-card-footer {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stat:last-child {
    border-bottom: 0;
  }

  .saved-item {
    grid-template-columns: 1fr;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }

  .history-item {
    grid-template-columns: 1fr;
  }

  .launch-progress,
  .launch-step {
    grid-template-columns: 1fr;
  }

  .launch-panel-header {
    padding: 0.9rem;
  }

  .launch-panel-body {
    padding: 0.8rem;
  }
}
