/* meno marketing site — shared styles */

:root {
  color-scheme: light dark;
  --bg: #f2f1ec;
  --text: #1a1a1a;
  --muted: #6b6560;
  --accent: #76885b;
  --accent-hover: #657349;
  --accent-dim: #eef3e8;
  --border: #edeae6;
  --surface: #faf8f7;
  --on-accent: #fff;
  --phone-start: #2a2a2a;
  --phone-end: #1a1a1a;
  --notepad-start: #faf8f7;
  --notepad-end: #edeae6;
  --phone-shadow: 0 24px 48px color-mix(in srgb, var(--text) 18%, transparent),
    0 8px 16px color-mix(in srgb, var(--text) 8%, transparent);
  --notepad-shadow: 0 12px 24px color-mix(in srgb, var(--text) 8%, transparent);
  --error-bg: #fdf0ee;
  --error-text: #8b3a34;
  --error-border: #e8c4c0;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-script: "Caveat", "Segoe Script", cursive;
  --font-body: "Segoe UI", Segoe UI, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-price: var(--font-display);
  --hero-bg: #f2f1ec;
  --header-bg: #f6f1f0;
  --card-bg: #faf8f6;
  --hero-art-height: calc(100vw * 720 / 1770);
  --solution-advisors: #5a9a82;
  --solution-advisors-light: #9ecdb8;
  --solution-advisors-dark: #4a7564;
  --solution-advisors-dim: #eef5f1;
  --solution-wealth: #6a9fb0;
  --solution-insurance: #b09a72;
  --solution-retirement: #9189b0;
  --header-height: 72px;
  --page-pad: clamp(1.25rem, 4vw, 3rem);
  --page-pad-hero: clamp(1.25rem, 4vw, 3rem);
  --content-max: 1120px;
  --narrow-max: 720px;
  /* Site banner kinds (shared with admin preview) */
  --banner-info-bg: var(--accent-dim);
  --banner-info-text: color-mix(in srgb, var(--accent) 72%, var(--text));
  --banner-info-border: color-mix(in srgb, var(--accent) 28%, var(--border));
  --banner-info-link: var(--accent);
  --banner-info-link-hover: var(--accent-hover);
  --banner-promo-bg: #fef9c3;
  --banner-promo-text: #854d0e;
  --banner-promo-border: #fde047;
  --banner-promo-link: #a16207;
  --banner-promo-link-hover: #854d0e;
  --banner-alert-bg: #ffedd5;
  --banner-alert-text: #c2410c;
  --banner-alert-border: #fdba74;
  --banner-alert-link: #ea580c;
  --banner-alert-link-hover: #c2410c;
  --banner-status-bg: #dbeafe;
  --banner-status-text: #1d4ed8;
  --banner-status-border: #93c5fd;
  --banner-status-link: #2563eb;
  --banner-status-link-hover: #1d4ed8;
  --modal-overlay: color-mix(in srgb, var(--text) 42%, transparent);
  --elevated-shadow-lg:
    0 32px 80px color-mix(in srgb, var(--text) 22%, transparent),
    0 8px 24px color-mix(in srgb, var(--text) 10%, transparent);
  --phone-bezel-shadow:
    0 20px 50px color-mix(in srgb, var(--text) 22%, transparent),
    0 8px 20px color-mix(in srgb, var(--text) 12%, transparent),
    inset 0 0 0 1px color-mix(in srgb, #fff 12%, transparent);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-scheme='light']) {
    color-scheme: dark;
    --bg: #1a1917;
    --text: #f2f0eb;
    --muted: #a8a29c;
    --accent: #8ba874;
    --accent-hover: #9bb882;
    --accent-dim: #2a3324;
    --border: #3d3a35;
    --surface: #242220;
    --on-accent: #fff;
    --hero-bg: #1e1d1a;
    --header-bg: #1e1d1a;
    --phone-start: #3a3a3a;
    --phone-end: #252525;
    --notepad-start: #2e2c28;
    --notepad-end: #3d3a35;
    --phone-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
    --notepad-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    --error-bg: #3d2422;
    --error-text: #f0a9a3;
    --error-border: #6b3a35;
    --card-bg: #242220;
    --solution-advisors-dim: #1e2a24;
    --banner-info-bg: var(--accent-dim);
    --banner-info-text: color-mix(in srgb, var(--accent) 65%, var(--text));
    --banner-info-border: color-mix(in srgb, var(--accent) 35%, var(--border));
    --banner-promo-bg: #3d3520;
    --banner-promo-text: #fde68a;
    --banner-promo-border: #854d0e;
    --banner-promo-link: #fbbf24;
    --banner-promo-link-hover: #fde68a;
    --banner-alert-bg: #3d2818;
    --banner-alert-text: #fdba74;
    --banner-alert-border: #9a3412;
    --banner-alert-link: #fb923c;
    --banner-alert-link-hover: #fdba74;
    --banner-status-bg: #1e2a3d;
    --banner-status-text: #93c5fd;
    --banner-status-border: #1e40af;
    --banner-status-link: #60a5fa;
    --banner-status-link-hover: #93c5fd;
    --modal-overlay: color-mix(in srgb, #000 58%, transparent);
    --elevated-shadow-lg:
      0 16px 40px rgba(0, 0, 0, 0.42),
      0 4px 14px rgba(0, 0, 0, 0.24);
    --phone-bezel-shadow:
      0 16px 36px rgba(0, 0, 0, 0.48),
      0 6px 14px rgba(0, 0, 0, 0.32),
      inset 0 0 0 1px color-mix(in srgb, #fff 6%, transparent);
  }

  :root:not([data-scheme='light']) .phone-app {
    --ph-bg: #30302c;
    --ph-text: #e8e6e1;
    --ph-muted: #98938b;
    --ph-line: rgba(255, 255, 255, 0.09);
    --ph-surface: #3b3a35;
  }
}

/* Explicit dark (including when theme.js pins data-scheme after OS change). */
:root[data-scheme='dark'] {
  color-scheme: dark;
  --bg: #1a1917;
  --text: #f2f0eb;
  --muted: #a8a29c;
  --accent: #8ba874;
  --accent-hover: #9bb882;
  --accent-dim: #2a3324;
  --border: #3d3a35;
  --surface: #242220;
  --on-accent: #fff;
  --hero-bg: #1e1d1a;
  --header-bg: #1e1d1a;
  --phone-start: #3a3a3a;
  --phone-end: #252525;
  --notepad-start: #2e2c28;
  --notepad-end: #3d3a35;
  --phone-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  --notepad-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  --error-bg: #3d2422;
  --error-text: #f0a9a3;
  --error-border: #6b3a35;
  --card-bg: #242220;
  --solution-advisors-dim: #1e2a24;
  --banner-info-bg: var(--accent-dim);
  --banner-info-text: color-mix(in srgb, var(--accent) 65%, var(--text));
  --banner-info-border: color-mix(in srgb, var(--accent) 35%, var(--border));
  --banner-promo-bg: #3d3520;
  --banner-promo-text: #fde68a;
  --banner-promo-border: #854d0e;
  --banner-promo-link: #fbbf24;
  --banner-promo-link-hover: #fde68a;
  --banner-alert-bg: #3d2818;
  --banner-alert-text: #fdba74;
  --banner-alert-border: #9a3412;
  --banner-alert-link: #fb923c;
  --banner-alert-link-hover: #fdba74;
  --banner-status-bg: #1e2a3d;
  --banner-status-text: #93c5fd;
  --banner-status-border: #1e40af;
  --banner-status-link: #60a5fa;
  --banner-status-link-hover: #93c5fd;
  --modal-overlay: color-mix(in srgb, #000 58%, transparent);
  --elevated-shadow-lg:
    0 16px 40px rgba(0, 0, 0, 0.42),
    0 4px 14px rgba(0, 0, 0, 0.24);
  --phone-bezel-shadow:
    0 16px 36px rgba(0, 0, 0, 0.48),
    0 6px 14px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px color-mix(in srgb, #fff 6%, transparent);
}

:root[data-scheme='dark'] .phone-app {
  --ph-bg: #30302c;
  --ph-text: #e8e6e1;
  --ph-muted: #98938b;
  --ph-line: rgba(255, 255, 255, 0.09);
  --ph-surface: #3b3a35;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

/* Keep natural aspect ratio when max-width shrinks an img below its
   width/height attributes (prevents squeezed photos if newer class
   styles are missing, e.g. stale cached CSS). */
img {
  height: auto;
}

/* Soften photos in dark mode across marketing pages and articles. */
@media (prefers-color-scheme: dark) {
  :root:not([data-scheme='light']) img {
    opacity: 0.7;
  }
}

:root[data-scheme='dark'] img {
  opacity: 0.7;
}

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

a:hover:not(.btn) {
  color: var(--accent);
}

a.btn:hover {
  color: inherit;
}

a.btn--accent:hover {
  color: var(--on-accent);
}

/* ---- layout ---- */

.site-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem calc(var(--page-pad) + 2rem) 0.45rem var(--page-pad);
  font-size: 0.8125rem;
  line-height: 1.35;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  body {
    transition: padding-top 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.site-banner-visible .site-header {
    transition: top 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-banner {
    animation: site-banner-in 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

body.site-banner-visible {
  padding-top: var(--site-banner-height, 0px);
}

body.site-banner-visible .site-header {
  top: var(--site-banner-height, 0px);
}

body.site-banner-instant {
  transition: none !important;
}

body.site-banner-instant .site-header {
  transition: none !important;
}

.site-banner.site-banner--instant:not(.site-banner--leaving) {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}

.site-banner--info {
  color: var(--banner-info-text);
  background: var(--banner-info-bg);
  border-bottom-color: var(--banner-info-border);
}

.site-banner--promo {
  color: var(--banner-promo-text);
  background: var(--banner-promo-bg);
  border-bottom-color: var(--banner-promo-border);
}

.site-banner--alert {
  color: var(--banner-alert-text);
  background: var(--banner-alert-bg);
  border-bottom-color: var(--banner-alert-border);
}

.site-banner--status {
  color: var(--banner-status-text);
  background: var(--banner-status-bg);
  border-bottom-color: var(--banner-status-border);
}

@keyframes site-banner-in {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-banner--leaving {
  animation: site-banner-out 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes site-banner-out {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.site-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  max-width: var(--content-max);
  text-align: center;
}

.site-banner__message {
  margin: 0;
}

.site-banner__link {
  flex-shrink: 0;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.site-banner--info .site-banner__link {
  color: var(--banner-info-link);
}

.site-banner--info .site-banner__link:hover {
  color: var(--banner-info-link-hover);
}

.site-banner--promo .site-banner__link {
  color: var(--banner-promo-link);
}

.site-banner--promo .site-banner__link:hover {
  color: var(--banner-promo-link-hover);
}

.site-banner--alert .site-banner__link {
  color: var(--banner-alert-link);
}

.site-banner--alert .site-banner__link:hover {
  color: var(--banner-alert-link-hover);
}

.site-banner--status .site-banner__link {
  color: var(--banner-status-link);
}

.site-banner--status .site-banner__link:hover {
  color: var(--banner-status-link-hover);
}

.site-banner__dismiss {
  position: absolute;
  top: 50%;
  right: max(0.5rem, calc(var(--page-pad) - 0.75rem));
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.site-banner__dismiss:hover {
  opacity: 0.9;
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--page-pad);
  background-color: var(--header-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.page-home {
  background: var(--surface);
}

.page-pricing {
  background: transparent;
}

body.page-home {
  height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-header__brand {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-left: 70px;
  line-height: 1;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.site-header__brand svg {
  flex-shrink: 0;
  height: 1.2em;
  width: auto;
  transform: translateY(0.1em);
}

.site-header__brand svg g {
  fill: var(--accent);
}

.site-header__brand svg path[fill="none"] {
  fill: none;
  stroke: var(--accent);
}

.site-header__brand:hover {
  color: var(--text);
}

.site-header__end {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin-right: 50px;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.site-nav a:hover:not(.site-nav__cta) {
  color: var(--text);
}

.site-nav a.is-active {
  color: var(--text);
  font-weight: 600;
}

.site-nav button.site-nav__solutions {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.site-nav button.site-nav__solutions:hover {
  color: var(--text);
}

.site-nav a.site-nav__cta {
  color: var(--on-accent);
}

.site-nav a.site-nav__cta:hover {
  color: var(--on-accent);
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.site-nav__cta {
  min-height: 0;
  padding: 0.42rem 0.95rem;
  font-size: 0.72rem;
  border-radius: 999px;
  margin-left: 0;
}

.site-nav .site-nav__cta.btn--hero {
  min-height: 0;
  padding: 0.42rem 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 2.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn--accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}

.btn--outline {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--text) 18%, transparent);
  color: var(--text);
}

.btn--outline:hover {
  background: var(--surface);
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 28%, transparent);
}

.site-main {
  min-height: 0;
  height: fit-content;
  background-color: var(--header-bg);
}

.container {
  width: min(var(--content-max), 100% - 2 * var(--page-pad));
  margin-inline: auto;
}

.container--narrow {
  width: min(var(--narrow-max), 100% - 2 * var(--page-pad));
  margin-inline: auto;
}

/* ---- hero ---- */

.hero {
  padding: 0;
  overflow: visible;
}

.site-main--home {
  flex: 0 0 auto;
  width: 100%;
  background: var(--hero-bg);
}

.hero__scene {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: var(--hero-bg);
}

.hero--has-bg .hero__stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  flex-shrink: 0;
}

.hero--has-bg .hero__art {
  position: relative;
  container-type: inline-size;
  width: 100%;
  height: var(--hero-art-height);
  flex: 0 0 var(--hero-art-height);
  overflow: visible;
}

.hero--has-bg .hero__copy {
  position: absolute;
  z-index: 1;
  left: var(--page-pad);
  top: 11%;
  width: min(32.5rem, 47.5cqi);
  margin-top: 20px;
  margin-bottom: 0;
  /* Pull copy toward the photo phone (~half the previous empty band). */
  margin-left: calc(70px + 8cqi);
  align-items: flex-start;
  text-align: left;
}

.hero--has-bg .hero__title {
  margin-top: 50px;
}

.hero--has-bg .hero__title-line,
.hero--has-bg .hero__title-accent {
  position: relative;
  z-index: 0;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-left: -0.4em;
  padding: 0.06em 0.9em 0.06em 0.4em;
}

.hero--has-bg .hero__title-line::before,
.hero--has-bg .hero__title-accent::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 3px 11px 6px 12px / 11px 4px 12px 5px;
  background: rgba(118, 136, 91, 0.16);
}

.hero--has-bg .hero__title-line {
  font-size: clamp(1.75rem, 4.6cqi, 3.75rem);
  transform: rotate(-0.6deg);
}

.hero--has-bg .hero__title-accent {
  font-size: clamp(2rem, 5.8cqi, 4.5rem);
  padding-right: 0.55em;
  /* ~10px gap between glyph bottoms and the highlight's bottom edge (glyphs
     already end ~6px above the line box at the largest font size);
     height:auto beats the base rule's height:70px which the large font overflows. */
  height: auto;
  padding-bottom: 4px;
  transform: rotate(0.7deg);
}

.hero--has-bg .hero__title-accent::before {
  top: 5px;
}

.hero--has-bg .hero__subtitle {
  max-width: none;
  font-size: clamp(0.85rem, 1.55cqi, 1.05rem);
}

@media (min-width: 769px) {
  .hero--has-bg .hero__title-line,
  .hero--has-bg .hero__title-accent {
    white-space: nowrap;
  }

  .hero--has-bg .hero__title-line {
    color: var(--text);
  }

  .hero--has-bg #hero-headline-1 {
    letter-spacing: -0.8px;
  }

  .hero--has-bg #hero-headline-2 {
    letter-spacing: -0.6px;
  }

  .hero--has-bg .hero__title-accent {
    color: var(--accent);
  }

  .hero--has-bg .hero__subtitle {
    color: var(--muted);
  }

  .hero--has-bg #hero-subtitle {
    width: 500px;
  }
}

.hero--has-bg .hero__cta {
  justify-content: flex-start;
  margin-top: 0.25rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--hero-bg);
  /* Cache-bust when hero assets change; HTML notes overlay the photo. */
  background-image: url("/images/hero-background.webp?v=20260717-2");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

@media (prefers-color-scheme: dark) and (min-width: 769px) {
  :root:not([data-scheme='light']) .hero__bg {
    background-image: url("/images/hero-background-dark.webp?v=20260717-2");
  }
}

@media (min-width: 769px) {
  :root[data-scheme='dark'] .hero__bg {
    background-image: url("/images/hero-background-dark.webp?v=20260717-2");
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--page-pad-hero) clamp(1.5rem, 4vw, 2.5rem);
  box-sizing: border-box;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero__title-line {
  display: block;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  color: var(--text);
}

.hero__title-accent {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(2.75rem, 7.5vw, 4.5rem);
  font-weight: 600;
  font-style: normal;
  color: var(--accent);
  line-height: 1;
  height: 70px;
  margin-top: 0;
}

.hero__subtitle {
  margin: 0;
  max-width: 26rem;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.btn--hero {
  min-width: 0;
  padding: 0.65rem 1.35rem;
  font-size: 0.72rem;
  border-radius: 999px;
}

.btn--start-beta,
.btn--get-started {
  font-weight: 600;
  font-size: calc(0.72rem + 1px);
}

.btn--open-app {
  font-weight: 600;
  font-size: calc(0.72rem - 0.5px);
}

.btn--accent.btn--start-beta:not(.btn--hero),
.btn--accent.btn--get-started:not(.btn--hero) {
  font-size: calc(0.85rem + 1px);
}

.btn--accent.btn--open-app:not(.btn--hero):not(.site-nav__cta) {
  font-size: calc(0.85rem - 0.5px);
}

/* ---- iPhone mockup (mobile hero) ---- */

.hero__phone {
  display: none;
}

.hero__phone-device {
  width: min(280px, 78vw);
  margin: 0 auto;
}

.hero__phone-bezel {
  position: relative;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(145deg, #3a3a3a 0%, #1a1a1a 50%, #2a2a2a 100%);
  box-shadow: var(--phone-bezel-shadow);
}

.hero__phone-island {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 22px;
  border-radius: 20px;
  background: #0a0a0a;
}

.hero__phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 44px;
  background: #000;
  aspect-ratio: 390 / 844;
  container-type: inline-size;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-scheme='light']) .hero__phone-screen {
    background: #30302c;
  }
}

:root[data-scheme='dark'] .hero__phone-screen {
  background: #30302c;
}

/* Live "Today" screen rendered inside the phone. All inner sizing is in em
   off a cqw base font, so the screen scales with whatever the bezel/overlay
   renders it at. */
.phone-app {
  --ph-bg: #fbfaf7;
  --ph-text: #35332f;
  --ph-muted: #8f8a82;
  --ph-line: rgba(60, 55, 45, 0.14);
  --ph-surface: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0.95em 1.15em 0;
  font-size: 11px;
  font-size: 4.2cqw;
  font-family: var(--font-body);
  color: var(--ph-text);
  background: var(--ph-bg);
}

/* Mock iOS status bar; sized so time/icons sit level with the island. */
.phone-app__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.3em;
  margin-bottom: 1.5em;
  padding: 0 0.4em;
}

.phone-app__time {
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.phone-app__status-icons {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.phone-app__status-icons svg {
  display: block;
  height: 0.72em;
  width: auto;
}

.phone-app__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6em;
}

.phone-app__heading {
  display: flex;
  align-items: baseline;
  gap: 0.55em;
  min-width: 0;
}

.phone-app__month {
  font-family: var(--font-display);
  font-size: 1.95em;
  font-weight: 500;
  line-height: 1.05;
  white-space: nowrap;
}

.phone-app__days {
  display: flex;
  gap: 0.35em;
  margin: 1.3em -1.15em 0;
  padding: 0 1.15em 0.7em;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  border-bottom: 1px solid var(--ph-line);
}

.phone-app__days::-webkit-scrollbar {
  display: none;
}

.phone-app__day {
  flex: 0 0 3.05em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  padding: 0.55em 0 0.4em;
  border: 1px solid transparent;
  border-radius: 0.8em;
  background: none;
  font: inherit;
  color: var(--ph-muted);
  cursor: pointer;
  scroll-snap-align: center;
  -webkit-tap-highlight-color: transparent;
}

.phone-app__day:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.phone-app__day-name {
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.phone-app__day-num {
  font-size: 1.05em;
  font-weight: 600;
  color: var(--ph-text);
}

.phone-app__day-dot {
  width: 0.3em;
  height: 0.3em;
  border-radius: 50%;
  background: transparent;
}

.phone-app__day-dot.has-items {
  background: var(--accent);
}

.phone-app__day.is-today:not(.is-selected) {
  border-color: var(--accent);
}

.phone-app__day.is-selected {
  background: var(--accent);
  color: var(--on-accent);
}

.phone-app__day.is-selected .phone-app__day-num {
  color: var(--on-accent);
}

.phone-app__day.is-selected .phone-app__day-dot.has-items {
  background: var(--on-accent);
}

.phone-app__list {
  flex: 1;
  overflow: hidden;
}

.phone-app__row {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  padding: 0.85em 0;
}

/* Rows are re-created on each day switch, so they animate in every time. */
@media (prefers-reduced-motion: no-preference) {
  .phone-app__row,
  .phone-app__empty {
    animation: pa-row-in 0.32s ease-out both;
  }

  .phone-app__row:nth-child(2) { animation-delay: 0.05s; }
  .phone-app__row:nth-child(3) { animation-delay: 0.1s; }
  .phone-app__row:nth-child(4) { animation-delay: 0.15s; }
  .phone-app__row:nth-child(5) { animation-delay: 0.2s; }
  .phone-app__row:nth-child(n + 6) { animation-delay: 0.25s; }
}

@keyframes pa-row-in {
  from {
    opacity: 0;
    transform: translateY(0.6em);
  }
}

.phone-app__row + .phone-app__row {
  border-top: 1px solid var(--ph-line);
}

.phone-app__row-top {
  display: flex;
  align-items: center;
  gap: 0.45em;
}

.phone-app__name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 0.98em;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.phone-app__tag {
  flex: none;
  padding: 0.2em 0.55em;
  border: 1px solid var(--ph-line);
  border-radius: 0.6em;
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ph-muted);
}

.phone-app__zap {
  flex: none;
  font-size: 0.75em;
}

.phone-app__count {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6em;
  height: 1.6em;
  padding: 0 0.3em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.66em;
  font-weight: 700;
}

.phone-app__star {
  margin-left: 0.35em;
  font-size: 0.75em;
  color: var(--accent);
}

.phone-app__meta {
  margin-left: auto;
  font-size: 0.78em;
  color: var(--ph-muted);
  white-space: nowrap;
}

.phone-app__chev {
  font-size: 1em;
  line-height: 1;
  color: var(--ph-muted);
}

.phone-app__preview {
  overflow: hidden;
  font-size: 0.88em;
  color: var(--ph-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.phone-app__preview--long {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 1.45;
}

.phone-app__empty {
  padding: 2.5em 0;
  text-align: center;
  font-size: 0.9em;
  color: var(--ph-muted);
}

/* Pages stack in one grid cell so tab switches can slide the old page out
   while the new one slides in. The wrapper spans the full screen width
   (negative margin) so the slide clips at the screen edge, not the padding. */
.phone-app__pages {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  margin: 0 -1.15em;
  padding: 0 1.15em;
  overflow: hidden;
}

.phone-app__page {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.phone-app__page[hidden] {
  display: none;
}

.phone-app__page.is-slide-in-right {
  animation: pa-page-in-right 0.3s ease both;
}

.phone-app__page.is-slide-in-left {
  animation: pa-page-in-left 0.3s ease both;
}

.phone-app__page.is-slide-out-left {
  animation: pa-page-out-left 0.3s ease both;
}

.phone-app__page.is-slide-out-right {
  animation: pa-page-out-right 0.3s ease both;
}

/* The extra 1.2em keeps full-bleed child borders offscreen at the ends. */
@keyframes pa-page-in-right {
  from { transform: translateX(calc(100% + 1.2em)); }
}

@keyframes pa-page-in-left {
  from { transform: translateX(calc(-100% - 1.2em)); }
}

@keyframes pa-page-out-left {
  to { transform: translateX(calc(-100% - 1.2em)); }
}

@keyframes pa-page-out-right {
  to { transform: translateX(calc(100% + 1.2em)); }
}

.phone-app__list--scroll {
  margin: 1.1em -1.15em 0;
  padding: 0 1.15em 5.5em;
  border-top: 1px solid var(--ph-line);
  overflow-y: auto;
  scrollbar-width: none;
}

.phone-app__list--scroll::-webkit-scrollbar {
  display: none;
}

.phone-app__meta--ok {
  color: var(--accent);
}

/* Question blocks with per-option result bars. */
.phone-app__q-sub {
  font-size: 0.78em;
  color: var(--ph-muted);
}

.phone-app__q-row {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.85em;
  font-size: 0.85em;
}

.phone-app__q-label {
  flex: 0 0 6.7em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.phone-app__q-bar {
  flex: 1;
  height: 0.5em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ph-muted) 18%, transparent);
  overflow: hidden;
}

.phone-app__q-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.phone-app__q-fill--yes {
  background: var(--accent);
}

.phone-app__q-fill--no {
  background: var(--ph-muted);
}

.phone-app__q-fill--maybe {
  background: #d9a441;
}

.phone-app__q-fill--none {
  background: color-mix(in srgb, var(--ph-muted) 55%, var(--ph-text));
}

.phone-app__q-count {
  flex: 0 0 1.6em;
  text-align: right;
  font-weight: 600;
}

.phone-app__q-pct {
  flex: 0 0 2.6em;
  text-align: right;
  font-size: 0.9em;
  color: var(--ph-muted);
}

.phone-app__tabbar {
  position: absolute;
  z-index: 2;
  bottom: 1.5em;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.45em 0.6em;
  border-radius: 999px;
  background: var(--ph-surface);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.16),
    0 1px 4px rgba(0, 0, 0, 0.1);
}

.phone-app__tab {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.5em 0.75em;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  color: var(--ph-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.phone-app__tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.phone-app__tab-icon {
  width: 1.7em;
  height: 1.7em;
}

.phone-app__tab-label {
  display: none;
  font-size: 0.89em;
  font-weight: 500;
}

.phone-app__tab.is-active {
  justify-content: center;
  min-width: 5.6em;
  background: var(--accent-dim);
  color: var(--accent);
}

.phone-app__tab.is-active .phone-app__tab-icon {
  display: none;
}

.phone-app__tab.is-active .phone-app__tab-label {
  display: inline;
}

/* Desktop: the hero background photo contains a rendered phone. The photo
   always renders at its native 1770x720 aspect (background-size 100% 100%
   + --hero-art-height), so these percentages pin the live screen exactly
   over the photo phone's screen at any viewport width. */
@media (min-width: 769px) {
  .hero__phone {
    display: block;
    position: absolute;
    z-index: 1;
    left: 54.72%;
    top: 25.21%;
    width: 11.98%;
    height: 66.11%;
  }

  .hero__phone-device {
    width: 100%;
    height: 100%;
  }

  .hero__phone-bezel {
    height: 100%;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .hero__phone-island {
    top: 2.2%;
    width: 27%;
    height: 4.2%;
  }

  .hero__phone-screen {
    height: 100%;
    border-radius: 17% / 7.6%;
    aspect-ratio: auto;
  }
}

.feature-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.feature-card__text {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---- hero visual (right side) ---- */

.hero__visual {
  position: relative;
  min-height: clamp(280px, 50vw, 420px);
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.hero__props {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__plate {
  position: absolute;
  left: 6%;
  bottom: 16%;
  width: clamp(80px, 20vw, 115px);
  height: clamp(80px, 20vw, 115px);
  border-radius: 50%;
  background: var(--surface);
  box-shadow:
    0 8px 24px color-mix(in srgb, var(--text) 10%, transparent),
    0 2px 6px color-mix(in srgb, var(--text) 6%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bizcard {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58%;
  height: 38%;
  border-radius: 3px;
  background: var(--surface);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--text) 12%, transparent);
}

.hero__books {
  position: absolute;
  left: 24%;
  bottom: 10%;
  display: flex;
  align-items: flex-end;
  gap: 0.15rem;
}

.hero__book {
  display: block;
  width: clamp(28px, 7vw, 38px);
  border-radius: 2px 3px 1px 1px;
  box-shadow: 2px 2px 6px color-mix(in srgb, var(--text) 12%, transparent);
}

.hero__book--green {
  height: clamp(52px, 12vw, 68px);
  background: linear-gradient(180deg, #7a9468, #5f7552);
}

.hero__book--tan {
  height: clamp(44px, 10vw, 58px);
  background: linear-gradient(180deg, #d4c4a8, #b8a688);
}

.hero__book--cream {
  height: clamp(48px, 11vw, 62px);
  background: linear-gradient(180deg, #f0ebe2, #ddd5c8);
}

.hero__plant {
  position: absolute;
  right: 14%;
  bottom: 6%;
}

.hero__pot {
  display: block;
  width: clamp(36px, 9vw, 48px);
  height: clamp(28px, 7vw, 36px);
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #c8c2b8, #a8a29c);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--text) 10%, transparent);
}

.hero__leaves {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(40px, 10vw, 56px);
  height: clamp(36px, 9vw, 48px);
  background:
    radial-gradient(ellipse 45% 55% at 30% 70%, #6a8558 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 70% 65%, #8ba874 0%, transparent 70%),
    radial-gradient(ellipse 35% 45% at 50% 40%, #5a7349 0%, transparent 70%);
}

.hero__plan-card {
  position: absolute;
  top: 8%;
  right: 0;
  width: min(100%, 240px);
  padding: 1.1rem 1.15rem 1rem;
  border-radius: 14px;
  background: var(--surface);
  box-shadow:
    0 16px 40px color-mix(in srgb, var(--text) 12%, transparent),
    0 4px 12px color-mix(in srgb, var(--text) 6%, transparent);
  transform: rotate(1.5deg);
}

.hero__plan-label {
  margin: 0 0 0.75rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero__plan-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text);
}

.hero__plan-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 6px;
}

.hero__plan-icon--chat {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.hero__plan-icon--clock {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: color-mix(in srgb, var(--accent) 80%, var(--text));
}

.hero__plan-icon--doc {
  background: color-mix(in srgb, #c4956a 18%, transparent);
  color: #a67c52;
}

.hero__note {
  position: absolute;
  z-index: 2;
  display: none;
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(0.95rem, 1.55cqi, 1.35rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.15;
  white-space: nowrap;
  pointer-events: none;
  text-align: left;
}

/* Pin to the photo phone / cards — never the left gutter (legacy left:-2%/-8%). */
.hero__note--clarity {
  top: 14%;
  left: 69.5%;
  transform: rotate(2deg);
}

.hero__note--relationships {
  top: 56%;
  left: 44%;
  transform: rotate(-2deg);
}

.hero__note-text {
  display: block;
  padding: 0.15em 0.35em;
}

@media (min-width: 769px) {
  .hero__note {
    display: block;
  }
}

.hero__note--matters {
  bottom: 22%;
  right: -4%;
}

/* ---- hero bottom bar (solutions) ---- */

.hero__bottom-bar {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
  padding: 1.15rem var(--page-pad-hero) 1.35rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: var(--header-bg);
  box-sizing: border-box;
  overflow: visible;
}

.hero--has-bg .hero__bottom-bar {
  flex-shrink: 0;
  margin-top: 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: var(--header-bg);
}

.hero__bottom-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(0.68rem + 1px);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__solutions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  width: min(900px, 100%);
  overflow: visible;
}

.hero__solution-item {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__solution {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.5rem;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: calc(0.72rem + 2px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  transition: color 0.15s;
  white-space: normal;
  text-align: left;
}

.hero__solution:hover,
.hero__solution-item.is-open .hero__solution {
  color: var(--accent);
}

.hero__solution-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  color: #fff;
  overflow: hidden;
}

.hero__solution-icon::before {
  content: "";
  position: absolute;
  inset: 1px 3px auto;
  height: 42%;
  border-radius: 8px 8px 50% 50%;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.38), transparent);
  pointer-events: none;
}

.hero__solution-icon--advisors {
  background: linear-gradient(145deg, #9ecdb8 0%, #5a9a82 55%, #4a7564 100%);
}

.hero__solution-icon--wealth {
  background: linear-gradient(145deg, #9ec4d4 0%, #6a9fb0 55%, #5a808f 100%);
}

.hero__solution-icon--insurance {
  background: linear-gradient(145deg, #d4c4a0 0%, #b09a72 55%, #948664 100%);
}

.hero__solution-icon--retirement {
  background: linear-gradient(145deg, #b8aed0 0%, #9189b0 55%, #787098 100%);
}

.hero__solution-popup {
  position: absolute;
  bottom: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(26.25rem, 92vw);
  padding: 1.65rem 1.7rem 1.45rem;
  border-radius: 18px;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--surface) 96%, #fff) 0%, var(--surface) 100%);
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  box-shadow:
    0 28px 56px color-mix(in srgb, var(--text) 16%, transparent),
    0 10px 24px color-mix(in srgb, var(--text) 8%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 60%, transparent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 30;
  text-align: left;
  overflow: hidden;
}

.hero__solution-popup-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4a7564, #9ecdb8, #4a7564);
}

.hero__solution-popup-accent--wealth {
  background: linear-gradient(90deg, #5a808f, #9ec4d4, #5a808f);
}

.hero__solution-popup-accent--insurance {
  background: linear-gradient(90deg, #948664, #d4c4a0, #948664);
}

.hero__solution-popup-accent--retirement {
  background: linear-gradient(90deg, #787098, #b8aed0, #787098);
}

.hero__solution-popup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.hero__solution-popup-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  color: #fff;
  box-shadow:
    0 2px 0 color-mix(in srgb, var(--text) 18%, transparent),
    0 4px 10px color-mix(in srgb, var(--text) 10%, transparent);
  overflow: hidden;
}

.hero__solution-popup-badge::before {
  content: "";
  position: absolute;
  inset: 1px 3px auto;
  height: 40%;
  border-radius: 9px 9px 50% 50%;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.35), transparent);
  pointer-events: none;
}

.hero__solution-popup-badge--advisors {
  background: linear-gradient(145deg, #9ecdb8, #5a9a82);
}

.hero__solution-item:has(.hero__solution-icon--advisors) .hero__solution:hover,
.hero__solution-item:has(.hero__solution-icon--advisors).is-open .hero__solution {
  color: var(--solution-advisors);
}

.hero__solution-item:has(.hero__solution-icon--advisors) .hero__solution-popup-name {
  color: var(--solution-advisors);
}

.hero__solution-item:has(.hero__solution-icon--wealth) .hero__solution-popup-name {
  color: var(--solution-wealth);
}

.hero__solution-item:has(.hero__solution-icon--insurance) .hero__solution-popup-name {
  color: var(--solution-insurance);
}

.hero__solution-item:has(.hero__solution-icon--retirement) .hero__solution-popup-name {
  color: var(--solution-retirement);
}

.hero__solution-item:has(.hero__solution-icon--advisors) .hero__solution-popup-list li::before {
  background: var(--solution-advisors);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--solution-advisors) 25%, transparent);
}

.hero__solution-popup-badge--wealth {
  background: linear-gradient(145deg, #9ec4d4, #6a9fb0);
}

.hero__solution-popup-badge--insurance {
  background: linear-gradient(145deg, #d4c4a0, #b09a72);
}

.hero__solution-popup-badge--retirement {
  background: linear-gradient(145deg, #b8aed0, #9189b0);
}

.hero__solution-popup::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top-color: var(--surface);
  filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 8%, transparent));
}

.hero__solution-item.is-open .hero__solution-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.hero__solution-popup-name {
  margin: 0;
  font-family: var(--font-body);
  font-size: calc(0.62rem + 5px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.35;
}

.hero__solution-popup-text {
  margin: 0 0 1rem;
  font-size: calc(0.82rem + 3px);
  line-height: 1.6;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  white-space: normal;
}

.hero__solution-popup-list {
  margin: 0;
  padding: 1rem 0 0;
  list-style: none;
  border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-dim) 35%, transparent), transparent 100%);
  margin-inline: -1.7rem;
  padding-inline: 1.7rem;
  padding-bottom: 0.15rem;
  border-radius: 0 0 18px 18px;
}

.hero__solution-popup-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.15rem;
  font-size: calc(0.78rem + 3px);
  line-height: 1.5;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  white-space: normal;
}

.hero__solution-popup-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}

@media (min-width: 769px) {
  .hero__solution-popup-name {
    font-size: calc(0.62rem + 7px);
  }

  .hero__solution-popup-text {
    font-size: calc(0.82rem + 5px);
  }

  .hero__solution-popup-list li {
    font-size: calc(0.78rem + 5px);
  }
}

@media (max-width: 899px) {
  .hero--has-bg .hero__copy {
    left: var(--page-pad);
    width: min(32.5rem, 78%);
  }
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    padding-top: clamp(3rem, 7vw, 5rem);
  }

  .hero--has-bg .hero__copy {
    left: var(--page-pad);
    top: clamp(0.75rem, 11%, 3rem);
    width: min(32.5rem, 47.5cqi);
  }

  .hero--has-bg .hero__title-line {
    font-size: clamp(1.65rem, 8vw, 3.75rem);
  }

  .hero--has-bg .hero__title-accent {
    font-size: clamp(2rem, 10vw, 4.5rem);
  }

  .hero--has-bg .hero__subtitle {
    font-size: clamp(0.85rem, 3.2vw, 1.05rem);
  }

  .hero__copy {
    align-items: flex-start;
    text-align: left;
  }

  .hero__subtitle {
    max-width: 22rem;
  }

  .hero__cta {
    justify-content: flex-start;
  }

  .hero__visual {
    max-width: none;
    min-height: clamp(340px, 38vw, 460px);
    margin: 0;
  }

  .hero__plan-card {
    right: 5%;
    width: 250px;
  }

  .hero__bottom-bar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1rem, 3vw, 4rem);
    padding: 1.25rem var(--page-pad-hero) 1.5rem;
  }

  .hero__bottom-label {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .hero__solutions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 2.5rem);
    width: auto;
    max-width: 100%;
    flex: 1 1 16rem;
  }

  .hero__solution-item:first-child .hero__solution-popup {
    left: 0;
    transform: translateY(6px);
  }

  .hero__solution-item:first-child.is-open .hero__solution-popup {
    transform: translateY(0);
  }

  .hero__solution-item:first-child .hero__solution-popup::after {
    left: 2.5rem;
    transform: none;
  }

  .hero__solution-item:last-child .hero__solution-popup {
    left: auto;
    right: 0;
    transform: translateY(6px);
  }

  .hero__solution-item:last-child.is-open .hero__solution-popup {
    transform: translateY(0);
  }

  .hero__solution-item:last-child .hero__solution-popup::after {
    left: auto;
    right: 2.5rem;
    transform: none;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .hero__bottom-bar {
    flex-direction: column;
    align-items: center;
  }

  .hero__solutions {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* Row layout: hide the label before solution items wrap */
@media (min-width: 1101px) {
  .hero__bottom-bar {
    container-type: inline-size;
  }

  .hero__solutions {
    flex-wrap: nowrap;
  }

  @container (max-width: 1200px) {
    .hero__bottom-label {
      display: none;
    }
  }

  @container (max-width: 920px) {
    .hero__solutions {
      flex-wrap: wrap;
    }
  }
}

@media (min-width: 1200px) {
  .hero__solution {
    white-space: nowrap;
  }
}

@media (min-width: 1100px) {
  .hero__title-line {
    font-size: clamp(2.75rem, 4.2vw, 3.85rem);
  }

  .hero__title-accent {
    font-size: clamp(3.25rem, 5vw, 4.65rem);
  }
}

@media (max-width: 599px) {
  .hero__note {
    display: none;
  }

  .hero__visual {
    min-height: 260px;
  }

  .hero__plan-card {
    position: relative;
    top: auto;
    right: auto;
    margin: 0 auto;
    transform: none;
    width: min(100%, 280px);
  }

  .hero__props {
    display: none;
  }
}

/* ---- sections ---- */

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.section__lead {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---- solutions (home list) ---- */

.solutions {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}

.solutions__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.solutions__item:last-child {
  border-bottom: none;
}

.solutions__dot {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  border: 2px solid var(--muted);
  border-radius: 50%;
  flex-shrink: 0;
}

.solutions__title {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
}

.solutions__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- solutions page ---- */

.solution-page__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.solution-page__card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
}

.solution-page__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.solution-page__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.solution-page__tagline {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.solution-page__text {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.solution-page__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.solution-page__list li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--text);
}

.solution-page__list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.solution-page__cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.solution-page__cta-text {
  color: var(--muted);
  max-width: 28rem;
  margin: 0 auto 1.25rem;
  font-size: 0.95rem;
}

/* ---- steps ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.step__num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.step__title {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.step__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- features ---- */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.feature-card__title {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feature-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- cta band ---- */

.cta-band {
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) var(--page-pad);
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.cta-band__text {
  color: var(--muted);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

/* ---- home pricing ---- */

.home-pricing {
  display: none;
  padding: clamp(2rem, 5vw, 3rem) var(--page-pad) clamp(2.5rem, 6vw, 4rem);
  background: var(--hero-bg);
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.site-nav__pricing--home {
  display: none;
}

.home-pricing__inner {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  text-align: center;
}

.home-pricing__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.home-pricing__lead {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}

.home-pricing .pricing-grid {
  text-align: center;
}

.home-pricing .pricing-card {
  background: color-mix(in srgb, var(--surface) 96%, #fff);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  box-shadow: var(--elevated-shadow-lg);
}

.home-pricing .pricing-note {
  color: var(--muted);
}

/* ---- page (pricing, contact, legal) ---- */

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) var(--page-pad) 2rem;
  text-align: center;
  background: var(--hero-bg);
}

.page-pricing .page-hero {
  background: transparent;
}

.page-pricing .page-content {
  background: transparent;
}

.page-pricing .pricing-grid {
  margin-bottom: 2rem;
}

.page-pricing .pricing-note {
  color: var(--muted);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.page-hero__lead {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto;
}

.page-content {
  padding: 2rem 0 clamp(4rem, 8vw, 6rem);
}

/* ---- pricing ---- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(1.25rem + 20px);
  width: min(72rem, 100%);
  max-width: 72rem;
  margin: 0 auto 2rem;
}

.pricing-solution-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 52rem;
  margin: 0 auto 1.5rem;
}

.pricing-solution-tabs__btn {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.pricing-solution-tabs__btn:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.pricing-solution-tabs__btn.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.pricing-solution-tabs__btn--soon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pricing-solution-tabs__soon {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.pricing-coming-soon {
  width: min(42rem, 100%);
  margin: 0 auto 2rem;
}

.pricing-coming-soon__card {
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3rem);
  background: color-mix(in srgb, var(--surface) 96%, #fff);
  box-shadow: var(--elevated-shadow-lg);
  text-align: center;
}

.pricing-coming-soon__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.pricing-coming-soon__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.pricing-coming-soon__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pricing-coming-soon__lead {
  margin: 0 auto 1.75rem;
  max-width: 30rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.pricing-coming-soon__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.pricing-coming-soon__actions .btn {
  min-width: 10rem;
}

.pricing-card {
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: color-mix(in srgb, var(--surface) 96%, #fff);
  box-shadow: var(--elevated-shadow-lg);
  text-align: center;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
}

.pricing-card__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.pricing-card__limit {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  line-height: 1.45;
}

.pricing-card__name {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: none;
}

.pricing-card__price {
  margin: 0 0 1rem;
  font-family: var(--font-price);
  font-size: calc(clamp(2rem, 4vw, 2.5rem) - 3px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: calc(-0.01em - 2px);
  line-height: 1;
  color: var(--accent);
}

.pricing-card__period {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.pricing-card__features {
  list-style: none;
  width: 100%;
  margin: 0 0 1.35rem;
  padding: 0;
  text-align: center;
  flex: 0 0 auto;
}

.pricing-card__cta {
  margin-top: 0;
  width: auto;
  max-width: none;
  align-self: center;
}

/* Soft light sweep across accent CTAs every few seconds (not Help — overflow must stay visible for the pulse ring). */
@media (prefers-reduced-motion: no-preference) {
  .pricing-card__cta,
  .page-home .hero__cta .btn--get-started {
    position: relative;
    overflow: hidden;
  }

  .pricing-card__cta::after,
  .page-home .hero__cta .btn--get-started::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 50%;
    background: linear-gradient(
      105deg,
      transparent,
      rgba(255, 255, 255, 0.3) 50%,
      transparent
    );
    transform: translateX(0) skewX(-20deg);
    animation: pricing-cta-sheen 6s ease-in-out infinite;
    pointer-events: none;
  }

  .pricing-card:nth-child(2) .pricing-card__cta::after {
    animation-delay: 0.35s;
  }

  .pricing-card:nth-child(3) .pricing-card__cta::after {
    animation-delay: 0.7s;
  }

  /* Hero CTA: two sweeps 1s after load, then rest. */
  .page-home .hero__cta .btn--get-started::after {
    animation: hero-cta-sheen 2s ease-in-out 1s 2 forwards;
  }
}

@keyframes hero-cta-sheen {
  0% {
    transform: translateX(0) skewX(-20deg);
  }
  60%,
  100% {
    transform: translateX(340%) skewX(-20deg);
  }
}

@keyframes pricing-cta-sheen {
  0% {
    transform: translateX(0) skewX(-20deg);
  }
  20%,
  100% {
    transform: translateX(340%) skewX(-20deg);
  }
}

.pricing-card__features li {
  padding: 0.28rem 0;
  border-bottom: none;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
}

.pricing-note {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

body.plan-checkout-open {
  overflow: hidden;
}

.plan-checkout-modal.solution-picker {
  align-items: flex-end;
  padding: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.plan-checkout-modal .solution-picker__backdrop {
  display: none;
}

.plan-checkout-modal .solution-picker__dialog {
  width: 100%;
  max-width: 440px;
  max-height: none;
  border-radius: 24px 24px 0 0;
  border-bottom: none;
  background: var(--surface);
  box-shadow: 0 -8px 32px color-mix(in srgb, #000 22%, transparent);
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: max(clamp(1.5rem, 4vw, 2.25rem), env(safe-area-inset-bottom, 0px));
}

.plan-checkout-modal.is-visible .solution-picker__dialog {
  transform: translateY(0);
}

.plan-checkout-modal.is-leaving .solution-picker__dialog {
  transform: translateY(100%);
}

@media (prefers-reduced-motion: reduce) {
  .plan-checkout-modal .solution-picker__dialog {
    transition: none;
    transform: none;
  }

  .plan-checkout-modal.is-leaving .solution-picker__dialog {
    transform: none;
  }
}

.plan-checkout-modal .btn {
  margin-top: 0.25rem;
}

.plan-checkout-modal__close {
  position: absolute;
  top: clamp(0.85rem, 2.5vw, 1.1rem);
  right: clamp(0.85rem, 2.5vw, 1.1rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.plan-checkout-modal__close:hover,
.plan-checkout-modal__close:focus-visible {
  color: var(--text);
  outline: none;
}

@media (min-width: 769px) {
  .plan-checkout-modal.solution-picker {
    align-items: center;
    padding: clamp(1rem, 4vw, 2rem);
  }

  .plan-checkout-modal .solution-picker__dialog {
    width: min(440px, 100%);
    max-width: none;
    border-radius: 24px;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    box-shadow: var(--elevated-shadow-lg);
    transform: none;
    transition: none;
    padding-bottom: clamp(1.5rem, 4vw, 2.25rem);
  }

  .plan-checkout-modal.is-visible .solution-picker__dialog,
  .plan-checkout-modal.is-leaving .solution-picker__dialog {
    transform: none;
  }
}

/* ---- contact ---- */

.contact-form {
  margin-bottom: 2rem;
  text-align: center;
}

.contact-form .form-field {
  text-align: left;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.form-field__input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.form-field__input--textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form__submit {
  display: inline-flex;
  margin-top: 0.5rem;
  margin-inline: auto;
}

.contact-form__status {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.contact-form__status--success {
  background: var(--accent-dim);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.contact-form__status--error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-border);
}

.contact-block__note {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  margin: 0;
}

/* ---- legal ---- */

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  margin: 2rem 0 0.75rem;
}

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

.legal p,
.legal li {
  color: var(--text);
}

.legal ul {
  padding-left: 1.25rem;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ---- footer ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem var(--page-pad);
  background: var(--surface);
  flex-shrink: 0;
  height: 100%;
  max-height: 300px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: min(var(--content-max), 100%);
  margin: 0 auto;
}

.site-footer__legal {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.site-footer__legal a + a {
  border-left: 1px solid var(--border);
  padding-left: 1.25rem;
}

.site-footer__copy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---- mobile header ---- */

@media (max-width: 768px) {
  :root {
    --page-pad: clamp(1.25rem, 5vw, 1.75rem);
    --page-pad-hero: clamp(1.25rem, 5vw, 1.75rem);
    --header-height: 60px;
    --bg: #f6f1f0;
    --hero-bg: #f6f1f0;
    --header-bg: #f6f1f0;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-scheme='light']) {
      --bg: #1a1917;
      --hero-bg: #1e1d1a;
      --header-bg: #1e1d1a;
      --card-bg: #242220;
    }
  }

  :root[data-scheme='dark'] {
    --bg: #1a1917;
    --hero-bg: #1e1d1a;
    --header-bg: #1e1d1a;
    --card-bg: #242220;
  }

  .hero--has-bg .hero__scene {
    min-height: 0;
    height: auto;
  }

  .hero--has-bg .hero__stack {
    width: 100%;
  }

  .hero--has-bg .hero__art {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    flex: none;
    aspect-ratio: unset;
    container-type: normal;
    width: 100%;
    padding: 2rem var(--page-pad) 2.25rem;
    box-sizing: border-box;
    gap: 2rem;
  }

  .hero--has-bg .hero__bg {
    display: none;
  }

  .hero--has-bg .hero__copy {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: none;
    margin-top: -20px;
    margin-left: 0;
    padding: 0;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
  }

  .hero--has-bg .hero__title {
    width: 100%;
  }

  .hero--has-bg .hero__title-line,
  .hero--has-bg .hero__title-accent {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0.08em 0.5em 0.1em;
    box-sizing: border-box;
    text-align: center;
  }

  .hero--has-bg .hero__title-line {
    font-size: calc(clamp(1.75rem, 7.5vw, 2.15rem) + 1px);
    color: var(--text);
    transform: rotate(-0.4deg);
  }

  .hero--has-bg .hero__title-line::before {
    border-radius: 2px 7px 4px 8px / 7px 3px 8px 3px;
  }

  .hero--has-bg .hero__title-accent {
    font-size: clamp(2.1rem, 9vw, 2.65rem);
    color: var(--accent);
    padding-right: 0.45em;
    padding-bottom: 0.1em;
    transform: rotate(0.5deg);
    height: auto;
    min-height: 0;
  }

  .hero--has-bg .hero__title-accent::before {
    top: 4px;
    border-radius: 2px 7px 4px 8px / 7px 3px 8px 3px;
  }

  .hero--has-bg .hero__subtitle {
    max-width: 22rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
  }

  .hero--has-bg .hero__cta {
    justify-content: center;
    width: 100%;
    max-width: none;
    margin-top: 0.35rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 22rem;
  }

  .hero__cta .btn--hero {
    width: auto;
    min-height: 3rem;
    padding: 0.85rem 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .hero__cta .btn--hero.btn--start-beta,
  .hero__cta .btn--hero.btn--get-started {
    font-size: calc(0.75rem + 1px);
  }

  .hero__phone {
    display: block;
    width: 100%;
  }

  .hero--has-bg .hero__bottom-bar {
    align-items: stretch;
    padding: 0.5rem var(--page-pad) 2.5rem;
    border-top: none;
    gap: 1.75rem;
    background: var(--header-bg);
  }

  .hero__bottom-label {
    text-align: center;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    color: color-mix(in srgb, var(--muted) 85%, var(--text));
  }

  .hero__solutions {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    width: 100%;
  }

  .hero__solution-item {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .hero__solution {
    display: none;
  }

  .hero__solution-popup,
  .hero__solution-item.is-open .hero__solution-popup,
  .hero__solution-item:first-child .hero__solution-popup,
  .hero__solution-item:first-child.is-open .hero__solution-popup,
  .hero__solution-item:last-child .hero__solution-popup,
  .hero__solution-item:last-child.is-open .hero__solution-popup {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.35rem 1.4rem 1.15rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
    box-shadow: none;
    border: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
    border-radius: 16px;
    background: var(--card-bg);
    overflow: hidden;
  }

  .hero__solution-popup-accent {
    display: none;
  }

  .hero__solution-popup-header {
    display: block;
    margin-bottom: 0.55rem;
  }

  .hero__solution-popup-badge {
    display: none;
  }

  .hero__solution-popup-name {
    font-size: calc(1.02rem + 2px);
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
  }

  .hero__solution-popup-text {
    display: block;
    margin: 0 0 1rem;
    font-size: 0.92rem;
    line-height: 1.58;
    color: color-mix(in srgb, var(--text) 52%, var(--muted));
    letter-spacing: normal;
    text-transform: none;
    font-weight: 400;
  }

  .hero__solution-popup::after {
    display: none;
  }

  .hero__solution-popup-list,
  .hero__solution-item:has(.hero__solution-icon--advisors) .hero__solution-popup-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    margin-inline: 0;
    padding: 0.85rem 0 0;
    padding-inline: 0;
    border: none;
    border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    background: none;
    border-radius: 0;
  }

  .hero__solution-popup-list li {
    padding: 0.65rem 0;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
    letter-spacing: normal;
    text-transform: none;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  }

  .hero__solution-popup-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  .hero__solution-popup-list li::before {
    display: none;
  }

  body.page-home .home-pricing {
    display: block;
  }

  .site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 var(--page-pad);
  }

  .site-header__brand {
    font-size: 1.2rem;
    min-width: 0;
    margin-left: 0;
    justify-content: center;
  }

  .site-header__brand svg {
    height: 1.15em;
  }

  .site-header__end {
    display: none;
  }

  .site-nav,
  .site-header__actions {
    display: none;
  }

  .page-home .site-nav__pricing--page {
    display: none;
  }

  .page-home .site-nav__pricing--home {
    display: block;
  }

  .home-pricing {
    padding: 2rem var(--page-pad) 2.5rem;
    border-top: none;
  }

  .home-pricing__title {
    text-align: center;
  }

  .home-pricing__lead,
  .home-pricing .pricing-note {
    font-size: 0.95rem;
    text-align: left;
  }

  .home-pricing .pricing-grid {
    grid-template-columns: 1fr;
    gap: calc(1rem + 20px);
    width: min(440px, 100%);
    max-width: 440px;
  }

  .home-pricing .pricing-card {
    border-radius: 24px;
    background: color-mix(in srgb, var(--surface) 96%, #fff);
    box-shadow: var(--elevated-shadow-lg);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: calc(1rem + 20px);
    width: min(440px, 100%);
    max-width: 440px;
  }

  .pricing-solution-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    margin-bottom: 1.25rem;
  }

  .pricing-solution-tabs__btn {
    flex: 0 0 auto;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .solution-page__grid {
    grid-template-columns: 1fr;
  }

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

  .contact-form__submit {
    width: 100%;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
  }

  .site-footer__legal {
    justify-content: center;
  }

  .site-footer__copy {
    text-align: center;
  }
}

/* ---- solution picker overlay (first visit) ---- */

body.solution-picker-open {
  overflow: hidden;
}

.solution-picker {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.42s ease, visibility 0.42s ease;
}

.solution-picker.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.solution-picker.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.solution-picker__backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(10px);
}

.solution-picker__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, #fff);
  box-shadow:
    0 32px 80px color-mix(in srgb, var(--text) 22%, transparent),
    0 8px 24px color-mix(in srgb, var(--text) 10%, transparent);
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-scheme='light']) .solution-picker__dialog {
    background: var(--surface);
  }
}

:root[data-scheme='dark'] .solution-picker__dialog {
  background: var(--surface);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-scheme='light']) .pricing-card,
  :root:not([data-scheme='light']) .home-pricing .pricing-card {
    background: var(--surface);
  }
}

:root[data-scheme='dark'] .pricing-card,
:root[data-scheme='dark'] .home-pricing .pricing-card {
  background: var(--surface);
}

.solution-picker__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.solution-picker__title-main {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.solution-picker__lead {
  margin: 0.65rem auto 1.35rem;
  max-width: 38rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
}

.solution-picker__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.solution-picker__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  flex: 0 1 calc(50% - 0.425rem);
  min-width: min(100%, 240px);
  max-width: calc(50% - 0.425rem);
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: var(--bg);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.solution-picker__card:hover,
.solution-picker__card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--text) 10%, transparent);
  outline: none;
}

.solution-picker__icon {
  width: 2.5rem;
  height: 2.5rem;
}

.solution-picker__title {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.solution-picker__desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.solution-picker__coming-soon {
  display: inline-block;
  margin-top: 0.1rem;
  padding: 0.12rem 0.45rem;
  border-radius: 5px;
  font-size: calc(0.72rem - 0.5px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.solution-picker__card--coming-soon {
  cursor: default;
}

.solution-picker__card--coming-soon:hover,
.solution-picker__card--coming-soon:focus-visible {
  border-color: color-mix(in srgb, var(--border) 85%, transparent);
  transform: none;
  box-shadow: none;
  outline: none;
}

.solution-picker__card--coming-soon:hover .solution-picker__coming-soon,
.solution-picker__card--coming-soon:focus-visible .solution-picker__coming-soon {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

@media (min-width: 760px) {
  .solution-picker__card {
    flex: 0 1 calc(33.333% - 0.57rem);
    max-width: calc(33.333% - 0.57rem);
  }
}

.hero__solution-icon--weddings {
  background: linear-gradient(145deg, #e8b4cb 0%, #c77d9a 55%, #a85f7a 100%);
}

.hero__solution-popup-accent--weddings {
  background: linear-gradient(90deg, #a85f7a, #e8b4cb, #a85f7a);
}

.hero__solution-popup-badge--weddings {
  background: linear-gradient(145deg, #e8b4cb, #c77d9a);
}

.hero__solution-item:has(.hero__solution-icon--weddings) .hero__solution:hover,
.hero__solution-item:has(.hero__solution-icon--weddings).is-open .hero__solution,
.hero__solution-item:has(.hero__solution-icon--weddings).is-selected .hero__solution {
  color: #a85f7a;
}

.hero__solution-item:has(.hero__solution-icon--weddings) .hero__solution-popup-name {
  color: #a85f7a;
}

.hero__solution-item.is-selected .hero__solution {
  color: var(--accent);
}

.hero__solution-item.is-selected .hero__solution::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 0.2rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.55;
}

.hero__change-solution {
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (min-width: 900px) {
  .hero__solutions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .hero__solutions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem 0.85rem;
  }

  .hero__solution {
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: calc(0.62rem + 2px);
  }
}

/* ---- help hub (floating support) ---- */

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

.help-hub {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 180;
  pointer-events: none;
}

.help-hub__launcher {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem 0.85rem 0.95rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: var(--on-accent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 92%, #fff) 0%, var(--accent) 55%, var(--accent-hover) 100%);
  box-shadow:
    0 14px 36px color-mix(in srgb, var(--accent) 38%, transparent),
    0 4px 12px color-mix(in srgb, var(--text) 12%, transparent);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease,
    visibility 0.32s ease,
    box-shadow 0.2s ease;
}

body.help-hub-ready .help-hub__launcher {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

body.help-hub-open .help-hub__launcher {
  transform: translateY(8px) scale(0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.help-hub__launcher:hover,
.help-hub__launcher:focus-visible {
  box-shadow:
    0 18px 42px color-mix(in srgb, var(--accent) 44%, transparent),
    0 6px 16px color-mix(in srgb, var(--text) 14%, transparent);
  outline: none;
}

.help-hub__launcher-ring {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  animation: help-hub-pulse 2.8s ease-out infinite;
  pointer-events: none;
}

.help-hub__launcher {
  position: relative;
}

@keyframes help-hub-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.12);
    opacity: 0;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

.help-hub__launcher-icon {
  flex-shrink: 0;
}

.help-hub__launcher-label {
  padding-right: 0.1rem;
}

.help-hub__panel {
  pointer-events: auto;
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.85rem);
  width: min(400px, calc(100vw - 2rem));
  max-height: min(93.6vh, 768px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-inline: 10px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: color-mix(in srgb, var(--surface) 97%, #fff);
  box-shadow:
    0 28px 64px color-mix(in srgb, var(--text) 20%, transparent),
    0 8px 20px color-mix(in srgb, var(--text) 8%, transparent);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition:
    opacity 0.32s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.help-hub__panel.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.help-hub__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.15rem 0.35rem;
}

.help-hub__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.help-hub__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.help-hub__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.help-hub__close:hover,
.help-hub__close:focus-visible {
  background: var(--accent-dim);
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  outline: none;
}

.help-hub__lead {
  margin: 0;
  padding: 0 1.15rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.help-hub__sections {
  overflow: auto;
  padding: 0 0.65rem 0.85rem;
}

.help-hub__section {
  margin-bottom: 0.45rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.help-hub__section--active {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--accent-dim) 58%, color-mix(in srgb, var(--text) 6%, var(--bg))),
    color-mix(in srgb, var(--accent) 7%, color-mix(in srgb, var(--text) 7%, var(--bg)))
  );
  border-color: color-mix(in srgb, var(--accent) 26%, var(--border));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 9%, transparent);
}

.help-hub__section--dimmed {
  opacity: 0.42;
}

.help-hub__section--dimmed .help-hub__section-toggle:hover,
.help-hub__section--dimmed .help-hub__section-toggle:focus-visible {
  background: transparent;
}

.help-hub__section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--font-body);
  transition: background 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.help-hub__section-toggle:hover,
.help-hub__section-toggle:focus-visible {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  outline: none;
}

.help-hub__section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.help-hub__section-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}

.help-hub__section-title {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.help-hub__section-desc {
  font-size: 0.76rem;
  color: var(--muted);
}

.help-hub__chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), color 0.28s ease;
}

.help-hub__section--active .help-hub__chevron {
  color: var(--accent);
}

.help-hub__section-toggle[aria-expanded='true'] .help-hub__chevron {
  transform: rotate(180deg);
}

.help-hub__section-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.help-hub__section-body.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.help-hub__section-inner {
  overflow: hidden;
  min-height: 0;
}

.help-hub__section-body.is-open .help-hub__ask,
.help-hub__section-body.is-open .help-hub__faq,
.help-hub__section-body.is-open .help-hub__contact {
  padding: 0 0.9rem 0.95rem;
}

.help-hub__ask-input {
  min-height: 5.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
}

.help-hub__ask-submit,
.help-hub__contact-submit {
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
}

.help-hub__ask-submit:disabled {
  cursor: wait;
  opacity: 0.88;
}

.help-hub__ask-submit-spinner {
  display: none;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid color-mix(in srgb, currentColor 30%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: help-hub-spin 0.7s linear infinite;
}

.help-hub__ask-submit--loading .help-hub__ask-submit-spinner {
  display: inline-block;
}

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

.help-hub__answer {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  font-size: calc(0.88rem + 1px);
  line-height: 1.55;
  color: var(--text);
  background: var(--accent-dim);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.help-hub__answer-heading {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: calc(0.95rem + 1px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.help-hub__answer-heading:not(:first-child) {
  margin-top: 0.65rem;
}

.help-hub__answer-list {
  margin: 0.15rem 0 0.35rem;
  padding-left: 1.15rem;
}

.help-hub__answer-list li {
  margin: 0.2rem 0;
}

.help-hub__answer-list--ordered {
  list-style: decimal;
}

.help-hub__answer strong {
  font-weight: 600;
}

.help-hub__answer em {
  font-style: italic;
}

.help-hub__answer-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 2px;
}

.help-hub__answer-link:hover {
  text-decoration-color: var(--accent);
}

.help-hub__answer-list li::marker {
  color: var(--accent);
}

.help-hub__answer-p {
  margin: 0.25rem 0;
}

.help-hub__answer-p:first-child {
  margin-top: 0;
}

.help-hub__answer-p:last-child {
  margin-bottom: 0;
}

.help-hub__answer--loading {
  color: var(--muted);
  font-style: italic;
}

.help-hub__answer--error {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error-text);
}

.help-hub__faq-item + .help-hub__faq-item {
  border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}

.help-hub__faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.help-hub__faq-q:hover,
.help-hub__faq-q:focus-visible {
  color: var(--accent);
  outline: none;
}

.help-hub__faq-q .help-hub__chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.2s ease;
}

.help-hub__faq-q[aria-expanded='true'] .help-hub__chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.help-hub__faq-a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.help-hub__faq-a.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.help-hub__faq-a-inner {
  overflow: hidden;
  min-height: 0;
}

.help-hub__faq-a.is-open .help-hub__faq-a-inner {
  padding-bottom: 0.75rem;
}

.help-hub__faq-a p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

.help-hub__contact .form-field {
  margin-bottom: 0.85rem;
}

.help-hub__contact .form-field__label {
  font-size: 0.78rem;
}

.help-hub__contact .form-field__input {
  font-size: 0.92rem;
  padding: 0.65rem 0.85rem;
}

.help-hub__contact .form-field__input--textarea {
  min-height: 5.5rem;
}

.help-hub__contact-status {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.help-hub__contact-status--success {
  background: var(--accent-dim);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--text);
}

.help-hub__contact-status--error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
}

.help-hub__contact-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.help-hub__contact-note a {
  color: var(--accent);
}

@media (max-width: 768px) {
  body.help-hub-open {
    overflow: hidden;
  }

  .help-hub__panel {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    max-height: none;
    height: 100dvh;
    bottom: 0;
    right: 0;
    border-radius: 0;
    padding-inline: 0;
    border: none;
    box-shadow: none;
    transform: translateY(100%);
    opacity: 1;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .help-hub__panel.is-visible {
    transform: translateY(0);
    opacity: 1;
  }

  .help-hub__panel-head {
    padding-top: max(1.15rem, env(safe-area-inset-top, 0px));
    padding-inline: 1.15rem;
  }

  .help-hub__lead {
    padding-inline: 1.15rem;
  }

  .help-hub__sections {
    flex: 1;
    min-height: 0;
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 520px) {
  .help-hub__launcher-label {
    display: none;
  }

  .help-hub__launcher {
    width: 3.35rem;
    height: 3.35rem;
    padding: 0;
    justify-content: center;
    border-radius: 999px;
  }
}

/* ---- weddings landing page ---- */

.wed-section {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.wed-section__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.wed-section__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-dim);
  color: var(--accent);
}

.wed-section__icon svg {
  width: 19px;
  height: 19px;
}

.solution-page__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.solution-page__icon svg {
  width: 25px;
  height: 25px;
}

.wed-section__text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 44rem;
  margin: 0;
}

.wed-section__text a {
  color: var(--accent);
}

.wed-steps,
.wed-timeline {
  margin: 0;
  padding: 0 0 0 1.25rem;
  max-width: 44rem;
}

.wed-steps li,
.wed-timeline li {
  padding: 0.45rem 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
}

.wed-timeline {
  list-style: none;
  padding-left: 0;
}

.wed-timeline li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.wed-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.wed-example {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--surface);
}

.wed-example blockquote {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
}

.wed-example figcaption {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.wed-faq {
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  max-width: 44rem;
}

.wed-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.wed-faq p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .wed-examples {
    grid-template-columns: 1fr;
  }
}

/* ---- guides (Medium-style reading) ---- */

.guide-page,
.wed-section--guides {
  --font-article: "Source Serif 4", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --font-article-ui: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --guide-measure: 42.5rem; /* ~680px — Medium reading column */
  --guide-ink: #242424;
  --guide-muted: #6b6b6b;
  --guide-rule: #f0f0f0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-scheme='light']) .guide-page,
  :root:not([data-scheme='light']) .wed-section--guides {
    --guide-ink: #f2f0eb;
    --guide-muted: #a8a29c;
    --guide-rule: #3d3a35;
  }
}

:root[data-scheme='dark'] .guide-page,
:root[data-scheme='dark'] .wed-section--guides {
  --guide-ink: #f2f0eb;
  --guide-muted: #a8a29c;
  --guide-rule: #3d3a35;
}

.wed-section--guides .guide-feed {
  max-width: var(--guide-measure);
}

.wed-section--guides .wed-section__text {
  max-width: var(--guide-measure);
}

.guide-shell {
  width: min(var(--guide-measure), 100% - 2 * var(--page-pad));
  max-width: none;
  margin: 0 auto;
  padding-top: clamp(2rem, 5vw, 3.25rem);
}

/* Article header */
.guide-hero {
  max-width: var(--guide-measure);
  margin: 0 auto 2.25rem;
  text-align: left;
}

.guide-hero__kicker {
  display: inline-block;
  font-family: var(--font-article-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--guide-muted);
  background: none;
  padding: 0;
  border-radius: 0;
  margin: 0 0 1rem;
  text-decoration: none;
}

.guide-hero__kicker:hover {
  color: var(--guide-ink);
  text-decoration: underline;
}

.guide-hero__title {
  font-family: var(--font-article);
  font-size: clamp(2rem, 4.8vw, 2.625rem); /* 32–42px */
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.016em;
  color: var(--guide-ink);
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

.guide-hero__meta,
.guide-byline__info {
  font-family: var(--font-article-ui);
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--guide-muted);
  margin: 0;
}

.guide-hero__meta a {
  color: var(--guide-muted);
  text-decoration: none;
  font-weight: 500;
}

.guide-hero__meta a:hover {
  color: var(--guide-ink);
  text-decoration: underline;
}

.guide-lede {
  font-family: var(--font-article-ui);
  font-size: clamp(1.125rem, 2.4vw, 1.25rem); /* 18–20px */
  line-height: 1.28;
  font-weight: 400;
  color: var(--guide-muted);
  margin: 0 0 1.75rem;
  letter-spacing: -0.003em;
}

.guide-byline {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--guide-rule);
}

.guide-byline > div:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
}

.guide-byline__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  overflow: hidden;
}

/* Brand mark (notched m), not a display-font letter. */
.guide-byline__avatar::before {
  content: "";
  display: block;
  width: 1.55rem;
  height: 1.35rem;
  background: currentColor;
  -webkit-mask: url("/icons/meno-mark.svg") center / contain no-repeat;
  mask: url("/icons/meno-mark.svg") center / contain no-repeat;
}

.guide-byline__author {
  font-family: var(--font-article-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--guide-ink);
  line-height: 1.3;
}

/* Article body */
.guide-article {
  max-width: var(--guide-measure);
  margin: 0 auto;
  color: var(--guide-ink);
}

.guide-article h2 {
  font-family: var(--font-article);
  font-size: 1.375rem; /* 22px */
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.22;
  margin: 2.1rem 0 0.7rem;
  padding-top: 0;
  border-top: 0;
  display: block;
  color: var(--guide-ink);
}

.guide-article h3 {
  font-family: var(--font-article);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 1.6rem 0 0.4rem;
  color: var(--guide-ink);
}

.guide-article p,
.guide-article li {
  font-family: var(--font-article-ui);
  font-size: 1.125rem; /* 18px */
  line-height: 1.58;
  letter-spacing: -0.003em;
  color: var(--guide-ink);
}

.guide-article p {
  margin: 0 0 1.35rem;
}

.guide-article ul,
.guide-article ol {
  margin: 0 0 1.35rem;
  padding-left: 1.5rem;
}

.guide-article li {
  margin-bottom: 0.65rem;
}

.guide-article p a,
.guide-article li a {
  color: inherit;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.guide-article p a:hover,
.guide-article li a:hover {
  color: var(--accent);
}

.guide-article strong {
  font-weight: 700;
}

/* Big stat callout */
.guide-stat {
  margin: 2.25rem 0;
  padding: 0;
  background: none;
  border-radius: 0;
  border-top: 1px solid var(--guide-rule);
  border-bottom: 1px solid var(--guide-rule);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
}

.guide-stat__num {
  font-family: var(--font-article);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--guide-ink);
  letter-spacing: -0.03em;
}

.guide-stat__label {
  font-family: var(--font-article-ui);
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--guide-muted);
  flex: 1 1 12rem;
}

/* Pull quote */
.guide-quote {
  margin: 2.5rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--guide-ink);
}

.guide-quote p {
  font-family: var(--font-article-ui);
  font-size: clamp(1.35rem, 2.8vw, 1.5rem);
  line-height: 1.4;
  margin: 0;
  font-weight: 400;
  font-style: italic;
  color: var(--guide-ink);
  letter-spacing: -0.01em;
}

/* Article images — aspect-ratio on the picture box; img fills without stretching */
.guide-img {
  margin: 2rem 0;
}

.guide-img picture {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: color-mix(in srgb, var(--muted) 12%, var(--bg));
}

.guide-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.guide-img--placeholder .guide-img__frame {
  border: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--muted) 12%, var(--bg));
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--guide-muted);
  font-family: var(--font-article-ui);
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-align: center;
  padding: 1.25rem;
}

.guide-img figcaption {
  margin-top: 0.65rem;
  font-family: var(--font-article-ui);
  font-size: 0.8125rem;
  color: var(--guide-muted);
  text-align: left;
  font-style: normal;
  line-height: 1.4;
}

/* Comparison table */
.guide-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--guide-rule);
  border-radius: 0;
}

.guide-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-family: var(--font-article-ui);
  font-size: 0.9375rem;
}

.guide-table th,
.guide-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--guide-rule);
  vertical-align: top;
  line-height: 1.45;
  color: var(--guide-ink);
}

.guide-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--guide-muted);
  background: transparent;
  border-bottom: 1px solid var(--guide-ink);
}

.guide-table tbody th,
.guide-table tbody td:first-child {
  font-weight: 600;
}

.guide-table tbody tr:nth-child(even) td,
.guide-table tbody tr:nth-child(even) th {
  background: transparent;
}

.guide-table tbody tr:last-child td {
  border-bottom: none;
}

/* CTA panel */
.guide-cta {
  margin: 3rem 0 0;
  padding: 2rem 0 0;
  border-radius: 0;
  background: none;
  border-top: 1px solid var(--guide-rule);
  text-align: left;
}

.guide-cta__title {
  font-family: var(--font-article);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 0 0 0.5rem;
  color: var(--guide-ink);
}

.guide-article .guide-cta__title {
  margin: 0 0 0.5rem;
  padding: 0;
  border: 0;
  display: block;
}

.guide-cta p {
  font-family: var(--font-article-ui);
  color: var(--guide-muted);
  font-size: 1.125rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

/* More from — Medium tile grid */
.guide-more {
  margin: 3.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--guide-rule);
}

.guide-more__title,
.guide-article .guide-more__title {
  font-family: var(--font-article-ui);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--guide-ink);
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
  line-height: 1.3;
  display: block;
}

.guide-next {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  list-style: none;
  padding: 0;
}

.guide-next__link {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  transition: none;
  min-width: 0;
}

.guide-next__link:last-child {
  border-bottom: 0;
}

.guide-next__media {
  display: block;
  width: 100%;
  margin: 0 0 0.85rem;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: color-mix(in srgb, var(--muted) 12%, var(--bg));
}

.guide-next__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.guide-next__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  font-family: var(--font-article-ui);
  font-size: 0.8125rem;
  color: var(--guide-muted);
  line-height: 1.2;
}

.guide-next__avatar {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  overflow: hidden;
}

.guide-next__avatar::before {
  content: "";
  display: block;
  width: 0.72rem;
  height: 0.62rem;
  background: currentColor;
  -webkit-mask: url("/icons/meno-mark.svg") center / contain no-repeat;
  mask: url("/icons/meno-mark.svg") center / contain no-repeat;
}

.guide-next__by {
  color: var(--guide-ink);
  font-weight: 500;
}

.guide-next__dot {
  color: var(--guide-muted);
}

.guide-next__date {
  color: var(--guide-muted);
}

.guide-next__title {
  font-family: var(--font-article-ui);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--guide-ink);
  margin: 0 0 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-next__snippet {
  font-family: var(--font-article-ui);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--guide-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-next__link:hover .guide-next__title {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.guide-article p.guide-note,
.guide-note {
  margin: 2rem 0 0;
  padding: 0;
  border: 0;
  font-family: var(--font-article-ui);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--guide-muted);
  line-height: 1.5;
}

/* Guides index — Medium story feed */
.guide-index-hero {
  max-width: var(--guide-measure);
  margin: 0 auto 2.5rem;
  text-align: left;
}

.guide-index-hero .guide-hero__title {
  margin-bottom: 0.5rem;
}

.guide-index-hero .guide-lede {
  margin-bottom: 0;
}

.guide-feature {
  margin: 0 0 2.75rem;
}

.guide-feature__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.guide-feature__link picture {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--muted) 12%, var(--bg));
}

.guide-feature__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.guide-feature__copy {
  padding: 1.25rem 0 0;
}

.guide-feature__kicker {
  font-family: var(--font-article-ui);
  font-size: 0.8125rem;
  color: var(--guide-muted);
  margin: 0 0 0.35rem;
}

.guide-feature__title {
  font-family: var(--font-article);
  font-size: 1.875rem; /* 30px */
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.18;
  letter-spacing: -0.014em;
  color: var(--guide-ink);
}

.guide-feature__link:hover .guide-feature__title {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.guide-feature__desc {
  font-family: var(--font-article-ui);
  color: var(--guide-muted);
  font-size: 1.0625rem;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 768px) {
  .guide-feature__title {
    font-size: 1.5rem;
  }
}

.guide-feed-section {
  margin: 0 0 2.75rem;
}

.guide-feed-section__title {
  font-family: var(--font-article-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--guide-muted);
  margin: 0 0 0.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--guide-ink);
}

.guide-index__grid,
.guide-feed {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-index__card,
.guide-feed__item {
  border: 0;
  border-bottom: 1px solid var(--guide-rule);
  border-radius: 0;
  background: transparent;
  transition: none;
}

.guide-index__card:hover,
.guide-feed__item:hover {
  border-color: var(--guide-rule);
  transform: none;
}

.guide-index__card a,
.guide-feed__item a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0;
  text-decoration: none;
  color: inherit;
}

.guide-feed__copy {
  min-width: 0;
}

.guide-feed__thumb {
  width: 7rem;
  height: 7rem;
  object-fit: cover;
  object-position: center;
  background: color-mix(in srgb, var(--muted) 12%, var(--bg));
  display: block;
}

.guide-feed__item > a > picture {
  display: block;
  width: 7rem;
  height: 7rem;
  flex-shrink: 0;
  overflow: hidden;
}

.guide-index__kicker,
.guide-feed__kicker {
  font-family: var(--font-article-ui);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--guide-muted);
  margin: 0 0 0.35rem;
}

.guide-index__title,
.guide-feed__title {
  font-family: var(--font-article);
  font-size: 1.375rem; /* 22px */
  font-weight: 700;
  margin: 0 0 0.4rem;
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--guide-ink);
}

.guide-index__card a:hover .guide-index__title,
.guide-feed__item a:hover .guide-feed__title {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.guide-index__desc,
.guide-feed__desc {
  font-family: var(--font-article-ui);
  color: var(--guide-muted);
  font-size: 1rem;
  line-height: 1.4;
  margin: 0 0 0.65rem;
}

.guide-feed__meta {
  font-family: var(--font-article-ui);
  font-size: 0.8125rem;
  color: var(--guide-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .guide-article p,
  .guide-article li {
    font-size: 1rem;
    line-height: 1.55;
  }

  .guide-index__title,
  .guide-feed__title {
    font-size: 1.25rem;
  }

  .guide-index__card a,
  .guide-feed__item a {
    grid-template-columns: minmax(0, 1fr) 5.5rem;
    gap: 1rem;
  }

  .guide-feed__thumb {
    width: 5.5rem;
    height: 5.5rem;
  }

  .guide-feed__item > a > picture {
    width: 5.5rem;
    height: 5.5rem;
  }

  /* More from — Medium story row: meta on top, big title + snippet left, thumb right */
  .guide-next {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .guide-next__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5.5rem;
    grid-template-areas:
      "meta meta"
      "title media"
      "snippet media";
    column-gap: 1rem;
    row-gap: 0.35rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--guide-rule);
    align-items: start;
  }

  .guide-next__link:last-child {
    border-bottom: 0;
  }

  .guide-next__meta {
    grid-area: meta;
    margin: 0 0 0.15rem;
  }

  .guide-next__title {
    grid-area: title;
    font-size: 1.25rem;
    line-height: 1.22;
    margin: 0;
    -webkit-line-clamp: 3;
  }

  .guide-next__snippet {
    grid-area: snippet;
    margin: 0;
    font-size: 0.9375rem;
  }

  .guide-next__media {
    grid-area: media;
    width: 5.5rem;
    height: 5.5rem;
    aspect-ratio: 1;
    margin: 0;
    align-self: start;
  }
}
