/* ==========================================================================
   Components shared by designed sections: section shell, night surface,
   titles, kickers, pill buttons, chips, checklists, marquee.
   ========================================================================== */

/* ---------- section shell ---------- */
.sk-site .sk-section {
  position: relative;
  padding-block: var(--space-section);
  padding-inline: max(var(--gutter), calc((100% - var(--width-page)) / 2));
  box-sizing: border-box;
}
.sk-site .sk-section > * { margin-block: 0; }
/* Grids space their items with gap. The block editor's flow layout also adds
   a top margin to every item after the first, which staggers grid rows. */
.sk-site :is(.sk-bento__grid, .sk-stats, .sk-timeline) > * { margin-block: 0; }

.sk-site .sk-night {
  background-color: var(--surface-night);
  color: var(--text-on-night-secondary);
  color-scheme: dark;
  --focus-ring: 0 0 0 2px var(--surface-night), 0 0 0 4px var(--cyan-300);
}
.sk-site .sk-night :is(h1, h2, h3, h4):where(:not(.skx-scene *)) { color: var(--text-on-night); }

/* All night (client, 2026-10-13): sections designed light (sk-was-light) and
   the body of prose pages take the night values of the colour tokens, so
   their text, cards and borders follow. Product mock-ups keep their own
   light screens. */
.sk-site .sk-was-light,
body.sk-site.sk-prose .site-content {
  --surface-page: var(--night-900);
  --surface-raised: var(--night-850);
  --surface-sunken: rgb(255 255 255 / 0.03);
  --text-primary: #F4F7FF;
  --text-secondary: #A7B3CF;
  --text-tertiary: #7C89A8;
  --text-link: var(--cyan-300);
  --text-link-hover: #FFFFFF;
  --border-subtle: rgb(255 255 255 / 0.08);
  --border-strong: rgb(255 255 255 / 0.3);
}
.sk-site .sk-was-light .skx-scene,
.sk-site .sk-was-light .skx-form:not(.is-style-night),
body.sk-site.sk-prose .site-content .skx-scene {
  --surface-page: var(--paper-50);
  --surface-raised: var(--paper-0);
  --surface-sunken: var(--paper-100);
  --text-primary: var(--ink-900);
  --text-secondary: var(--ink-600);
  --text-tertiary: var(--ink-500);
  --text-link: var(--blue-600);
  --border-subtle: var(--paper-200);
  --border-strong: var(--ink-900);
}
/* A light form card stays a light card: its own headings and links in their day colours. */
.sk-site .sk-was-light .skx-form:not(.is-style-night) :is(h1, h2, h3, h4) { color: var(--ink-900); }
.sk-site .sk-was-light .skx-form:not(.is-style-night) a:not(.wp-block-button__link) { color: var(--blue-600); }
/* (Their own light backgrounds and fades into paper give way to night.) */
.sk-site .sk-section.sk-was-light { background: var(--surface-night); }
/* The page itself, between and around the sections, and prose pages' text. */
body.sk-site, body.sk-site #page, body.sk-site .site-content { background-color: var(--surface-night); }
body.sk-site.sk-prose .site-content { background-color: var(--surface-night); color: var(--text-on-night-secondary); color-scheme: dark; }
body.sk-site.sk-prose .entry-content :is(h1, h2, h3, h4, h5, strong) { color: var(--text-on-night); }
body.sk-site.sk-prose .entry-content a:not(.wp-block-button__link) { color: var(--cyan-300); }
/* (Converted sections: the waves without their horizon, which would repeat down the page.) */
.sk-was-light > .skx-lw :is(.skx-lw__horizon, .skx-lw__horizon-glow, .skx-lw__beam, .skx-lw__flare),
body.sk-prose .entry-content > .skx-lw :is(.skx-lw__horizon, .skx-lw__horizon-glow, .skx-lw__beam, .skx-lw__flare) { display: none; }
.sk-site .sk-night a:not(.wp-block-button__link) { color: var(--cyan-300); }
.sk-site .sk-night :focus-visible { outline-color: var(--cyan-300); }

/* ---------- titles ---------- */
.sk-site .sk-section__title {
  max-width: 17ch;
  font-size: var(--text-h2);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--text-primary);
}
/* Two-tone titles: italicised words carry the second tone. */
.sk-site :is(.sk-section__title, .sk-hero__title, .sk-page-hero__title, .sk-cta__title, .sk-footer__statement) em {
  font-style: normal;
  color: #7C89A8; /* 3.5:1 on paper: large-text AA */
}
.sk-site .sk-night :is(.sk-section__title, .sk-hero__title, .sk-page-hero__title, .sk-cta__title) em,
.sk-site .sk-night.sk-cta__panel .sk-cta__title em {
  color: #8CC8FF; /* second tone on night; solid so split text stays visible */
}
.sk-site .sk-section__lede {
  max-width: var(--measure-lede);
  margin-block-start: var(--space-5);
  font-size: var(--text-lede);
  line-height: 1.5;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}
.sk-site .sk-night .sk-section__lede { color: var(--text-on-night-secondary); }

.sk-site .sk-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-block-end: var(--space-5);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--blue-600);
}
.sk-site .sk-kicker::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.sk-site .sk-night .sk-kicker { color: var(--cyan-300); }

/* ---------- buttons (v2: pills with a travelling chevron) ---------- */
.sk-site .sk-button,
.sk-site .wp-block-button__link {
  border-radius: var(--radius-control);
  padding-inline: 1.5rem;
  gap: 0.5rem;
  font-weight: var(--weight-medium);
  letter-spacing: -0.01em;
  transition:
    background-color var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out),
    color var(--duration-fast) var(--ease-smooth-out),
    transform var(--duration-quick) var(--ease-out);
}
.sk-site :is(.wp-block-button:not(.is-style-text):not(.is-style-outline) .wp-block-button__link, .sk-button--primary)::after {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  margin-inline-end: -0.2rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 2.5 8 6l-3.5 3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 2.5 8 6l-3.5 3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}
.sk-site :is(.wp-block-button__link, .sk-button):hover::after { transform: translateX(3px); }
[dir="rtl"] .sk-site :is(.wp-block-button__link, .sk-button)::after { transform: scaleX(-1); }

/* Night primary: white pill with a soft glow. */
.sk-site .sk-night .wp-block-button:not(.is-style-outline):not(.is-style-text) .wp-block-button__link,
.sk-site .sk-button--on-night {
  --_bg: #fff;
  --_fg: var(--night-900);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.2), 0 10px 30px -10px rgb(107 227 255 / 0.55);
}
.sk-site .sk-night .wp-block-button:not(.is-style-outline):not(.is-style-text) .wp-block-button__link:hover {
  --_bg: #EAF6FF;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.3), 0 14px 40px -10px rgb(107 227 255 / 0.8);
}
/* Astra paints outline buttons with its own colour and border; take over. */
.sk-site .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
  color: var(--_fg);
  border: 0;
  padding-inline: 1.5rem;
}
/* Night outline: glass. */
.sk-site .sk-night .wp-block-button.is-style-outline > .wp-block-button__link {
  --_bg: rgb(255 255 255 / 0.04);
  --_fg: var(--text-on-night);
  box-shadow: inset 0 0 0 1px var(--border-night-strong);
}
.sk-site .sk-night .wp-block-button.is-style-outline > .wp-block-button__link:hover {
  --_bg: rgb(255 255 255 / 0.1);
}

/* ---------- chips + checklist ---------- */
.sk-site .sk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-7) 0 0;
  padding: 0;
  list-style: none;
}
.sk-site .sk-chips li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-round);
  border: 1px solid var(--border-subtle);
  background: var(--surface-raised);
  color: var(--text-primary);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
}
.sk-site .sk-night .sk-chips li {
  border-color: var(--border-night);
  background: rgb(255 255 255 / 0.04);
  color: var(--text-on-night);
}
.sk-site .sk-chips li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgb(31 191 117 / 0.2);
}

.sk-site .sk-checklist {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}
.sk-site .sk-checklist li {
  position: relative;
  margin: 0;
  padding-inline-start: 2rem;
  font-size: var(--text-ui);
  color: inherit;
}
.sk-site .sk-checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.15em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgb(107 227 255 / 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236BE3FF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.sk-site .sk-night .sk-checklist li { color: var(--text-on-night); }

.sk-site .sk-more {
  margin-block-start: var(--space-7);
  font-weight: var(--weight-medium);
}
.sk-site .sk-more a,
.sk-site .sk-step__link a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}
.sk-site :is(.sk-more, .sk-step__link) a::after {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h8M6.5 2.5 10 6l-3.5 3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h8M6.5 2.5 10 6l-3.5 3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}
.sk-site :is(.sk-more, .sk-step__link) a:hover::after { transform: translateX(4px); }

/* ---------- marquee ---------- */
.sk-site .sk-marquee {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-5);
  border-block: 1px solid var(--border-night);
}
/* Edge fades are painted in the night colour; a mask would also fade the
   section's own background and let the light page show through. */
.sk-site .sk-marquee::before,
.sk-site .sk-marquee::after {
  content: "";
  position: absolute;
  inset-block: 0;
  z-index: 1;
  width: 12%;
  pointer-events: none;
}
.sk-site .sk-marquee::before { inset-inline-start: 0; background: linear-gradient(90deg, var(--surface-night), transparent); }
.sk-site .sk-marquee::after { inset-inline-end: 0; background: linear-gradient(270deg, var(--surface-night), transparent); }
.sk-site .sk-marquee__list {
  display: flex;
  width: max-content;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: sk-marquee var(--marquee-duration, 45s) linear infinite;
}
.sk-site .sk-marquee:hover .sk-marquee__list { animation-play-state: paused; }
.sk-site .sk-marquee__list li {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  margin: 0;
  padding-inline-end: 2.5rem;
  white-space: nowrap;
  font-size: var(--text-ui);
  font-weight: var(--weight-medium);
  color: var(--text-on-night-secondary);
}
.sk-site .sk-marquee__list li::after {
  content: "";
  width: 1.25rem;
  height: 0.6rem;
  background: var(--gradient-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cpath d='M24 12c-4-6-7.5-8.5-11.5-8.5a8.5 8.5 0 0 0 0 17C16.5 20.5 20 18 24 12zm0 0c4 6 7.5 8.5 11.5 8.5a8.5 8.5 0 0 0 0-17C31.5 3.5 28 6 24 12z' fill='none' stroke='black' stroke-width='4.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cpath d='M24 12c-4-6-7.5-8.5-11.5-8.5a8.5 8.5 0 0 0 0 17C16.5 20.5 20 18 24 12zm0 0c4 6 7.5 8.5 11.5 8.5a8.5 8.5 0 0 0 0-17C31.5 3.5 28 6 24 12z' fill='none' stroke='black' stroke-width='4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes sk-marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .sk-site .sk-marquee__list { animation-direction: reverse; }

@media (prefers-reduced-motion: reduce) {
  .sk-site .sk-marquee__list { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: var(--space-3); }
}
