:root {
  --bg: #0d1320;
  --bg-alt: #131c2d;
  --card: #182338;
  --text: #edf3ff;
  --muted: #afbed8;
  --accent: #79d0ff;
  --accent-2: #8df2cf;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 20px 40px rgba(0,0,0,0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #0d1320 0%, #10192a 100%);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header, .sub-header {
  padding: 5rem 0 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

h1, h2, h3 {
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  margin-bottom: 1rem;
}

h2 { font-size: 1.8rem; }
h3 { font-size: 1.25rem; }

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 760px;
}

.nav-links, .button-row, .footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links { margin-top: 1.5rem; }

.section {
  padding: 2rem 0 4rem;
}

.alt {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.card {
  background: rgba(24, 35, 56, 0.92);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: start;
}

.apps-stack {
  display: grid;
  gap: 1.25rem;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.28);
}

.legal-hero {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.legal-hero > div {
  flex: 1 1 auto;
  min-width: 0;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.title-row h2 {
  margin-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(141,242,207,0.35);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.45rem 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.stack {
  display: grid;
  gap: 1.2rem;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent-2);
  margin-bottom: 0.5rem;
}

.button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #5ea9ff);
  color: #07101c;
  font-weight: 700;
  padding: 0.82rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

ul {
  padding-left: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.legal .card p:last-child,
.legal .card ul:last-child { margin-bottom: 0; }

/* Accordion */
details.card {
  padding: 0;
  overflow: hidden;
}

details.card > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

details.card > summary::-webkit-details-marker,
details.card > summary::marker { display: none; }

details.card > summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease;
}

details[open].card > summary::after {
  transform: rotate(45deg);
}

.summary-content {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.summary-app-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  flex-shrink: 0;
}

.summary-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.summary-sub {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.15rem;
}

.accordion-body {
  padding: 1.4rem 1.6rem;
  border-top: 1px solid var(--border);
}

.accordion-body h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  margin-top: 1.4rem;
  color: var(--text);
}

.accordion-body h3:first-child { margin-top: 0; }

@media (max-width: 720px) {
  .app-card {
    grid-template-columns: 1fr;
  }

  .app-icon {
    width: 82px;
    height: 82px;
    border-radius: 19px;
  }

  .grid-two {
    grid-template-columns: 1fr;
  }

  .site-header, .sub-header {
    padding: 4rem 0 2rem;
  }
}
