/* Shared styles for detail pages - imports main tokens */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg:      #050507;
  --bg-2:    #09090e;
  --text:    #fff7f8;
  --muted:   #9a8f96;
  --muted-2: #3d3545;
  --accent:  #ff6f86;
  --accent-2:#ff8a4c;
  --blue:    #7b8cff;
  --panel:   rgba(255,255,255,0.05);
  --border:  rgba(255,255,255,0.09);
  --grad:    linear-gradient(135deg, var(--accent), var(--accent-2));
  --font:    'Inter', system-ui, sans-serif;
  --max:     980px;
  --r:       14px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* Nav */
.page-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,5,7,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.page-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.page-nav-logo { height: 22px; width: auto; }
.page-nav-back {
  margin-left: auto;
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: color .2s;
}
.page-nav-back:hover { color: var(--text); }

/* Page header */
.page-header {
  padding: 5rem 2rem 3rem;
  border-bottom: 1px solid var(--border);
}
.page-header-inner { max-width: var(--max); margin: 0 auto; }
.page-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255,111,134,.25);
  background: rgba(255,111,134,.07);
  padding: .22rem .7rem;
  border-radius: 4px;
  margin-bottom: 1.2rem;
}
.page-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.0;
  margin-bottom: 1rem;
}
.page-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

/* Content */
.page-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.detail-block {
  padding: 2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.detail-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .8rem;
}
.detail-block p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: .6rem;
}
.detail-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .6rem;
}
.detail-block li {
  font-size: .88rem;
  color: var(--muted);
  padding-left: 1.2rem;
  position: relative;
}
.detail-block li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .75rem;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.detail-grid .detail-block {
  border: none;
  border-radius: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.detail-grid .detail-block:nth-child(2n) { border-right: none; }
.detail-grid .detail-block:nth-last-child(-n+2) { border-bottom: none; }

/* Next step bar */
.page-nextstep {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 2.4rem 2rem 2rem;
}
.page-nextstep-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
}
.pns-next {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  text-decoration: none;
  position: absolute;
  right: 0;
  text-align: right;
}
.pns-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.pns-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s;
}
.pns-next:hover .pns-title { color: var(--text); }
.pns-download {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--grad);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 0 36px rgba(255,111,134,.22), 0 4px 14px rgba(255,138,76,.15);
  transition: transform .2s, box-shadow .2s, filter .2s;
  white-space: nowrap;
  justify-self: center;
}
.pns-download:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(255,111,134,.35), 0 8px 20px rgba(255,138,76,.2); filter: brightness(1.05); }

@media (max-width: 600px) {
  .page-nextstep { padding: 2rem 1.5rem; }
  .page-nextstep-inner {
    flex-direction: column;
    gap: 1.4rem;
    min-height: unset;
  }
  .pns-next {
    position: static;
    text-align: center;
    align-items: center;
  }
  .pns-download { width: 100%; justify-content: center; }
}

/* Footer */
.page-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
}
.page-footer-inner { max-width: var(--max); margin: 0 auto; }
.page-footer p { font-size: .75rem; color: var(--muted-2); }
.page-footer a { color: var(--muted); transition: color .2s; }
.page-footer a:hover { color: var(--text); }
