/* Shared styles for app landing pages (/toppl3d/, /toyshelf/, /blob/).
   Loaded after legal.css, which supplies the palette, type, top bar,
   doc-list cards and footer. Each page sets --accent and --accent-soft
   in a small inline <style> so the hero picks up the app's own colour. */

:root {
  --accent:      var(--gold);
  --accent-soft: rgba(196, 167, 94, 0.14);
}

main {
  max-width: 800px;
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 0 2.25rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 29px;
  border: 1px solid var(--rule);
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(27, 27, 27, 0.04),
    0 24px 48px -28px var(--accent);
}

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

/* Icons exported with a dark margin around the rounded square */
.hero-icon--crop img {
  width: 110%;
  height: 110%;
  margin: -5%;
}

.hero .eyebrow {
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 7vw, 3.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.hero .tagline {
  font-size: clamp(1.125rem, 2.6vw, 1.3125rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-mid);
  max-width: 34rem;
  margin-top: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-top: 1.1rem;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ── Buttons & badges (same as the homepage) ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  border-radius: 8px;
  padding: 0.7rem 1.05rem;
  white-space: nowrap;
  transition: opacity 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.btn svg {
  height: 17px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.btn-outline {
  background: var(--card);
  border: 1px solid var(--rule);
  color: var(--ink);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--ink-light);
}

.btn[aria-disabled="true"] {
  color: var(--ink-mid);
  cursor: default;
}

.btn[aria-disabled="true"]:hover {
  background: var(--card);
  border-color: var(--rule);
}

.app-badge {
  display: inline-flex;
  transition: opacity 0.15s ease;
}

.app-badge:hover { opacity: 0.85; }

.app-badge img {
  height: 42px;
  width: auto;
  display: block;
}

/* ── Sections ── */
.section {
  margin-top: 3.5rem;
}

.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.7rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.section-lede {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 40rem;
  margin-bottom: 1.6rem;
}

.section-lede a,
.steps a,
.note a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.section-lede a:hover,
.steps a:hover,
.note a:hover { opacity: 0.7; }

/* ── Feature cards ── */
.features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.3rem 1.4rem 1.4rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.feature h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.feature p {
  font-size: 0.9875rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-mid);
}

/* ── Numbered steps ── */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}

.steps li:last-child {
  border-bottom: 1px solid var(--rule);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--accent);
  padding-top: 0.15rem;
}

.steps h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.steps p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-mid);
}

/* ── Family / pledge list ── */
.pledge {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 2rem;
}

.pledge li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0 0.75rem;
  align-items: start;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-mid);
}

.pledge li strong {
  font-weight: 500;
  color: var(--ink);
}

.pledge svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 0.15rem;
}

/* ── Note / callout ── */
.note {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  font-size: 0.9875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-mid);
  margin-top: 1.6rem;
}

.note strong {
  font-weight: 500;
  color: var(--ink);
}

/* ── Hub links reuse .doc-list from legal.css ── */
.section .doc-list {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .btn, .app-badge { transition: none; }
}

@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .pledge { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.4rem 0;
  }
  .hero-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }
  .app-badge img { height: 38px; }
}
