@font-face {
  font-family: "Merienda-Bold";
  src: url("/fonts/merienda-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #2f2231;
  --muted: #766c78;
  --paper: #ffffff;
  --canvas: #fff8fa;
  --blush: #fff0f4;
  --rose: #d72772;
  --rose-dark: #a91357;
  --coral: #ff725e;
  --peach: #ffb183;
  --plum: #5b2356;
  --line: #f0dfe5;
  --green: #2fa878;
  --shadow-sm: 0 14px 35px rgba(85, 31, 64, 0.08);
  --shadow-lg: 0 30px 80px rgba(99, 34, 73, 0.16);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --display: "Merienda-Bold", "Trebuchet MS", cursive;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
.display-type,
.brand-name {
  font-family: var(--display);
  font-weight: 700;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  color: #fff;
  background: var(--plum);
  border-radius: 999px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.preview-bar {
  position: relative;
  z-index: 90;
  padding: 7px 24px;
  color: #fff;
  background: var(--plum);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.site-header {
  position: relative;
  z-index: 70;
  height: 132px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(240, 223, 229, 0.8);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(82, 25, 62, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 132px;
  padding-left: 255px;
}

.site-header .header-inner > .brand {
  margin-right: auto;
  color: var(--plum);
}

.brand-pendant {
  position: absolute;
  top: 0;
  left: max(24px, calc((100% - 1180px) / 2));
  z-index: 4;
  display: grid;
  width: 224px;
  height: 192px;
  place-content: center;
  padding: 22px 20px 32px;
  color: #fff;
  background: linear-gradient(145deg, var(--rose) 0%, #ed3b70 48%, var(--coral) 100%);
  border-radius: 0 0 112px 112px;
  box-shadow: 0 20px 45px rgba(196, 35, 100, 0.28);
  text-align: center;
}

.brand-pendant::after {
  content: "";
  position: absolute;
  right: 38px;
  bottom: 24px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
}

.brand-symbol {
  width: 52px;
  margin: 0 auto 8px;
}

.brand-symbol circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}

.brand-symbol path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
}

.brand-name {
  display: block;
  font-size: 19px;
  line-height: 1.35;
}

.brand-tagline {
  display: block;
  margin-top: 3px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  position: relative;
  color: #574b58;
  font-size: 14px;
  font-weight: 750;
}

.site-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -8px;
  left: 50%;
  height: 2px;
  background: var(--rose);
  transition: left 180ms ease, right 180ms ease;
}

.site-nav > a:hover::after,
.site-nav > a[aria-current="page"]::after {
  right: 0;
  left: 0;
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 23px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-cta {
  padding: 12px 21px;
  color: #fff !important;
  background: linear-gradient(110deg, var(--rose), var(--coral));
  box-shadow: 0 10px 24px rgba(215, 39, 114, 0.2);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(176, 30, 93, 0.22);
}

.button-primary {
  color: #fff;
  background: linear-gradient(110deg, var(--rose), var(--coral));
  box-shadow: 0 12px 28px rgba(209, 35, 109, 0.23);
}

.button-light {
  color: var(--rose-dark);
  background: #fff;
}

.button-outline {
  color: var(--rose-dark);
  background: transparent;
  border: 1px solid rgba(215, 39, 114, 0.26);
}

.button-quiet {
  color: #554a56;
  background: var(--blush);
}

.button-small {
  min-height: 40px;
  padding: 9px 17px;
  font-size: 13px;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  place-content: center;
  padding: 0;
  background: var(--blush);
  border: 0;
  border-radius: 50%;
}

.menu-button > span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: var(--plum);
  border-radius: 2px;
}

.section-kicker,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-kicker::before,
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.centered .section-kicker,
.section-kicker.centered {
  justify-content: center;
}

.section-kicker.light {
  color: #ffdfe9;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 700px;
  grid-template-columns: 56% 44%;
  overflow: hidden;
  background: #fff;
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 112px clamp(42px, 7vw, 132px) 128px max(40px, calc((100vw - 1180px) / 2));
  color: #fff;
  background:
    radial-gradient(circle at 14% 15%, rgba(255, 255, 255, 0.13) 0 8px, transparent 9px),
    radial-gradient(circle at 88% 76%, rgba(255, 255, 255, 0.09) 0 90px, transparent 91px),
    linear-gradient(145deg, #d61f72 0%, #e92d75 55%, #fb5f6a 100%);
}

.home-hero-copy::after {
  content: "";
  position: absolute;
  top: 55px;
  right: -49px;
  z-index: 0;
  width: 98px;
  height: 98px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.hero-copy-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.home-hero .eyebrow {
  color: #ffe3ec;
}

.home-hero h1 {
  margin-bottom: 26px;
  color: #fff;
  font-size: clamp(46px, 5.3vw, 76px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.home-hero h1 span {
  color: #ffd7d1;
}

.hero-intro {
  max-width: 570px;
  margin-bottom: 33px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.hero-actions .button-light {
  box-shadow: 0 15px 34px rgba(92, 16, 59, 0.18);
}

.hero-ghost-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  gap: 8px;
  padding: 10px 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.home-hero-photo {
  position: relative;
  min-width: 0;
}

.home-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 59% center;
}

.home-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(99, 19, 60, 0.12), transparent 35%);
  pointer-events: none;
}

.couple-glance {
  position: absolute;
  right: max(28px, calc((100vw - 1180px) / 2));
  bottom: 42px;
  z-index: 4;
  width: min(470px, calc(44% - 48px));
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.couple-glance-top,
.couple-glance-time,
.partner-status,
.card-row,
.plan-row,
.message-meta,
.chat-toolbar,
.profile-card-head,
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mini-couple {
  display: flex;
  align-items: center;
}

.mini-avatar,
.avatar {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--rose), var(--coral));
  border-radius: 50%;
  font-weight: 850;
}

.mini-avatar {
  width: 36px;
  height: 36px;
  border: 3px solid #fff;
  font-size: 12px;
}

.mini-avatar + .mini-avatar {
  margin-left: -10px;
  background: linear-gradient(145deg, var(--plum), #8f4d88);
}

.online-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.online-label::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(47, 168, 120, 0.12);
}

.couple-glance-time {
  margin-top: 18px;
}

.couple-glance-time div {
  flex: 1;
}

.couple-glance-time small,
.mini-stat small,
.account-summary small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.couple-glance-time strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
}

.couple-glance-time div:last-child {
  text-align: right;
}

.distance-line {
  display: flex;
  flex: 0 0 90px;
  align-items: center;
  gap: 5px;
  color: var(--rose);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.distance-line::before,
.distance-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 88px;
  padding: 18px 28px;
  color: #605663;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-icon,
.feature-icon,
.dashboard-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--rose);
  background: var(--blush);
  border-radius: 50%;
}

.trust-icon {
  width: 40px;
  height: 40px;
  font-size: 17px;
}

.section {
  padding: 110px 0;
}

.section-soft {
  background: #fff;
}

.section-heading {
  max-width: 740px;
  margin: 0 auto 58px;
  text-align: center;
}

.section-heading h2,
.split-heading h2,
.page-banner h1,
.auth-copy h1,
.legal-hero h1 {
  margin-bottom: 20px;
  color: var(--plum);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.section-heading p:last-child,
.split-heading > p,
.page-banner p,
.legal-hero > p {
  color: var(--muted);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.how-card {
  position: relative;
  min-height: 390px;
  padding: 0 32px 34px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.how-visual {
  position: relative;
  width: 190px;
  height: 190px;
  margin: -36px auto 26px;
  color: #fff;
  background: linear-gradient(145deg, var(--rose), var(--coral));
  border-radius: 50%;
}

.how-card:nth-child(2) .how-visual {
  background: linear-gradient(145deg, var(--plum), #a3407d);
}

.how-card:nth-child(3) .how-visual {
  background: linear-gradient(145deg, #ef7655, #ffad7d);
}

.how-visual span {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--rose-dark);
  background: #fff;
  border: 5px solid var(--canvas);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 16px;
}

.how-glyph {
  display: grid;
  height: 100%;
  place-items: center;
  font-family: var(--display);
  font-size: 54px;
}

.how-card h3,
.feature-panel h3,
.price-card h3,
.profile-card h2,
.dashboard-card h3 {
  margin-bottom: 12px;
  color: var(--plum);
  font-size: 22px;
  line-height: 1.35;
}

.how-card p,
.feature-panel p,
.price-card p,
.dashboard-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.feature-panel {
  position: relative;
  min-height: 330px;
  padding: 38px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.feature-panel.feature-wide {
  grid-row: span 2;
  min-height: 688px;
  color: #fff;
  background: linear-gradient(155deg, #5e2459 0%, #8f2c71 52%, #d32972 100%);
  border: 0;
}

.feature-wide h3,
.feature-wide p {
  color: #fff;
}

.feature-copy {
  position: relative;
  z-index: 2;
  max-width: 420px;
}

.feature-label {
  display: inline-flex;
  margin-bottom: 19px;
  padding: 7px 12px;
  color: var(--rose-dark);
  background: var(--blush);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-wide .feature-label {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.phone-preview {
  position: absolute;
  right: -60px;
  bottom: -110px;
  width: 360px;
  height: 550px;
  padding: 18px;
  background: #fff;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: 58px;
  box-shadow: 0 35px 60px rgba(41, 7, 40, 0.28);
  transform: rotate(-8deg);
}

.phone-screen {
  height: 100%;
  padding: 31px 20px;
  color: var(--ink);
  background: var(--canvas);
  border-radius: 38px;
}

.phone-notch {
  width: 86px;
  height: 19px;
  margin: -24px auto 25px;
  background: var(--ink);
  border-radius: 0 0 13px 13px;
}

.phone-screen .mini-couple {
  justify-content: center;
  margin: 22px 0 17px;
}

.phone-screen h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  text-align: center;
}

.phone-screen > p {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.pulse-button {
  display: grid;
  width: 118px;
  height: 118px;
  margin: 26px auto;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--rose), var(--coral));
  border: 13px solid #ffe3ec;
  border-radius: 50%;
  font-size: 38px;
  box-shadow: 0 0 0 13px #fff0f4;
}

.mini-event {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.mini-event strong,
.mini-event span {
  display: block;
  text-align: center;
}

.mini-event strong {
  color: var(--rose);
  font-family: var(--display);
  font-size: 26px;
}

.mini-event span {
  color: var(--muted);
  font-size: 11px;
}

.signal-visual,
.countdown-visual {
  position: absolute;
  right: 32px;
  bottom: 30px;
}

.signal-visual {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--rose), var(--coral));
  border: 12px solid var(--blush);
  border-radius: 50%;
  font-size: 36px;
}

.countdown-visual {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 19px;
  background: var(--blush);
  border-radius: 20px;
}

.countdown-visual span {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.countdown-visual strong {
  display: block;
  color: var(--rose);
  font-family: var(--display);
  font-size: 25px;
}

.privacy-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--plum);
}

.privacy-band::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -110px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.privacy-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
}

.privacy-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.25;
}

.privacy-copy > p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.75);
}

.privacy-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-points li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 19px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.privacy-points li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.privacy-points span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--rose), var(--coral));
  border-radius: 50%;
  font-family: var(--display);
}

.privacy-points strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.privacy-points p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.pricing-preview {
  padding: 110px 0;
  background: #fff;
}

.pricing-grid {
  display: grid;
  max-width: 920px;
  margin: 0 auto;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.price-card {
  position: relative;
  overflow: hidden;
  padding: 212px 38px 38px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.price-arch {
  position: absolute;
  top: -208px;
  left: 50%;
  display: flex;
  width: 430px;
  height: 390px;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 34px;
  color: var(--rose);
  background: #ffe7ef;
  border-radius: 50%;
  transform: translateX(-50%);
}

.price-arch strong {
  font-family: var(--display);
  font-size: 40px;
}

.price-arch small {
  margin: 0 0 11px 7px;
  color: var(--muted);
  font-size: 12px;
}

.price-card.featured {
  color: #fff;
  background: linear-gradient(150deg, var(--rose), var(--coral));
  border-color: transparent;
  transform: translateY(-16px);
}

.price-card.featured .price-arch {
  color: #fff;
  background: rgba(103, 25, 78, 0.27);
}

.price-card.featured h3,
.price-card.featured p,
.price-card.featured .price-arch small {
  color: #fff;
}

.price-card h3 {
  font-family: var(--display);
}

.plan-features {
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding: 8px 0 8px 25px;
  font-size: 14px;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--rose);
  font-weight: 900;
}

.featured .plan-features li::before {
  color: #fff;
}

.launch-note {
  max-width: 760px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 70px;
}

.faq-list details {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--rose);
  background: var(--blush);
  border-radius: 50%;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  padding: 15px 48px 0 0;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.final-cta {
  padding: 92px 0;
  color: #fff;
  background: linear-gradient(120deg, var(--rose), var(--coral));
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.25;
}

.final-cta p {
  max-width: 670px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.84);
}

.final-cta .button {
  margin-top: 14px;
}

.site-footer {
  padding: 60px 0 24px;
  color: rgba(255, 255, 255, 0.72);
  background: #321c32;
}

.footer-top,
.footer-links,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-top {
  padding-bottom: 36px;
}

.footer-brand,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
}

.brand-mark {
  width: 42px;
}

.brand-mark circle,
.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.footer-links {
  align-items: flex-start;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a,
.footer-bottom {
  font-size: 12px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
}

/* Shared inner-page banner */
.page-wash {
  position: relative;
  padding: 82px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 12% 55%, rgba(244, 79, 133, 0.15), transparent 34%),
    radial-gradient(ellipse at 82% 38%, rgba(255, 154, 121, 0.16), transparent 32%),
    #fff9fb;
}

.page-wash::before,
.page-wash::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.page-wash::before {
  top: 18px;
  left: -100px;
  width: 330px;
  height: 160px;
  background: rgba(239, 73, 132, 0.08);
  transform: rotate(-12deg);
}

.page-wash::after {
  right: -70px;
  bottom: -80px;
  width: 280px;
  height: 210px;
  background: rgba(255, 130, 100, 0.09);
}

.page-banner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 15px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-banner h1 {
  margin-bottom: 12px;
}

.page-banner p {
  max-width: 650px;
  margin: 0 auto;
}

.inner-content {
  padding: 76px 0 110px;
}

.demo-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 13px 17px;
  color: #6b5363;
  background: #fff3f6;
  border: 1px solid #f2d5df;
  border-radius: 14px;
  font-size: 12px;
}

.demo-notice strong {
  color: var(--rose-dark);
}

/* Authentication */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 9% 15%, rgba(230, 40, 114, 0.13), transparent 26%),
    radial-gradient(ellipse at 92% 80%, rgba(255, 112, 91, 0.14), transparent 29%),
    #fff8fa;
}

.auth-back {
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--plum);
  font-size: 13px;
  font-weight: 800;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 72px 24px;
}

.auth-card {
  display: grid;
  width: min(1040px, 100%);
  min-height: 660px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  grid-template-columns: 1fr 1fr;
}

.auth-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 660px;
  padding: 38px;
  overflow: hidden;
  color: #fff;
  background: #6c315f;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 16, 45, 0.02) 30%, rgba(46, 16, 45, 0.8) 100%);
}

.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-pendant {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 205px;
  height: 180px;
  place-content: center;
  padding-bottom: 20px;
  color: #fff;
  background: linear-gradient(145deg, var(--rose), var(--coral));
  border-radius: 0 0 102px 102px;
  transform: translateX(-50%);
  text-align: center;
}

.auth-visual-copy {
  position: relative;
  z-index: 2;
}

.auth-visual-copy h2 {
  margin-bottom: 11px;
  font-family: var(--display);
  font-size: 31px;
  line-height: 1.3;
}

.auth-visual-copy p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.auth-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 62px;
}

.auth-copy h1 {
  margin-bottom: 9px;
  font-size: 39px;
  text-align: center;
}

.auth-lead {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.auth-switch {
  display: flex;
  width: fit-content;
  margin: 0 auto 30px;
  padding: 5px;
  background: var(--blush);
  border-radius: 999px;
}

.auth-switch a {
  min-width: 105px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.auth-switch a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(110deg, var(--rose), var(--coral));
}

.field-group {
  margin-bottom: 18px;
}

.field-group label {
  display: block;
  margin-bottom: 7px;
  color: #584c58;
  font-size: 12px;
  font-weight: 800;
}

.input-wrap {
  position: relative;
}

.input-wrap input,
.input-wrap textarea,
.input-wrap select,
.profile-field input,
.profile-field textarea,
.profile-field select,
.chat-compose textarea {
  width: 100%;
  border: 1px solid #ead9e1;
  outline: none;
  background: #fff;
  transition: border 180ms ease, box-shadow 180ms ease;
}

.input-wrap input,
.input-wrap select {
  height: 52px;
  padding: 0 46px 0 17px;
  border-radius: 12px;
}

.input-wrap input:focus,
.profile-field input:focus,
.profile-field textarea:focus,
.profile-field select:focus,
.chat-compose textarea:focus {
  border-color: rgba(215, 39, 114, 0.55);
  box-shadow: 0 0 0 4px rgba(215, 39, 114, 0.08);
}

.field-icon,
.password-toggle {
  position: absolute;
  top: 50%;
  right: 15px;
  color: #a88696;
  transform: translateY(-50%);
}

.password-toggle {
  padding: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 22px;
  font-size: 12px;
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.check-label input {
  accent-color: var(--rose);
}

.form-options a,
.auth-footnote a {
  color: var(--rose-dark);
  font-weight: 800;
}

.auth-submit {
  width: 100%;
}

.auth-footnote {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* Profile dashboard */
.dashboard-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
}

.dashboard-sidebar,
.profile-card,
.dashboard-card,
.chat-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.dashboard-sidebar {
  align-self: start;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
}

.account-summary {
  padding: 12px 10px 22px;
  text-align: center;
}

.account-summary .avatar {
  width: 82px;
  height: 82px;
  margin: 0 auto 12px;
  border: 7px solid var(--blush);
  font-family: var(--display);
  font-size: 23px;
}

.account-summary strong {
  display: block;
  color: var(--plum);
}

.dashboard-nav {
  display: grid;
  gap: 8px;
}

.dashboard-nav button,
.dashboard-nav a {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #6e626f;
  background: transparent;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.dashboard-nav button.is-active,
.dashboard-nav a.is-active {
  color: #fff;
  background: linear-gradient(110deg, var(--rose), var(--coral));
  box-shadow: 0 12px 26px rgba(212, 38, 111, 0.19);
}

.dashboard-nav .dashboard-icon {
  width: 34px;
  height: 34px;
  color: inherit;
  background: var(--blush);
}

.dashboard-nav .is-active .dashboard-icon {
  background: rgba(255, 255, 255, 0.18);
}

.dashboard-main {
  min-width: 0;
}

.profile-card {
  padding: 34px;
}

.profile-card-head {
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.profile-card-head h2,
.profile-card-head p {
  margin-bottom: 0;
}

.profile-card-head p {
  color: var(--muted);
  font-size: 13px;
}

.profile-form {
  padding-top: 28px;
}

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

.profile-field label {
  display: block;
  margin-bottom: 7px;
  color: #584c58;
  font-size: 12px;
  font-weight: 800;
}

.profile-field input,
.profile-field select {
  height: 50px;
  padding: 0 15px;
  border-radius: 12px;
}

.profile-field textarea {
  min-height: 116px;
  padding: 14px 15px;
  resize: vertical;
  border-radius: 12px;
}

.profile-field.full {
  grid-column: 1 / -1;
}

.form-actions {
  justify-content: flex-end;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.panel[hidden] {
  display: none;
}

.settings-list {
  display: grid;
  gap: 14px;
  padding-top: 26px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

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

.setting-row small {
  color: var(--muted);
}

.toggle {
  position: relative;
  width: 48px;
  height: 27px;
  flex: 0 0 auto;
}

.toggle input {
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
}

.toggle span {
  position: absolute;
  inset: 0;
  background: #e9dce2;
  border-radius: 999px;
  pointer-events: none;
}

.toggle span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 19px;
  height: 19px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(62, 30, 52, 0.2);
  transition: transform 180ms ease;
}

.toggle input:checked + span {
  background: linear-gradient(110deg, var(--rose), var(--coral));
}

.toggle input:checked + span::after {
  transform: translateX(21px);
}

/* Chat */
.chat-shell {
  display: grid;
  min-height: 680px;
  overflow: hidden;
  grid-template-columns: 290px minmax(0, 1fr);
}

.chat-contacts {
  padding: 22px 18px;
  background: #fffafd;
  border-right: 1px solid var(--line);
}

.chat-search {
  position: relative;
  margin-bottom: 22px;
}

.chat-search input {
  width: 100%;
  height: 46px;
  padding: 0 15px 0 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
}

.chat-search span {
  position: absolute;
  top: 50%;
  left: 15px;
  color: #aa8d9d;
  transform: translateY(-50%);
}

.contact-list {
  display: grid;
  gap: 9px;
}

.contact-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  padding: 13px;
  color: #675b67;
  background: transparent;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
}

.contact-card .avatar {
  width: 48px;
  height: 48px;
  font-size: 13px;
}

.contact-card strong,
.contact-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-card small {
  color: #9a8995;
  font-size: 11px;
}

.contact-card.is-active {
  color: #fff;
  background: linear-gradient(110deg, var(--rose), var(--coral));
  box-shadow: 0 12px 24px rgba(209, 39, 111, 0.2);
}

.contact-card.is-active small {
  color: rgba(255, 255, 255, 0.76);
}

.chat-main {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr auto;
  background: #fff;
}

.chat-toolbar {
  min-height: 88px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
}

.partner-status {
  justify-content: flex-start;
}

.partner-status .avatar {
  width: 48px;
  height: 48px;
}

.partner-status strong,
.partner-status small {
  display: block;
}

.partner-status small {
  color: var(--green);
  font-size: 11px;
}

.chat-actions {
  display: flex;
  gap: 8px;
}

.round-action {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--rose);
  background: var(--blush);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.messages {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
  padding: 31px 30px;
  background:
    radial-gradient(circle at 12% 20%, rgba(226, 42, 117, 0.045) 0 48px, transparent 49px),
    #fff;
}

.day-label {
  align-self: center;
  padding: 5px 12px;
  color: #9a8995;
  background: #fff7fa;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.message {
  max-width: min(520px, 74%);
  align-self: flex-start;
}

.message.mine {
  align-self: flex-end;
}

.bubble {
  padding: 12px 16px;
  color: #5f5360;
  background: #fff2f6;
  border-radius: 17px 17px 17px 4px;
  font-size: 14px;
}

.mine .bubble {
  color: #fff;
  background: linear-gradient(110deg, var(--rose), var(--coral));
  border-radius: 17px 17px 4px 17px;
}

.message time {
  display: block;
  margin-top: 4px;
  color: #ae9ca7;
  font-size: 9px;
}

.mine time {
  text-align: right;
}

.chat-compose {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: end;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}

.chat-compose textarea {
  min-height: 48px;
  max-height: 120px;
  padding: 12px 16px;
  resize: none;
  border-radius: 20px;
}

.chat-compose .button {
  width: 48px;
  min-height: 48px;
  padding: 0;
}

/* Membership page */
.membership-intro {
  padding-bottom: 20px;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.membership-grid .price-card {
  padding-inline: 30px;
}

.membership-grid .price-card.featured {
  transform: translateY(-14px);
}

.selected-plan {
  outline: 4px solid rgba(215, 39, 114, 0.15);
  outline-offset: 4px;
}

.comparison {
  margin-top: 74px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
}

.comparison th,
.comparison td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.comparison th:first-child,
.comparison td:first-child {
  text-align: left;
}

.comparison th {
  color: var(--plum);
  background: #fff9fb;
  font-size: 13px;
}

.comparison td {
  color: var(--muted);
  font-size: 13px;
}

.comparison tr:last-child td {
  border-bottom: 0;
}

.check {
  color: var(--rose);
  font-weight: 900;
}

/* Legal */
.legal-main {
  padding: 88px 0 110px;
}

.legal-hero {
  max-width: 780px;
  margin-bottom: 50px;
}

.legal-updated {
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
}

.legal-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
}

.legal-aside {
  align-self: start;
  padding: 22px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
}

.legal-content {
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  margin: 34px 0 12px;
  color: var(--plum);
  font-family: var(--display);
  font-size: 24px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 14px;
}

.legal-notice {
  padding: 16px;
  color: #68505f;
  background: var(--blush);
  border-left: 3px solid var(--rose);
  border-radius: 10px;
}

/* Toast */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  width: min(390px, calc(100% - 48px));
  padding: 15px 18px;
  color: #fff;
  background: #3f273d;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1050px) {
  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .home-hero {
    grid-template-columns: 60% 40%;
  }

  .couple-glance {
    width: calc(40% - 34px);
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .feature-panel.feature-wide {
    grid-row: auto;
    min-height: 600px;
  }

  .phone-preview {
    right: 5%;
  }

  .membership-grid {
    grid-template-columns: 1fr 1fr;
  }

  .membership-grid .price-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 12px);
    justify-self: center;
  }
}

@media (max-width: 880px) {
  .shell {
    width: min(100% - 36px, 720px);
  }

  .preview-bar {
    padding-inline: 18px;
  }

  .site-header,
  .header-inner {
    min-height: 92px;
    height: 92px;
  }

  .header-inner {
    padding-left: 156px;
  }

  .site-header .header-inner > .brand {
    display: none;
  }

  .brand-pendant {
    left: 18px;
    width: 142px;
    height: 121px;
    padding: 12px 10px 20px;
    border-radius: 0 0 72px 72px;
  }

  .brand-symbol {
    width: 37px;
    margin-bottom: 3px;
  }

  .brand-name {
    font-size: 12px;
  }

  .brand-tagline {
    display: block;
    margin-top: 1px;
    font-size: 8px;
    line-height: 1.3;
  }

  .menu-button {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 3px);
    right: 18px;
    left: 18px;
    display: none;
    max-height: calc(100vh - 110px);
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .site-nav > a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .home-hero {
    display: block;
    min-height: 0;
  }

  .home-hero-copy {
    min-height: 630px;
    padding: 120px 28px 90px;
  }

  .home-hero-photo {
    height: 480px;
  }

  .couple-glance {
    right: 24px;
    bottom: 30px;
    width: min(460px, calc(100% - 48px));
  }

  .trust-strip-inner,
  .how-grid,
  .privacy-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .how-card {
    min-height: 360px;
  }

  .privacy-grid {
    gap: 45px;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    padding: 12px;
  }

  .account-summary {
    display: none;
  }

  .dashboard-nav {
    display: flex;
    overflow-x: auto;
  }

  .dashboard-nav button,
  .dashboard-nav a {
    width: auto;
    flex: 0 0 auto;
  }

  .chat-shell {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .chat-contacts {
    padding-inline: 10px;
  }

  .chat-search {
    display: none;
  }

  .contact-card {
    display: block;
    padding: 10px;
  }

  .contact-card .avatar {
    margin: auto;
  }

  .contact-card div:last-child {
    display: none;
  }

  .auth-card {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .auth-copy {
    padding: 45px 35px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .shell {
    width: calc(100% - 32px);
  }

  .section,
  .pricing-preview,
  .inner-content {
    padding: 72px 0;
  }

  .site-header,
  .header-inner {
    min-height: 78px;
    height: 78px;
  }

  .header-inner {
    padding-left: 127px;
  }

  .brand-pendant {
    left: 13px;
    width: 118px;
    height: 101px;
    border-radius: 0 0 62px 62px;
  }

  .brand-symbol {
    width: 30px;
  }

  .brand-name {
    font-size: 10px;
  }

  .brand-tagline {
    font-size: 7px;
    line-height: 1.25;
  }

  .site-nav {
    top: calc(100% + 3px);
  }

  .home-hero-copy {
    min-height: 580px;
    padding: 105px 20px 68px;
  }

  .home-hero h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .hero-intro {
    font-size: 16px;
  }

  .home-hero-photo {
    height: 410px;
  }

  .couple-glance {
    right: 15px;
    bottom: 18px;
    width: calc(100% - 30px);
    padding: 18px;
  }

  .couple-glance-time {
    align-items: flex-end;
  }

  .couple-glance-time strong {
    font-size: 18px;
  }

  .distance-line {
    flex: 0 0 72px;
    font-size: 9px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading h2,
  .split-heading h2,
  .page-banner h1,
  .legal-hero h1 {
    font-size: 34px;
  }

  .feature-panel,
  .profile-card,
  .legal-content {
    padding: 26px 22px;
    border-radius: 22px;
  }

  .feature-panel.feature-wide {
    min-height: 600px;
  }

  .phone-preview {
    right: -80px;
    width: 315px;
    height: 500px;
  }

  .signal-visual,
  .countdown-visual {
    right: 20px;
    bottom: 22px;
  }

  .pricing-grid,
  .membership-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured,
  .membership-grid .price-card.featured {
    transform: none;
  }

  .membership-grid .price-card:last-child {
    grid-column: auto;
    width: auto;
  }

  .privacy-points li {
    grid-template-columns: 45px 1fr;
  }

  .privacy-points span {
    width: 40px;
    height: 40px;
  }

  .footer-top,
  .footer-links,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    gap: 24px;
  }

  .footer-links nav {
    display: grid;
    gap: 12px;
  }

  .page-wash {
    padding: 65px 0 57px;
  }

  .auth-shell {
    padding: 65px 15px 28px;
  }

  .auth-back {
    top: 16px;
    left: 18px;
  }

  .auth-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 250px;
  }

  .auth-pendant {
    width: 160px;
    height: 135px;
  }

  .auth-visual-copy {
    display: none;
  }

  .auth-copy {
    padding: 40px 24px;
  }

  .auth-copy h1 {
    font-size: 34px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-field.full {
    grid-column: auto;
  }

  .profile-card-head,
  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }

  .chat-shell {
    min-height: 630px;
    grid-template-columns: 1fr;
  }

  .chat-contacts {
    padding: 10px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-list {
    display: flex;
  }

  .contact-card {
    flex: 0 0 68px;
  }

  .chat-toolbar,
  .messages,
  .chat-compose {
    padding-right: 15px;
    padding-left: 15px;
  }

  .chat-actions .round-action:first-child {
    display: none;
  }

  .message {
    max-width: 87%;
  }

  .comparison {
    overflow-x: auto;
  }

  .comparison table {
    min-width: 620px;
  }

  .legal-main {
    padding: 70px 0;
  }
}

@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;
  }
}

/* Authenticated member environment */
.auth-kicker {
  display: block;
  width: fit-content;
  margin: 0 auto 12px;
  color: var(--rose);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-error {
  margin-bottom: 20px;
  padding: 12px 15px;
  color: #8f254f;
  background: #fff0f4;
  border: 1px solid #f1c8d7;
  border-radius: 12px;
  font-size: 13px;
}

.auth-shell-compact {
  padding-block: 62px;
}

.setup-card {
  width: min(580px, 100%);
  padding: 48px 54px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.setup-brand {
  display: grid;
  width: 210px;
  min-height: 180px;
  margin: -48px auto 38px;
  place-content: center;
  padding: 22px;
  color: #fff;
  background: linear-gradient(145deg, var(--rose), var(--coral));
  border-radius: 0 0 105px 105px;
}

.setup-card h1 {
  margin-bottom: 14px;
  color: var(--plum);
  font-family: var(--display);
  font-size: 38px;
  line-height: 1.25;
}

.setup-card > p {
  margin-bottom: 28px;
  color: var(--muted);
}

.setup-card form {
  text-align: left;
}

.member-body {
  min-height: 100vh;
  background: #fff8fa;
}

.member-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(24px, calc((100vw - 1440px) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(73, 28, 62, 0.05);
  backdrop-filter: blur(18px);
}

.member-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--plum);
}

.member-brand .brand-mark {
  width: 46px;
  color: var(--rose);
}

.member-brand strong,
.member-brand small {
  display: block;
}

.member-brand strong {
  font-family: var(--display);
  font-size: 17px;
}

.member-brand small {
  margin-top: -1px;
  color: var(--rose);
  font-family: var(--display);
  font-size: 8px;
  line-height: 1.25;
}

.member-account {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-account-copy {
  text-align: right;
}

.member-account-copy strong,
.member-account-copy small {
  display: block;
}

.member-account-copy strong {
  color: var(--plum);
  font-size: 13px;
}

.member-account-copy small {
  color: var(--muted);
  font-size: 10px;
}

.member-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--rose), var(--coral));
  border: 4px solid var(--blush);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 850;
}

.member-logout {
  min-height: 38px;
  padding: 8px 14px;
  color: #756875;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.member-shell {
  display: grid;
  width: min(1440px, 100%);
  min-height: calc(100vh - 86px);
  margin-inline: auto;
  grid-template-columns: 270px minmax(0, 1fr);
}

.member-sidebar {
  position: sticky;
  top: 86px;
  align-self: start;
  min-height: calc(100vh - 86px);
  padding: 34px 22px;
  color: #fff;
  background: #3d233c;
}

.member-welcome {
  padding: 0 11px 27px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.member-welcome span,
.member-welcome strong,
.member-welcome small {
  display: block;
}

.member-welcome span {
  color: #f7a7bf;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.member-welcome strong {
  margin: 6px 0 2px;
  font-family: var(--display);
  font-size: 18px;
}

.member-welcome small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.member-nav {
  display: grid;
  gap: 7px;
  padding: 25px 0;
}

.member-nav a {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.68);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
}

.member-nav a > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.member-nav a:hover,
.member-nav a.is-active {
  color: #fff;
  background: linear-gradient(110deg, var(--rose), var(--coral));
  box-shadow: 0 12px 28px rgba(19, 5, 18, 0.2);
}

.member-nav a.is-active > span {
  background: rgba(255, 255, 255, 0.18);
}

.member-safety-note {
  margin-top: 18px;
  padding: 17px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
}

.member-safety-note strong {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
}

.member-safety-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  line-height: 1.55;
}

.member-main {
  min-width: 0;
  padding: 44px clamp(26px, 4vw, 60px) 90px;
}

.member-flash {
  margin-bottom: 24px;
  padding: 13px 16px;
  color: #6a5060;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--rose);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-size: 12px;
}

.member-flash.success {
  color: #215e48;
  border-left-color: var(--green);
}

.member-eyebrow {
  margin-bottom: 10px;
  color: var(--rose);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.member-hero {
  position: relative;
  display: grid;
  min-height: 315px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 185px;
  gap: 40px;
  padding: 44px 50px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 255, 255, 0.12) 0 78px, transparent 79px),
    linear-gradient(135deg, #6b285f, var(--rose) 62%, var(--coral));
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
}

.member-hero h1,
.quiz-heading h1,
.member-page-heading h1 {
  margin-bottom: 15px;
  color: inherit;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.member-hero > div:first-child > p:not(.member-eyebrow) {
  max-width: 690px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.77);
}

.member-hero .member-eyebrow {
  color: #ffd8e3;
}

.member-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.member-hero .button-primary {
  color: var(--rose-dark);
  background: #fff;
}

.member-hero .button-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.member-progress-orb {
  position: relative;
  z-index: 2;
  display: grid;
  width: 175px;
  height: 175px;
  place-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  text-align: center;
  backdrop-filter: blur(8px);
}

.member-progress-orb strong {
  display: block;
  font-family: var(--display);
  font-size: 42px;
  line-height: 1.1;
}

.member-progress-orb span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  line-height: 1.4;
}

.member-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 54px;
}

.member-stat {
  display: flex;
  min-height: 150px;
  align-items: flex-start;
  gap: 14px;
  padding: 23px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.member-stat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--rose);
  background: var(--blush);
  border-radius: 50%;
}

.member-stat small,
.member-stat strong {
  display: block;
}

.member-stat small {
  color: var(--rose);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.member-stat strong {
  margin: 5px 0;
  color: var(--plum);
  font-size: 14px;
}

.member-stat p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.member-section-head,
.member-page-heading,
.quiz-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.member-section-head h2,
.member-page-heading h1,
.quiz-heading h1 {
  margin-bottom: 0;
  color: var(--plum);
}

.member-section-head h2 {
  font-family: var(--display);
  font-size: 30px;
}

.member-section-head > a {
  color: var(--rose);
  font-size: 11px;
  font-weight: 850;
}

.member-deck-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 54px;
}

.member-deck-card {
  min-height: 255px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.member-deck-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.member-deck-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--rose), var(--coral));
  border-radius: 50%;
}

.member-deck-card > small {
  color: var(--rose);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.member-deck-card h3 {
  margin: 6px 0 8px;
  color: var(--plum);
  font-family: var(--display);
  font-size: 18px;
}

.member-deck-card p {
  min-height: 67px;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.member-progress-track {
  display: block;
  height: 6px;
  overflow: hidden;
  background: #f3e5eb;
  border-radius: 99px;
}

.member-progress-track i {
  display: block;
  height: 100%;
  min-width: 0;
  background: linear-gradient(90deg, var(--rose), var(--coral));
  border-radius: inherit;
}

.member-progress-native {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  appearance: none;
  background: #f3e5eb;
  border: 0;
  border-radius: 99px;
}

.member-progress-native::-webkit-progress-bar {
  background: #f3e5eb;
  border-radius: 99px;
}

.member-progress-native::-webkit-progress-value {
  background: linear-gradient(90deg, var(--rose), var(--coral));
  border-radius: 99px;
}

.member-progress-native::-moz-progress-bar {
  background: linear-gradient(90deg, var(--rose), var(--coral));
  border-radius: 99px;
}

.auth-session-note {
  color: var(--muted);
  font-size: 11px;
}

.member-boundary-card {
  display: grid;
  align-items: center;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 25px;
  padding: 32px 38px;
  color: #fff;
  background: var(--plum);
  border-radius: 26px;
}

.member-boundary-card > span {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--rose), var(--coral));
  border-radius: 50%;
  font-size: 24px;
}

.member-boundary-card h2 {
  margin-bottom: 7px;
  font-family: var(--display);
  font-size: 25px;
}

.member-boundary-card p:not(.member-eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.member-boundary-card .member-eyebrow {
  color: #f7a7bf;
}

/* Quiz */
.quiz-heading,
.member-page-heading {
  align-items: center;
}

.quiz-heading > div:first-child,
.member-page-heading > div:first-child {
  max-width: 760px;
}

.quiz-heading > div:first-child > p:last-child,
.member-page-heading > div:first-child > p:last-child {
  margin: 0;
  color: var(--muted);
}

.quiz-total {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 21px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.quiz-total strong {
  color: var(--rose);
  font-family: var(--display);
  font-size: 28px;
}

.quiz-total span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
  text-transform: uppercase;
}

.quiz-layout {
  display: grid;
  align-items: start;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 22px;
}

.quiz-deck-nav {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.quiz-deck-nav a {
  display: grid;
  min-width: 0;
  align-items: center;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  color: #716572;
  border-radius: 13px;
}

.quiz-deck-nav a:hover,
.quiz-deck-nav a.is-active {
  color: #fff;
  background: linear-gradient(110deg, var(--rose), var(--coral));
}

.quiz-deck-symbol {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--blush);
  border-radius: 50%;
}

.quiz-deck-nav a.is-active .quiz-deck-symbol,
.quiz-deck-nav a:hover .quiz-deck-symbol {
  background: rgba(255, 255, 255, 0.17);
}

.quiz-deck-nav strong,
.quiz-deck-nav small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiz-deck-nav strong {
  font-size: 11px;
}

.quiz-deck-nav small {
  color: #a18e9a;
  font-size: 8px;
}

.quiz-deck-nav a.is-active small,
.quiz-deck-nav a:hover small {
  color: rgba(255, 255, 255, 0.68);
}

.quiz-stage {
  min-width: 0;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
}

.quiz-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
}

.quiz-stage-head > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.quiz-stage-head small,
.quiz-stage-head h2 {
  display: block;
  margin: 0;
}

.quiz-stage-head small {
  color: var(--rose);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quiz-stage-head h2 {
  color: var(--plum);
  font-family: var(--display);
  font-size: 21px;
}

.quiz-stage-head > span:last-child {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.quiz-stage-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--rose), var(--coral));
  border-radius: 50%;
}

.quiz-track {
  margin-bottom: 28px;
}

.quiz-question-card {
  display: grid;
  min-height: 255px;
  align-items: center;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 33px;
  padding: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 94% 9%, rgba(255, 255, 255, 0.1) 0 80px, transparent 81px),
    linear-gradient(140deg, var(--plum), #7f2a6d 64%, var(--rose));
  border-radius: 23px;
}

.quiz-question-number {
  display: grid;
  width: 102px;
  height: 102px;
  place-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  text-align: center;
}

.quiz-question-number span,
.quiz-question-number small {
  font-size: 8px;
  text-transform: uppercase;
}

.quiz-question-number strong {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.1;
}

.quiz-question-copy .member-eyebrow {
  color: #f7a7bf;
}

.quiz-question-copy h2 {
  max-width: 740px;
  margin-bottom: 13px;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
}

.quiz-guidance {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
}

.quiz-answer-form {
  padding-top: 27px;
}

.quiz-answer-form > label {
  display: block;
  margin-bottom: 8px;
  color: #5e505c;
  font-size: 11px;
  font-weight: 850;
}

.quiz-answer-form textarea {
  width: 100%;
  min-height: 142px;
  padding: 17px;
  resize: vertical;
  outline: none;
  background: #fffafd;
  border: 1px solid #ead8e1;
  border-radius: 16px;
}

.quiz-answer-form textarea:focus {
  border-color: rgba(215, 39, 114, 0.52);
  box-shadow: 0 0 0 4px rgba(215, 39, 114, 0.08);
}

.quiz-answer-options,
.quiz-form-actions,
.answer-card-top,
.answer-card-actions,
.consent-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.quiz-answer-options {
  margin: 15px 0 22px;
}

.quiz-answer-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}

.quiz-answer-options label span {
  font-weight: 800;
}

.quiz-answer-options select {
  height: 38px;
  padding: 0 30px 0 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 10px;
}

.quiz-answer-options small {
  color: #a08f9a;
  font-size: 9px;
}

.admin-preview-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
  padding: 11px 14px;
  color: #755365;
  background: #fff1f5;
  border: 1px solid #f1d0dc;
  border-radius: 11px;
  font-size: 10px;
}

.quiz-lock,
.quiz-complete,
.member-empty {
  padding: 64px 42px;
  text-align: center;
}

.quiz-lock-icon,
.quiz-complete > span,
.member-empty > span {
  display: grid;
  width: 86px;
  height: 86px;
  margin: 0 auto 22px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--rose), var(--coral));
  border: 12px solid var(--blush);
  border-radius: 50%;
  font-size: 24px;
}

.quiz-lock h2,
.quiz-complete h2,
.member-empty h2 {
  margin-bottom: 14px;
  color: var(--plum);
  font-family: var(--display);
  font-size: 30px;
}

.quiz-lock > p:not(.member-eyebrow),
.quiz-complete > p,
.member-empty > p {
  max-width: 650px;
  margin: 0 auto 24px;
  color: var(--muted);
}

.quiz-complete > div {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Answers and profile */
.member-page-heading {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.answer-list {
  display: grid;
  gap: 16px;
}

.answer-card,
.member-settings-card,
.consent-card,
.member-empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.answer-card {
  padding: 26px 28px;
}

.answer-deck,
.answer-visibility {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--rose);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-deck i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--rose), var(--coral));
  border-radius: 50%;
  font-style: normal;
}

.answer-visibility {
  padding: 6px 10px;
  color: #725d69;
  background: var(--blush);
  border-radius: 999px;
  letter-spacing: 0;
  text-transform: none;
}

.answer-card h2 {
  margin: 19px 0 12px;
  color: var(--plum);
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.45;
}

.answer-text {
  padding: 16px 18px;
  color: #655765;
  background: #fff9fb;
  border-left: 3px solid var(--rose);
  border-radius: 10px;
  white-space: normal;
}

.answer-passed {
  color: #9b8994;
  font-style: italic;
}

.answer-card-actions {
  margin-top: 20px;
}

.answer-card-actions > small {
  color: #a08f9a;
  font-size: 9px;
}

.answer-card-actions > div {
  display: flex;
  gap: 8px;
}

.answer-card-actions form,
.member-account form,
.consent-actions form {
  margin: 0;
}

.member-settings-grid {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 20px;
}

.member-settings-card {
  padding: 28px;
}

.settings-card-head,
.consent-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.settings-card-head > span,
.consent-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--rose), var(--coral));
  border-radius: 50%;
}

.settings-card-head small,
.settings-card-head h2 {
  display: block;
  margin: 0;
}

.settings-card-head small {
  color: var(--rose);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.settings-card-head h2 {
  color: var(--plum);
  font-family: var(--display);
  font-size: 22px;
}

.member-settings-card .profile-field {
  margin-bottom: 17px;
}

.member-settings-card .profile-field small {
  display: block;
  margin-top: 5px;
  color: #a18e9a;
  font-size: 9px;
}

.member-settings-card input:disabled {
  color: #8e7c87;
  background: #faf4f6;
}

.connection-empty {
  padding: 22px;
  color: #6e5c68;
  background: #fff5f8;
  border: 1px dashed #e8cbd6;
  border-radius: 16px;
}

.connection-empty strong {
  display: block;
  margin-bottom: 7px;
  color: var(--plum);
}

.connection-empty p {
  margin: 0;
  font-size: 12px;
}

.consent-card {
  margin-top: 20px;
  padding: 32px;
  scroll-margin-top: 110px;
}

.consent-intro {
  align-items: flex-start;
}

.consent-intro h2 {
  margin-bottom: 9px;
  color: var(--plum);
  font-family: var(--display);
  font-size: 27px;
}

.consent-intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.consent-form {
  display: grid;
  gap: 13px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.consent-check {
  display: grid;
  align-items: start;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  padding: 15px;
  background: #fffafd;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--rose);
}

.consent-check strong,
.consent-check small {
  display: block;
}

.consent-check strong {
  color: var(--plum);
  font-size: 12px;
}

.consent-check small {
  color: var(--muted);
  font-size: 10px;
}

.consent-form .button {
  width: fit-content;
  margin-top: 5px;
}

.consent-status {
  padding: 16px 18px;
  color: #256249;
  background: #effaf5;
  border: 1px solid #cceadd;
  border-radius: 14px;
}

.consent-status strong,
.consent-status span {
  display: block;
}

.consent-status strong {
  font-size: 12px;
}

.consent-status span {
  margin-top: 3px;
  font-size: 10px;
}

.consent-actions {
  justify-content: flex-start;
  margin-top: 16px;
}

@media (max-width: 1180px) {
  .member-deck-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-deck-card p {
    min-height: 0;
  }

  .member-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .member-shell {
    grid-template-columns: 1fr;
  }

  .member-sidebar {
    position: static;
    min-height: auto;
    padding: 12px 18px;
  }

  .member-welcome,
  .member-safety-note {
    display: none;
  }

  .member-nav {
    display: flex;
    gap: 7px;
    padding: 0;
    overflow-x: auto;
  }

  .member-nav a {
    flex: 0 0 auto;
  }

  .quiz-layout {
    grid-template-columns: 1fr;
  }

  .quiz-deck-nav {
    display: flex;
    overflow-x: auto;
  }

  .quiz-deck-nav a {
    flex: 0 0 190px;
  }

  .member-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .setup-card {
    padding: 40px 23px 30px;
  }

  .setup-brand {
    margin-top: -40px;
  }

  .member-topbar {
    min-height: 74px;
    padding: 10px 15px;
  }

  .member-brand strong {
    font-size: 13px;
  }

  .member-brand .brand-mark {
    width: 36px;
  }

  .member-account-copy,
  .member-logout {
    display: none;
  }

  .member-main {
    padding: 28px 16px 70px;
  }

  .member-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .member-progress-orb {
    width: 130px;
    height: 130px;
  }

  .member-progress-orb strong {
    font-size: 33px;
  }

  .member-hero-actions,
  .quiz-form-actions,
  .consent-actions,
  .answer-card-actions,
  .member-page-heading,
  .quiz-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .member-hero-actions .button,
  .quiz-form-actions .button,
  .consent-actions .button,
  .member-page-heading > .button {
    width: 100%;
  }

  .member-deck-preview {
    grid-template-columns: 1fr;
  }

  .member-boundary-card {
    grid-template-columns: 1fr;
    padding: 27px;
  }

  .member-boundary-card .button {
    width: 100%;
  }

  .quiz-stage {
    padding: 20px 15px;
  }

  .quiz-question-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px 21px;
  }

  .quiz-question-number {
    width: 76px;
    height: 76px;
  }

  .quiz-question-copy h2 {
    font-size: 24px;
  }

  .quiz-answer-options,
  .answer-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .quiz-answer-options label {
    align-items: flex-start;
    flex-direction: column;
  }

  .answer-card,
  .member-settings-card,
  .consent-card {
    padding: 22px 18px;
  }

  .answer-card-actions > div {
    width: 100%;
  }

  .answer-card-actions > div > *,
  .answer-card-actions form .button {
    flex: 1;
    width: 100%;
  }

  .quiz-lock,
  .quiz-complete,
  .member-empty {
    padding: 42px 18px;
  }

  .quiz-complete > div {
    flex-direction: column;
  }
}
