:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #65716e;
  --line: #dce7e2;
  --soft: #eef6f3;
  --wash: #f8fbfa;
  --card: #ffffff;
  --brand: #0b6b61;
  --brand-strong: #07524b;
  --brand-soft: #d9f1eb;
  --gold: #dca94b;
  --danger: #9f3f3f;
  --shadow: 0 22px 70px rgba(14, 51, 46, 0.13);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(217, 241, 235, 0.9) 0, rgba(248, 251, 250, 0) 340px),
    var(--wash);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 156px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(11, 107, 97, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(24, 33, 31, 0.08);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.legal-page {
  background: var(--wash);
}

.legal-main {
  max-width: 820px;
  padding: 72px 0;
}

.legal-main h1 {
  font-size: clamp(42px, 6vw, 68px);
}

.legal-main section {
  margin-top: 32px;
}

.legal-main h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.legal-main p,
.legal-main li {
  color: var(--muted);
}

.legal-main a {
  color: var(--brand-strong);
  font-weight: 850;
}

.contact-main {
  min-height: calc(100vh - 180px);
}

.contact-email {
  font-size: 24px;
  font-weight: 900;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 84px);
  padding: 32px 0 56px;
}

.compact-hero {
  min-height: auto;
  padding: 64px 0 42px;
}

.hero-copy {
  max-width: 610px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.subhead {
  max-width: 560px;
  color: #40504d;
  font-size: 19px;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 28px;
}

.trust-row {
  margin-top: 22px;
}

.trust-row span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(11, 107, 97, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
}

.button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button {
  min-height: 48px;
  padding: 0 20px;
}

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

.button.primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 12px 26px rgba(11, 107, 97, 0.22);
}

.button.primary:hover {
  background: var(--brand-strong);
}

.button.secondary {
  background: var(--ink);
  color: white;
}

.button.ghost {
  border: 1px solid rgba(11, 107, 97, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-strong);
}

.button.full {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
  transform: none;
}

.small-button {
  min-height: 34px;
  padding: 0 12px;
  background: var(--soft);
  color: var(--brand-strong);
  font-size: 13px;
}

.small-button.danger {
  background: #f6e6e3;
  color: var(--danger);
}

.small-button.dark {
  background: var(--ink);
  color: white;
}

.button[aria-pressed="true"],
.small-button[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.hero-media {
  position: relative;
  margin: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1.1 / 1;
  border: 1px solid rgba(11, 107, 97, 0.12);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-media figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 20px;
  align-items: start;
  padding: 38px 0 66px;
}

.panel {
  border: 1px solid rgba(11, 107, 97, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 45px rgba(14, 51, 46, 0.08);
}

.scan-panel,
.result-panel,
.chart-panel,
.entries-panel,
.waitlist,
.account-card,
.account-status-card {
  padding: 24px;
}

.section-heading {
  margin-bottom: 22px;
}

.upload-box {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 28px;
  border: 1.5px dashed rgba(11, 107, 97, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(217, 241, 235, 0.56), rgba(255, 255, 255, 0.88)),
    var(--card);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.upload-box strong {
  color: var(--ink);
  font-size: 18px;
}

.upload-icon {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border: 2px solid var(--brand);
  border-radius: 50%;
}

.upload-icon::before,
.upload-icon::after {
  position: absolute;
  content: "";
  left: 50%;
  top: 50%;
  background: var(--brand);
  transform: translate(-50%, -50%);
}

.upload-icon::before {
  width: 22px;
  height: 2px;
}

.upload-icon::after {
  width: 2px;
  height: 22px;
}

.preview-wrap {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.preview-wrap.is-empty {
  display: none;
}

.preview-wrap img {
  width: 100%;
  max-height: 300px;
  border-radius: var(--radius);
  object-fit: cover;
}

.photo-check {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfa;
}

.photo-check strong {
  color: var(--ink);
  font-size: 14px;
}

.photo-check span,
.photo-check p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.photo-check.is-detected {
  border-color: rgba(11, 107, 97, 0.32);
  background: #eff8f5;
}

.photo-check.is-unclear {
  border-color: rgba(186, 121, 37, 0.34);
  background: #fff8ec;
}

.photo-check.is-rejected {
  border-color: rgba(180, 54, 54, 0.32);
  background: #fff3f1;
}

.scan-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

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

label,
legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

select,
textarea,
input[type="email"],
input[type="text"] {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  outline: none;
}

select,
input[type="email"],
input[type="text"] {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

.checkbox-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.checkbox-line input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--brand);
}

select:focus,
textarea:focus,
input[type="email"]:focus,
input[type="text"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(11, 107, 97, 0.1);
}

.choice-field {
  margin: 0;
  padding: 0;
  border: 0;
}

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

.choice-grid label {
  display: grid;
  gap: 3px;
  min-height: 86px;
  align-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
}

.choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-grid span {
  font-size: 14px;
}

.choice-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.choice-grid label:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.result-panel {
  position: sticky;
  top: 86px;
}

.meter {
  position: relative;
  height: 12px;
  margin: 24px 0;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #b9dfd4, #e8d18e, #d9866f);
}

.meter span {
  position: absolute;
  top: -6px;
  left: 0;
  width: 24px;
  height: 24px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 5px 15px rgba(14, 51, 46, 0.22);
  transform: translateX(-50%);
  transition: left 260ms ease;
}

.result-number {
  display: grid;
  gap: 2px;
}

.result-number strong {
  font-size: 38px;
  line-height: 1;
}

.result-number span,
.result-copy,
.microcopy,
.entries,
.steps p,
.pricing-heading p,
.price-card p,
.price-card ul,
.monetization-box p,
.kit-section p,
.kit-list {
  color: var(--muted);
}

.result-copy {
  margin-top: 18px;
}

.insight-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.insight-list div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #41504d;
  font-size: 14px;
  font-weight: 700;
}

.dot {
  display: inline-block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.monetization-box {
  display: grid;
  gap: 8px;
  margin: 22px 0 14px;
  padding: 14px;
  border: 1px solid rgba(220, 169, 75, 0.45);
  border-radius: var(--radius);
  background: #fff8ea;
}

.monetization-box strong {
  font-size: 14px;
}

.monetization-box p {
  margin: 0;
  font-size: 13px;
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.has-plan .monetization-box {
  border-color: rgba(11, 107, 97, 0.2);
  background: var(--soft);
}

.microcopy {
  margin: 14px 0 0;
  font-size: 12px;
}

.account-section,
.how-section,
.trust-section,
.faq-section,
.pricing-section,
.kit-section {
  padding: 54px 0;
}

.trust-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 20px;
}

.trust-card,
.faq-grid article {
  padding: 20px;
  border: 1px solid rgba(11, 107, 97, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.trust-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
}

.trust-card p,
.faq-grid p {
  margin: 0;
  color: var(--muted);
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  gap: 20px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: 20px;
  align-items: stretch;
}

.account-layout[hidden],
.account-dashboard[hidden] {
  display: none;
}

.account-card,
.account-status-card {
  display: grid;
  gap: 16px;
}

.account-card strong,
.account-status-card strong {
  font-size: 22px;
}

.account-card p,
.account-status-card p {
  margin: 0;
  color: var(--muted);
}

.account-status-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 750;
}

.account-dashboard {
  margin-top: 20px;
}

.chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(28px, 1fr));
  align-items: end;
  min-height: 250px;
  gap: 10px;
  padding-top: 26px;
}

.bar-wrap {
  display: grid;
  gap: 8px;
  align-items: end;
  min-height: 218px;
}

.bar {
  position: relative;
  min-height: 8px;
  border-radius: 7px 7px 3px 3px;
  background: var(--brand);
}

.bar.elevated {
  background: var(--gold);
}

.bar.high {
  background: var(--danger);
}

.bar-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.chart .empty-state {
  grid-column: 1 / -1;
}

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

.entries {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.entry {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.entry strong {
  color: var(--ink);
}

.entry small {
  color: var(--muted);
  font-weight: 700;
}

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

.steps div {
  padding: 22px;
  border: 1px solid rgba(11, 107, 97, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.steps span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 900;
}

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

.faq-grid h3 {
  margin-bottom: 8px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 72px;
  padding: 28px;
  border: 1px solid rgba(11, 107, 97, 0.14);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
}

.cta-band p {
  max-width: 620px;
  margin-bottom: 0;
  color: #d8e8e4;
}

.pricing-heading {
  max-width: 680px;
}

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

.price-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  min-height: 390px;
  padding: 22px;
  border: 1px solid rgba(11, 107, 97, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 45px rgba(14, 51, 46, 0.07);
}

.price-card.featured {
  border-color: rgba(24, 33, 31, 0.28);
  background: var(--ink);
  color: white;
}

.price-card h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.price-card p {
  margin-bottom: 0;
}

.price-card.featured p,
.price-card.featured ul {
  color: #d8e8e4;
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.featured .plan-tag {
  background: var(--gold);
  color: var(--ink);
}

.price {
  font-size: 42px;
  line-height: 1;
}

.price-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  font-weight: 750;
}

.pricing-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.kit-section {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.62fr);
  gap: 24px;
  align-items: center;
}

.kit-copy {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
}

.kit-copy .eyebrow,
.kit-copy p,
.kit-list {
  color: #bdd8d1;
}

.kit-list {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding-left: 20px;
}

.waitlist {
  display: grid;
  gap: 16px;
}

.waitlist strong {
  font-size: 22px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--brand-strong);
}

.consent-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(680px, calc(100% - 32px));
  padding: 14px;
  border: 1px solid rgba(24, 33, 31, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(14, 51, 46, 0.18);
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.consent-banner div {
  display: flex;
  gap: 8px;
}

@media (max-width: 920px) {
  .hero,
  .app-shell,
  .history-layout,
  .account-layout,
  .trust-section,
  .faq-grid,
  .pricing-grid,
  .kit-section {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .result-panel {
    position: static;
  }

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

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

@media (max-width: 640px) {
  main,
  .topbar,
  .footer {
    width: min(100% - 24px, var(--max));
  }

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

  .plan-pill {
    max-width: 132px;
    white-space: normal;
  }

  .nav {
    display: none;
  }

  h1 {
    font-size: 48px;
  }

  .field-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .scan-panel,
  .result-panel,
  .chart-panel,
  .entries-panel,
  .account-card,
  .account-status-card,
  .waitlist,
  .kit-copy {
    padding: 18px;
  }

  .hero-media img {
    aspect-ratio: 4 / 3;
  }

  .chart {
    gap: 6px;
  }

  .consent-banner {
    left: 12px;
    right: 12px;
    grid-template-columns: 1fr;
    width: auto;
  }

  .consent-banner div {
    justify-content: stretch;
  }

  .consent-banner .small-button {
    flex: 1;
  }

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