/* Landing layout + Dom Subs HTML phone mock */

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.25rem;
  padding: 2rem 1.5rem 3rem;
  max-width: 36rem;
  margin-inline: auto;
}

.landing-copy {
  min-width: 0;
}

.landing-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.landing-logo {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  border-radius: 14px;
}

.landing-wordmark {
  font-size: clamp(2.4rem, 8vw, 3.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0;
}

.landing-tagline {
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  font-weight: 500;
  color: var(--text);
  margin: 0 0 0.75rem;
  max-width: 28rem;
  line-height: 1.35;
}

.landing-pitch {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  max-width: 28rem;
}

.landing-trust {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  letter-spacing: 0.01em;
}

.landing-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.landing-foot {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}
.landing-foot a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.landing-foot a:hover {
  color: var(--accent-soft);
}

.landing-foot.site-version {
  margin-top: 0.75rem;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.landing-still {
  margin: 0;
  width: 100%;
  max-width: 19rem;
}

.landing-still-cap {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* —— Phone device —— */
.phone {
  width: 100%;
  padding: 0.55rem;
  border-radius: 1.65rem;
  background: #121214;
  border: 1px solid var(--border);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  min-height: 32rem;
  border-radius: 1.2rem;
  background: var(--bg);
  border: 1px solid rgba(42, 42, 50, 0.9);
  overflow: hidden;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
}
.phone-status-icons svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.phone-status-icons .batt {
  width: 1.15rem;
  height: 0.7rem;
}

.phone-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0.85rem 0;
  min-height: 0;
}

.phone-title {
  margin: 0.35rem 0 1rem;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.phone-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.phone-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.phone-avatar {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  background: var(--bg-elevated);
}

.phone-card-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.phone-name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent-soft);
  line-height: 1.3;
}
.phone-chip svg {
  width: 0.7rem;
  height: 0.7rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-chip-ok {
  border-color: transparent;
  background: rgba(107, 143, 113, 0.22);
  color: var(--ok);
}

.phone-chip-warn {
  border-color: rgba(196, 92, 74, 0.55);
  color: var(--danger);
  background: rgba(196, 92, 74, 0.1);
}

.phone-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.phone-chevron {
  flex: 0 0 auto;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.75px solid var(--accent);
  border-bottom: 1.75px solid var(--accent);
  transform: rotate(-45deg);
  margin-right: 0.2rem;
  opacity: 0.9;
}

.phone-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.15rem;
  margin-top: auto;
  padding: 0.55rem 0.35rem 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.phone-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.15rem 0.15rem;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}
.phone-nav-item svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.phone-nav-item.is-active {
  color: var(--accent-soft);
}
.phone-nav-item.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1.35rem;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

@media (min-width: 860px) {
  .landing {
    max-width: 58rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3.25rem;
    padding: 3rem 2rem;
  }

  .landing-copy {
    flex: 1 1 22rem;
    max-width: 28rem;
  }

  .landing-still {
    flex: 0 0 auto;
    max-width: 19.5rem;
  }
}

/* About page layout */
.about-page {
  max-width: 42rem;
  margin-inline: auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

.about-page > h1 {
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
}

.about-layout {
  display: block;
}

@media (min-width: 960px) {
  .about-page {
    max-width: 54rem;
  }

  .about-layout {
    display: grid;
    grid-template-columns: 10.5rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }

  .about-toc-col .pub-toc {
    flex-direction: column;
    align-items: stretch;
    position: sticky;
    top: 1.5rem;
    margin: 0;
  }

  .about-toc-col .pub-toc a {
    border-radius: var(--radius);
  }
}
