:root {
  --yellow: #FDB515;
  --gray: #969694;
  --white: #FFFFFF;
  --black: #000000;
  --text: #151515;
  --muted: #666664;
  --line: #E8E8E6;
  --page: #FAFAF8;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

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

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

.home-page {
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.home-shell {
  width: min(100%, 520px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.brand-logo {
  width: clamp(148px, 34vw, 220px);
  height: auto;
  display: block;
}

h1 {
  margin: 0;
  color: var(--black);
  font-size: clamp(1.45rem, 4.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.progress-block {
  width: min(100%, 340px);
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.progress-row strong {
  color: var(--black);
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.progress-fill {
  width: 27%;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(100%, 420px);
}

.social-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-size: 0.96rem;
  font-weight: 650;
  transition: border-color 160ms ease, transform 160ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--yellow);
  transform: translateY(-1px);
  outline: none;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.doc-page {
  padding: 28px 18px 52px;
}

.doc-header,
.doc-main {
  width: min(100%, 760px);
  margin: 0 auto;
}

.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 28px;
}

.doc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  font-weight: 800;
}

.doc-brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.doc-nav a:hover,
.doc-nav a:focus-visible,
.doc-links a:hover,
.doc-links a:focus-visible {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  outline: none;
}

.doc-main {
  padding-top: 18px;
  border-top: 3px solid var(--yellow);
}

.doc-main h1 {
  max-width: 680px;
  margin-bottom: 10px;
}

.doc-main h2 {
  margin: 34px 0 10px;
  color: var(--black);
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.doc-main p {
  margin: 12px 0;
  color: #2A2A29;
}

.doc-main ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.doc-main li {
  margin: 7px 0;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.intro {
  max-width: 680px;
  font-size: 1.05rem;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.doc-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 650;
}

.demo-page {
  background: #F6F6F3;
}

.demo-header,
.demo-main {
  width: min(100%, 1080px);
}

.demo-main {
  margin: 0 auto;
}

.demo-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 22px;
  border-top: 3px solid var(--yellow);
}

.demo-kicker {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  text-transform: uppercase;
}

.demo-hero h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.demo-subtitle {
  margin: 10px 0 0;
  color: #363635;
  font-size: 1.08rem;
}

.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.demo-status span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--yellow);
}

.connect-panel,
.login-preview,
.dashboard-card,
.demo-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.connect-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.login-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 18px 22px;
  background:
    linear-gradient(90deg, rgba(253, 181, 21, 0.14), rgba(255, 255, 255, 0.95) 42%),
    var(--white);
}

.connect-panel h2,
.login-preview h2,
.dashboard-card h2 {
  margin: 0;
  color: var(--black);
  font-size: 1.15rem;
  line-height: 1.25;
}

.connect-panel p {
  margin: 7px 0 0;
  color: var(--muted);
}

.login-preview p {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--muted);
}

.connect-panel button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 17px;
  border: 0;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: default;
  white-space: nowrap;
}

.login-preview button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #EEEEEB;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: not-allowed;
  white-space: nowrap;
}

.connect-panel svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

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

.dashboard-card {
  padding: 20px;
}

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

.card-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(253, 181, 21, 0.16);
  color: #5F4300;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.profile-list {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
}

.profile-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.profile-list dt {
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-list dd {
  margin: 0;
  color: var(--black);
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stats-grid div {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FBFBFA;
}

.stats-grid strong {
  color: var(--black);
  font-size: 1.25rem;
  line-height: 1;
}

.stats-grid span,
.scope-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.scope-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-list li {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.scope-list li:last-child {
  border-bottom: 0;
}

.scope-list strong {
  color: var(--black);
  font-size: 0.94rem;
}

.videos-card {
  margin-top: 16px;
}

.videos-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(4, minmax(82px, 0.55fr));
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row span {
  padding: 13px 14px;
  color: #2A2A29;
}

.table-row span:not(:first-child) {
  text-align: right;
  font-weight: 750;
}

.table-head {
  background: #F1F1EF;
}

.table-head span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.demo-note {
  margin-top: 16px;
  padding: 16px 18px;
  color: #343432;
  font-size: 0.95rem;
  border-left: 5px solid var(--yellow);
}

.tree-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--yellow);
}

.tree-card {
  width: min(100%, 430px);
  min-height: min(860px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 38px;
  overflow: hidden;
  padding: 84px 24px 40px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.28) 46%, rgba(0, 0, 0, 0.64) 100%),
    url("assets/tree-background.png") center / cover no-repeat;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.tree-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.tree-profile > img {
  width: 126px;
  height: 126px;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.tree-profile h1 {
  width: min(100%, 336px);
  margin: 0;
}

.tree-wordmark {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.72));
}

.tree-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tree-links a {
  min-height: 64px;
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--black);
  font-size: 1rem;
  font-weight: 750;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tree-links a::after {
  width: 24px;
  content: "";
}

.tree-links a:hover,
.tree-links a:focus-visible {
  border-color: var(--yellow);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
  outline: none;
}

.tree-links svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.tree-welcome {
  margin: 2px 0 0;
  color: var(--white);
  font-size: clamp(0.86rem, 3.2vw, 1rem);
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .social-links {
    flex-direction: column;
  }

  .social-links a {
    width: 100%;
  }

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

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

  .demo-hero,
  .connect-panel,
  .login-preview {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .videos-table {
    overflow-x: auto;
  }

  .table-row {
    min-width: 720px;
  }
}

@media (max-width: 560px) {
  .tree-page {
    display: block;
    padding: 0;
    background: var(--black);
  }

  .tree-card {
    width: 100%;
    min-height: 100svh;
    border-radius: 0;
    box-shadow: none;
    gap: 32px;
    padding: 58px 18px 28px;
  }

  .tree-profile {
    gap: 18px;
  }

  .tree-profile > img {
    width: 120px;
    height: 120px;
  }

  .tree-profile h1 {
    width: min(100%, 330px);
  }

  .tree-links {
    gap: 16px;
  }

  .tree-links a {
    min-height: 62px;
  }
}
