*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f0f0f0;
  --surface: #ffffff;
  --border: #e0e0e0;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-muted: #9b9b9b;
  --accent: #f5c518;
  --toggle-off: #c8c8c8;
  --toggle-on: #1a1a1a;
  --radius-card: 10px;
  --radius-toggle: 100px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Header ─────────────────────────────────────────────── */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-box {
  width: 36px;
  height: 36px;
  background: var(--text-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-box span {
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}
.header-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5c518 0%, #e8a800 100%);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ─── Page content ────────────────────────────────────────── */
.page {
  display: none;
  flex: 1;
  padding: 0 24px 48px;
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
}
.page.active { display: block; }

.page-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  padding: 28px 0 24px;
  color: var(--text-primary);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
  padding: 4px 0;
}
.back-btn svg { flex-shrink: 0; }
.back-btn:hover { opacity: 0.7; }

/* ─── Section headings ────────────────────────────────────── */
.section-label {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  margin-top: 28px;
}

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 16px;
}

.card-row + .card-row {
  border-top: 1px solid var(--border);
}

.card-body {
  padding: 18px 20px;
}

.card-text { flex: 1; }
.card-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 2px;
}

/* ─── Outlined button ─────────────────────────────────────── */
.btn-outline {
  flex-shrink: 0;
  padding: 9px 16px;
  border: 1.5px solid var(--text-primary);
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.btn-outline:hover {
  background: var(--text-primary);
  color: #fff;
}

/* ─── Toggle ──────────────────────────────────────────────── */
.toggle-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--toggle-off);
  border-radius: var(--radius-toggle);
  transition: background 0.2s;
  cursor: pointer;
}
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.2s;
  pointer-events: none;
}
.toggle input:checked ~ .toggle-track { background: var(--toggle-on); }
.toggle input:checked ~ .toggle-track .toggle-thumb { transform: translateX(20px); }

/* ─── Accordion ───────────────────────────────────────────── */
.accordion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.accordion + .accordion { margin-top: 10px; }

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  font-weight: 600;
}
.accordion-header:hover { background: #fafafa; }

.chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.25s;
  color: var(--text-secondary);
}
.accordion.open .chevron { transform: rotate(180deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 0px solid var(--border);
}
.accordion.open .accordion-body {
  max-height: 2000px;
  border-top: 1px solid var(--border);
}

/* ─── Sub-headings inside accordions ─────────────────────── */
.sub-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 16px 20px 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sub-desc {
  font-size: 13px;
  color: var(--text-muted);
  padding: 0 20px 10px;
}

.partner-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  gap: 16px;
}
.partner-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.partner-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 520px;
}

.master-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.master-toggle-label {
  font-size: 14px;
  font-weight: 600;
}

/* ─── NEW badge ───────────────────────────────────────────── */
.badge-new {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ─── Data sharing section highlight ─────────────────────── */
.section-new-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  margin-top: 28px;
}

/* ─── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 24px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
footer a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }

/* ─── Landing page ────────────────────────────────────────── */
.landing {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 24px;
}
.landing h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.landing .subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.5;
}
.option-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .option-cards { grid-template-columns: 1fr; }
}
.option-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.option-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.option-number {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.option-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.option-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}
.option-card .cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
