:root {
  color-scheme: light;
  --ink: #271e31;
  --ink-soft: #4f4555;
  --muted: #6c6270;
  --paper: #f8f2ef;
  --surface: #fffdfb;
  --surface-2: #f2eae8;
  --primary: #67469a;
  --primary-hover: #563985;
  --primary-deep: #422c65;
  --sidebar: #281d38;
  --lavender: #ece3f5;
  --lavender-strong: #d4c1e7;
  --blush: #c95770;
  --blush-soft: #f8e1e6;
  --amber: #a96935;
  --amber-soft: #f6e8da;
  --danger: #b63f58;
  --danger-soft: #f8e1e5;
  --blue: #4f668f;
  --blue-soft: #e5ebf4;
  --success: #356b5a;
  --success-soft: #e1eee8;
  --line: #e7dde3;
  --line-strong: #d9ccd5;
  --shadow: 0 20px 56px rgba(61, 39, 78, 0.1);
  --shadow-soft: 0 8px 25px rgba(61, 39, 78, 0.07);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --sidebar-width: 272px;
  --content-max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 91% 3%, rgba(201, 87, 112, 0.09), transparent 31rem),
    radial-gradient(circle at 52% 100%, rgba(103, 70, 154, 0.06), transparent 35rem),
    var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: var(--primary-deep);
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.13;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.1vw, 3.8rem);
  font-weight: 720;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  font-weight: 700;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #6b4499 !important;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 10px;
  color: white;
  background: var(--sidebar);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  height: 100vh;
  min-width: 0;
  flex-direction: column;
  padding: 26px 18px 19px;
  overflow: hidden auto;
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 0 0, rgba(183, 128, 216, 0.2), transparent 18rem),
    linear-gradient(180deg, #302140 0%, var(--sidebar) 63%, #21172e 100%);
}

.brand-lockup,
.mobile-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-lockup strong,
.mobile-brand strong {
  display: block;
  color: white;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-lockup small,
.mobile-brand small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.7rem;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: #f4ced8;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18);
}

.brand-mark svg {
  width: 30px;
  height: 30px;
}

.brand-mark.small {
  width: 38px;
  height: 38px;
  border-color: var(--line);
  color: var(--primary);
  background: var(--surface);
}

.age-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 25px 0 20px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.68rem;
}

.age-pill span {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #2d213c;
  background: #f0d9e3;
  font-size: 0.62rem;
  font-weight: 800;
}

.nav-list {
  display: grid;
  gap: 7px;
}

.nav-item {
  display: grid;
  width: 100%;
  min-width: 0;
  align-items: center;
  padding: 12px 13px;
  border: 0;
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

.nav-item[aria-current="page"] {
  color: white;
  background: linear-gradient(100deg, rgba(201, 87, 112, 0.25), rgba(137, 95, 188, 0.2));
  box-shadow: inset 3px 0 #e5a4b4;
}

.nav-icon,
[data-icon] {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

[data-icon] svg {
  width: 100%;
  height: 100%;
}

.sidebar-bottom {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.safety-entry {
  display: grid;
  width: 100%;
  min-width: 0;
  align-items: center;
  padding: 13px 12px;
  border: 1px solid rgba(255, 181, 196, 0.17);
  border-radius: 15px;
  color: white;
  background: rgba(182, 63, 88, 0.1);
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  text-align: left;
}

.safety-entry:hover {
  background: rgba(182, 63, 88, 0.18);
}

.safety-entry strong,
.safety-entry small,
.privacy-note strong,
.privacy-note small {
  display: block;
}

.safety-entry strong {
  font-size: 0.78rem;
}

.safety-entry small,
.privacy-note small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.66rem;
}

.safety-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ef859c;
  box-shadow: 0 0 0 5px rgba(239, 133, 156, 0.1);
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 7px;
  color: rgba(255, 255, 255, 0.62);
}

.privacy-note [data-icon] {
  width: 17px;
  height: 17px;
}

.privacy-note strong {
  font-size: 0.7rem;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-width: 0;
  height: 73px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(24px, 4vw, 58px);
  border-bottom: 1px solid rgba(231, 221, 227, 0.75);
  background: rgba(248, 242, 239, 0.88);
  backdrop-filter: blur(16px);
}

.mobile-brand {
  display: none;
}

.topbar-context {
  min-width: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.topbar-context strong {
  color: var(--ink);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.stored-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
}

.stored-pill [data-icon] {
  width: 15px;
  height: 15px;
}

.topbar-safety {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid #eacbd2;
  border-radius: 999px;
  color: #8b3046;
  background: #fff8f8;
  font-size: 0.74rem;
  font-weight: 700;
}

#main-content {
  min-width: 0;
}

#app {
  width: min(100%, var(--content-max));
  min-width: 0;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 58px) clamp(22px, 4vw, 58px) 72px;
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.page-head > div {
  min-width: 0;
}

.page-head h1 {
  max-width: 780px;
  margin-bottom: 10px;
}

.page-head p {
  max-width: 690px;
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 19px;
  height: 1px;
  content: "";
  background: currentColor;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.79rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  box-shadow: 0 8px 18px rgba(103, 70, 154, 0.18);
}

.button-primary:hover {
  background: linear-gradient(135deg, #382356, var(--primary-hover));
  box-shadow: 0 10px 24px rgba(103, 70, 154, 0.24);
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--primary-deep);
  background: var(--surface);
}

.button-secondary:hover {
  border-color: var(--lavender-strong);
  background: #fcf9ff;
}

.button-quiet {
  min-height: 38px;
  padding: 8px 11px;
  border-color: transparent;
  color: var(--primary);
  background: transparent;
}

.button-danger {
  color: white;
  background: var(--danger);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.focus-card {
  position: relative;
  min-width: 0;
  min-height: 340px;
  padding: clamp(27px, 3.4vw, 45px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: white;
  background:
    radial-gradient(circle at 96% 4%, rgba(248, 225, 230, 0.26), transparent 19rem),
    linear-gradient(135deg, #4b3075 0%, #684493 54%, #8a577e 100%);
  box-shadow: var(--shadow);
}

.focus-card::after {
  position: absolute;
  right: -90px;
  bottom: -112px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 38px rgba(255, 255, 255, 0.03), 0 0 0 76px rgba(255, 255, 255, 0.025);
}

.focus-card > * {
  position: relative;
  z-index: 1;
}

.focus-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.focus-card h1,
.focus-card h2,
.focus-card h3,
.focus-card p {
  color: white;
}

.focus-card h2 {
  max-width: 570px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.5vw, 3.6rem);
}

.focus-card p {
  max-width: 600px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
}

.focus-card .button-primary {
  color: var(--primary-deep);
  background: white;
  box-shadow: 0 10px 28px rgba(37, 19, 50, 0.22);
}

.focus-card .text-action {
  color: rgba(255, 255, 255, 0.82);
}

.why-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 23px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
}

.why-line strong {
  color: white;
}

.pulse-card,
.surface-card {
  min-width: 0;
  border: 1px solid rgba(231, 221, 227, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 251, 0.94);
  box-shadow: var(--shadow-soft);
}

.pulse-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 26px;
}

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.privacy-chip,
.meta-chip,
.access-chip,
.stage-chip {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  white-space: nowrap;
}

.privacy-chip {
  padding: 5px 8px;
  color: var(--success);
  background: var(--success-soft);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.pulse-card h3 {
  font-size: 1.45rem;
}

.pulse-card > p {
  margin-bottom: 20px;
  font-size: 0.82rem;
}

.pulse-options {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.pulse-option {
  display: grid;
  width: 100%;
  min-width: 0;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  background: #fffdfb;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  font-size: 0.77rem;
  font-weight: 650;
  text-align: left;
}

.pulse-option:hover,
.pulse-option[aria-pressed="true"] {
  border-color: var(--lavender-strong);
  color: var(--primary-deep);
  background: #f8f3fc;
}

.mood-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.mood-dot.steady { background: #4d8975; }
.mood-dot.soft { background: #c78b56; }
.mood-dot.concern { background: var(--danger); }

.section-block {
  margin-top: 42px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.section-heading h2 {
  margin-bottom: 4px;
  font-size: 1.55rem;
}

.section-heading p {
  margin-bottom: 0;
  font-size: 0.8rem;
}

.recommendation-grid,
.feature-grid,
.privacy-grid,
.support-grid,
.saved-grid,
.safety-grid {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.recommendation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recommendation-card,
.feature-card,
.saved-card,
.support-card,
.privacy-card,
.safety-choice {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.recommendation-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 21px;
}

.card-icon,
.feature-icon,
.provider-avatar,
.safety-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  color: var(--primary);
  background: var(--lavender);
}

.card-icon [data-icon],
.feature-icon [data-icon] {
  width: 19px;
  height: 19px;
}

.recommendation-card h3 {
  margin-bottom: 6px;
}

.recommendation-card p {
  margin-bottom: 17px;
  font-size: 0.77rem;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: left;
}

.text-action::after {
  content: "→";
  transition: transform 160ms ease;
}

.text-action:hover::after {
  transform: translateX(3px);
}

.insight-strip {
  display: grid;
  min-width: 0;
  align-items: center;
  margin-top: 18px;
  padding: 23px 26px;
  border-radius: var(--radius-lg);
  color: white;
  background:
    radial-gradient(circle at 94% 20%, rgba(255, 255, 255, 0.12), transparent 15rem),
    linear-gradient(120deg, #38264f, #68458b 68%, #835271);
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
}

.insight-strip .card-icon {
  margin: 0;
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.insight-strip h3,
.insight-strip p {
  color: white;
}

.insight-strip h3 {
  margin-bottom: 3px;
}

.insight-strip p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
}

.insight-strip .button {
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
  background: rgba(255, 255, 255, 0.09);
}

.toolbar {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 25px;
}

.search-field {
  position: relative;
  width: min(100%, 390px);
  min-width: 0;
}

.search-field [data-icon] {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-field input,
.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: white;
}

.search-field input {
  height: 46px;
  padding: 0 15px 0 43px;
}

.search-field input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: #746a77;
}

.filter-pills {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  overflow-x: visible;
  scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.filter-pill,
.choice-chip,
.select-card {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--surface);
  font-weight: 700;
}

.filter-pill {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  white-space: nowrap;
}

.filter-pill[aria-pressed="true"],
.filter-pill:hover,
.choice-chip[aria-pressed="true"],
.select-card[aria-pressed="true"] {
  border-color: var(--lavender-strong);
  color: var(--primary-deep);
  background: var(--lavender);
}

.journey-family {
  margin-top: 36px;
}

.journey-family:first-of-type {
  margin-top: 0;
}

.family-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 15px;
}

.family-index {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: var(--primary-deep);
  background: var(--lavender);
  font-size: 0.7rem;
  font-weight: 800;
}

.family-head h2 {
  margin-bottom: 2px;
  font-size: 1.25rem;
}

.family-head p {
  margin-bottom: 0;
  font-size: 0.72rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  position: relative;
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: 21px;
  overflow: hidden;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--lavender-strong);
  box-shadow: var(--shadow);
}

.feature-card[hidden],
.journey-family[hidden] {
  display: none;
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 23px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  color: var(--primary);
  background: var(--lavender);
}

.feature-card[data-tone="rose"] .feature-icon { color: #a34059; background: var(--blush-soft); }
.feature-card[data-tone="amber"] .feature-icon { color: var(--amber); background: var(--amber-soft); }
.feature-card[data-tone="blue"] .feature-icon { color: var(--blue); background: var(--blue-soft); }
.feature-card[data-tone="coral"] .feature-icon { color: var(--danger); background: var(--danger-soft); }

.feature-card h3 {
  font-size: 1.08rem;
}

.feature-card > p {
  margin-bottom: 18px;
  font-size: 0.76rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 16px;
}

.meta-chip,
.access-chip,
.stage-chip {
  padding: 5px 8px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 0.61rem;
  font-weight: 700;
}

.access-chip {
  color: var(--success);
  background: var(--success-soft);
}

.empty-state {
  padding: 42px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty-state .card-icon {
  margin: 0 auto 16px;
}

.together-hero,
.support-hero,
.safety-hero,
.privacy-hero {
  position: relative;
  min-width: 0;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.together-hero {
  display: grid;
  align-items: center;
  border: 1px solid #dfd0eb;
  background:
    radial-gradient(circle at 94% 20%, rgba(201, 87, 112, 0.16), transparent 18rem),
    linear-gradient(135deg, #f5eefb, #fff9f9 60%, #f8ebe9);
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 32px;
}

.together-hero h1,
.support-hero h1,
.privacy-hero h1 {
  max-width: 720px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
}

.together-hero p {
  max-width: 620px;
}

.privacy-visual {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
}

.account-orb {
  position: absolute;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 8px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  color: var(--primary-deep);
  background: linear-gradient(145deg, #e8d9f2, #fff);
  box-shadow: var(--shadow);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.account-orb.you { left: 9%; top: 12%; }
.account-orb.partner { right: 8%; bottom: 8%; color: #8e4054; background: linear-gradient(145deg, #f5dbe1, #fff); }

.mutual-link {
  position: absolute;
  width: 44%;
  height: 2px;
  transform: rotate(-26deg);
  background: repeating-linear-gradient(90deg, var(--lavender-strong) 0 8px, transparent 8px 15px);
}

.privacy-label {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--success);
  background: white;
  font-size: 0.65rem;
  font-weight: 800;
}

.invite-panel {
  display: grid;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
}

.invite-panel h3 { margin-bottom: 4px; }
.invite-panel p { margin-bottom: 0; font-size: 0.76rem; }

.invite-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  padding: 10px 13px;
  border: 1px dashed var(--lavender-strong);
  border-radius: 11px;
  color: var(--primary-deep);
  background: #f8f3fc;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.privacy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.privacy-card {
  padding: 21px;
}

.privacy-card p {
  margin-bottom: 0;
  font-size: 0.75rem;
}

.privacy-card .card-icon { margin-bottom: 17px; }

.shared-activity {
  display: grid;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
}

.shared-activity .card-icon { margin: 0; }
.shared-activity h3 { margin-bottom: 4px; }
.shared-activity p { margin-bottom: 0; font-size: 0.75rem; }

.privacy-hero {
  color: white;
  background:
    radial-gradient(circle at 90% 10%, rgba(248, 225, 230, 0.22), transparent 20rem),
    linear-gradient(130deg, #37234f, #654284 65%, #835271);
}

.privacy-hero h1,
.privacy-hero p,
.privacy-hero .eyebrow {
  color: white;
}

.privacy-hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.72);
}

.privacy-hero .button-primary {
  color: var(--primary-deep);
  background: white;
}

.privacy-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.privacy-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.67rem;
}

.saved-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.saved-card {
  padding: 22px;
}

.saved-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.saved-card h3 {
  overflow-wrap: anywhere;
}

.saved-card p {
  margin-bottom: 13px;
  font-size: 0.77rem;
  white-space: pre-wrap;
}

.saved-card time {
  color: var(--muted);
  font-size: 0.64rem;
}

.empty-private {
  grid-column: 1 / -1;
  padding: 38px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 251, 0.55);
  text-align: center;
}

.empty-private .card-icon {
  margin: 0 auto 16px;
}

.privacy-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.privacy-controls p {
  margin-bottom: 0;
  font-size: 0.75rem;
}

.support-hero {
  display: grid;
  align-items: center;
  color: white;
  background:
    radial-gradient(circle at 92% 10%, rgba(246, 210, 220, 0.22), transparent 19rem),
    linear-gradient(128deg, #37234f, #654284 64%, #835271);
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 35px;
}

.support-hero h1,
.support-hero h2,
.support-hero p,
.support-hero .eyebrow {
  color: white;
}

.support-hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.7);
}

.support-hero .button-primary {
  color: var(--primary-deep);
  background: white;
}

.support-hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.18);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.support-promise {
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
}

.support-promise h3 {
  margin-bottom: 15px;
  color: white;
}

.promise-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.promise-list li {
  display: grid;
  align-items: start;
  color: rgba(255, 255, 255, 0.72);
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  font-size: 0.74rem;
}

.promise-list li::before {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  content: "✓";
  font-size: 0.62rem;
}

.support-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.support-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 21px;
}

.support-card > .stage-chip {
  align-self: flex-start;
  margin: -8px 0 12px;
  color: var(--primary-deep);
  background: var(--lavender);
}

.provider-avatar {
  width: 48px;
  height: 48px;
  margin-bottom: 19px;
  color: var(--primary-deep);
  background: linear-gradient(145deg, var(--lavender), #faf7fc);
  font-size: 0.72rem;
  font-weight: 800;
}

.support-card .role {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 800;
}

.support-card p {
  margin-bottom: 15px;
  font-size: 0.72rem;
}

.provider-meta {
  display: grid;
  gap: 6px;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 0.65rem;
}

.support-card .button {
  width: 100%;
  margin-top: auto;
}

.public-resources {
  display: grid;
  gap: 10px;
}

.resource-row {
  display: grid;
  min-width: 0;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: inherit;
  background: var(--surface);
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  text-decoration: none;
}

.resource-row:hover {
  border-color: var(--lavender-strong);
}

.resource-number {
  min-width: 52px;
  color: var(--primary-deep);
  font-size: 1.05rem;
  font-weight: 800;
}

.resource-row strong,
.resource-row small {
  display: block;
}

.resource-row strong { font-size: 0.8rem; }
.resource-row small { margin-top: 2px; color: var(--muted); font-size: 0.68rem; }

.safety-hero {
  color: var(--ink);
  border: 1px solid #ebcfd5;
  background:
    radial-gradient(circle at 90% 4%, rgba(201, 87, 112, 0.16), transparent 20rem),
    linear-gradient(140deg, #fffafa, #f9e8eb);
}

.safety-hero h1 {
  max-width: 760px;
  font-size: clamp(2.3rem, 4.4vw, 4.7rem);
}

.safety-hero > p {
  max-width: 720px;
}

.safety-private {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 19px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--success);
  background: var(--success-soft);
  font-size: 0.7rem;
  font-weight: 800;
}

.quick-exit {
  color: white;
  background: var(--danger);
}

.safety-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.safety-choice {
  display: grid;
  min-width: 0;
  align-items: start;
  padding: 22px;
  color: inherit;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 15px;
  text-decoration: none;
}

button.safety-choice {
  width: 100%;
  text-align: left;
}

.safety-choice:hover {
  border-color: #e3b4bf;
  transform: translateY(-1px);
}

.safety-icon {
  width: 42px;
  height: 42px;
  color: var(--danger);
  background: var(--danger-soft);
}

.safety-choice-copy,
.safety-choice-title,
.safety-choice-description {
  display: block;
}

.safety-choice-title {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.13;
}

.safety-choice-description {
  color: var(--muted);
  font-size: 0.72rem;
}

.safety-resources {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.safety-resource {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: inherit;
  background: var(--surface);
  text-decoration: none;
}

.safety-resource strong,
.safety-resource span,
.safety-resource small {
  display: block;
}

.safety-resource strong {
  margin-bottom: 8px;
  color: var(--danger);
  font-size: 1.35rem;
}

.safety-resource span {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.safety-resource small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.61rem;
}

.safety-note {
  padding: 17px 19px;
  border-left: 3px solid var(--amber);
  border-radius: 0 12px 12px 0;
  color: var(--ink-soft);
  background: var(--amber-soft);
  font-size: 0.72rem;
}

.modal-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 22px;
  overflow-y: auto;
  background: rgba(25, 15, 32, 0.64);
  backdrop-filter: blur(8px);
  animation: fade-in 160ms ease both;
}

.modal {
  width: min(100%, 680px);
  max-height: calc(100vh - 44px);
  overflow: hidden auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(28, 15, 38, 0.28);
  animation: modal-in 180ms ease both;
}

.modal.wide {
  width: min(100%, 860px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 26px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin-bottom: 5px;
  font-size: 1.55rem;
}

.modal-head p {
  margin-bottom: 0;
  font-size: 0.75rem;
}

.modal-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  font-size: 1.2rem;
}

.modal-body {
  padding: 26px;
}

.modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px 24px;
  border-top: 1px solid var(--line);
}

.tool-intro {
  display: grid;
  align-items: center;
  padding: 3px 0 8px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
}

.tool-intro .feature-icon {
  width: 58px;
  height: 58px;
}

.tool-intro p {
  margin-bottom: 0;
  font-size: 0.8rem;
}

.tool-promise {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 17px;
  border-radius: 14px;
  background: var(--lavender);
}

.tool-promise span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.tool-promise span::before {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--primary);
  content: "✓";
  font-size: 0.58rem;
}

.progress-steps {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 23px;
}

.progress-steps span {
  height: 4px;
  flex: 1;
  border-radius: 999px;
  background: var(--line);
}

.progress-steps span.active {
  background: var(--primary);
}

.question-block h3 {
  margin-bottom: 7px;
  font-size: 1.24rem;
}

.question-block > p {
  margin-bottom: 19px;
  font-size: 0.77rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.choice-chip,
.select-card {
  min-width: 0;
  border-radius: 12px;
  text-align: left;
}

.choice-chip {
  padding: 12px 13px;
  font-size: 0.75rem;
}

.choice-chip span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 500;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
}

.field label,
.field-label {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  padding: 12px 13px;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field small {
  color: var(--muted);
  font-size: 0.65rem;
}

.form-error {
  margin-bottom: 17px;
  padding: 11px 13px;
  border: 1px solid #e6bbc5;
  border-radius: 11px;
  color: #8b3046;
  background: var(--danger-soft);
  font-size: 0.75rem;
  font-weight: 750;
}

.tool-fields {
  margin-top: 17px;
}

.tool-fields .field {
  margin-bottom: 0;
}

.topic-summary {
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--lavender);
  font-size: 0.74rem;
}

.generated-plan {
  display: grid;
  gap: 10px;
}

.plan-part {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.plan-part.field {
  margin-bottom: 0;
}

.plan-part textarea {
  min-height: 80px;
}

.plan-part strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-part p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.77rem;
}

.personalise-grid {
  display: grid;
  gap: 22px;
}

.selector-group h3 {
  margin-bottom: 4px;
}

.selector-group > p {
  margin-bottom: 13px;
  font-size: 0.72rem;
}

.select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.select-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  font-size: 0.72rem;
}

.select-card[aria-pressed="true"]::after {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--primary);
  content: "✓";
  font-size: 0.58rem;
}

.invite-code-large {
  display: block;
  margin: 17px 0;
  padding: 18px;
  border: 1px dashed var(--lavender-strong);
  border-radius: 14px;
  color: var(--primary-deep);
  background: var(--lavender);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-align: center;
  overflow-wrap: anywhere;
}

.mutual-status {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  text-align: center;
}

.mutual-status .pulse-ring {
  width: 42px;
  height: 42px;
  margin: 0 auto 13px;
  border: 3px solid var(--lavender-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}

.mutual-status p {
  margin-bottom: 0;
  font-size: 0.76rem;
}

.mutual-reveal {
  display: grid;
  gap: 12px;
}

.reveal-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.reveal-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 0.68rem;
}

.reveal-card p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.8rem;
}

.provider-preview {
  display: grid;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
}

.provider-preview .provider-avatar { margin: 0; }
.provider-preview h3 { margin-bottom: 2px; }
.provider-preview p { margin-bottom: 0; font-size: 0.71rem; }

.scope-list {
  display: grid;
  gap: 9px;
  margin: 18px 0;
}

.scope-row {
  display: grid;
  padding: 12px 13px;
  border-radius: 11px;
  background: var(--surface-2);
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.71rem;
}

.scope-row strong { color: var(--ink); }
.scope-row span { color: var(--muted); overflow-wrap: anywhere; }

.preview-confirmation {
  padding: 22px;
  border: 1px solid #cfe0d8;
  border-radius: 15px;
  background: var(--success-soft);
  text-align: center;
}

.preview-confirmation .card-icon {
  margin: 0 auto 14px;
  color: var(--success);
  background: white;
}

.preview-confirmation h3 { margin-bottom: 7px; }
.preview-confirmation p { margin-bottom: 0; color: var(--success); font-size: 0.76rem; font-weight: 700; }

.toast-root {
  position: fixed;
  z-index: 150;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: min(360px, calc(100vw - 44px));
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: grid;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  color: white;
  background: #30213f;
  box-shadow: 0 15px 45px rgba(34, 19, 44, 0.25);
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  animation: toast-in 180ms ease both;
}

.toast::before {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-deep);
  background: #eadff3;
  content: "✓";
  font-size: 0.67rem;
  font-weight: 900;
}

.mobile-nav {
  display: none;
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1120px) {
  :root { --sidebar-width: 236px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safety-resources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar {
    height: 69px;
    padding: 0 20px;
  }
  .mobile-brand { display: flex; }
  .mobile-brand strong { color: var(--ink); font-size: 0.86rem; }
  .mobile-brand small { color: var(--muted); font-size: 0.61rem; }
  .topbar-context,
  .stored-pill { display: none; }
  #app { padding-bottom: 112px; }
  .mobile-nav {
    position: fixed;
    z-index: 50;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    width: auto;
    min-width: 0;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    background: rgba(40, 29, 56, 0.96);
    box-shadow: 0 18px 50px rgba(35, 21, 46, 0.3);
    backdrop-filter: blur(15px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .mobile-nav button {
    display: flex;
    min-width: 0;
    min-height: 55px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 2px;
    border: 0;
    border-radius: 13px;
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
  }
  .mobile-nav button [data-icon] { width: 19px; height: 19px; }
  .mobile-nav button[aria-current="page"] { color: white; background: rgba(255, 255, 255, 0.1); }
  .hero-grid { grid-template-columns: 1fr; }
  .pulse-card { min-height: auto; }
  .recommendation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-pills { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; }
  .together-hero,
  .support-hero { grid-template-columns: 1fr; }
  .privacy-visual { min-height: 230px; }
}

@media (max-width: 640px) {
  .topbar { padding: 0 14px; }
  .topbar-safety { padding: 8px 10px; font-size: 0.66rem; }
  .topbar-safety .safety-dot { display: none; }
  #app { padding: 24px 15px 105px; }
  .page-head { display: block; margin-bottom: 22px; }
  .page-head .button { width: 100%; margin-top: 13px; }
  .page-head h1 { font-size: 2.2rem; }
  .focus-card { min-height: 390px; padding: 26px 22px; }
  .focus-card h2 { font-size: 2.2rem; }
  .focus-label { margin-bottom: 34px; }
  .focus-card .button-row .button { width: 100%; }
  .pulse-card { padding: 22px; }
  .section-block { margin-top: 32px; }
  .section-heading { align-items: flex-start; }
  .recommendation-grid,
  .feature-grid,
  .privacy-grid,
  .support-grid,
  .saved-grid,
  .safety-grid,
  .safety-resources { grid-template-columns: 1fr; }
  .recommendation-card { min-height: auto; }
  .insight-strip { grid-template-columns: auto minmax(0, 1fr); padding: 20px; }
  .insight-strip .button { grid-column: 1 / -1; width: 100%; }
  .toolbar { display: grid; }
  .search-field { width: 100%; }
  .filter-pills { width: calc(100vw - 30px); max-width: 100%; }
  .feature-card { min-height: auto; }
  .family-head { align-items: flex-start; }
  .together-hero,
  .support-hero,
  .privacy-hero,
  .safety-hero { padding: 28px 22px; border-radius: 22px; }
  .together-hero h1,
  .support-hero h1,
  .privacy-hero h1,
  .safety-hero h1 { font-size: 2.35rem; }
  .privacy-visual { min-height: 210px; }
  .account-orb { width: 112px; height: 112px; }
  .invite-panel,
  .shared-activity,
  .privacy-controls { grid-template-columns: 1fr; }
  .invite-panel .button,
  .shared-activity .button,
  .privacy-controls .button-row { width: 100%; }
  .invite-panel .button-row .button,
  .privacy-controls .button-row .button { flex: 1; }
  .resource-row { grid-template-columns: auto minmax(0, 1fr); }
  .resource-row > :last-child { display: none; }
  .modal-overlay { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 91vh; border-radius: 24px 24px 0 0; }
  .modal-head { padding: 21px 19px 17px; }
  .modal-body { padding: 21px 19px; }
  .modal-foot { padding: 16px 19px calc(19px + env(safe-area-inset-bottom)); }
  .modal-foot .button { flex: 1; }
  .choice-grid,
  .select-grid { grid-template-columns: 1fr; }
  .scope-row { grid-template-columns: 1fr; gap: 3px; }
  .toast-root { right: 14px; bottom: 90px; width: calc(100vw - 28px); }
}

@media (max-width: 380px) {
  .mobile-brand small { display: none; }
  .topbar-safety { font-size: 0.62rem; }
  .mobile-nav { right: 7px; left: 7px; padding: 5px; }
  .mobile-nav button { font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
