/* ───────────────────────────────────────────────────────────────────
   ActiveMe 360 Team Handbook · stylesheet
   Mobile-first, responsive up to desktop. Brand from brand guidelines:
   Unbounded display + Public Sans body, deep purple ink, pink accent.
   ─────────────────────────────────────────────────────────────────── */

:root {
  --purple: #2E054D;
  --purple-mid: #4A1671;
  --purple-light: #944FC9;
  --pink: #E3225C;
  --pink-light: #FF6293;
  --blue: #2554C7;
  --blue-sky: #47ABFB;
  --teal: #189E8A;
  --cyan: #47FBDF;
  --orange: #E06B22;
  --yellow: #FFAC38;
  --cream: #FBF8F4;
  --page-bg: #FBF8F4;
  --card: #FFFFFF;
  --ink: #2E054D;
  --body-ink: #3A2256;
  --mute: #6B5A7E;
  --border: rgba(46, 5, 77, 0.08);
  --border-strong: rgba(46, 5, 77, 0.15);
  --shadow-sm: 0 2px 8px rgba(46, 5, 77, 0.06);
  --shadow-md: 0 6px 18px rgba(46, 5, 77, 0.08);
  --shadow-lg: 0 12px 28px rgba(46, 5, 77, 0.12);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
}

[data-theme="dark"] {
  --page-bg: #150028;
  --card: #26083F;
  --ink: #FFFFFF;
  --body-ink: rgba(255, 255, 255, 0.92);
  --mute: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --cream: #1F0535;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  font-family: var(--font-body);
  color: var(--body-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}
body { min-height: 100vh; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ─── Shell ──────────────────────────────────────────────────────── */
.app {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--page-bg);
  position: relative;
  padding-bottom: 80px; /* tab bar */
}
@media (min-width: 920px) {
  .app { max-width: 1280px; padding-bottom: 60px; }
}

/* ─── Status bar / top spacer ────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 20px 22px 12px;
  background: color-mix(in srgb, var(--page-bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.topbar-left:hover .topbar-brand { color: var(--pink); }
.topbar-nav {
  display: none;
}
@media (min-width: 920px) {
  .topbar-nav {
    display: flex;
    gap: 4px;
    margin-left: 24px;
  }
  .topbar-nav-link {
    padding: 8px 14px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    color: var(--mute);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  .topbar-nav-link:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
  .topbar-nav-link.active {
    color: var(--pink);
    background: color-mix(in srgb, var(--pink) 12%, transparent);
  }
}
.topbar-logo { width: 32px; height: 32px; border-radius: 7px; }
.topbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.topbar-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: none;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform 0.15s ease;
}
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

/* ─── Cover (home) ────────────────────────────────────────────────── */
.cover {
  position: relative;
  margin: -52px -0px 0; /* sits under topbar */
}
.cover-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background-image: url('assets/photo-football.png');
  background-size: cover;
  background-position: center 75%;
}
.cover-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,5,77,0.35) 0%, rgba(46,5,77,0) 30%, rgba(46,5,77,0) 55%, rgba(46,5,77,0.92) 100%);
}
.cover-rings {
  position: absolute;
  right: -100px;
  top: -40px;
  opacity: 0.6;
  pointer-events: none;
}
.cover-text {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 60px;
  color: #fff;
}
.cover-eyebrow {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}
.cover-title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.cover-title em {
  font-style: normal;
  color: var(--cyan);
}
.cover-sub {
  margin-top: 12px;
  font-weight: 500;
  font-size: 14px;
  opacity: 0.9;
  max-width: 320px;
}
.cover-sheet {
  margin-top: -28px;
  position: relative;
  z-index: 2;
  padding: 24px 22px 30px;
  background: var(--page-bg);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
}

/* Narrow screens (embedded Connecteam webview, small phones) */
@media (max-width: 480px) {
  .cover-hero { height: 340px; }
  .cover-title { font-size: 33px; }
  .cover-sub { font-size: 12.5px; }
  .cover-text { bottom: 66px; left: 20px; right: 20px; }
}

/* ─── Personalised greeting card ──────────────────────────────────── */
.greeting {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--card);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.greeting-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}
.greeting-text { flex: 1; min-width: 0; }
.greeting-generic { text-decoration: none; }
.greeting-generic .greeting-avatar {
  background: #2E054D linear-gradient(135deg, #2E054D, #4A1671);
  font-size: 13px;
  letter-spacing: -0.02em;
}
.greeting-go {
  flex: 0 0 auto;
  color: var(--mute);
  display: flex;
  align-items: center;
}
.greeting-go svg { width: 18px; height: 18px; }
.greeting-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.greeting-sub {
  margin-top: 1px;
  font-weight: 600;
  font-size: 11px;
  color: var(--mute);
}
.greeting-progress {
  position: relative;
  width: 44px;
  height: 44px;
}
.greeting-progress svg { width: 100%; height: 100%; }
.greeting-progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  color: var(--teal);
}

/* ─── Continue-reading card ──────────────────────────────────────── */
.continue {
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  position: relative;
  background-color: #2E054D;
  color: #fff;
  cursor: pointer;
  display: block;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.continue-rings { display: none; }
.continue:hover { transform: translateY(-2px); }
.continue-rings {
  position: absolute;
  right: -40px;
  bottom: -40px;
  opacity: 0.22;
  pointer-events: none;
}
.continue-eyebrow {
  position: relative;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}
.continue-title {
  position: relative;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.continue-meta {
  position: relative;
  margin-top: 5px;
  font-size: 12px;
  opacity: 0.85;
}
.continue-progress {
  position: relative;
  margin-top: 14px;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  overflow: hidden;
}
.continue-progress-fill {
  width: 60%;
  height: 100%;
  background: var(--cyan);
  border-radius: 100px;
}

/* ─── Section heads ──────────────────────────────────────────────── */
.section-head {
  margin-top: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.section-link {
  font-weight: 700;
  font-size: 12px;
  color: var(--pink);
}

/* ─── Category tiles (cover) ─────────────────────────────────────── */
.cat-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cat-tile {
  position: relative;
  height: 122px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease;
  cursor: pointer;
}
.cat-tile:hover { transform: translateY(-2px); }
.cat-tile-rings {
  position: absolute;
  right: -32px;
  top: -32px;
  opacity: 0.32;
  pointer-events: none;
}
.cat-tile-count {
  position: relative;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}
.cat-tile-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ─── Recently updated horizontal scroll ─────────────────────────── */
.scroll-row {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-left: -22px;
  margin-right: -22px;
  padding: 4px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar { display: none; }

.updated-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  padding: 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.updated-card:hover { transform: translateY(-2px); }
.updated-card-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.updated-card-title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  min-height: 50px;
}
.updated-card-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.updated-card-date {
  font-weight: 600;
  font-size: 10px;
  color: var(--mute);
}

/* ─── Tier pill ──────────────────────────────────────────────────── */
.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.02em;
}
.tier-pill .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.tier-pill.tier-signoff {
  background: color-mix(in srgb, var(--pink) 14%, transparent);
  color: var(--pink);
}
.tier-pill.tier-signoff .dot { background: var(--pink); }
.tier-pill.tier-joining {
  background: color-mix(in srgb, var(--blue) 14%, transparent);
  color: var(--blue);
}
.tier-pill.tier-joining .dot { background: var(--blue); }
.tier-pill.tier-reference {
  background: color-mix(in srgb, var(--mute) 18%, transparent);
  color: var(--mute);
}
.tier-pill.tier-reference .dot { background: var(--mute); }

.signed-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 6px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--teal) 18%, transparent);
  color: var(--teal);
  font-weight: 700;
  font-size: 9px;
}
.signed-pill svg { width: 11px; height: 11px; }

/* ─── Browse view ────────────────────────────────────────────────── */
.browse-head {
  padding: 0 22px;
}
.browse-eyebrow {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
}
.browse-title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1;
}

/* ─── Search ─────────────────────────────────────────────────────── */
.search-wrap {
  margin: 14px 22px 0;
  position: relative;
}
.search {
  width: 100%;
  height: 50px;
  border-radius: 100px;
  background: var(--card);
  border: 1.5px solid var(--border);
  padding: 0 18px 0 48px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  outline: none;
}
.search:focus { border-color: var(--purple-light); }
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mute);
  pointer-events: none;
}
.search-icon svg { width: 18px; height: 18px; }
.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mute);
  border: none;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
}
.search-clear.show { display: flex; }

/* ─── Filters (chips) ────────────────────────────────────────────── */
.filters {
  margin-top: 12px;
  padding: 0 22px;
}
.filter-label {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.filter-row {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-left: -22px;
  margin-right: -22px;
  padding: 0 22px 6px;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
  border-radius: 100px;
  background: var(--card);
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.chip-count {
  font-weight: 600;
  font-size: 11px;
  opacity: 0.6;
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--page-bg);
  border-color: var(--ink);
}
.chip[aria-pressed="true"] .chip-dot { background: var(--page-bg); opacity: 0.85; }
.chip[aria-pressed="true"] .chip-count { color: var(--page-bg); opacity: 0.7; }
[data-theme="dark"] .chip[aria-pressed="true"] {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}
[data-theme="dark"] .chip[aria-pressed="true"] .chip-dot { background: #fff; opacity: 0.9; }
[data-theme="dark"] .chip[aria-pressed="true"] .chip-count { color: #fff; opacity: 0.75; }

/* ─── Category sections ──────────────────────────────────────────── */
.cat-section {
  margin: 22px 22px 0;
}
.cat-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cat-section-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.cat-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex: 1;
}
.cat-section-count {
  font-weight: 700;
  font-size: 11px;
  color: var(--mute);
}

/* ─── Policy list ────────────────────────────────────────────────── */
.policy-list {
  border-radius: 16px;
  background: var(--card);
  border: 1.5px solid var(--border);
  overflow: hidden;
}
.policy-row {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  transition: background-color 0.15s ease;
  cursor: pointer;
}
.policy-row:first-child { border-top: none; }
.policy-row:hover { background-color: color-mix(in srgb, var(--ink) 4%, transparent); }
.policy-row-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.policy-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.policy-row-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--body-ink);
  line-height: 1.3;
}
.policy-row-meta {
  font-weight: 500;
  font-size: 10.5px;
  color: var(--mute);
}
.policy-row-end {
  display: flex;
  align-items: center;
  gap: 6px;
}
.policy-row-chev { color: var(--mute); }
.policy-row-chev svg { width: 14px; height: 14px; }

/* ─── Welcome ────────────────────────────────────────────────────── */
.welcome {
  padding: 0 22px 30px;
}
.welcome-img {
  position: relative;
  margin-top: 12px;
  display: flex;
  justify-content: center;
}
.welcome-img-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background-image: url('assets/photo-arms.png');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
}
.welcome-eyebrow {
  margin-top: 24px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
}
.welcome-title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1;
}
.welcome-lead {
  margin-top: 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--body-ink);
  line-height: 1.5;
}
.welcome-body {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--body-ink);
  line-height: 1.55;
}
.welcome-card {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1.5px solid color-mix(in srgb, var(--teal) 30%, transparent);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.welcome-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--teal) 18%, transparent);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  flex: 0 0 auto;
}
.welcome-signoff {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.welcome-signoff-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

/* ─── Tab bar (bottom) ───────────────────────────────────────────── */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--page-bg) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.tabbar-inner {
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.tab {
  background: none;
  border: none;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--mute);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10px;
}
.tab svg { width: 22px; height: 22px; }
.tab.active { color: var(--pink); }

/* ─── View transitions ──────────────────────────────────────────── */
.view { animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.hidden { display: none !important; }

/* ─── Desktop layout enhancements ────────────────────────────────── */
@media (min-width: 920px) {
  .app { max-width: 1080px; }
  .topbar { padding: 28px 40px 16px; }
  .topbar-brand { font-size: 16px; }
  .topbar-logo { width: 40px; height: 40px; }

  .cover-hero { height: 380px; border-radius: 0 0 32px 32px; margin: 0 40px; }
  .cover-text { left: 56px; right: 56px; bottom: 50px; }
  .cover-title { font-size: 64px; }
  .cover-sub { font-size: 16px; max-width: 480px; }

  /* Cover sheet stacks normally; greeting + continue go side by side */
  .cover-sheet {
    margin: -32px 40px 0;
    padding: 32px 40px 60px;
    border-radius: 32px;
    background: var(--page-bg);
    display: block;
  }
  .cover-top-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
  }
  .cover-top-row .greeting { margin: 0; }
  .cover-top-row .continue { margin: 0; }

  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .cat-tile { height: 138px; padding: 16px; }
  .cat-tile-title { font-size: 17px; }

  /* Recently updated — wrap into a grid on desktop so nothing is cut off */
  .scroll-row {
    margin-left: 0;
    margin-right: 0;
    padding: 4px 0;
    overflow-x: visible;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }
  .updated-card { flex: none; width: auto; }

  .browse-head { padding: 0 40px; }
  .browse-title { font-size: 44px; }
  .search-wrap { margin: 18px 40px 0; }
  .filters { padding: 0 40px; }
  .filter-row { margin-left: -40px; margin-right: -40px; padding: 0 40px 6px; }

  .cat-section { margin: 28px 40px 0; }
  .cat-section-title { font-size: 18px; }

  /* Two-up policy list on desktop */
  .policy-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    column-gap: 0;
  }
  .policy-row { border-top: none; border-bottom: 1px solid var(--border); }
  .policy-row:nth-last-child(-n+2) { border-bottom: none; }
  .policy-row:nth-child(odd) { border-right: 1px solid var(--border); }

  .welcome { padding: 0 40px 60px; max-width: 760px; margin: 0 auto; }
  .welcome-title { font-size: 44px; }
  .welcome-img-photo { width: 280px; height: 280px; }

  .tabbar { display: none; }
  .app { padding-bottom: 60px; }
}

/* ─── Accessibility ──────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ─── Welcome page extras ─────────────────────────────────────── */
.welcome-howto {
  margin-top: 28px;
  padding: 22px;
  border-radius: 20px;
  background: var(--card);
  border: 1.5px solid var(--border);
}
.welcome-howto-eyebrow {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
}
.welcome-howto-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-weight: 500;
  font-size: 12px;
  color: var(--mute);
  line-height: 1.5;
  font-style: italic;
}
.welcome-cta-row {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.welcome-cta {
  display: flex;
  height: 54px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.welcome-cta svg { width: 18px; height: 18px; }
.welcome-cta-primary { background: var(--pink); color: #fff; }
.welcome-cta-secondary { background: var(--card); color: var(--ink); border: 2px solid var(--border-strong); }

/* ─── About page ──────────────────────────────────────────────── */
.about { padding: 0 22px 80px; }
.about-hero {
  position: relative;
  margin: 0 -22px;
  padding: 60px 28px 36px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 60%, #6B21A8 100%);
  color: #fff;
  overflow: hidden;
}
.about-rings {
  position: absolute;
  right: -60px;
  top: -50px;
  opacity: 0.22;
  pointer-events: none;
}
.about-rings svg circle { stroke: #fff; }
.about-eyebrow {
  position: relative;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}
.about-title {
  position: relative;
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.about-sub {
  position: relative;
  margin: 14px 0 0;
  font-weight: 500;
  font-size: 14px;
  opacity: 0.92;
  line-height: 1.5;
  max-width: 540px;
}
.about-section { margin-top: 32px; }
.about-section-eyebrow {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
}
.about-section-title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.about-section-body {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--body-ink);
}
.about-statement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.about-statement {
  padding: 22px;
  border-radius: 20px;
  background: var(--card);
  border: 1.5px solid var(--border);
}
.about-statement-pink { background: var(--pink); color: #fff; border-color: var(--pink); }
.about-statement-label {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.about-statement-title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.values-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.value-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--card);
  border: 1.5px solid var(--border);
}
.value-letter {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.value-name {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.value-lines {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.value-lines li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--body-ink);
}
.value-lines li::before {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
  content: "";
  margin-top: 8px;
}
.value-foundation {
  margin-top: 14px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  color: #fff;
  border: none;
}
.value-foundation .value-letter {
  background: #fff;
  color: var(--purple);
}
.value-foundation .value-name { color: #fff; }
.value-foundation .value-lines li { color: rgba(255,255,255,0.92); }
.value-foundation .value-lines li::before { background: rgba(255,255,255,0.85); }
.value-foundation-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.value-foundation-eyebrow {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.about-criteria {
  margin-top: 14px;
  padding: 18px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--teal) 8%, var(--card));
  border: 1.5px solid color-mix(in srgb, var(--teal) 30%, var(--border));
}
.about-criteria-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}
.about-criteria-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-criteria-list li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--body-ink);
}
.about-criteria-list li::before {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
  content: "✓";
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.about-source {
  margin-top: 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mute);
  font-style: italic;
}
.about-source a { color: var(--pink); text-decoration: none; }

@media (min-width: 920px) {
  .about { padding: 0 40px 60px; max-width: 1080px; margin: 0 auto; }
  .about-hero { border-radius: 0 0 32px 32px; padding: 70px 56px 50px; margin: 0; }
  .about-title { font-size: 56px; }
  .about-statement-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .about-section-title { font-size: 32px; }
  .values-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .value-foundation { grid-column: span 2; }
}

@media print {
  .topbar, .tabbar, .cover, .filters, .search-wrap { display: none !important; }
  .app { max-width: none; padding: 0; }
  .policy-list { border: 1px solid #ccc; }
}
