:root {
  --canvas-top: #f0ebe0;
  --canvas-bottom: #dbd6c7;
  --command: #354f3a;
  --command-deep: #1f3026;
  --sand: #d1bf91;
  --brass: #ba8f45;
  --slate: #424f5c;
  --mist: #f7f5ed;
  --warning: #ad422e;
  --white-glass: rgba(255, 255, 255, 0.54);
  --white-line: rgba(255, 255, 255, 0.32);
  --shadow: 0 24px 70px rgba(31, 48, 38, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: "Inter", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  color: var(--command-deep);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 38%),
    linear-gradient(145deg, var(--canvas-top), var(--canvas-bottom));
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  content: "";
  pointer-events: none;
}

body::before {
  top: -160px;
  right: -130px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(209, 191, 145, 0.22);
  filter: blur(18px);
}

body::after {
  top: 18vh;
  left: -170px;
  width: 340px;
  height: 340px;
  border-radius: 72px;
  background: rgba(53, 79, 58, 0.07);
  transform: rotate(24deg);
}

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

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(31, 48, 38, 0.16);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  font-weight: 750;
  color: rgba(31, 48, 38, 0.72);
}

.nav a {
  transition: color 180ms ease, transform 180ms ease;
}

.nav a:hover {
  color: var(--command-deep);
  transform: translateY(-1px);
}

.button,
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.store-button:hover {
  transform: translateY(-2px);
}

.button-primary {
  padding: 0 22px;
  color: #fff;
  background: var(--command);
  box-shadow: 0 16px 34px rgba(53, 79, 58, 0.26);
}

.button-primary:hover {
  background: var(--command-deep);
}

.button-danger {
  padding: 0 22px;
  color: #fff;
  background: var(--warning);
  box-shadow: 0 16px 34px rgba(173, 66, 46, 0.2);
}

.button-danger:hover {
  background: #7e2d20;
}

.button-ghost {
  padding: 0 20px;
  color: var(--command-deep);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--white-line);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
  min-height: 100svh;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0 58px;
}

.hero-copy {
  max-width: 620px;
  animation: rise-in 680ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brass), var(--warning), var(--command-deep));
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-top: 22px;
  font-size: clamp(4rem, 12vw, 8.7rem);
  line-height: 0.84;
  letter-spacing: 0;
  font-weight: 950;
}

.lead {
  max-width: 600px;
  margin-top: 28px;
  color: var(--slate);
  font-size: clamp(1.16rem, 2vw, 1.45rem);
  line-height: 1.45;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  color: rgba(31, 48, 38, 0.75);
  font-size: 0.95rem;
  font-weight: 760;
}

.proof-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.phone-stage {
  position: relative;
  min-height: 640px;
  animation: phone-in 840ms cubic-bezier(0.18, 0.74, 0.2, 1) 80ms both;
}

.phone-stage::before {
  position: absolute;
  inset: 9% -12% 7% 12%;
  content: "";
  border-radius: 48px;
  background: linear-gradient(135deg, var(--brass), var(--warning), var(--command-deep));
  filter: blur(42px);
  opacity: 0.28;
  transform: rotate(-7deg);
}

.phone-shot {
  position: relative;
  width: min(100%, 430px);
  margin-left: auto;
  filter: drop-shadow(0 34px 54px rgba(31, 48, 38, 0.25));
  transform: rotate(2deg);
}

.feature-band,
.download-band,
.qr-band {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  padding: 46px 0 84px;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 950;
}

.section-kicker {
  margin-top: 18px;
  color: var(--slate);
  font-size: 1.08rem;
  line-height: 1.55;
  font-weight: 620;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--white-line);
  border-radius: 26px;
  background: var(--white-glass);
  box-shadow: 0 12px 28px rgba(31, 48, 38, 0.06);
  transform: translateY(12px);
  opacity: 0;
  animation: rise-in 620ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-timeline: view();
  animation-range: entry 0% cover 28%;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  background: var(--command);
  font-size: 1.4rem;
  font-weight: 900;
}

.feature-item:nth-child(2) .feature-icon {
  background: var(--warning);
}

.feature-item:nth-child(3) .feature-icon {
  background: var(--brass);
}

.feature-item:nth-child(4) .feature-icon {
  background: var(--slate);
}

.feature-item h3 {
  font-size: 1.12rem;
  letter-spacing: 0;
  font-weight: 900;
}

.feature-item p {
  margin-top: 5px;
  color: var(--slate);
  line-height: 1.45;
  font-weight: 580;
}

.download-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  min-height: 100svh;
  padding: 112px 0 64px;
}

.download-panel {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 32px;
  background: var(--white-glass);
  border: 1px solid var(--white-line);
  box-shadow: var(--shadow);
}

.store-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.store-button {
  width: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.store-button img {
  width: auto;
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(31, 48, 38, 0.14));
}

.store-button.app-store img {
  width: 180px;
}

.store-button.play-store img {
  width: 205px;
}

.small-note {
  margin-top: 18px;
  color: rgba(31, 48, 38, 0.62);
  font-size: 0.93rem;
  line-height: 1.5;
  font-weight: 600;
}

.android-beta {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(31, 48, 38, 0.12);
}

.android-beta h2 {
  font-size: 1.32rem;
  line-height: 1.1;
  font-weight: 920;
}

.android-beta p {
  margin-top: 8px;
  color: var(--slate);
  line-height: 1.48;
  font-weight: 610;
}

.beta-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.beta-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 16px;
  padding: 0 15px;
  color: var(--command-deep);
  background: rgba(255, 255, 255, 0.54);
  font: inherit;
  font-weight: 680;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.beta-form input[type="email"]:focus {
  border-color: rgba(53, 79, 58, 0.42);
  box-shadow: 0 0 0 4px rgba(53, 79, 58, 0.11);
}

.beta-form button {
  min-width: 112px;
}

.beta-form button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.form-status {
  min-height: 1.4em;
  margin-top: 0;
  color: var(--command);
  font-size: 0.92rem;
  font-weight: 780;
}

.hp-field,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.download-visual {
  position: relative;
  min-height: 560px;
}

.download-visual .phone-shot {
  width: min(100%, 370px);
  margin: 0 auto;
}

.qr-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 44px 0 76px;
}

.qr-copy {
  padding-top: 4px;
}

.qr-copy h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  font-weight: 950;
}

.qr-copy p {
  max-width: 620px;
  margin-top: 14px;
  color: var(--slate);
  font-size: 1.1rem;
  line-height: 1.55;
  font-weight: 620;
}

.mini-logo {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  box-shadow: 0 20px 42px rgba(31, 48, 38, 0.18);
}

.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 38px;
  color: rgba(31, 48, 38, 0.56);
  font-size: 0.92rem;
  font-weight: 650;
}

.footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(31, 48, 38, 0.13);
  padding-top: 22px;
}

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

.admin-shell {
  width: min(920px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 132px 0 58px;
}

.admin-panel {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 32px;
  background: var(--white-glass);
  border: 1px solid var(--white-line);
  box-shadow: var(--shadow);
}

.admin-heading h1 {
  margin-top: 18px;
  font-size: clamp(3.2rem, 10vw, 6.4rem);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.admin-count {
  margin-top: 24px;
  color: var(--slate);
  font-weight: 820;
}

.admin-emails {
  width: 100%;
  min-height: 220px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 18px;
  color: var(--command-deep);
  background: rgba(255, 255, 255, 0.58);
  font: 680 1rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  resize: vertical;
  outline: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    width: min(100% - 28px, 640px);
    padding: 16px 0 0;
  }

  .nav {
    gap: 12px;
    font-size: 0.9rem;
  }

  .nav a:first-child {
    display: none;
  }

  .hero,
  .download-band,
  .feature-band,
  .qr-band,
  .footer {
    width: min(100% - 28px, 640px);
  }

  .hero,
  .download-band,
  .feature-band,
  .qr-band {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 18px;
    min-height: auto;
    padding: 46px 0 44px;
  }

  h1 {
    font-size: clamp(4.2rem, 19vw, 7rem);
  }

  .phone-stage,
  .download-visual {
    min-height: auto;
  }

  .phone-shot {
    width: min(82vw, 360px);
    margin: 8px auto 0;
  }

  .feature-band {
    padding: 24px 0 60px;
  }

  .download-band {
    min-height: auto;
    padding: 32px 0 44px;
  }

  .download-panel {
    order: 1;
    padding: 24px;
  }

  .download-visual {
    order: 2;
  }

  .store-button {
    width: auto;
  }

  .store-button.app-store img {
    width: 164px;
  }

  .store-button.play-store img {
    width: 187px;
  }

  .qr-band {
    padding: 16px 0 48px;
  }

  .mini-logo {
    width: 86px;
    height: 86px;
  }

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

  .admin-shell {
    width: min(100% - 28px, 640px);
    min-height: auto;
    padding: 44px 0;
  }
}

@media (max-width: 520px) {
  .brand span {
    display: none;
  }

  .button-primary,
  .button-ghost {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .proof-row {
    gap: 8px;
  }

  .proof-row span {
    font-size: 0.87rem;
  }

  .feature-item {
    grid-template-columns: 52px 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 22px;
  }

  .feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .download-panel {
    border-radius: 26px;
    padding: 20px;
  }

  .download-panel h1 {
    font-size: clamp(3.1rem, 16vw, 4.4rem);
  }

  .download-panel .lead {
    margin-top: 20px;
    font-size: 1.08rem;
  }

  .download-panel .store-stack {
    display: grid;
    justify-items: start;
    gap: 10px;
    margin-top: 22px;
  }

  .download-panel .store-button.app-store img {
    width: 152px;
  }

  .download-panel .store-button.play-store img {
    width: 173px;
  }

  .download-panel .small-note {
    margin-top: 14px;
    font-size: 0.88rem;
  }

  .admin-panel {
    padding: 20px;
    border-radius: 26px;
  }

  .admin-actions {
    display: grid;
  }

  .admin-emails {
    min-height: 180px;
    font-size: 0.92rem;
  }

  .download-panel .android-beta {
    margin-top: 24px;
    padding-top: 20px;
  }

  .download-panel .beta-form {
    grid-template-columns: 1fr;
  }

  .download-panel .beta-form button {
    width: 100%;
  }
}
