:root {
  --ink: #171a1f;
  --dark: #191d22;
  --bg: #eef1f4;
  --teal: #108476;
  --teal-soft: #69d2bf;
  --orange: #c56029;
  --muted: #5c6672;
  --panel: #ffffff;
  --border: rgba(23, 26, 31, 0.1);
  --radius: 14px;
  color: var(--ink);
  font-family: "Bahnschrift", "Segoe UI Variable", "Segoe UI", "Trebuchet MS", sans-serif;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(16, 132, 118, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(197, 96, 41, 0.12), transparent 32%),
    var(--bg);
}

a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 241, 244, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #071311;
  background: var(--teal-soft);
  border-radius: 10px;
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.brand strong {
  display: block;
  font-size: 19px;
  line-height: 1;
}
.brand span {
  font-size: 12px;
  color: var(--muted);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  color: #04120f;
  background: var(--teal-soft);
}
.nav-cta:hover {
  text-decoration: none;
  background: var(--teal);
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  color: #04120f;
  background: linear-gradient(135deg, var(--teal-soft), var(--teal));
}
.btn.primary:hover {
  color: #fff;
}
.btn.ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--border);
}
.btn.block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hero */
.hero {
  padding: 64px 0 40px;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--teal);
  margin: 0 0 10px;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.05;
  margin: 0 0 16px;
}
.lead {
  font-size: 18px;
  color: #333c45;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0 18px;
  flex-wrap: wrap;
}
.hero-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}
.hero-card {
  background: var(--dark);
  border-radius: 20px;
  padding: 40px;
  display: grid;
  place-items: center;
  min-height: 260px;
  box-shadow: 0 30px 60px -30px rgba(16, 132, 118, 0.5);
}
.plate-demo {
  text-align: center;
  color: #cfe9e3;
}
.plate {
  font-size: 34px;
  letter-spacing: 6px;
  padding: 18px 26px;
  border-radius: 10px;
  background: #f4f6f5;
  color: #1a1f24;
  margin-bottom: 12px;
}
.plate.blurred {
  filter: blur(1px);
  color: #6b7681;
}

/* Sections */
section {
  padding: 48px 0;
}
.section-head {
  margin-bottom: 26px;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 8px;
}

/* Trial */
.trial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 18px 40px -32px rgba(23, 26, 31, 0.6);
}
.dropzone {
  border: 2px dashed rgba(16, 132, 118, 0.4);
  border-radius: 12px;
  padding: 34px 18px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  background: rgba(105, 210, 191, 0.06);
}
.dropzone:hover,
.dropzone.dragover {
  border-color: var(--teal);
  background: rgba(105, 210, 191, 0.14);
}
.dz-icon {
  font-size: 30px;
  color: var(--teal);
}
.dz-file {
  margin-top: 8px;
  font-weight: 600;
  color: var(--teal);
  word-break: break-all;
}
.turnstile {
  margin: 14px 0 0;
}
.turnstile:empty {
  display: none;
}
#start-btn {
  margin-top: 16px;
}
.error {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(197, 41, 41, 0.1);
  color: #a12626;
  font-size: 14px;
}

/* Progress */
.progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.progress-head span {
  color: var(--muted);
}
.progress-head strong {
  font-size: 26px;
}
.progress-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(23, 26, 31, 0.08);
  overflow: hidden;
}
#progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-soft), var(--teal));
  transition: width 0.3s ease;
}
#status-message {
  margin: 12px 0;
}
.result-box {
  margin-top: 12px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(105, 210, 191, 0.12);
  border: 1px solid rgba(16, 132, 118, 0.25);
}
.result-box p:first-child {
  margin-top: 0;
  font-weight: 600;
}
.log-details {
  margin-top: 16px;
  font-size: 13px;
}
.log-list {
  max-height: 160px;
  overflow: auto;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.log-line {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(23, 26, 31, 0.04);
  color: #3a434d;
}
.log-line.warning {
  color: #9a6a1f;
}
.log-line.error {
  color: #a12626;
}
.log-line.success {
  color: var(--teal);
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.plan {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.plan.featured {
  border-color: var(--teal);
  box-shadow: 0 24px 50px -30px rgba(16, 132, 118, 0.6);
}
.ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #04120f;
  background: var(--teal-soft);
}
.plan h3 {
  margin: 0 0 6px;
}
.price {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 14px;
}
.price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #333c45;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  margin-top: 20px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

@media (max-width: 860px) {
  .hero-inner,
  .trial-grid,
  .plans {
    grid-template-columns: 1fr;
  }
  .hero-card {
    order: -1;
  }
  .site-nav a:not(.nav-cta) {
    display: none;
  }
}

/* ---- Account / auth page ---- */
.account-main {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.account-card {
  width: min(440px, 100%);
}
.account-view h1 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 28px);
}
.account-email {
  font-weight: 600;
  word-break: break-all;
}

.field {
  display: block;
  margin: 14px 0;
}
.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--muted);
}
.field input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 132, 118, 0.15);
}

.tabs {
  display: flex;
  gap: 6px;
  margin: 16px 0;
  background: rgba(23, 26, 31, 0.05);
  border-radius: 10px;
  padding: 4px;
}
.tab {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}
.tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(23, 26, 31, 0.12);
}

.sub-state {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  margin: 8px 0 12px;
}
.sub-state.ok {
  color: #04120f;
  background: var(--teal-soft);
}
.sub-state.pending {
  color: #7a4d16;
  background: rgba(197, 96, 41, 0.16);
}

#logout-btn {
  margin-top: 16px;
}
