:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-soft: #eef3f0;
  --text: #070b0a;
  --muted: #53605b;
  --border: #d8e1dc;
  --primary: #00875a;
  --primary-strong: #006b47;
  --primary-soft: #d9f7e8;
  --ink: #050806;
  --shadow: 0 18px 44px rgba(5, 8, 6, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.site-shell {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 230, 225, 0.88);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.section,
.footer__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 850;
  line-height: 1.1;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  display: inline-flex;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  box-shadow: 0 12px 26px rgba(5, 8, 6, 0.18);
  overflow: hidden;
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__copy {
  display: grid;
  gap: 4px;
}

.brand__copy strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a,
.nav-button,
.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 800;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a.button {
  color: white;
}

.site-nav a:hover,
.nav-button:hover {
  background: var(--surface-soft);
  color: var(--primary);
  text-decoration: none;
}

.site-nav a.button:hover {
  background: var(--primary-strong);
  color: white;
}

.logout-form {
  margin: 0;
}

.nav-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 24px rgba(0, 135, 90, 0.18);
}

.button:hover {
  background: var(--primary-strong);
  color: white;
  text-decoration: none;
}

.button:disabled,
.button[disabled] {
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}

.button--secondary {
  background: var(--surface);
  color: var(--primary);
  box-shadow: none;
}

.button--secondary:hover {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.button--wide {
  width: 100%;
}

.hero {
  display: grid;
  align-items: center;
  padding: 34px 0 30px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  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, 8vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 590px;
  color: var(--muted);
  font-size: 19px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 14px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  margin-bottom: 26px;
  border: 1px solid #151a18;
  border-radius: 8px;
  background: #050806;
  color: white;
  padding: 8px 15px 8px 12px;
  box-shadow: 0 12px 28px rgba(5, 8, 6, 0.18);
}

.store-badge:hover {
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.store-badge img {
  width: 26px;
  height: 30px;
}

.store-badge small,
.store-badge strong {
  display: block;
  line-height: 1.05;
}

.store-badge small {
  color: #c9d2ce;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.store-badge strong {
  color: white;
  font-size: 19px;
  font-weight: 900;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 540px;
}

.metric {
  min-height: 84px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
}

.metric strong {
  display: block;
  font-size: 22px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 135, 90, 0.12), transparent 38%),
    linear-gradient(145deg, #080d0b 0%, #19211e 48%, #ffffff 49%, #f2f5f3 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual--screenshots {
  display: block;
}

.screenshot-phone {
  position: absolute;
  width: min(330px, 58%);
  border: 12px solid #050806;
  border-radius: 44px;
  background: #f9fbfa;
  box-shadow: 0 34px 70px rgba(17, 24, 32, 0.24);
  overflow: hidden;
}

.screenshot-phone img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  object-position: center top;
}

.screenshot-phone--primary {
  right: 9%;
  bottom: -5%;
  z-index: 2;
  transform: rotate(5deg);
}

.screenshot-phone--secondary {
  left: 8%;
  top: 9%;
  z-index: 1;
  opacity: 0.95;
  transform: rotate(-7deg);
}

.phone-top {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 3;
  width: 92px;
  height: 24px;
  border-radius: 999px;
  background: #050806;
  transform: translateX(-50%);
}

.section {
  padding: 54px 0;
}

.section--tight {
  padding-top: 12px;
}

.section h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.section__intro {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
}

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

.feature,
.auth-panel,
.security-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature {
  padding: 20px;
}

.feature__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 950;
}

.feature h3 {
  margin: 16px 0 8px;
}

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

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 135, 90, 0.1), transparent 46%),
    var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}

.contact-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.contact-panel .section__intro {
  margin-bottom: 0;
}

.contact-panel__button {
  flex: 0 0 auto;
}

.auth-layout {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 440px);
  align-items: center;
  gap: 42px;
  padding: 42px 0 56px;
}

.auth-copy h1 {
  font-size: clamp(38px, 6vw, 68px);
}

.auth-copy p {
  color: var(--muted);
  font-size: 18px;
}

.auth-panel,
.security-panel {
  padding: 24px;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

input:focus {
  outline: 3px solid rgba(0, 135, 90, 0.16);
  border-color: var(--primary);
}

.field-errors,
.messages {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.field-errors li,
.message {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px 12px;
  color: var(--text);
}

.field-errors li {
  border-color: #c8d0cc;
  background: #f3f5f4;
  color: #111614;
}

.form-footer {
  margin: 16px 0 0;
  color: var(--muted);
}

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

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: start;
}

.support-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 28px;
  align-items: end;
}

.support-status {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.support-status strong {
  font-size: 26px;
  line-height: 1.05;
}

.support-status p {
  margin-bottom: 0;
}

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

.support-card {
  display: grid;
  min-height: 330px;
  align-content: space-between;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.support-card--featured {
  border-color: rgba(0, 135, 90, 0.38);
  background:
    linear-gradient(135deg, rgba(0, 135, 90, 0.12), transparent 42%),
    var(--surface);
}

.support-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.support-card h2 {
  margin: 18px 0 10px;
}

.support-card p,
.support-note {
  color: var(--muted);
}

.support-note {
  max-width: 720px;
  margin: 18px 0 0;
  font-weight: 700;
}

.qr-wrap {
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  padding: 18px;
}

.qr-code {
  width: min(260px, 100%);
  height: auto;
  image-rendering: pixelated;
}

.manual-secret {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.manual-secret summary {
  list-style: none;
  width: fit-content;
  cursor: pointer;
}

.manual-secret summary::-webkit-details-marker {
  display: none;
}

.secret-box,
.uri-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 14px;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 4px 10px;
  font-weight: 850;
}

.status-pill--muted {
  background: var(--surface-soft);
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 34px;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__inner > div {
  display: grid;
  gap: 4px;
}

.footer__links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-weight: 800;
}

.legal-layout {
  display: grid;
  gap: 28px;
  max-width: 920px;
}

.legal-hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 6vw, 68px);
}

.legal-updated {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 850;
}

.legal-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
}

.legal-panel h2 {
  margin: 34px 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
}

.legal-panel h2:first-child {
  margin-top: 0;
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
  font-size: 16px;
}

.legal-panel ul {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding-left: 22px;
}

@media (max-width: 920px) {
  .hero__grid,
  .auth-layout,
  .security-grid,
  .support-hero,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 460px;
  }

  .feature-grid,
  .hero__meta {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    padding-top: 24px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .screenshot-phone--primary {
    right: 2%;
    width: 76%;
  }

  .screenshot-phone--secondary {
    left: -2%;
    width: 62%;
  }
}
