:root {
  --ink: #17211b;
  --muted: #647067;
  --leaf: #1f4d37;
  --leaf-dark: #123325;
  --clay: #bd6b45;
  --gold: #d5a84f;
  --cream: #fbf7ef;
  --paper: #ffffff;
  --line: #e6dfd3;
  --mist: #eef3ef;
  --blue: #315f79;
  --danger: #aa3f34;
  --shadow: 0 18px 45px rgba(29, 42, 33, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.app-shell {
  min-height: 100vh;
}

body.user-app-page,
body.mobile-web-page {
  min-height: 100vh;
  background: var(--cream);
}

a {
  color: inherit;
}

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

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.app-launchbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 22px;
  border-bottom: 1px solid rgba(230, 223, 211, 0.92);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(18px);
}

.launch-brand {
  color: var(--leaf-dark);
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.launch-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
}

.launch-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.launch-nav a:hover,
.launch-nav a.active {
  color: #fffaf2;
  background: var(--leaf);
}

.sidebar {
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  padding: 28px 22px;
  color: #fffaf2;
  background: linear-gradient(180deg, var(--leaf-dark), #183d2b);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: grid;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 250, 242, 0.18);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fffaf2;
  color: var(--leaf-dark);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.brand h1,
.brand h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand p {
  margin: 0;
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.88rem;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav a {
  padding: 11px 12px;
  border-radius: 8px;
  color: rgba(255, 250, 242, 0.76);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.93rem;
}

.nav a:hover,
.nav a.active {
  background: var(--clay);
  color: white;
}

.side-note {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.07);
  color: rgba(255, 250, 242, 0.78);
  font-size: 0.84rem;
}

.main {
  width: min(1180px, 100%);
  padding: 42px;
}

.hero {
  min-height: 430px;
  display: grid;
  align-content: end;
  padding: 44px;
  border-radius: 8px;
  color: #fffaf2;
  background:
    linear-gradient(90deg, rgba(18, 51, 37, 0.96), rgba(18, 51, 37, 0.64) 48%, rgba(18, 51, 37, 0.18)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 700'%3E%3Crect width='1200' height='700' fill='%232c553d'/%3E%3Cg opacity='.5'%3E%3Cellipse cx='920' cy='220' rx='250' ry='160' fill='%23d5a84f'/%3E%3Cellipse cx='870' cy='455' rx='360' ry='105' fill='%23bd6b45'/%3E%3Cellipse cx='1010' cy='388' rx='120' ry='74' fill='%23f8e7c6'/%3E%3Cellipse cx='730' cy='360' rx='95' ry='62' fill='%23f2d28d'/%3E%3C/g%3E%3Cg fill='none' stroke='%23fff7e8' stroke-width='9' opacity='.32'%3E%3Cpath d='M675 216c95 40 202 45 310 13'/%3E%3Cpath d='M610 482c160 63 340 57 498-25'/%3E%3Cpath d='M758 128c-26 103-14 199 36 287'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-header h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p,
.page-header p {
  max-width: 740px;
  margin: 18px 0 0;
  color: rgba(255, 250, 242, 0.82);
  font-size: 1.1rem;
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  color: var(--leaf-dark);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

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

.section {
  margin-top: 34px;
}

.platform-entry {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdf8, var(--mist));
  box-shadow: var(--shadow);
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fffaf2;
  background: var(--leaf-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-head h2,
.panel h2,
.panel h3 {
  margin: 0;
  color: var(--leaf-dark);
  font-family: Georgia, serif;
  font-size: 1.7rem;
  letter-spacing: 0;
}

.section-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

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

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

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

.app-entry {
  min-height: 118px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease;
}

.app-entry:hover {
  transform: translateY(-2px);
  border-color: var(--clay);
}

.app-entry-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--leaf);
  font-weight: 900;
  font-size: 1.15rem;
}

.app-entry.android .app-entry-icon {
  background: var(--clay);
}

.app-entry.ios .app-entry-icon {
  background: var(--blue);
}

.app-entry.mobile .app-entry-icon {
  background: var(--gold);
  color: var(--leaf-dark);
}

.app-entry strong,
.app-entry small {
  display: block;
}

.app-entry strong {
  color: var(--leaf-dark);
  font-size: 1.02rem;
}

.app-entry small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.panel,
.metric,
.plan,
.timeline-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 24px;
}

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

.panel ul {
  padding-left: 19px;
}

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  color: var(--leaf-dark);
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.plan {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.plan h3 {
  margin: 0;
  color: var(--leaf-dark);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

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

.plan p {
  margin: 0;
  color: var(--muted);
}

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

.btn {
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  background: var(--leaf);
  color: white;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.btn.secondary {
  background: #fffaf2;
  color: var(--leaf-dark);
  border: 1px solid var(--line);
}

.btn.clay {
  background: var(--clay);
}

.btn:focus-visible,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(213, 168, 79, 0.45);
  outline-offset: 2px;
}

.deck {
  display: grid;
  gap: 18px;
}

.slide {
  min-height: 380px;
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.slide h2 {
  margin: 0 0 12px;
  color: var(--leaf-dark);
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.slide .subtitle {
  margin: 0 0 22px;
  color: var(--clay);
  font-size: 1.05rem;
  font-weight: 700;
}

.slide ul {
  display: grid;
  gap: 14px;
  padding-left: 22px;
}

.slide li {
  color: var(--muted);
  font-size: 1.02rem;
}

.deck-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.counter {
  color: var(--muted);
  font-weight: 800;
}

.mvp {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
  align-items: start;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--leaf-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fffdf8;
}

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

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fffdf8;
  text-align: center;
  font-weight: 800;
}

.choice input:checked + span {
  border-color: var(--leaf);
  color: var(--leaf-dark);
  background: var(--mist);
}

.summary {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  background: var(--leaf-dark);
  color: #fffaf2;
}

.summary h3,
.summary p {
  margin: 0;
}

.summary p {
  color: rgba(255, 250, 242, 0.76);
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.status-item:last-child {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--leaf-dark);
  background: var(--mist);
  font-size: 0.78rem;
  font-weight: 850;
}

.badge.clay {
  color: #fffaf2;
  background: var(--clay);
}

.badge.blue {
  color: #fffaf2;
  background: var(--blue);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: #fffaf2;
  background: var(--leaf-dark);
  font-family: Georgia, serif;
  font-weight: 700;
}

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

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

.timeline-step {
  padding: 18px;
}

.timeline-step strong {
  display: block;
  color: var(--leaf-dark);
  margin-bottom: 8px;
}

.timeline-step p {
  margin: 0;
  color: var(--muted);
}

.console {
  min-height: 220px;
  padding: 18px;
  border-radius: 8px;
  background: #152019;
  color: #e9f4eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  overflow: auto;
}

.console span {
  color: var(--gold);
}

.user-app,
.download-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.user-hero,
.download-card,
.phone-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.user-hero {
  padding: 36px;
  color: #fffaf2;
  background:
    linear-gradient(135deg, rgba(18, 51, 37, 0.98), rgba(31, 77, 55, 0.86)),
    var(--leaf-dark);
}

.user-hero h1,
.download-card h1,
.phone-card h1 {
  margin: 12px 0 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.user-hero p {
  max-width: 680px;
  color: rgba(255, 250, 242, 0.8);
  font-size: 1.08rem;
}

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

.download-page {
  display: grid;
  min-height: calc(100vh - 58px);
  place-items: center;
}

.download-card {
  width: min(760px, 100%);
  padding: 32px;
}

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

.download-note {
  margin-top: 18px;
  font-size: 0.9rem;
}

.phone-shell {
  width: min(430px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 42px;
}

.phone-card {
  margin-top: 14px;
  padding: 18px;
}

.hero-phone {
  color: #fffaf2;
  background: linear-gradient(160deg, var(--leaf-dark), var(--clay));
}

.hero-phone p {
  color: rgba(255, 250, 242, 0.82);
}

.phone-card h2 {
  margin: 0 0 12px;
  color: var(--leaf-dark);
  font-size: 1.15rem;
}

.hero-phone h2,
.hero-phone .platform-badge {
  color: #fffaf2;
}

.mobile-actions {
  display: grid;
  gap: 10px;
}

.mobile-actions .btn {
  text-align: center;
}

@media (max-width: 980px) {
  .layout,
  .mvp {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    top: 0;
  }

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

  .main {
    padding: 24px;
  }

  .grid,
  .grid.two,
  .grid.four,
  .timeline,
  .user-flow {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 360px;
    padding: 28px;
  }
}

@media (max-width: 620px) {
  .app-launchbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
  }

  .launch-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .launch-nav a {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.8rem;
  }

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

  .deck-controls,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .deck-controls .btn,
  .actions .btn {
    width: 100%;
    text-align: center;
  }
}
