:root {
  --ink: #171d29;
  --muted: #48536a;
  --soft: #66708a;
  --line: rgba(106, 116, 142, 0.2);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --blue: #4968ff;
  --violet: #9b5cff;
  --pink: #ec55d7;
  --orange: #ff7c17;
  --mint: #31bfa1;
  --radius-card: 8px;
  --shadow-soft: 0 24px 70px rgba(36, 42, 65, 0.12);
  --gradient: linear-gradient(115deg, #ff7a18 0%, #ff4f74 33%, #d656ef 63%, #5678ff 100%);
  --container: min(100% - clamp(36px, 6vw, 112px), 1450px);
}

:root[data-theme="dark"] {
  --ink: #f6efe8;
  --muted: #b8c1d4;
  --soft: #8c96ad;
  --line: rgba(223, 228, 245, 0.16);
  --surface: rgba(18, 20, 28, 0.76);
  --surface-strong: rgba(20, 23, 33, 0.92);
  --shadow-soft: 0 24px 74px rgba(0, 0, 0, 0.36);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fffaf6;
}

:root[data-theme="dark"] body {
  background: #07080b;
}

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

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

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-container,
.section-container {
  width: var(--container);
  margin-inline: auto;
}

.hero-shell {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #fffaf6;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.54) 0%, rgba(255, 255, 255, 0.2) 36%, rgba(255, 255, 255, 0) 62%),
    rgba(255, 255, 255, 0.12);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  width: 100%;
  height: 96px;
  padding: 0 47px 0 53px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #101217;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.brand:not(.footer-brand) .brand-mark {
  width: 56px;
  height: 56px;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 56px;
  color: #0c111d;
  font-size: 16px;
  font-weight: 500;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 96px;
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav-link:hover {
  color: #5c667a;
}

.nav-link.active::before {
  position: absolute;
  right: -18px;
  bottom: 10px;
  left: -18px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(255, 126, 24, 0.95), rgba(231, 77, 226, 0.95), rgba(73, 104, 255, 0.95));
  border-radius: 99px;
}

.nav-link.active::after {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 8px;
  height: 8px;
  content: "";
  background: #e852dc;
  border-radius: 50%;
  box-shadow: 0 0 13px rgba(232, 82, 220, 0.5);
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  color: #0d1330;
  font-size: 16px;
  font-weight: 500;
}

.language-indicator,
.theme-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: inherit;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.language-indicator {
  gap: 8px;
  padding: 0 9px;
}

.language-indicator svg,
.theme-indicator svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.language-indicator .chevron {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

.theme-indicator {
  padding: 0;
  background: transparent;
  cursor: pointer;
  width: 38px;
}

.theme-icon {
  display: block;
}

.sun-icon {
  display: none;
}

:root[data-theme="dark"] .moon-icon {
  display: none;
}

:root[data-theme="dark"] .sun-icon {
  display: block;
}

.language-indicator:hover,
.theme-indicator:hover {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(101, 111, 134, 0.36);
}

.signin-link {
  margin-left: 9px;
  white-space: nowrap;
  transition: color 180ms ease;
}

.signin-link:hover {
  color: #5c667a;
}

.outline-button,
.start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #121826;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 14px 32px rgba(104, 111, 255, 0.12);
  font-weight: 600;
  white-space: nowrap;
  transition:
    box-shadow 190ms ease,
    transform 190ms ease;
}

.outline-button:hover,
.start-button:hover {
  box-shadow: 0 20px 44px rgba(74, 82, 140, 0.18);
  transform: translateY(-2px);
}

.outline-button {
  width: 144px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 15px;
}

.hero-layout {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  width: 100%;
  margin: 0;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  top: 17.55vh;
  left: 9.82vw;
  width: min(470px, calc(100vw - 48px));
  pointer-events: auto;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 31px;
  letter-spacing: 0.28em;
}

.eyebrow span {
  word-spacing: 0.16em;
}

.eyebrow svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.eyebrow .sparkle-main {
  stroke: var(--orange);
}

.eyebrow .sparkle-small {
  stroke: var(--pink);
}

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

h1 {
  margin-bottom: 0;
  color: #161b25;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 78px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.06;
}

h1 span {
  display: inline-block;
  padding-bottom: 0.12em;
  font-style: italic;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Bold text carries the RIWA gradient as a shared design treatment.
   Guarded by @supports so unsupported browsers keep solid, readable bold.
   More specific rules (.proof-metrics strong, .contact-detail strong) keep
   their own intentional solid colour and are left untouched. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  strong,
  b {
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-copy {
  max-width: 455px;
  margin: 28px 0 0 1px;
  color: #263042;
  font-size: 19px;
  line-height: 1.55;
}

.start-button {
  justify-content: space-between;
  min-width: 250px;
  min-height: 64px;
  margin-top: 28px;
  padding: 8px 24px 8px 44px;
  border-radius: 16px;
  font-size: 18px;
}

.start-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 22px;
  color: #fff;
  background: linear-gradient(135deg, #ff6868 0%, #d75bff 45%, #5f8bff 100%);
  border-radius: 50%;
  box-shadow: 0 12px 22px rgba(102, 91, 255, 0.22);
}

.start-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.creator-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-left: -8px;
  overflow: hidden;
  background: #ddd;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(29, 36, 54, 0.14);
}

.avatar:first-child {
  margin-left: 0;
}

.avatar::before,
.avatar::after {
  position: absolute;
  content: "";
}

.avatar::before {
  top: 8px;
  left: 13px;
  width: 14px;
  height: 14px;
  background: #f0b28c;
  border-radius: 50%;
}

.avatar::after {
  right: 7px;
  bottom: 0;
  left: 7px;
  height: 17px;
  background: #1c4151;
  border-radius: 14px 14px 4px 4px;
}

.avatar-one {
  background: radial-gradient(circle at 50% 17%, #101318 0 20%, transparent 21%), linear-gradient(150deg, #50c0c6, #0d6170);
}

.avatar-two {
  background: radial-gradient(circle at 48% 18%, #7d361c 0 22%, transparent 23%), linear-gradient(145deg, #f5ede5, #d6a398);
}

.avatar-three {
  background: radial-gradient(circle at 50% 16%, #171022 0 22%, transparent 23%), linear-gradient(145deg, #1a6a82, #20253e);
}

.avatar-four {
  background: radial-gradient(circle at 51% 17%, #171318 0 21%, transparent 22%), linear-gradient(145deg, #f59c1a, #243651);
}

.creator-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 17px;
  color: #4f586b;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(139, 147, 170, 0.25);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(34, 43, 63, 0.05);
  font-size: 16px;
}

.support-copy {
  max-width: 430px;
  margin: 27px 0 0 1px;
  color: #536078;
  font-size: 16px;
  line-height: 1.65;
}

.hero-card-zone {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-card-grid {
  display: contents;
}

.feature-card {
  position: absolute;
  z-index: 3;
  width: 207px;
  height: 166px;
  padding: 20px 10px 18px 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  pointer-events: auto;
  transition:
    box-shadow 190ms ease,
    transform 190ms ease;
}

.feature-card:hover {
  box-shadow: 0 30px 82px rgba(36, 42, 65, 0.18);
  transform: translateY(-4px);
}

.feature-card .card-icon,
.detail-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: url("#riwaGradient");
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.1;
}

.feature-card h2 {
  margin: 9px 0 10px;
  color: #151926;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.detail-card h3,
.price-card h3 {
  margin-bottom: 10px;
  color: #151926;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.feature-card p,
.detail-card p,
.price-card p,
.section-heading p,
.proof-copy p {
  margin-bottom: 0;
  color: #2f394f;
  font-size: 15.5px;
  line-height: 1.42;
}

.detail-card p,
.price-card p,
.section-heading p,
.proof-copy p {
  font-size: 16px;
  line-height: 1.55;
}

.write-card {
  top: 19.02vh;
  left: 51.25vw;
}

.clarify-card {
  top: 26.99vh;
  right: 4.5vw;
  width: 220px;
}

.structure-card {
  top: 51.01vh;
  left: 42.2vw;
  height: 186px;
}

.connect-card {
  top: 56.96vh;
  right: 3.6vw;
  width: 218px;
  height: 178px;
}

.write-card,
.clarify-card {
  height: 176px;
  padding: 22px 14px 28px 24px;
}

.public-flow {
  position: relative;
  z-index: 3;
  /* No background image: the page `body` colour shows through and only the
     synapse constellation layers over it, like research-lab. */
  background: transparent;
}

.landing-section {
  position: relative;
  z-index: 3;
  padding: clamp(78px, 10vw, 132px) 0;
  background: transparent;
}

.features-section {
  margin-top: 0;
  padding-top: clamp(18px, 3vw, 36px);
  border-top: 1px solid rgba(105, 115, 143, 0.12);
}

.pricing-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #fffaf6;
}

.simple-page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  background: #fffaf6;
}

.simple-page h1 {
  margin: 0;
  color: #111722;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(58px, 6vw, 82px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.pricing-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 250, 246, 0.18)),
    url("./assets/bg-pricing-page.png") center top / cover no-repeat;
}

.pricing-header .nav-link.active {
  color: #ed4ed3;
}

.header-start-button {
  gap: 9px;
}

.header-start-button svg,
.pricing-plan-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.pricing-stage {
  position: relative;
  z-index: 2;
  width: min(100% - clamp(36px, 6vw, 104px), 1486px);
  margin-inline: auto;
  padding: 124px 0 36px;
}

.pricing-intro {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.pricing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 24px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
  word-spacing: 0.16em;
}

.pricing-eyebrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.contact-eyebrow span {
  word-spacing: 0.16em;
}

.pricing-eyebrow path:first-child {
  stroke: var(--orange);
}

.pricing-eyebrow path:last-child {
  stroke: var(--pink);
}

.pricing-title {
  margin: 0;
  color: #111722;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(58px, 4.45vw, 72px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.06;
  text-shadow: 0 8px 22px rgba(38, 44, 68, 0.08);
}

.pricing-title span {
  display: inline-block;
  padding-bottom: 0.12em;
  font-style: italic;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pricing-title-mark {
  display: block;
  width: 38px;
  height: 2px;
  margin: 20px auto 0;
  background: var(--gradient);
  border-radius: 99px;
}

.pricing-subtitle {
  margin: 15px 0 0;
  color: #1f293c;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}

.billing-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: min(456px, 100%);
  max-width: calc(100vw - 32px);
  min-height: 53px;
  margin: 27px auto 30px;
  padding: 3px;
  gap: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 15px 35px rgba(64, 70, 110, 0.07);
  backdrop-filter: blur(15px);
}

.billing-toggle::before,
.billing-toggle::after {
  content: "";
  position: absolute;
  z-index: 0;
  padding: 1px;
  background: var(--gradient);
  border-radius: 999px;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.billing-toggle::before {
  inset: 0;
}

.billing-toggle::after {
  top: 0;
  bottom: 0;
  left: 166px;
  right: 0;
  transition:
    left 180ms ease,
    right 180ms ease,
    width 180ms ease;
}

.billing-toggle[data-active-billing="monthly"]::after {
  left: 0;
  right: auto;
  width: 166px;
}

.billing-toggle button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0;
  color: #1b2435;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.billing-toggle button:first-child {
  width: 160px;
}

.billing-toggle button:nth-child(2) {
  width: 116px;
}

.billing-toggle button:hover {
  background: rgba(229, 232, 244, 0.38);
  color: #596173;
}

.billing-toggle button.active {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #111827;
  font-weight: 600;
}

.billing-toggle span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  min-height: 30px;
  margin-right: 0;
  padding: 0;
  color: #18a96b;
  background: rgba(49, 191, 161, 0.12);
  border-radius: 999px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.pricing-plan-grid {
  display: grid;
  /* Cards keep their own (graduated) heights and align by the bottom, so the
     buttons sit on one line while the tops step up Free → Standard → Pro. */
  align-items: end;
  /* Symmetric columns so the featured Standard card stays centred on the page
     (monotonic widths would push the middle card off-centre). */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  max-width: 1295px;
  margin-inline: auto;
}

.pricing-plan-card {
  position: relative;
  display: flex;
  /* Free height (shortest); Standard and Pro step up below. */
  min-height: 600px;
  flex-direction: column;
  padding: 58px 54px 50px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(124, 135, 164, 0.2);
  border-radius: 26px;
  box-shadow: 0 26px 76px rgba(37, 44, 68, 0.11);
  backdrop-filter: blur(20px);
  transition:
    box-shadow 200ms ease,
    transform 200ms ease,
    border-color 200ms ease;
}

.pricing-plan-card:hover {
  border-color: rgba(111, 120, 148, 0.31);
  box-shadow: 0 34px 94px rgba(37, 44, 68, 0.16);
  transform: translateY(-5px);
}

.pricing-plan-card.featured {
  z-index: 2;
  /* Standard: taller than Free. */
  min-height: 636px;
  margin: 0 -1px;
  padding-top: 60px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)) padding-box,
    var(--gradient) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 34px 95px rgba(72, 84, 150, 0.16);
}

.pricing-plan-card:last-child {
  /* Pro: tallest — gives the last bullet room to breathe above the button. */
  min-height: 672px;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 218px;
  min-height: 42px;
  color: #c94af0;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient) border-box;
  border: 1.5px solid transparent;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(127, 86, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.popular-badge svg {
  width: 17px;
  height: 17px;
  fill: #f14ab3;
}

.pricing-plan-copy h2 {
  position: relative;
  margin: 0 0 13px;
  color: #141a26;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.pricing-plan-copy h2::after {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 17px;
  height: 2px;
  content: "";
  background: var(--gradient);
  border-radius: 99px;
}

.pricing-plan-copy p {
  margin: 0;
  color: #283347;
  font-size: 15.5px;
  line-height: 1.45;
}

.pricing-plan-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 30px 0 32px;
  color: #0f1420;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.pricing-plan-price .price-currency {
  font-size: 36px;
}

.pricing-plan-price .price-value {
  font-size: inherit;
}

.pricing-plan-price small {
  margin-left: 1px;
  color: #1b2434;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
}

.pricing-feature-list {
  display: grid;
  gap: 18px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.pricing-feature-list li {
  position: relative;
  min-height: 22px;
  padding-left: 34px;
  color: #263144;
  font-size: 15px;
  line-height: 1.5;
}

.pricing-feature-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  content: "\2713";
  color: #ec55d7;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient) border-box;
  border: 1.5px solid transparent;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.pricing-plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 265px);
  min-height: 54px;
  margin-top: auto;
  padding: 0 25px 0 74px;
  color: #121826;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient) border-box;
  border: 1.5px solid transparent;
  border-radius: 999px;
  box-shadow: 0 15px 35px rgba(68, 75, 126, 0.08);
  font-size: 18px;
  font-weight: 600;
  transition:
    box-shadow 190ms ease,
    transform 190ms ease;
}

.pricing-plan-button:hover {
  box-shadow: 0 22px 49px rgba(73, 84, 150, 0.16);
  transform: translateY(-2px);
}

.pricing-plan-button.primary {
  width: min(100%, 316px);
  padding-left: 78px;
  color: #121826;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 15px 35px rgba(68, 75, 126, 0.08);
}

.pricing-proof {
  display: grid;
  align-items: center;
  grid-template-columns: 405px repeat(3, minmax(178px, 1fr)) 318px;
  max-width: 1486px;
  margin: 31px auto 0;
  color: #172033;
}

.pricing-trust {
  display: grid;
  align-content: center;
  align-items: center;
  grid-template-columns: max-content max-content;
  min-height: 92px;
}

.pricing-trust p {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.42;
}

.pricing-avatar-row {
  display: inline-flex;
  align-items: center;
}

.pricing-avatar-row .avatar {
  width: 48px;
  height: 48px;
  margin-left: -11px;
}

.pricing-avatar-row .avatar:first-child {
  margin-left: 0;
}

.pricing-avatar-row .avatar::before {
  top: 10px;
  left: 16px;
  width: 16px;
  height: 16px;
}

.pricing-avatar-row .avatar::after {
  right: 8px;
  left: 8px;
  height: 20px;
}

.avatar-five {
  background: radial-gradient(circle at 50% 16%, #2c1822 0 22%, transparent 23%), linear-gradient(145deg, #f8d4c2, #49506d);
}

.pricing-writer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  min-height: 36px;
  margin-left: 11px;
  color: #4e5870;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(138, 147, 171, 0.2);
  border-radius: 999px;
  box-shadow: 0 12px 27px rgba(41, 50, 74, 0.1);
  font-size: 14px;
  vertical-align: top;
}

.pricing-quote,
.pricing-care {
  min-height: 86px;
  margin: 0;
  padding-left: 34px;
  border-left: 1px solid rgba(114, 123, 148, 0.22);
}

.pricing-quote {
  position: relative;
  display: grid;
  align-content: start;
}

.pricing-quote::before {
  position: absolute;
  top: 0;
  left: 31px;
  content: "\201C";
  color: #f24cc1;
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.pricing-quote blockquote {
  margin: 2px 0 0 34px;
  color: #1f293b;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
}

.pricing-quote figcaption {
  margin: 9px 0 0 34px;
  color: #1f293b;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
}

.pricing-care {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 21px;
  padding-right: 4px;
}

.pricing-care p {
  margin: 0;
  color: #141a25;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.85;
  text-align: center;
}

.pricing-care span {
  color: #263044;
  font-weight: 500;
  letter-spacing: 3px;
}

.care-laurel {
  width: 36px;
  height: 70px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.care-laurel.left {
  stroke: #ff4f74;
}

.care-laurel.right {
  stroke: #6f63ff;
}

.contact-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #fffaf6;
}

.contact-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 250, 246, 0.12)),
    url("./assets/bg-contact-page-V4.png") right top / auto 100% no-repeat;
  /* Matches the image's left-edge tone so the fill behind it is seamless on
     wide screens (no detached left edge). */
  background-color: #fdf9ef;
}

.contact-header .nav-link.active {
  color: #151926;
}

.contact-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, clamp(540px, 39vw, 620px)) minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 118px clamp(32px, 5vw, 84px) 24px clamp(48px, 7vw, 128px);
}

.contact-copy {
  grid-column: 1;
  width: min(100%, 580px);
  margin: 0;
}

.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
  word-spacing: 0.16em;
}

.contact-eyebrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.contact-eyebrow path:first-child {
  stroke: var(--orange);
}

.contact-eyebrow path:last-child {
  stroke: var(--pink);
}

.contact-title {
  margin: 0;
  color: #111722;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(62px, 4.65vw, 78px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.06;
  text-shadow: 0 8px 22px rgba(38, 44, 68, 0.08);
}

.contact-title span {
  display: inline-block;
  padding-bottom: 0.12em;
  font-style: italic;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-subtitle {
  margin: 16px 0 0;
  color: #263044;
  font-size: 18px;
  line-height: 1.58;
}

.contact-form-card {
  grid-column: 1;
  width: min(100%, 580px);
  margin: 20px 0 0;
  padding: 30px 32px 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(126, 136, 163, 0.2);
  border-radius: 22px;
  box-shadow:
    0 30px 80px rgba(36, 42, 65, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(22px);
  transition:
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.contact-form-card:hover {
  border-color: rgba(111, 120, 148, 0.26);
  box-shadow:
    0 36px 96px rgba(36, 42, 65, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.contact-form-card label {
  display: block;
  margin-bottom: 18px;
}

.contact-form-card label span {
  display: block;
  margin-bottom: 9px;
  color: #5b6479;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  line-height: 1;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.contact-form-card label:focus-within span {
  color: #5b6bff;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
  width: 100%;
  color: #1c2638;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(117, 128, 154, 0.26);
  border-radius: 13px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(32, 39, 60, 0.03);
  font-size: 15px;
  font-family: inherit;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.contact-form-card input,
.contact-form-card select {
  height: 50px;
  padding: 0 16px;
}

.contact-form-card textarea {
  min-height: 128px;
  resize: vertical;
  padding: 15px 16px;
  line-height: 1.55;
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
  color: #8a95ab;
}

.contact-form-card input:hover,
.contact-form-card select:hover,
.contact-form-card textarea:hover {
  border-color: rgba(112, 121, 154, 0.42);
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(112, 121, 255, 0.7);
  box-shadow:
    0 0 0 4px rgba(112, 121, 255, 0.12),
    inset 0 1px 2px rgba(32, 39, 60, 0.02);
}

.contact-form-card select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23737f97'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206%206-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 16px) center;
  background-size: 14px 14px;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  color: #121826;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient) border-box;
  border: 1.5px solid transparent;
  border-radius: 13px;
  box-shadow: 0 16px 38px rgba(68, 75, 126, 0.1);
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition:
    box-shadow 200ms ease,
    transform 200ms ease;
}

.contact-submit:hover {
  box-shadow: 0 24px 54px rgba(73, 84, 150, 0.2);
  transform: translateY(-2px);
}

.contact-submit:active {
  transform: translateY(0);
  box-shadow: 0 12px 28px rgba(73, 84, 150, 0.16);
}

.contact-submit svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.contact-safe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 16px 0 0;
  color: #6a7385;
  font-size: 12.5px;
  line-height: 1.3;
}

.contact-safe svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.contact-details {
  display: grid;
  align-self: end;
  grid-column: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 580px);
  margin: 24px 0 0;
  padding-bottom: 8px;
}

.contact-detail {
  display: grid;
  align-items: center;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  min-height: 50px;
  padding-right: 14px;
}

.contact-detail + .contact-detail {
  padding-left: 14px;
  border-left: 1px solid rgba(111, 120, 148, 0.24);
}

.contact-detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #7a63ff;
}

.contact-detail:first-child .contact-detail-icon {
  color: #ff4f74;
}

.contact-detail:nth-child(2) .contact-detail-icon {
  color: #f14995;
}

.contact-detail-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-detail p {
  margin: 0;
  color: #1f293b;
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
}

.contact-detail strong {
  display: inline-block;
  margin-top: 3px;
  color: #111827;
  font-size: 15.5px;
  font-weight: 600;
}

.contact-reply-note {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  padding-top: 16px;
  color: #344056;
  border-top: 1px solid rgba(111, 120, 148, 0.22);
  font-size: 15px;
  line-height: 1.5;
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 0;
}

.section-heading h2,
.final-cta h2 {
  margin: 12px 0 0;
  color: #151a26;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(44px, 4.8vw, 66px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.06;
}

.section-heading p:not(.section-kicker) {
  margin-top: 18px;
  color: var(--muted);
}

.detail-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.detail-card,
.price-card {
  padding: clamp(22px, 2.6vw, 32px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)) padding-box,
    var(--gradient) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  box-shadow: 0 18px 54px rgba(33, 40, 62, 0.07);
}

.detail-icon {
  display: inline-flex;
  margin-bottom: 22px;
}

.detail-card h3 {
  font-size: 17px;
}

.proof-section {
  background: transparent;
}

.proof-layout {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  gap: clamp(32px, 6vw, 92px);
}

.proof-copy {
  max-width: 650px;
  justify-self: end;
}

.proof-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.proof-metrics span {
  display: inline-flex;
  align-items: baseline;
  min-height: 42px;
  padding: 0 16px;
  color: #344057;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(112, 123, 153, 0.18);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(36, 42, 65, 0.06);
}

.proof-metrics strong {
  margin-right: 6px;
  color: #171d29;
  font-weight: 800;
}

.pricing-section {
  background: transparent;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1020px;
  margin-inline: auto;
}

.price-card {
  min-height: 220px;
}

.price-card.featured {
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)) padding-box,
    var(--gradient) border-box;
  box-shadow: 0 28px 76px rgba(96, 86, 200, 0.14);
}

.plan-name {
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-card h3 {
  margin-bottom: 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 3vw, 44px);
  font-weight: 700;
  text-transform: none;
}

.final-cta {
  padding: clamp(64px, 8vw, 104px) 0;
  color: var(--ink);
  background: transparent;
}

.cta-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.final-cta .section-kicker {
  color: var(--blue);
}

.final-cta h2 {
  max-width: 760px;
  color: #151a26;
}

.compact-button {
  flex: 0 0 auto;
  margin-top: 0;
}

.site-footer {
  padding: 34px 0;
  color: #4a5368;
  background: transparent;
  border-top: 1px solid rgba(105, 115, 143, 0.15);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  font-size: 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 26px;
  font-size: 14px;
}

body.auth-modal-open {
  overflow: hidden;
}

.auth-modal-layer[hidden] {
  display: none;
}

.auth-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 24, 0.28);
  backdrop-filter: blur(13px) saturate(105%);
}

.auth-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 64px 54px 44px;
  color: #171d29;
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  border-radius: 26px;
  box-shadow:
    0 34px 90px rgba(40, 43, 58, 0.24),
    0 12px 48px rgba(86, 120, 255, 0.12);
  backdrop-filter: blur(22px);
}

.auth-modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 1px;
  background: var(--gradient);
  border-radius: inherit;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

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

.auth-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(31, 41, 60, 0.54);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.auth-modal-close:hover {
  color: #171d29;
  background: rgba(229, 232, 244, 0.66);
  transform: translateY(-1px);
}

.auth-modal-close svg,
.auth-input-wrap svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.auth-modal-title {
  margin: 0;
  text-align: center;
  color: #171d29;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.auth-modal-subtitle {
  margin: 16px 0 36px;
  text-align: center;
  color: rgba(31, 41, 60, 0.58);
  font-size: 17px;
  line-height: 1.45;
}

.auth-provider-button,
.auth-input-wrap,
.auth-submit {
  width: 100%;
  min-height: 58px;
  border-radius: 999px;
}

.auth-provider-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #171d29;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient) border-box;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  transition:
    box-shadow 190ms ease,
    transform 190ms ease,
    border-color 190ms ease;
}

.auth-provider-button:hover {
  box-shadow: 0 18px 42px rgba(86, 120, 255, 0.14);
  transform: translateY(-1px);
}

.auth-google-mark {
  width: 21px;
  height: 21px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
  color: rgba(31, 41, 60, 0.38);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(106, 116, 142, 0.28), transparent);
}

.auth-form {
  margin: 0;
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  color: rgba(31, 41, 60, 0.42);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(106, 116, 142, 0.25);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.auth-input-wrap:focus-within {
  color: #5678ff;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(86, 120, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(86, 120, 255, 0.1);
}

.auth-input-wrap input {
  width: 100%;
  height: 56px;
  min-width: 0;
  color: #171d29;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 18px;
}

.auth-input-wrap input::placeholder {
  color: rgba(72, 83, 106, 0.56);
}

.auth-submit {
  margin-top: 22px;
  color: #121826;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient) border-box;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 15px 35px rgba(68, 75, 126, 0.08);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.auth-submit:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.auth-submit:not(:disabled):hover {
  box-shadow: 0 22px 49px rgba(73, 84, 150, 0.16);
  transform: translateY(-1px);
}

.auth-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 0;
  color: rgba(31, 41, 60, 0.42);
  font-size: 13px;
}

.auth-legal a {
  transition: color 180ms ease;
}

.auth-legal a:hover {
  color: #5678ff;
}

:root[data-theme="dark"] .auth-modal-backdrop {
  background: rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .auth-modal-card {
  color: #f7efe8;
  background: rgba(6, 8, 13, 0.9);
  box-shadow:
    0 38px 96px rgba(0, 0, 0, 0.46),
    0 16px 52px rgba(86, 120, 255, 0.16);
}

:root[data-theme="dark"] .auth-modal-title {
  color: #f7efe8;
}

:root[data-theme="dark"] .auth-modal-subtitle,
:root[data-theme="dark"] .auth-legal {
  color: rgba(216, 222, 240, 0.58);
}

:root[data-theme="dark"] .auth-modal-close {
  color: rgba(216, 222, 240, 0.58);
}

:root[data-theme="dark"] .auth-modal-close:hover {
  color: #f7efe8;
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .auth-input-wrap {
  color: #f7efe8;
  background: rgba(6, 8, 13, 0.42);
  border-color: rgba(225, 230, 248, 0.18);
}

:root[data-theme="dark"] .auth-provider-button:hover {
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .auth-divider {
  color: rgba(216, 222, 240, 0.4);
}

:root[data-theme="dark"] .auth-divider::before,
:root[data-theme="dark"] .auth-divider::after {
  background: linear-gradient(90deg, transparent, rgba(225, 230, 248, 0.22), transparent);
}

:root[data-theme="dark"] .auth-input-wrap:focus-within {
  color: #8fa2ff;
  background: rgba(6, 8, 13, 0.62);
  border-color: rgba(86, 120, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(86, 120, 255, 0.14);
}

:root[data-theme="dark"] .auth-input-wrap input {
  color: #f7efe8;
}

:root[data-theme="dark"] .auth-input-wrap input::placeholder {
  color: rgba(216, 222, 240, 0.52);
}

:root[data-theme="dark"] .auth-legal a:hover {
  color: #8fa2ff;
}

:root[data-theme="dark"] .hero-shell,
:root[data-theme="dark"] .pricing-page,
:root[data-theme="dark"] .contact-page,
:root[data-theme="dark"] .simple-page {
  background: #07080b;
}

:root[data-theme="dark"] .hero-media img {
  content: url("./assets/bg-hero-section-dark-v2.png");
}

:root[data-theme="dark"] .hero-wash {
  background:
    linear-gradient(90deg, rgba(7, 8, 11, 0.78) 0%, rgba(7, 8, 11, 0.42) 38%, rgba(7, 8, 11, 0.04) 68%),
    rgba(7, 8, 11, 0.16);
}

:root[data-theme="dark"] .public-flow {
  background: transparent;
}

:root[data-theme="dark"] .pricing-hero {
  background:
    linear-gradient(180deg, rgba(7, 8, 11, 0.12), rgba(7, 8, 11, 0.22)),
    url("./assets/bg-pricing-page-dark-V2.png") center top / cover no-repeat;
}

:root[data-theme="dark"] .contact-hero {
  background:
    linear-gradient(180deg, rgba(7, 8, 11, 0.05), rgba(7, 8, 11, 0.18)),
    url("./assets/bg-contact-page-dark-V4.png") right top / auto 100% no-repeat;
  /* Pure black matches the dark image's left edge, so the fill behind it is
     seamless on wide screens (no detached left edge). */
  background-color: #000000;
}

:root[data-theme="dark"] .site-header,
:root[data-theme="dark"] .header-actions,
:root[data-theme="dark"] .brand,
:root[data-theme="dark"] .primary-nav,
:root[data-theme="dark"] .nav-link,
:root[data-theme="dark"] .signin-link {
  color: #f5efe8;
}

:root[data-theme="dark"] .nav-link:hover,
:root[data-theme="dark"] .signin-link:hover {
  color: #aeb8ce;
}

:root[data-theme="dark"] .pricing-header .nav-link.active,
:root[data-theme="dark"] .contact-header .nav-link.active,
:root[data-theme="dark"] .nav-link.active {
  color: #f35bd7;
}

:root[data-theme="dark"] .language-indicator,
:root[data-theme="dark"] .theme-indicator {
  color: #f5efe8;
}

:root[data-theme="dark"] .language-indicator:hover,
:root[data-theme="dark"] .theme-indicator:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(225, 230, 248, 0.2);
}

:root[data-theme="dark"] .outline-button,
:root[data-theme="dark"] .start-button,
:root[data-theme="dark"] .pricing-plan-button,
:root[data-theme="dark"] .contact-submit,
:root[data-theme="dark"] .auth-provider-button,
:root[data-theme="dark"] .auth-submit {
  position: relative;
  color: #f7efe9;
  background: transparent;
  border-color: transparent;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .outline-button::before,
:root[data-theme="dark"] .start-button::before,
:root[data-theme="dark"] .pricing-plan-button::before,
:root[data-theme="dark"] .contact-submit::before,
:root[data-theme="dark"] .auth-provider-button::before,
:root[data-theme="dark"] .auth-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  background: var(--gradient);
  border-radius: inherit;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] .pricing-title,
:root[data-theme="dark"] .contact-title,
:root[data-theme="dark"] .section-heading h2,
:root[data-theme="dark"] .final-cta h2,
:root[data-theme="dark"] .simple-page h1,
:root[data-theme="dark"] .feature-card h2,
:root[data-theme="dark"] .detail-card h3,
:root[data-theme="dark"] .price-card h3,
:root[data-theme="dark"] .pricing-plan-copy h2 {
  color: #f7efe8;
}

:root[data-theme="dark"] .hero-copy,
:root[data-theme="dark"] .support-copy,
:root[data-theme="dark"] .section-heading p:not(.section-kicker),
:root[data-theme="dark"] .feature-card p,
:root[data-theme="dark"] .detail-card p,
:root[data-theme="dark"] .price-card p,
:root[data-theme="dark"] .proof-copy p,
:root[data-theme="dark"] .pricing-subtitle,
:root[data-theme="dark"] .pricing-plan-copy p,
:root[data-theme="dark"] .pricing-feature-list li,
:root[data-theme="dark"] .pricing-plan-price small,
:root[data-theme="dark"] .contact-subtitle,
:root[data-theme="dark"] .contact-detail p,
:root[data-theme="dark"] .contact-reply-note,
:root[data-theme="dark"] .contact-safe {
  color: #c7cfdf;
}

:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .section-kicker,
:root[data-theme="dark"] .pricing-eyebrow,
:root[data-theme="dark"] .contact-eyebrow,
:root[data-theme="dark"] .plan-name {
  color: #7f96ff;
}

:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .detail-card,
:root[data-theme="dark"] .price-card,
:root[data-theme="dark"] .pricing-plan-card,
:root[data-theme="dark"] .contact-form-card {
  background: rgba(5, 7, 12, 0.72);
  border-color: rgba(235, 239, 255, 0.14);
  box-shadow:
    0 30px 88px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .pricing-plan-card:hover {
  border-color: rgba(226, 231, 250, 0.2);
  box-shadow:
    0 36px 94px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .pricing-plan-card.featured {
  background:
    linear-gradient(180deg, rgba(7, 9, 15, 0.9), rgba(5, 7, 12, 0.84)) padding-box,
    linear-gradient(132deg, #ff745c 0%, #e84dd8 48%, #5b69ff 100%) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 34px 94px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .popular-badge {
  color: #e77aff;
  background:
    linear-gradient(rgba(12, 13, 22, 0.96), rgba(12, 13, 22, 0.96)) padding-box,
    linear-gradient(108deg, #ff6b62 0%, #e84dd8 50%, #6474ff 100%) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .creator-pill,
:root[data-theme="dark"] .pricing-writer-pill,
:root[data-theme="dark"] .proof-metrics span {
  color: #d8def0;
  background: rgba(6, 8, 13, 0.72);
  border-color: rgba(225, 230, 248, 0.16);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .billing-toggle {
  color: rgba(245, 239, 232, 0.72);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

:root[data-theme="dark"] .billing-toggle button {
  color: rgba(245, 239, 232, 0.72);
}

:root[data-theme="dark"] .billing-toggle button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f7efe8;
}

:root[data-theme="dark"] .billing-toggle button.active {
  color: #f7efe8;
  background: transparent;
  border: 0;
  box-shadow: none;
}

:root[data-theme="dark"] .billing-toggle span {
  color: #5ee0b4;
  background: rgba(49, 191, 161, 0.16);
}

:root[data-theme="dark"] .pricing-plan-price,
:root[data-theme="dark"] .pricing-plan-price span,
:root[data-theme="dark"] .contact-detail strong,
:root[data-theme="dark"] .proof-metrics strong {
  color: #fff8f0;
}

:root[data-theme="dark"] .pricing-plan-button {
  color: #f7efe9;
  background: transparent;
  border-color: transparent;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .pricing-plan-button.primary {
  color: #f7efe9;
  background: transparent;
  border-color: transparent;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .pricing-quote,
:root[data-theme="dark"] .pricing-care,
:root[data-theme="dark"] .contact-detail + .contact-detail {
  border-color: rgba(225, 230, 248, 0.16);
}

:root[data-theme="dark"] .pricing-quote blockquote,
:root[data-theme="dark"] .pricing-quote figcaption,
:root[data-theme="dark"] .pricing-care p,
:root[data-theme="dark"] .pricing-care span {
  color: #f0e7df;
}

:root[data-theme="dark"] .contact-form-card input,
:root[data-theme="dark"] .contact-form-card select,
:root[data-theme="dark"] .contact-form-card textarea {
  color: #f4efe8;
  background-color: rgba(7, 9, 14, 0.66);
  border-color: rgba(225, 230, 248, 0.18);
}

:root[data-theme="dark"] .contact-form-card input::placeholder,
:root[data-theme="dark"] .contact-form-card textarea::placeholder {
  color: #8894ad;
}

:root[data-theme="dark"] .contact-form-card input:focus,
:root[data-theme="dark"] .contact-form-card select:focus,
:root[data-theme="dark"] .contact-form-card textarea:focus {
  background-color: rgba(9, 11, 18, 0.9);
  border-color: rgba(142, 157, 255, 0.64);
  box-shadow: 0 0 0 4px rgba(112, 121, 255, 0.13);
}

:root[data-theme="dark"] .contact-form-card label span {
  color: #f4efe8;
}

:root[data-theme="dark"] .contact-form-card select {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23aab2c8'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206%206-6'/%3E%3C/svg%3E");
}

:root[data-theme="dark"] .site-footer {
  color: #aeb8ce;
  background: rgba(7, 8, 11, 0.82);
  border-top-color: rgba(225, 230, 248, 0.12);
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  h1 span {
    color: #cc56ee;
  }
}

@media (min-width: 1700px) {
  .hero-media img {
    object-position: 63% 52%;
  }
}

@media (max-width: 1280px) {
  .hero-media img {
    object-position: 70% 52%;
  }

  .hero-layout {
    grid-template-columns: minmax(410px, 0.95fr) minmax(320px, 0.85fr);
    padding-block: clamp(24px, 5vh, 54px) clamp(50px, 8vh, 78px);
  }

  .hero-card-zone {
    min-height: 360px;
    align-items: end;
  }

  .hero-card-grid {
    justify-self: end;
    grid-template-columns: minmax(190px, 230px);
    gap: 12px;
  }

  .feature-card {
    display: grid;
    height: 72px;
    min-height: 72px;
    align-items: center;
    grid-template-columns: 32px 1fr;
    column-gap: 12px;
    padding: 14px;
  }

  .feature-card .card-icon {
    width: 30px;
    height: 30px;
    grid-row: 1 / span 2;
  }

  .feature-card h2 {
    margin: 0;
    font-size: 14px;
  }

  .feature-card p {
    display: none;
  }

  .write-card,
  .clarify-card,
  .structure-card,
  .connect-card {
    justify-self: stretch;
    margin-top: 0;
  }

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

@media (max-width: 1100px) {
  .primary-nav {
    gap: 22px;
  }

  .header-actions {
    gap: 12px;
  }

  .signin-link,
  .theme-indicator {
    display: none;
  }

  .hero-layout {
    grid-template-columns: minmax(380px, 0.98fr) minmax(240px, 0.72fr);
    gap: 24px;
  }

  h1 {
    font-size: clamp(58px, 6.6vw, 72px);
  }
}

@media (max-width: 980px) {
  .hero-shell {
    height: 100vh;
    height: 100dvh;
  }

  .hero-media img {
    object-position: 58% 50%;
  }

  .hero-wash {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.74) 45%, rgba(255, 255, 255, 0.9) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.28));
  }

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

  .brand {
    min-width: auto;
  }

  .primary-nav,
  .language-indicator,
  .signin-link {
    display: none;
  }

  .outline-button {
    min-height: 44px;
    padding: 0 20px;
  }

  .hero-layout {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: clamp(28px, 5vh, 46px) 72px;
  }

  .hero-content {
    top: 15vh;
    left: 6vw;
    max-width: none;
  }

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

  .hero-card-grid {
    display: none;
  }

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

  .proof-copy {
    justify-self: start;
  }

  .cta-layout,
  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 850px) {
  :root {
    --container: min(100% - 36px, 1450px);
  }

  .hero-layout {
    padding-bottom: 62px;
  }

  h1 {
    font-size: clamp(49px, 13vw, 68px);
  }

  .hero-copy {
    font-size: 17px;
  }

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

  .section-heading h2,
  .final-cta h2 {
    font-size: clamp(38px, 11vw, 54px);
  }
}

@media (max-width: 560px) {
  :root {
    --container: min(100% - 32px, 1450px);
  }

  .site-header {
    gap: 14px;
  }

  .brand {
    gap: 7px;
    font-size: 25px;
  }

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

  .outline-button {
    min-height: 42px;
    border-radius: 14px;
    font-size: 14px;
  }

  .eyebrow {
    gap: 8px;
    font-size: 11px;
  }

  .start-button {
    width: 100%;
    min-width: 0;
    padding-left: 26px;
  }

  .creator-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-card-grid {
    grid-template-columns: 1fr;
  }

  .support-copy {
    max-width: 330px;
  }

  .landing-section {
    padding-block: 72px;
  }

  .features-section {
    margin-top: 0;
    padding-top: 18px;
  }
}

@media (max-height: 860px) and (min-width: 981px) {
  .site-header {
    min-height: 72px;
    padding-block: 10px;
  }

  .hero-layout {
    padding-block: 16px 52px;
  }

  h1 {
    font-size: clamp(56px, 5vw, 70px);
    line-height: 0.94;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.45;
  }

  .start-button {
    min-height: 56px;
    margin-top: 20px;
  }

  .start-icon {
    width: 34px;
    height: 34px;
  }

  .creator-row {
    margin-top: 20px;
  }

  .support-copy {
    margin-top: 18px;
    line-height: 1.45;
  }

  .hero-card-zone {
    min-height: 300px;
    align-items: center;
  }
}

@media (max-width: 1320px) {
  .pricing-stage {
    width: min(100% - 56px, 1180px);
  }

  .pricing-plan-card {
    padding: 46px 38px 34px;
  }

  .pricing-plan-button {
    padding-left: 48px;
  }

  .pricing-plan-button.primary {
    padding-left: 54px;
  }

  .pricing-proof {
    grid-template-columns: 335px repeat(3, minmax(160px, 1fr));
    gap: 0;
  }

  .pricing-care {
    grid-column: 1 / -1;
    justify-self: center;
    min-height: 76px;
    margin-top: 18px;
    padding-left: 0;
    border-left: 0;
  }

  .contact-stage {
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    padding-inline: clamp(32px, 5vw, 72px);
    padding-top: 108px;
  }

  .contact-copy {
    width: min(100%, 560px);
  }

  .contact-title {
    font-size: clamp(58px, 4.7vw, 70px);
  }

  .contact-form-card {
    width: min(100%, 560px);
  }

  .contact-details {
    width: min(100%, 560px);
  }

  .contact-detail {
    gap: 8px;
    padding-right: 10px;
  }

  .contact-detail + .contact-detail {
    padding-left: 10px;
  }

  .contact-detail p {
    font-size: 13px;
  }

  .contact-detail strong {
    font-size: 14.5px;
  }
}

@media (max-width: 980px) {
  .pricing-hero {
    overflow: visible;
    background-position: center top;
  }

  .pricing-stage {
    width: min(100% - 36px, 760px);
    padding-top: 118px;
  }

  .pricing-eyebrow {
    gap: 10px;
    font-size: 11px;
    line-height: 1.35;
    word-spacing: 0.16em;
  }

  .pricing-title {
    font-size: clamp(48px, 12vw, 64px);
  }

  .billing-toggle {
    margin-bottom: 28px;
  }

  .pricing-plan-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 540px;
  }

  .pricing-plan-card,
  .pricing-plan-card.featured,
  .pricing-plan-card:last-child {
    min-height: auto;
    margin: 0;
    padding: 44px 38px 34px;
  }

  .pricing-plan-button,
  .pricing-plan-button.primary {
    width: 100%;
    padding-left: 0;
    justify-content: center;
    gap: 34px;
  }

  .pricing-proof {
    grid-template-columns: 1fr;
    max-width: 540px;
    gap: 20px;
    margin-top: 28px;
  }

  .pricing-quote,
  .pricing-care {
    min-height: auto;
    padding-left: 0;
    border-left: 0;
  }

  .pricing-quote::before {
    left: 0;
  }

  .contact-hero {
    overflow: visible;
    background-position: center top;
    background-size: auto 100%;
  }

  .contact-stage {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: auto;
    justify-items: center;
    padding: 118px 18px 32px;
  }

  .contact-copy {
    width: min(100%, 520px);
    margin-left: 0;
  }

  .contact-eyebrow {
    gap: 10px;
    font-size: 11px;
    line-height: 1.35;
    word-spacing: 0.16em;
  }

  .contact-title {
    font-size: clamp(50px, 12vw, 68px);
  }

  .contact-subtitle {
    font-size: 17px;
  }

  .contact-form-card {
    width: min(100%, 520px);
    margin: 28px 0 0;
  }

  .contact-details {
    width: min(100%, 520px);
    margin-top: 32px;
  }
}

@media (max-width: 560px) {
  .pricing-stage {
    width: min(100% - 32px, 420px);
    padding-top: 104px;
  }

  .pricing-title {
    font-size: clamp(42px, 14vw, 52px);
  }

  .pricing-subtitle {
    font-size: 18px;
  }

  .billing-toggle {
    width: min(456px, calc(100vw - 32px));
    padding: 3px;
  }

  .billing-toggle button {
    padding-inline: 0;
    font-size: 15px;
  }

  .billing-toggle span {
    width: 108px;
    min-width: 0;
    margin-right: 0;
    padding-inline: 0;
    font-size: 13px;
  }

  .pricing-plan-card,
  .pricing-plan-card.featured {
    padding: 38px 26px 28px;
  }

  .pricing-plan-price {
    font-size: 56px;
  }

  .pricing-trust {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .pricing-writer-pill {
    margin: 10px 0 0;
  }

  .pricing-care {
    gap: 12px;
  }

  .pricing-care p {
    font-size: 12px;
    letter-spacing: 2.5px;
  }

  .contact-stage {
    padding: 104px 16px 28px;
  }

  .contact-copy,
  .contact-form-card,
  .contact-details {
    width: min(100%, 392px);
  }

  .contact-title {
    font-size: clamp(44px, 14vw, 54px);
  }

  .contact-subtitle {
    font-size: 16px;
  }

  .contact-form-card {
    padding: 26px 22px 20px;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-detail,
  .contact-detail + .contact-detail {
    padding: 0;
    border-left: 0;
  }

  .contact-detail p {
    white-space: normal;
  }

  .contact-reply-note {
    margin-top: 6px;
  }

  .auth-modal-layer {
    padding: 18px;
  }

  .auth-modal-card {
    padding: 56px 24px 32px;
    border-radius: 22px;
  }

  .auth-modal-title {
    font-size: 26px;
  }

  .auth-modal-subtitle {
    margin-bottom: 28px;
    font-size: 15px;
  }

  .auth-provider-button,
  .auth-input-wrap,
  .auth-submit {
    min-height: 54px;
  }

  .auth-provider-button,
  .auth-input-wrap input,
  .auth-submit {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .language-indicator,
  .theme-indicator,
  .outline-button,
  .start-button,
  .feature-card,
  .billing-toggle button,
  .pricing-plan-card,
  .pricing-plan-button,
  .contact-form-card,
  .contact-form-card input,
  .contact-form-card select,
  .contact-form-card textarea,
  .contact-submit,
  .auth-modal-close,
  .auth-provider-button,
  .auth-input-wrap,
  .auth-submit {
    transition: none;
  }

  .outline-button:hover,
  .start-button:hover,
  .feature-card:hover,
  .pricing-plan-card:hover,
  .pricing-plan-button:hover,
  .contact-form-card:hover,
  .contact-submit:hover,
  .auth-modal-close:hover,
  .auth-provider-button:hover,
  .auth-submit:not(:disabled):hover {
    transform: none;
  }
}

/* Synapse constellation layer (see constellation.js) ----------------------- */
.synapse-constellation {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* index hero: PNG lives in `.hero-media` (z-index 0) and `.hero-wash`
   (z-index 1), content sits at z-index 4-6 — slot the layer between them. */
.hero-shell > .synapse-constellation {
  z-index: 2;
}

/* index lower half (`.public-flow`): transparent background, all inner sections
   (features, pricing, CTA, footer) are `background: transparent` with z-index 3
   — so a z-index 1 layer paints over the page `body` colour and shows the
   constellation through every section, footer included. */
.public-flow > .synapse-constellation {
  z-index: 1;
}

/* pricing & contact heroes: the PNG is the element's own `background`, so a
   negative z-index paints above the image but below all (static) content.
   `isolation` scopes that -1 to the hero instead of the page. */
.pricing-hero,
.contact-hero {
  isolation: isolate;
}

.pricing-hero > .synapse-constellation,
.contact-hero > .synapse-constellation {
  z-index: -1;
}

/* research-lab is a near-empty placeholder: let the constellation be the
   backdrop over the page (body) colour, with the title raised above it. */
.simple-page {
  position: relative;
  isolation: isolate;
  background: transparent;
}

.simple-page > .synapse-constellation {
  z-index: 0;
}

.simple-page > :not(.synapse-constellation) {
  position: relative;
  z-index: 1;
}

/* Standalone footers (pricing, contact, research-lab) host their own
   constellation. On index the footer lives inside `.public-flow` and already
   gets the layer, so only the marked standalone footers need this. */
.site-footer[data-constellation] {
  position: relative;
  isolation: isolate;
}

.site-footer > .synapse-constellation {
  z-index: 0;
}

.site-footer[data-constellation] > :not(.synapse-constellation) {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Research Lab — static port of the prod /recherche page.
   Constellation backdrop (no workspace image), liquid-glass cards,
   auto-scrolling hero marquee, scroll-reveal, gradient accents.
   ============================================================ */
.rl-page {
  position: relative;
  isolation: isolate;
  padding: clamp(120px, 15vh, 168px) 0 clamp(64px, 9vw, 116px);
  background: #fffaf6;
}

:root[data-theme="dark"] .rl-page {
  background: #0e0f12;
}

.rl-page > .synapse-constellation {
  z-index: 0;
}

.rl-page > :not(.synapse-constellation) {
  position: relative;
  z-index: 1;
}

/* Scroll reveal (only active when JS is present). */
.rl-js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rl-js [data-reveal].rl-in {
  opacity: 1;
  transform: none;
}

/* Liquid glass — subtle frosted surface with a soft inner rim. */
.rl-glass {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    0 10px 30px rgba(30, 30, 40, 0.06);
}

:root[data-theme="dark"] .rl-glass {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* HERO */
.rl-hero {
  max-width: 960px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
  text-align: center;
}

.rl-hero-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: clamp(46px, 8vw, 112px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.rl-hero-title em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rl-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: clamp(34px, 5vw, 52px) auto 0;
  padding: 9px 9px 9px 22px;
  border-radius: 999px;
}

.rl-search-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
}

.rl-search-input::placeholder {
  color: var(--soft);
}

.rl-search-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 6px 18px rgba(236, 85, 215, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.rl-search-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 9px 24px rgba(236, 85, 215, 0.44);
  filter: saturate(1.08);
}

.rl-search-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
}

:root[data-theme="dark"] .rl-search-btn {
  box-shadow: 0 6px 20px rgba(236, 85, 215, 0.46);
}

/* Premium frosted rim + focus ring shared by the two input bars. */
.rl-search,
.rl-news-form {
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.rl-search::before,
.rl-news-form::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 1.3px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.1) 32%,
    rgba(236, 85, 215, 0.2) 78%,
    rgba(83, 120, 255, 0.32)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.rl-search > *,
.rl-news-form > * {
  position: relative;
  z-index: 1;
}

.rl-search:focus-within,
.rl-news-form:focus-within {
  border-color: rgba(236, 85, 215, 0.5);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    0 0 0 4px rgba(236, 85, 215, 0.13),
    0 18px 44px rgba(30, 30, 40, 0.1);
}

:root[data-theme="dark"] .rl-search:focus-within,
:root[data-theme="dark"] .rl-news-form:focus-within {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    0 0 0 4px rgba(236, 85, 215, 0.22),
    0 18px 44px rgba(0, 0, 0, 0.5);
}

.rl-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  margin-top: 24px;
}

.rl-suggest-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
}

.rl-chip {
  font: inherit;
  font-size: 13px;
  color: var(--soft);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.rl-chip:hover {
  color: var(--ink);
}

.rl-chip.active {
  color: var(--ink);
  font-weight: 600;
}

/* HERO MARQUEE */
.rl-marquee-mask {
  margin-top: clamp(48px, 7vw, 84px);
  padding: 16px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.rl-marquee {
  display: flex;
  width: max-content;
  gap: 24px;
  padding-inline: 12px;
  animation: rl-marquee-x 46s linear infinite;
  will-change: transform;
}

.rl-marquee:hover {
  animation-play-state: paused;
}

@keyframes rl-marquee-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 12px));
  }
}

.rl-mcard {
  position: relative;
  flex: 0 0 auto;
  width: 280px;
  height: 380px;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
  background: #111318;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s ease;
}

.rl-mcard:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.46);
}

.rl-mcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rl-mcard-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.18) 55%, transparent);
}

.rl-mcard .rl-pill {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.rl-mcard-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
}

.rl-mcard-body h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.rl-mcard-body p {
  margin: 8px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
}

/* SECTIONS */
.rl-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 124px) clamp(20px, 5vw, 40px) 0;
}

.rl-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.rl-section-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.rl-section-title em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rl-browse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.rl-browse:hover {
  color: var(--ink);
}

.rl-browse svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* CARDS (featured / recent) */
.rl-featured-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.rl-grid3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.rl-grid3--featured {
  margin-top: 24px;
}

@media (min-width: 640px) {
  .rl-grid3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .rl-featured-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .rl-grid3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rl-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.rl-card-media {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 14px 44px -14px rgba(0, 0, 0, 0.28);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s ease;
}

.rl-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.rl-card--square .rl-card-media img {
  aspect-ratio: 1 / 1;
}

.rl-card:hover .rl-card-media {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 64px -20px rgba(0, 0, 0, 0.46);
}

.rl-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rl-date {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

.rl-card-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  color: var(--ink);
}

.rl-card-title--lg {
  font-size: clamp(26px, 3vw, 34px);
}

.rl-read {
  align-self: flex-start;
  padding: 8px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.rl-read:hover {
  transform: scale(1.04);
}

.rl-pill {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
}

/* NEWSLETTER */
.rl-newsletter {
  max-width: 720px;
  text-align: center;
}

.rl-news-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.1;
  color: var(--ink);
}

.rl-news-title em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rl-news-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: clamp(28px, 4vw, 40px) auto 0;
  padding: 8px;
  border-radius: 18px;
}

.rl-news-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
}

.rl-news-form input::placeholder {
  color: var(--soft);
}

.rl-subscribe {
  flex: none;
  padding: 11px 24px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 22px rgba(236, 85, 215, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.rl-subscribe:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 12px 30px rgba(236, 85, 215, 0.42);
  filter: saturate(1.08);
}

:root[data-theme="dark"] .rl-subscribe {
  box-shadow: 0 8px 24px rgba(236, 85, 215, 0.42);
}

@media (prefers-reduced-motion: reduce) {
  .rl-marquee {
    animation: none;
  }
  .rl-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
