/* Church360 marketing site, styled after diadynshop360.com (light theme).
   Colours come from tokens.css only. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Headings: extra bold with tight tracking, as on diadynshop360 */
h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: var(--tracking-tighter);
  text-wrap: balance;
}

h1 {
  font-size: 3rem;
  line-height: 0.95;
}

h2 {
  font-size: 1.875rem;
  line-height: 1.25;
}

h3,
.h3 {
  font-size: 1.125rem;
  line-height: 1.375;
  letter-spacing: var(--tracking-tighter);
}

@media (min-width: 40rem) {
  h1 {
    font-size: 3.75rem;
  }

  h2 {
    font-size: 2.25rem;
  }
}

p,
ul {
  margin: 0 0 1em;
}

p {
  text-wrap: pretty;
}

/* Links: ink with a soft underline that darkens on hover */
a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(11 14 35 / 0.25);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--ink);
  text-decoration-color: rgb(11 14 35 / 0.6);
}

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

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 60;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.skip-link:hover {
  color: var(--on-ink);
}

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

/* Layout: 80rem container with 16, 24 and 32px gutters */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 1.5rem;
  }
}

@media (min-width: 64rem) {
  .wrap {
    padding: 0 2rem;
  }
}

/* Sections alternate band-soft and band, as on diadynshop360 */
.section {
  padding: 4rem 0;
  background: var(--band-soft);
}

.section--surface {
  background: var(--band);
}

@media (min-width: 40rem) {
  .section {
    padding: 5rem 0;
  }
}

@media (min-width: 64rem) {
  .section {
    padding: 6rem 0;
  }
}

.section p:not(.eyebrow) {
  color: var(--ink-soft);
}

.measure {
  max-width: 48rem;
}

/* Section intro: eyebrow, title and sub text, 16px apart */
.section-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section-intro h2,
.section-intro p {
  margin: 0;
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
}

@media (min-width: 40rem) {
  .lead {
    font-size: 1.25rem;
  }
}

/* Eyebrow: the small uppercase label above a title */
.eyebrow,
.kicker {
  display: block;
  margin: 0 0 1rem;
  color: var(--highlight-ink);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.33;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.section-intro .eyebrow {
  margin: 0;
}

.more-link {
  margin-top: 2rem;
}

/* Logo clear space: padding equal to the height of the letter "a"
   (0.54 of the logo height). Nothing may sit inside this padding. */
.logo {
  --logo-h: 1.5rem;
  height: var(--logo-h);
  width: auto;
  box-sizing: content-box;
  padding: calc(var(--logo-h) * 0.54);
}

/* Header, as on diadynshop360: sticky, 72px, white at 90% with a backdrop
   blur and a 1px line underneath. The blur sits on a pseudo-element so the
   header doesn't become the containing block of the fixed drawer.
   Full menu from 75rem; below that it opens in a drawer (assets/js/nav.js). */
html {
  scroll-padding-top: 5.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand__name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: var(--tracking-tighter);
}

.brand__by {
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
}

.brand__by .logo {
  --logo-h: 1rem;
}

/* Church360 mark, from the web app (app.meetchurch360.com), 28px tall like
   diadynshop360's logo. No white version exists, so on ink it is flattened
   to white with a filter. */
.c360-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.dark .c360-mark {
  filter: brightness(0) invert(1);
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
}

/* Menu items: 14px medium ink-soft text, ink on hover. No underline and no
   pill. The current page is ink in semibold. */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.nav-list a,
.nav-menu summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-menu summary:hover,
.nav-menu[open] > summary {
  color: var(--ink);
  text-decoration: none;
}

.nav-list a[aria-current="page"],
.nav-menu:has(a[aria-current="page"]) > summary {
  color: var(--ink);
  font-weight: 600;
}

/* "For you" menu: a native <details>, so it works without JavaScript */
.nav-menu {
  position: relative;
}

.nav-menu summary {
  cursor: pointer;
  list-style: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

/* Chevron, as on diadynshop360's menu triggers */
.nav-menu summary::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.4rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-0.12rem) rotate(45deg);
}

.nav-menu[open] summary::after {
  transform: translateY(0.1rem) rotate(-135deg);
}

.nav-menu ul {
  list-style: none;
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0 0 0.5rem 0.75rem;
}

/* WhatsApp: a round icon button in the header bar, a labelled pill in the drawer */
.nav-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
}

.nav-wa:hover {
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
}

.nav-wa .icon {
  --icon-colour: currentColor;
  width: 22px;
  height: 22px;
  flex: none;
}

/* Menu button (phones and tablets) */
.nav-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -0.375rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.nav-toggle[hidden] {
  display: none;
}

.nav-toggle:hover {
  background: var(--surface-sunken);
  color: var(--ink);
}

/* Three bars that turn into a cross when open */
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-open .nav-toggle__bars {
  background: transparent;
}

.nav-open .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-open .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Drawer, as on diadynshop360: a paper panel from the right (up to 24rem),
   with ink at 50% over the page behind it and 16px semibold rows */
@media (max-width: 74.99rem) {
  .site-nav {
    padding: 0.5rem 0 1.5rem;
  }

  .js .site-nav {
    display: none;
    position: fixed;
    top: calc(var(--header-h) + 1px);
    right: 0;
    bottom: 0;
    width: min(100%, 24rem);
    overflow-y: auto;
    padding: 0.75rem;
    background: var(--paper);
    box-shadow: 0 25px 50px -12px rgb(11 14 35 / 0.25);
  }

  .js.nav-open .site-nav {
    display: block;
  }

  .js.nav-open body::after {
    content: "";
    position: fixed;
    inset: calc(var(--header-h) + 1px) 0 0;
    z-index: 39;
    background: rgb(11 14 35 / 0.5);
  }

  .nav-open body {
    overflow: hidden;
  }

  .nav-list a,
  .nav-menu summary {
    min-height: 48px;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 600;
  }

  .nav-list > li {
    border-bottom: 1px solid var(--line);
    padding: 0.25rem 0;
  }

  .nav-list a:hover,
  .nav-menu summary:hover {
    background: var(--surface-sunken);
  }

  .nav-list a[aria-current="page"],
  .nav-menu:has(a[aria-current="page"]) > summary {
    background: var(--surface-sunken);
  }

  .nav-menu summary {
    justify-content: space-between;
  }

  .nav-menu summary::after {
    color: var(--ink-faint);
  }

  .nav-menu ul a {
    font-size: 0.875rem;
  }

  .nav-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0 0.75rem;
  }

  .nav-wa,
  .nav-demo {
    min-height: 48px;
  }

  .nav-wa {
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
  }

  /* Without JavaScript the menu shows open under the brand, so the header
     isn't sticky there (it would cover the page) */
  html:not(.js) .site-header {
    position: relative;
  }

  html:not(.js) .header-bar {
    flex-wrap: wrap;
  }

  html:not(.js) .site-nav {
    width: 100%;
  }
}

/* Full menu bar: the menu 48px right of the brand with 32px gaps, actions
   pushed to the right */
@media (min-width: 75rem) {
  .header-bar {
    justify-content: flex-start;
    height: var(--header-h);
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    flex: 1;
    align-items: center;
    margin-left: 3rem;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .nav-menu ul {
    position: absolute;
    left: -0.75rem;
    top: calc(100% + 0.75rem);
    min-width: 15rem;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-menu);
  }

  .nav-menu ul a {
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--ink);
    font-weight: 600;
  }

  .nav-menu ul a:hover,
  .nav-menu ul a[aria-current="page"] {
    background: var(--surface-sunken);
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding-left: 1.5rem;
  }

  .nav-wa {
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .nav-wa__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Buttons, as on diadynshop360. Primary: an ink pill, 44px tall, 14px bold
   paper text, ink at 90% on hover and a slight press on click. Secondary
   (button--ghost): an underlined text link. Every size modifier renders at
   the same 44px height, as diadynshop360 has one button size. */
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25rem;
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
}

.button:hover {
  background: var(--ink-90);
  color: var(--on-ink);
  text-decoration: none;
}

.button:active {
  transform: scale(0.98);
}

.button .icon {
  --icon-colour: currentColor;
  width: 20px;
  height: 20px;
  flex: none;
}

/* Secondary: underlined text link */
.button--ghost {
  min-height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(11 14 35 / 0.25);
  text-underline-offset: 4px;
}

.button--ghost:hover {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgb(11 14 35 / 0.6);
}

.button--ghost:active {
  transform: none;
}

/* On ink and photo bands the primary turns paper with ink text */
.dark .button {
  background: var(--on-ink);
  color: var(--ink);
}

.dark .button:hover {
  background: rgb(249 250 253 / 0.9);
  color: var(--ink);
}

.dark .button--ghost,
.dark .button--ghost:hover {
  background: transparent;
  color: var(--on-ink);
  text-decoration-color: rgb(249 250 253 / 0.6);
}

.dark .button--ghost:hover {
  text-decoration-color: var(--on-ink);
}

/* Floating WhatsApp link on every page: an ink circle, no script */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: 0 12px 28px -10px rgb(11 14 35 / 0.55), 0 0 0 3px var(--surface);
}

.wa-float:hover {
  background: var(--ink-90);
  color: var(--on-ink);
}

.wa-float .icon {
  --icon-colour: currentColor;
  width: 28px;
  height: 28px;
}

@media (min-width: 40rem) {
  .wa-float {
    right: 1.5rem;
    bottom: 1.5rem;
    width: 4rem;
    height: 4rem;
  }
}

/* Ink sections: the footer and the photo bands */
.dark {
  background: var(--ink);
  color: var(--on-ink);
}

.dark h1,
.dark h2,
.dark h3,
.dark p {
  color: var(--on-ink);
}

.dark a {
  color: var(--on-ink);
  text-decoration-color: rgb(249 250 253 / 0.5);
}

.dark a:hover {
  color: var(--on-ink);
  text-decoration-color: var(--on-ink);
}

.dark :focus-visible {
  outline-color: var(--focus-on-ink);
}

/* Hero and page headers, as diadynshop360's hero: band background, eyebrow,
   large headline, sub text and a button pair, 24px apart. With a photo
   (split) the photo sits to the right from 64rem, rounded, with the
   violet and blue glow behind it. */
.hero,
.page-head {
  overflow-x: clip;
  padding: 4rem 0 5rem;
  background: var(--band);
}

@media (min-width: 40rem) {
  .hero,
  .page-head {
    padding: 5rem 0 6rem;
  }
}

@media (min-width: 64rem) {
  .hero,
  .page-head {
    padding: 6rem 0 7rem;
  }
}

.split__text,
.page-head:not(.split) > .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.split__text {
  max-width: 36rem;
}

.split__text > *,
.page-head > .wrap > * {
  margin: 0;
}

.page-head p {
  max-width: 40rem;
}

.split__text .button-row,
.page-head .button-row {
  margin-top: 0.25rem;
}

.split__grid {
  display: grid;
  gap: 4rem 3.5rem;
  align-items: center;
}

@media (min-width: 64rem) {
  .split__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

@media (min-width: 80rem) {
  .split__grid {
    column-gap: 5rem;
  }
}

.split__media {
  position: relative;
  isolation: isolate;
  margin: 0;
}

.split__media::before {
  content: "";
  position: absolute;
  inset: -2rem;
  z-index: -1;
  border-radius: 3rem;
  background:
    radial-gradient(60% 60% at 30% 25%, var(--highlight), transparent 70%),
    radial-gradient(55% 55% at 80% 80%, var(--accent), transparent 70%);
  opacity: 0.55;
  filter: blur(64px);
}

.split__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: var(--photo-pos, 50% 40%);
  border-radius: var(--radius-xl);
  background: var(--surface-sunken);
  box-shadow: 0 25px 50px -12px rgb(11 14 35 / 0.15);
}

/* Photo bands (calls to action): a real <img> (with alt text) under the ink
   overlay from tokens.css. Headlines stay HTML text on top. */
.photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.photo__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-pos, 50% 40%);
}

.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--photo-overlay);
}

/* Centred like diadynshop360's closing call to action, with its very large
   headline */
.band {
  padding: 4rem 0;
  text-align: center;
}

@media (min-width: 40rem) {
  .band {
    padding: 5rem 0;
  }
}

@media (min-width: 64rem) {
  .band {
    padding: 6rem 0;
  }
}

.band .measure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  margin: 0 auto;
}

.band .measure > * {
  margin: 0;
}

.band h2 {
  font-size: 3rem;
  line-height: 0.95;
}

@media (min-width: 40rem) {
  .band h2 {
    font-size: 3.75rem;
  }
}

.band .lead {
  max-width: 36rem;
}

.band .button-row {
  justify-content: center;
  margin-top: 0.25rem;
}

/* Icons: Lucide (ISC, see assets/img/icons/LICENSE-lucide.txt), served locally,
   stroke 2.5. Each file is used as a mask so the colour comes from the tokens.
   Decorative only: the HTML marks them aria-hidden next to a text label. */
.icon {
  display: block;
  width: 28px;
  height: 28px;
  background-color: var(--icon-colour, var(--highlight-ink));
  -webkit-mask: var(--icon-mask) center / contain no-repeat;
  mask: var(--icon-mask) center / contain no-repeat;
}

.icon--users { --icon-mask: url("../img/icons/users.svg"); }
.icon--users-round { --icon-mask: url("../img/icons/users-round.svg"); }
.icon--layers { --icon-mask: url("../img/icons/layers.svg"); }
.icon--calendar-days { --icon-mask: url("../img/icons/calendar-days.svg"); }
.icon--calendar-check { --icon-mask: url("../img/icons/calendar-check.svg"); }
.icon--circle-check { --icon-mask: url("../img/icons/circle-check.svg"); }
.icon--hand-heart { --icon-mask: url("../img/icons/hand-heart.svg"); }
.icon--book-open { --icon-mask: url("../img/icons/book-open.svg"); }
.icon--key-round { --icon-mask: url("../img/icons/key-round.svg"); }
.icon--network { --icon-mask: url("../img/icons/network.svg"); }
.icon--church { --icon-mask: url("../img/icons/church.svg"); }
.icon--user-plus { --icon-mask: url("../img/icons/user-plus.svg"); }
.icon--message-circle { --icon-mask: url("../img/icons/message-circle.svg"); }
.icon--shield-check { --icon-mask: url("../img/icons/shield-check.svg"); }
.icon--database-backup { --icon-mask: url("../img/icons/database-backup.svg"); }
.icon--house { --icon-mask: url("../img/icons/house.svg"); }
.icon--building-2 { --icon-mask: url("../img/icons/building-2.svg"); }
.icon--wallet { --icon-mask: url("../img/icons/wallet.svg"); }
.icon--hard-drive { --icon-mask: url("../img/icons/hard-drive.svg"); }
.icon--settings { --icon-mask: url("../img/icons/settings.svg"); }

/* Icon tiles, as diadynshop360's feature icons: a band-filled tile with a
   16px radius and a highlight-ink icon (6.8:1 on band), tilting -6deg when
   its card is hovered. diadynshop360 uses a 44px tile with a 22px icon; here
   the tile is 56px so the icon stays at 28px. On band sections the tile turns
   white so it stays visible. */
.tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--tile, 56px);
  height: var(--tile, 56px);
  border-radius: var(--tile-radius, var(--radius-lg));
  background: var(--band);
  --icon-colour: var(--highlight-ink);
}

.tile .icon {
  width: 50%;
  height: 50%;
}

.section--surface .tile,
.panel .tile {
  background: var(--surface);
  box-shadow: var(--ring);
}

.section--surface .card .tile {
  background: var(--band);
  box-shadow: none;
}

.tile--huge {
  --tile: clamp(7rem, 16vw, 10rem);
  --tile-radius: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-soft), var(--ring);
}

.section--surface .tile--huge,
.panel .tile--huge {
  box-shadow: var(--shadow-soft), var(--ring);
}

@media (prefers-reduced-motion: no-preference) {
  .tile {
    transition: transform 0.2s ease;
  }

  .card:hover .tile {
    transform: rotate(-6deg);
  }
}

/* Card groups: horizontal on wider screens, one column on phones */
.cards {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 40rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .cards {
    gap: 1.5rem;
  }

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

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

@media (min-width: 52rem) and (max-width: 63.99rem) {
  .cards--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .cards--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Cards, as on diadynshop360: white, 24px radius, a soft shadow and a faint
   ring instead of a border. Icon tile on top, then the title and text, 12px
   apart. On hover they lift 2px and glow violet. */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  height: 100%;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft), var(--ring);
}

@media (min-width: 40rem) {
  .card {
    padding: 1.5rem;
  }
}

.card:hover {
  box-shadow: var(--shadow-glow), var(--ring);
}

@media (prefers-reduced-motion: no-preference) {
  .card {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  }

  .card:hover {
    transform: translateY(-2px);
  }
}

.card > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.card h2,
.card h3,
.card .h3,
.card p,
.card ul {
  margin: 0;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

@media (min-width: 40rem) {
  .card p {
    font-size: 1rem;
  }
}

/* Whole card as a link (audience cards) */
a.card {
  color: var(--ink);
  font-weight: 400;
  text-decoration: none;
}

a.card:hover {
  color: var(--ink);
}

/* Styled as diadynshop360's text link */
.card__more {
  margin-top: auto;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  text-decoration: underline;
  text-decoration-color: rgb(11 14 35 / 0.25);
  text-underline-offset: 4px;
}

.card__more::after {
  content: " \2192";
}

a.card:hover .card__more {
  color: var(--ink);
  text-decoration-color: rgb(11 14 35 / 0.6);
}

/* Numbered steps, as diadynshop360's How it works: a 36px ink circle with
   the number, and from 64rem a 1px line running behind the circles */
.steps {
  position: relative;
}

.step-num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 0.875rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 64rem) {
  .steps::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 2.625rem;
    height: 1px;
    background: var(--line-strong);
  }
}

.steps .card p {
  font-size: 0.875rem;
  line-height: 1.625;
}

/* Network statement */
.network {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 52rem) {
  .network {
    grid-template-columns: auto 1fr;
    gap: 3.5rem;
  }
}

.network h2 {
  max-width: 24ch;
}

.network p {
  margin-bottom: 0;
}

.network .eyebrow {
  margin-bottom: 1rem;
}

/* Features page: alternating rows of text and a photo or tinted panel */
.feature-rows {
  display: grid;
  gap: clamp(4rem, 9vw, 6rem);
}

.feature-row {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .feature-row--flip .feature-row__media {
    order: -1;
  }
}

.feature-row__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.feature-row__text > * {
  margin: 0;
}

.feature-row__text .tile {
  margin-bottom: 0.5rem;
}

.feature-row__media {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-image);
}

.feature-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Panels: the diadynshop360 image glow on band, or on ink */
.panel {
  display: grid;
  place-items: center;
  background: var(--glow), var(--band);
}

.panel--navy {
  background: var(--glow), var(--ink);
}

/* Short bullet lists with a check mark */
.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--ink-soft);
}

.ticks li {
  position: relative;
  padding-left: 2rem;
}

.ticks li + li {
  margin-top: 0.5rem;
}

/* 20px Lucide circle-check in accent-ink, centred on the first line */
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.75em - 10px);
  width: 20px;
  height: 20px;
  background-color: var(--accent-ink);
  -webkit-mask: url("../img/icons/circle-check.svg") center / contain no-repeat;
  mask: url("../img/icons/circle-check.svg") center / contain no-repeat;
}

.dark .ticks {
  color: var(--on-ink);
}

.dark .ticks li::before {
  background-color: var(--on-ink);
}

/* Pricing: the billing switch is diadynshop360's pill tab bar, with the
   selected option in ink */
.billing {
  display: inline-flex;
  gap: 0.375rem;
  margin: 0 0 2.5rem;
  padding: 0.375rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-soft), var(--ring);
}

.billing input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.billing label {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  cursor: pointer;
}

.billing label:hover {
  background: var(--surface-sunken);
  color: var(--ink);
}

.billing input:checked + label {
  background: var(--ink);
  color: var(--on-ink);
}

.billing input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.price--annual {
  display: none;
}

.pricing:has(#billing-annual:checked) .price--monthly {
  display: none;
}

.pricing:has(#billing-annual:checked) .price--annual {
  display: block;
}

.plans {
  align-items: stretch;
}

@media (min-width: 40rem) and (max-width: 63.99rem) {
  .plans {
    grid-template-columns: 1fr;
  }
}

.plan .h3 {
  font-size: 1.25rem;
}

.plan__for {
  min-height: 3em;
}

.card .plan__price {
  margin: 0.25rem 0 0.5rem;
  color: var(--ink);
}

.plan__amount {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--tracking-tighter);
}

.plan__per {
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
}

.plan .ticks {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.plan .button {
  margin-top: auto;
  align-self: stretch;
}

.note {
  font-size: 0.875rem;
}

/* Contact */
.expect {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 52rem) {
  .expect {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.expect .card {
  height: auto;
}

/* Demo band above the footer on every page, as diadynshop360's closing call
   to action: band background, centred, section-title size, primary button */
.cta-final {
  padding: 4rem 0;
  background: var(--band);
}

/* After a band-coloured section it switches to band-soft to keep the rhythm */
main:has(> section:last-child.section--surface) + .cta-final {
  background: var(--band-soft);
}

.cta-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

.cta-final__text {
  margin: 0;
  max-width: 30ch;
  color: var(--ink);
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: var(--tracking-tighter);
  text-wrap: balance;
}

@media (min-width: 40rem) {
  .cta-final {
    padding: 5rem 0;
  }

  .cta-final__text {
    font-size: 2.25rem;
  }
}

/* Footer, as on diadynshop360: ink, 48px top and bottom, 14px text. Text and
   links are paper at 70% (9.1:1), headings and hover are paper (18.3:1),
   no underlines. The suite eyebrow uses diadynshop360's dark-theme eyebrow
   colour (6.1:1). */
.site-footer {
  padding: 3rem 0;
  color: var(--on-ink-soft);
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 64rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr);
    gap: 3rem;
  }
}

.site-footer .eyebrow {
  margin: 0 0 1rem;
  color: var(--highlight-on-ink);
}

.site-footer .logo {
  --logo-h: 1.75rem;
}

.footer-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  text-decoration: none;
}

.site-footer .footer-home,
.site-footer .footer-home:hover {
  color: var(--on-ink);
  text-decoration: none;
}

.footer-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: var(--tracking-tighter);
}

.site-footer p {
  color: var(--on-ink-soft);
}

.footer-brand p {
  max-width: 20rem;
  margin: 1rem 0 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

/* Phones: the email address gets the full width */
@media (max-width: 47.99rem) {
  .footer-col:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* Wider screens: four columns sized to their links */
@media (min-width: 48rem) {
  .footer-nav {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    gap: 3rem;
  }
}

.footer-heading {
  margin: 0 0 0.5rem;
  color: var(--on-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: var(--tracking-tight);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Footer links: 36px tall rows, medium weight, no underline */
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  overflow-wrap: anywhere;
}

.site-footer a {
  color: var(--on-ink-soft);
  font-weight: 500;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--on-ink);
  text-decoration: none;
}

.footer-brand p a {
  text-decoration: underline;
  text-decoration-color: rgb(249 250 253 / 0.35);
}

.footer-legal {
  margin-top: 2.5rem;
  font-size: 0.75rem;
}

.footer-legal p {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  a,
  .button {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease,
      transform 0.15s ease, box-shadow 0.15s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.card {
    transition: none;
  }
}
