/* The logo's palette (apps/web/public/brand): navy ground, blue, pink and orange accents.
   Fonts are self-hosted (the CSP is default-src 'self'), copied from @fontsource; OFL licences in
   fonts/. */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-600-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #0a0a33;
  --navy-2: #13134a;
  --blue: #0000f5;
  --blue-soft: #4b5bff;
  --pink: #e8336b;
  --orange: #ee7330;
  --paper: #faf8f4;
  --tint: #f2efe8;
  --card: #ffffff;
  --ink: #12122e;
  --ink-muted: #5b5b78;
  --line: #e6e2d9;
  --on-dark: #ffffff;
  --on-dark-muted: #b9b9dc;
  --line-dark: rgb(255 255 255 / 0.12);
  --radius: 18px;
  --shadow: 0 1px 2px rgb(10 10 51 / 0.06), 0 12px 40px -12px rgb(10 10 51 / 0.18);
  --shadow-lg: 0 2px 4px rgb(10 10 51 / 0.08), 0 40px 80px -24px rgb(10 10 51 / 0.45);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
figure {
  margin: 0;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.wrap {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}
.wrap.narrow {
  width: min(820px, 100% - 32px);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 16px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button.small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}
.button.primary {
  /* Darker than the logo's pink and orange so white text keeps 4.5:1 contrast. */
  background: linear-gradient(120deg, #c21f55, #c2410c);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgb(232 51 107 / 0.7);
}
.button.primary:hover {
  box-shadow: 0 16px 40px -12px rgb(232 51 107 / 0.85);
}
.button.ghost {
  border-color: var(--line-dark);
  color: var(--on-dark);
  background: rgb(255 255 255 / 0.06);
}
.button.ghost:hover {
  background: rgb(255 255 255 / 0.12);
}
.button .icon {
  transition: transform 0.2s;
}
.button:hover .icon {
  transform: translateX(3px);
}

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--on-dark);
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
}
.nav.scrolled {
  background: rgb(10 10 51 / 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line-dark);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: var(--on-dark-muted);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--on-dark);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.languages {
  display: flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
}
.languages button {
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--on-dark-muted);
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.04em;
  cursor: pointer;
}
.languages button[aria-pressed="true"] {
  background: rgb(255 255 255 / 0.14);
  color: var(--on-dark);
}
.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
}

/* Soft glows in the logo's colours */
.glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.glow span {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
}
.glow .blue {
  background: var(--blue);
  top: -20vmax;
  left: -12vmax;
  animation: drift-a 36s ease-in-out infinite alternate;
}
.glow .pink {
  background: var(--pink);
  top: 10%;
  right: -18vmax;
  animation: drift-b 42s ease-in-out infinite alternate;
}
.glow .orange {
  background: var(--orange);
  width: 30vmax;
  height: 30vmax;
  bottom: -12vmax;
  left: 30%;
  opacity: 0.3;
  animation: drift-c 30s ease-in-out infinite alternate;
}
.glow.soft span {
  opacity: 0.25;
}
@keyframes drift-a {
  to {
    transform: translate(18vw, 10vh) scale(1.1);
  }
}
@keyframes drift-b {
  to {
    transform: translate(-16vw, 14vh) scale(0.9);
  }
}
@keyframes drift-c {
  to {
    transform: translate(-14vw, -8vh) scale(1.2);
  }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 150px 0 0;
  background:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--navy);
  color: var(--on-dark);
}
.hero .glow {
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  color: var(--on-dark-muted);
  font-size: 14px;
  font-weight: 500;
}
.eyebrow .icon {
  color: var(--orange);
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(44px, 6.4vw, 78px);
  line-height: 1.02;
}
.hero h1 span,
.hero h1 em {
  display: block;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}
.lead {
  margin-top: 24px;
  max-width: 34em;
  color: var(--on-dark-muted);
  font-size: 19px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.actions.center {
  justify-content: center;
}
.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--on-dark-muted);
  font-size: 15px;
}
.ticks li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticks .icon {
  color: #4ade80;
}

.hero-visual {
  position: relative;
  padding: 0 0 80px 40px;
}
.browser {
  overflow: hidden;
  border: 1px solid rgb(10 10 51 / 0.1);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #f6f5f2;
}
.browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e3e0d8;
}
.browser-bar i:nth-child(1) {
  background: #ff5f57;
}
.browser-bar i:nth-child(2) {
  background: #febc2e;
}
.browser-bar i:nth-child(3) {
  background: #28c840;
}
.browser-bar span {
  flex: 1;
  max-width: 280px;
  margin-left: 14px;
  padding: 3px 10px;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  color: #8a879a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-browser {
  transform: perspective(1800px) rotateY(-9deg) rotateX(3deg);
  transform-origin: left center;
}
/* A status bar with a notch above the screenshot, so the screen's round corners never clip the
   site's own header. */
.phone {
  position: relative;
  overflow: hidden;
  padding-top: 26px;
  border: 8px solid #0d0d1f;
  border-radius: 34px;
  background: #0d0d1f;
  box-shadow: var(--shadow-lg);
}
.phone::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 30%;
  height: 14px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}
.phone img {
  border-radius: 0 0 26px 26px;
}
.hero-phone {
  position: absolute;
  left: -10px;
  bottom: 0;
  width: 30%;
  min-width: 150px;
}
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.3;
  animation: float 6s ease-in-out infinite;
}
.chip strong {
  display: block;
}
.chip small {
  color: var(--ink-muted);
  font-size: 12.5px;
}
.chip-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
}
.chip-icon.pink {
  background: var(--pink);
}
.chip-members {
  top: -26px;
  right: 6%;
}
.chip-event {
  right: -14px;
  bottom: 40px;
  animation-delay: -3s;
}
.date {
  display: grid;
  place-items: center;
  width: 42px;
  padding: 4px 0;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}
.date small {
  color: var(--on-dark-muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

.audience {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 36px;
  margin-top: 30px;
  padding: 34px 0 40px;
  border-top: 1px solid var(--line-dark);
}
.audience p {
  color: var(--on-dark-muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.audience ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--serif);
  font-size: 20px;
  color: rgb(255 255 255 / 0.8);
}

/* Sections */
.section {
  position: relative;
  padding: 120px 0;
}
.section.tint {
  background: var(--tint);
}
.section.dark {
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-dark);
}
.section.dark .glow {
  z-index: -1;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(34px, 4.4vw, 52px);
}
.section-head p:not(.kicker) {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 19px;
}
.dark .section-head p:not(.kicker) {
  color: var(--on-dark-muted);
}
.kicker {
  margin-bottom: 14px;
  color: #c21f55;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dark .kicker {
  color: var(--orange);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature h3 {
  margin-top: 20px;
  font-size: 21px;
}
.feature p {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 15.5px;
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 21px;
}
.feature-icon.blue {
  background: rgb(0 0 245 / 0.09);
  color: var(--blue);
}
.feature-icon.pink {
  background: rgb(232 51 107 / 0.1);
  color: var(--pink);
}
.feature-icon.orange {
  background: rgb(238 115 48 / 0.12);
  color: #d0581a;
}

/* Templates tabs */
.tabs {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-areas:
    "list panel"
    "notes panel";
  gap: 24px 48px;
  align-items: start;
}
.tab-list {
  grid-area: list;
  display: grid;
  gap: 8px;
}
.tab-list button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.03);
  color: var(--on-dark-muted);
  font: 600 18px/1 var(--serif);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.tab-list button:hover {
  color: var(--on-dark);
}
.tab-list button[aria-selected="true"] {
  border-color: rgb(255 255 255 / 0.35);
  background: rgb(255 255 255 / 0.1);
  color: var(--on-dark);
}
.swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2);
}
/* Each template's theme: background, main colour (packages/shared/src/schemas/site-themes.ts). */
.swatch.radiant {
  background: linear-gradient(135deg, #0f1230 50%, #ff7a59 50%);
}
.swatch.sanctuary {
  background: linear-gradient(135deg, #f7f1e6 50%, #7a1f2b 50%);
}
.swatch.grace {
  background: linear-gradient(135deg, #fffaf5 50%, #1f5c4a 50%);
}
.swatch.vigil {
  background: linear-gradient(135deg, #0d1512 50%, #f2b84b 50%);
}
.swatch.psalm {
  background: linear-gradient(135deg, #f4f1ea 50%, #14213d 50%);
}
.swatch.pulse {
  background: linear-gradient(135deg, #0b0b10 50%, #c6f432 50%);
}
.tab-panels {
  grid-area: panel;
  max-width: 720px;
  justify-self: center;
  width: 100%;
}
.tab-panel {
  animation: fade 0.4s ease;
}
/* Template crops already show the app's own preview frame, so no fake browser bar. */
.shot {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.tab-panel .browser-bar {
  border-color: rgb(10 10 51 / 0.08);
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.tab-notes {
  grid-area: notes;
  display: grid;
  gap: 18px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.tab-notes li {
  padding-left: 16px;
  border-left: 2px solid var(--orange);
}
.tab-notes strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
}
.tab-notes span {
  color: var(--on-dark-muted);
  font-size: 15px;
}

/* More templates, for groups other than churches */
.more {
  margin-top: 96px;
}
.more-title {
  margin-bottom: 32px;
  font-size: clamp(24px, 2.6vw, 32px);
  text-align: center;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.more-card {
  padding: 10px 10px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.04);
  transition:
    transform 0.25s,
    background-color 0.25s;
}
.more-card:hover {
  transform: translateY(-4px);
  background: rgb(255 255 255 / 0.08);
}
.more-card img {
  border-radius: 10px;
}
.more-card h3 {
  margin: 16px 8px 0;
  font-size: 20px;
}
.more-card p {
  margin: 4px 8px 0;
  color: var(--on-dark-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

/* Tour: alternating rows */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: center;
}
.split + .split {
  margin-top: 120px;
}
.split.flip .split-copy {
  order: 2;
}
.split-copy h3 {
  margin-top: 22px;
  font-size: clamp(28px, 3vw, 38px);
}
.split-copy > p {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 18px;
}
.checks {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
}
.checks li {
  position: relative;
  padding-left: 34px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}
/* A drawn tick: the CSP (img-src 'self') blocks data: images. */
.checks li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.split-media {
  position: relative;
  isolation: isolate;
}
.split-media::before {
  content: "";
  position: absolute;
  inset: 12% -6% -8% 10%;
  z-index: -1;
  border-radius: 28px;
  background: linear-gradient(135deg, rgb(232 51 107 / 0.16), rgb(238 115 48 / 0.12));
}
.split.flip .split-media::before {
  inset: 12% 10% -8% -6%;
  background: linear-gradient(135deg, rgb(0 0 245 / 0.1), rgb(232 51 107 / 0.12));
}
.split-media {
  overflow: visible;
}
.split-media .browser-bar {
  border-radius: 14px 14px 0 0;
}
.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  background: none;
  cursor: zoom-in;
}
.zoom img {
  transition: transform 0.5s;
}
.zoom:hover img {
  transform: scale(1.02);
}

/* Phones */
.mobile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.mobile-copy h2 {
  font-size: clamp(34px, 4.4vw, 52px);
}
.mobile-copy > p:not(.kicker) {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 19px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.stats div {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  background: linear-gradient(100deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats span {
  color: var(--ink-muted);
  font-size: 15px;
}
.phones {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
}
.phones .phone {
  width: min(260px, 46%);
}
.phones .phone:nth-child(2) {
  margin-top: 70px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 36px 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.step-n {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--serif);
  font-size: 22px;
}
.steps h3 {
  margin-top: 22px;
  font-size: 24px;
}
.steps p {
  margin-top: 8px;
  color: var(--ink-muted);
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  color: var(--pink);
  transition: transform 0.25s;
}
.faq details[open] summary .icon {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 26px 24px;
  color: var(--ink-muted);
}

/* Final call to action */
.cta {
  padding: 0 0 120px;
}
.section.tint + .cta {
  padding-top: 120px;
  background: linear-gradient(var(--tint), var(--paper));
}
.cta-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 88px 32px;
  border-radius: 32px;
  background: var(--navy);
  color: var(--on-dark);
  text-align: center;
}
.cta-card .glow {
  z-index: -1;
}
.cta-card h2 {
  max-width: 14em;
  margin-inline: auto;
  font-size: clamp(34px, 4.8vw, 56px);
}
.cta-card p {
  margin-top: 16px;
  color: var(--on-dark-muted);
  font-size: 19px;
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--on-dark-muted);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 72px 0 48px;
}
.footer .brand {
  color: var(--on-dark);
}
.footer-brand p {
  margin-top: 14px;
  max-width: 24em;
}
.footer nav {
  display: grid;
  align-content: start;
  gap: 10px;
}
.footer h2 {
  margin-bottom: 6px;
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer nav a {
  text-decoration: none;
}
.footer nav a:hover {
  color: var(--on-dark);
}
.footer-bottom {
  padding: 24px 0 32px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
}

/* Lightbox */
.lightbox {
  width: min(1400px, 100% - 32px);
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: none;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgb(10 10 51 / 0.85);
  backdrop-filter: blur(6px);
}
.lightbox img {
  max-height: calc(100vh - 32px);
  margin-inline: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgb(10 10 51 / 0.75);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* Reveal on scroll (only when main.js runs; content stays visible without it) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy .lead {
    margin-inline: auto;
  }
  .hero-copy .actions,
  .hero-copy .ticks {
    justify-content: center;
  }
  .hero-visual {
    max-width: 760px;
    margin-inline: auto;
  }
  .tabs {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "list"
      "panel"
      "notes";
  }
  .tab-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tab-list button {
    justify-content: center;
    font-size: 16px;
  }
  .tab-notes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .menu-toggle {
    display: grid;
  }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line-dark);
    border-radius: 18px;
    background: rgb(10 10 51 / 0.97);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 17px;
  }
  .nav-links a:hover {
    background: rgb(255 255 255 / 0.06);
  }
  .nav-actions {
    margin-left: auto;
  }
  .split,
  .mobile-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .split.flip .split-copy {
    order: 0;
  }
  .split + .split {
    margin-top: 88px;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .section {
    padding: 84px 0;
  }
  .section-head {
    margin-bottom: 44px;
  }
  .hero {
    padding-top: 120px;
  }
  .nav-actions .button {
    display: none;
  }
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    padding: 40px 0 56px 24px;
  }
  .hero-phone {
    min-width: 0;
    width: 32%;
  }
  .nav .brand span {
    display: none;
  }
  .tab-list button {
    padding: 12px 10px;
    gap: 8px;
    font-size: 15px;
  }
  .hero-browser {
    transform: none;
  }
  .chip-members {
    top: -20px;
    right: 0;
  }
  .chip-event {
    right: 0;
    bottom: 10px;
  }
  .tab-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tab-notes {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta-card {
    padding: 64px 22px;
    border-radius: 24px;
  }
  .button {
    width: 100%;
  }
  .nav .button,
  .cta .actions,
  .hero .actions {
    width: 100%;
  }
  .split-media::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
