/* Pitip shared styles - secondary pages (dark-only design system) */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
img { display: block; max-width: 100%; }
ul { list-style: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ── Skip link ── */
.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  background: var(--blue); color: #fff;
  font-weight: 800; font-size: 15px;
  padding: 12px 20px; border-radius: 14px;
}
.skip-link:focus { left: 12px; text-decoration: none; }

/* ── Font ── */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('fonts/nunito-latin-var.woff2') format('woff2');
}

/* ── Tokens ── */
:root {
  --bg: #000000;
  --card: #161616;
  --card2: #1f1f1f;
  --text: #f2f2f2;
  --muted: rgba(210,210,210,0.68);
  --faint: rgba(210,210,210,0.62);
  --blue: #0071E3;      /* button fill: white text clears 4.5:1 */
  --blue-deep: #0065D1; /* button hover fill */
  --blue-bright: #0A84FF;
  --blue-dim: rgba(10,132,255,0.14);
  --green: #30D158;
  --green-dim: rgba(48,209,88,0.12);
  --radius: 26px;
  --maxw: 1200px;
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Base ── */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
a { color: var(--blue-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 780px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ── Nav ── */
nav.site-nav { padding: 20px 0; }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 40px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav-brand span { font-size: 24px; font-weight: 800; letter-spacing: -0.3px; color: var(--blue-bright); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 14px; border-radius: 14px;
  font-size: 16px; font-weight: 700; color: var(--text);
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--card); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--blue-bright); background: var(--blue-dim); }
.nav-cta {
  margin-left: auto;
  background: var(--blue);
  color: #fff; font-size: 16px; font-weight: 700;
  padding: 12px 22px; border-radius: 24px;
  transition: transform 0.2s, background 0.2s;
  white-space: nowrap; flex-shrink: 0;
}
.nav-cta:hover { background: var(--blue-deep); transform: scale(1.04); text-decoration: none; }
.nav-hamburger {
  display: none; margin-left: auto;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2.5px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile panel: springy open/close */
.nav-mobile-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
}
.nav-mobile-panel.open { grid-template-rows: 1fr; visibility: visible; }
.nav-mobile-inner {
  overflow: hidden;
  min-height: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 12px 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-mobile-panel.open .nav-mobile-inner { opacity: 1; transform: none; }
.nav-mobile-inner a {
  padding: 13px 16px;
  font-size: 17px; font-weight: 700;
  color: var(--text);
  border-radius: 14px;
  transition: background 0.15s, color 0.15s;
}
.nav-mobile-inner a:hover { background: var(--card); text-decoration: none; }
.nav-mobile-inner a[aria-current="page"] { background: var(--blue-dim); color: var(--blue-bright); }
.nav-mobile-inner a.nav-mobile-cta {
  margin: 10px 4px 20px;
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-weight: 800;
  border-radius: 999px;
  padding: 14px 16px;
}
.nav-mobile-inner a.nav-mobile-cta:hover { background: var(--blue-deep); }
@media (prefers-reduced-motion: reduce) {
  .nav-mobile-panel, .nav-mobile-inner, .nav-hamburger span { transition: none; }
}

/* ── Page header ── */
.page-header { padding: 48px 0 16px; }
.page-header h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800; letter-spacing: -0.8px;
  margin-bottom: 10px;
}
.page-header p { font-size: 17px; font-weight: 500; color: var(--muted); }

/* ── Centered page hero ── */
.page-hero { text-align: center; padding: clamp(40px, 7vh, 88px) 24px 0; }
.page-glyph { width: 56px; height: 56px; margin: 0 auto 20px; display: block; }
.page-hero h1 {
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 800; letter-spacing: -0.8px;
}
.page-hero .page-sub {
  margin: 16px auto 0;
  font-size: clamp(16.5px, 1.9vw, 19px);
  font-weight: 500; color: var(--muted);
  max-width: 580px;
}
.page-hero .page-date {
  margin-top: 12px;
  font-size: 14.5px; font-weight: 600; color: var(--faint);
}
.pill-cta {
  display: inline-block;
  margin-top: 28px;
  background: var(--blue);
  color: #fff; font-size: 16.5px; font-weight: 800;
  padding: 14px 28px; border-radius: 26px;
  transition: transform 0.2s, background 0.2s;
}
.pill-cta:hover { background: var(--blue-deep); transform: scale(1.04); text-decoration: none; }

/* ── Legal prose ── */
.legal { max-width: 760px; margin: 40px auto 0; padding: 0 24px 24px; }
.legal h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.3px;
  margin: 40px 0 10px;
}
.legal h3 { font-size: 16.5px; font-weight: 800; margin: 20px 0 6px; }
.legal p {
  font-size: 15.5px; font-weight: 500; color: var(--muted);
  line-height: 1.75; margin-bottom: 12px;
}
.legal ul { padding-left: 20px; margin-bottom: 12px; list-style: disc; }
.legal li { font-size: 15.5px; font-weight: 500; color: var(--muted); line-height: 1.75; }

/* ── Help groups (support) ── */
.help-groups { max-width: 880px; margin: clamp(40px, 7vh, 72px) auto 0; padding: 0 24px; }
details.help-group { border-top: 1px solid rgba(255,255,255,0.1); border-bottom: none; }
details.help-group:last-of-type { border-bottom: 1px solid rgba(255,255,255,0.1); }
.help-group > summary {
  padding: 26px 4px;
  font-size: clamp(19px, 2.2vw, 24px); font-weight: 800;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer; list-style: none;
}
/* Heading elements inside summaries inherit the summary's type */
summary h2, summary h3 { font: inherit; margin: 0; color: inherit; letter-spacing: inherit; }
.help-group > summary::-webkit-details-marker { display: none; }
.help-group > summary::after {
  content: '+';
  font-size: 30px; font-weight: 400; color: var(--blue-bright);
  transition: transform 0.2s; flex-shrink: 0;
}
.help-group[open] > summary::after { transform: rotate(45deg); }
.help-body { padding: 0 4px 30px; }
.help-body > p { font-size: 15.5px; font-weight: 500; color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.help-body > p:last-child { margin-bottom: 0; }

/* ── Chip nav ── */
.chip-nav {
  display: flex; flex-wrap: nowrap; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  gap: 8px; margin: 24px 0 40px; padding: 4px 0;
}
.chip-nav::-webkit-scrollbar { display: none; }
.chip {
  display: inline-block; padding: 8px 16px; border-radius: 20px;
  font-size: 13.5px; font-weight: 700;
  background: var(--card); color: var(--muted);
  transition: all 0.15s; white-space: nowrap;
}
.chip:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* ── Cards ── */
.support-card, .policy-card, .terms-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 20px;
}
.support-card h2, .policy-card h2, .terms-card h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.3px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.policy-card h3 { font-size: 16px; font-weight: 800; margin: 18px 0 6px; }
.support-card p, .policy-card p, .terms-card p {
  font-size: 15px; font-weight: 500; color: var(--muted); line-height: 1.75;
  margin-bottom: 12px;
}
.support-card p:last-child, .policy-card p:last-child, .terms-card p:last-child { margin-bottom: 0; }
.policy-card ul, .terms-card ul { padding-left: 20px; margin-bottom: 10px; list-style: disc; }
.policy-card ul li, .terms-card ul li { font-size: 15px; font-weight: 500; color: var(--muted); line-height: 1.75; }
.section-icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--blue-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Summary banner (privacy) ── */
.summary-banner {
  background: var(--green-dim);
  border-radius: var(--radius);
  padding: 28px 32px; margin-bottom: 20px;
}
.summary-banner h2 { font-size: 19px; font-weight: 800; color: var(--green); margin-bottom: 12px; }
.summary-list { display: flex; flex-direction: column; gap: 8px; }
.summary-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; font-weight: 500; color: var(--muted);
}
.summary-item::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; margin-top: 1px; }

/* ── FAQ details ── */
details { border-bottom: 1px solid rgba(255,255,255,0.08); }
details:last-child { border-bottom: none; }
summary {
  padding: 16px 0; font-size: 15.5px; font-weight: 800;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; font-size: 22px; font-weight: 400; color: var(--faint);
  flex-shrink: 0; transition: transform 0.2s;
}
details[open] > summary::after { transform: rotate(45deg); }
details p { padding: 0 0 16px; }

/* ── Platform rows ── */
.platform-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.platform-row:last-child { border-bottom: none; }
.platform-icon {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--card2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 20px;
}
.platform-row-text h3 { font-size: 15.5px; font-weight: 800; }
.platform-row-text p { font-size: 13.5px; font-weight: 500; color: var(--muted); margin: 0; }

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue-dim); color: var(--blue-bright);
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.step-text h3 { font-size: 15.5px; font-weight: 800; }
.step-text p { font-size: 14.5px; font-weight: 500; color: var(--muted); line-height: 1.6; margin: 2px 0 0; }
.steps-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 24px 0; }
.steps-label { font-weight: 800; color: var(--text); margin-bottom: 8px; }

/* ── Troubleshoot ── */
.trouble-item { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.trouble-item:last-child { border-bottom: none; }
.trouble-item h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 4px; }
.trouble-item p { font-size: 14.5px; font-weight: 500; color: var(--muted); line-height: 1.6; margin: 0; }

/* ── Review buttons ── */
.review-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.review-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 18px;
  font-size: 14.5px; font-weight: 800;
  background: var(--blue-dim); color: var(--blue-bright);
  transition: background 0.15s, color 0.15s;
}
.review-btn:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* ── Effective date ── */
.effective-date {
  text-align: center; font-size: 13px; font-weight: 600;
  color: var(--faint); margin: 8px 0 48px;
}

/* ── 404 ── */
.notfound { flex: 1; display: flex; align-items: center; justify-content: center; padding: 64px 24px; }
.notfound-inner { text-align: center; max-width: 480px; }
.notfound-code {
  font-size: clamp(90px, 18vw, 150px); font-weight: 800;
  letter-spacing: -4px; line-height: 1; color: var(--blue-bright);
}
.notfound h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 800; letter-spacing: -0.5px; margin: 8px 0 12px; }
.notfound p { font-size: 16px; font-weight: 500; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.notfound-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 24px;
  font-size: 16px; font-weight: 800;
  background: var(--blue); color: #fff;
  transition: transform 0.2s, background 0.2s;
}
.notfound-btn:hover { background: var(--blue-deep); transform: scale(1.04); text-decoration: none; }
.notfound-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.notfound-links a { font-size: 14.5px; font-weight: 700; color: var(--muted); }

/* ── Footer ── */
footer.site-footer { padding: 48px 24px 32px; }
.footer-card {
  max-width: var(--maxw); margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  color: var(--text);
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 14px; }
.footer-wordmark {
  font-size: clamp(40px, 4.5vw, 56px);
  font-weight: 800; line-height: 1; letter-spacing: -1px; color: var(--blue-bright);
}
.footer-col .footer-h { font-size: 17px; font-weight: 800; margin-bottom: 16px; color: var(--text); }
.footer-col a {
  display: block;
  font-size: 16px; font-weight: 600;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--blue-bright); text-decoration: none; }
.footer-meta { max-width: var(--maxw); margin: 28px auto 0; text-align: center; }
.footer-copy { font-size: 14px; font-weight: 600; color: var(--faint); }
.footer-copy a { color: inherit; }
.footer-legal {
  margin: 10px auto 0; font-size: 12.5px;
  color: rgba(210,210,210,0.6); line-height: 1.6; max-width: 720px;
}

/* ── Responsive ── */
@media (min-width: 901px) {
  /* Never leave the mobile panel open after a resize/rotation */
  .nav-mobile-panel { display: none; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  /* Brand keeps its own column; link columns form a 2x2 grid beside it */
  .footer-card { grid-template-columns: 1.1fr 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-row: 1 / span 2; align-self: start; }
  .footer-wordmark { font-size: 36px; }
  .support-card, .policy-card, .terms-card { padding: 28px 24px; }
}
@media (max-width: 640px) {
  /* Single stacked column: brand on top, then each link group */
  .footer-card { grid-template-columns: 1fr; gap: 36px; padding: 40px 32px; }
  .footer-brand { grid-row: auto; flex-direction: row; align-items: center; gap: 14px; }
  .footer-brand img { width: 48px; height: 48px; }
  .footer-wordmark { font-size: 36px; }
}
