/* Shine Reverb 2 and S 2 pages: the plug-in's night palette, with one card, chip and column system.
   Sans-serif throughout; everything is scoped to .shine-page. Backdrop styles for the controls
   video live in shine.css. */
.shine-page {
  --ink: #e8efed; --ink-dim: #a9bab6; --ink-faint: #82958f;
  --ground: #0a1213; --night-deep: #071010;
  --rule: rgba(214, 240, 233, .09); --rule-strong: rgba(214, 240, 233, .2);
  --accent: #52dcb8; --accent-soft: rgba(82, 220, 184, .14); --accent-glow: rgba(82, 220, 184, .28);
  --card: rgba(255, 255, 255, .028); --card-border: 1px solid rgba(214, 240, 233, .08);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -24px rgba(0, 0, 0, .6);
  --glass: rgba(6, 14, 14, .62);
  --radius: 18px; --radius-sm: 12px;
  --cols: minmax(0, 1fr) minmax(0, 1.15fr); --col-gap: clamp(32px, 7vw, 104px);
  --text-s: 13px; --text-m: 15px; --text-l: 17px;
  background: var(--ground); color: var(--ink); font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
.shine-page h1, .shine-page h2, .shine-page h3 { font-family: var(--sans); font-weight: 500; margin: 0; }
.shine-page h1 { font-size: clamp(56px, 7.2vw, 108px); line-height: .95; letter-spacing: -.05em; text-wrap: balance; }
.shine-page h1 span { color: var(--accent); }
.shine-page h2 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.06; letter-spacing: -.04em; text-wrap: balance; }
.shine-page h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.015em; text-wrap: balance; }
:where(.shine-page) p { margin: 0; text-wrap: pretty; }
.shine-page a { color: inherit; }
.shine-page .pp-crumbs { font-family: var(--sans); font-size: var(--text-s); letter-spacing: 0; text-transform: none; margin-bottom: clamp(32px, 4vw, 48px); }
.shine-page .crumb { color: var(--ink-faint); text-decoration: none; }
.shine-page .crumb.active, .shine-page .crumb:hover { color: var(--ink); }
.shine-page .shine-button:focus-visible, .shine-page a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* One card recipe and one chip recipe for the whole page */
.shine-purchase, .shine-overview li, .shine-algo, .shine-figure, .shine-spec-list {
  background: var(--card); border: var(--card-border); box-shadow: var(--card-shadow);
}
.shine-host-list li, .shine-param-range {
  display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--rule-strong); color: var(--ink-dim); font: 500 var(--text-s)/1.3 var(--sans);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* ---------- Hero ---------- */
.shine-hero {
  padding: 40px 0 clamp(48px, 5vw, 72px);
  background: radial-gradient(70% 55% at 80% 0%, rgba(82, 220, 184, .08), transparent 70%), var(--ground);
}
.shine-heading {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, 1fr);
  gap: clamp(32px, 6vw, 88px); align-items: end; margin-bottom: clamp(36px, 4.5vw, 56px);
}
.shine-lede { max-width: 34ch; margin-top: 28px; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; letter-spacing: -.01em; color: var(--ink); }
.shine-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 14px; }
.shine-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--text-m); color: var(--ink-dim); text-decoration: none; transition: color .15s; }
.shine-links a span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule-strong); font-size: var(--text-s); transition: border-color .15s, transform .2s; }
.shine-links a:hover { color: var(--ink); }
.shine-links a:hover span { border-color: var(--accent); }

/* Offer card */
.shine-purchase { padding: clamp(24px, 2.4vw, 32px); border-radius: var(--radius); }
.shine-purchase > p { font-size: var(--text-m); line-height: 1.6; color: var(--ink-dim); }
.shine-purchase .shine-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: var(--ink); margin-bottom: 8px; }
.shine-price strong { font-size: 40px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.shine-price span { color: var(--ink-dim); font-size: var(--text-s); }
.shine-purchase .shine-unavailable { color: var(--ink); font-size: var(--text-l); margin-bottom: 8px; }
.shine-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.shine-button {
  display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px;
  border: 1px solid var(--rule-strong); border-radius: 999px; background: transparent; color: var(--ink);
  font: 500 var(--text-m)/1.3 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.shine-button:hover { border-color: var(--ink-dim); background: rgba(255, 255, 255, .04); }
.shine-button:active { transform: translateY(1px); }
.shine-button--primary { background: var(--accent); border-color: var(--accent); color: #05231b; box-shadow: 0 8px 24px -10px var(--accent-glow); }
.shine-button--primary:hover { background: #74e6c8; border-color: #74e6c8; }

/* Product shot */
.shine-interface { margin: 0; }
.shine-interface img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(214, 240, 233, .08); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8), 0 0 80px -20px rgba(82, 220, 184, .12); }
.shine-interface figcaption { padding-top: 14px; color: var(--ink-faint); font-size: var(--text-s); }

.shine-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 28px 0 0; padding: 0; }
.shine-overview li { padding: 20px 22px 22px; border-radius: var(--radius-sm); }
.shine-overview strong { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; font-weight: 500; line-height: 1.35; }
.shine-overview strong::before { content: ''; flex: none; width: 7px; height: 7px; margin-top: .45em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.shine-overview span { display: block; margin-top: 8px; color: var(--ink-dim); font-size: 14px; line-height: 1.5; text-wrap: pretty; }

/* ---------- Sections ---------- */
.shine-section { padding: clamp(48px, 7vw, 96px) 0; }
.shine-split, .shine-section-head { display: grid; grid-template-columns: var(--cols); gap: var(--col-gap); }
.shine-section-head { align-items: start; margin-bottom: clamp(36px, 4vw, 52px); }
/* One intro style: top-aligned to the heading, first paragraph in ink, the rest dim */
.shine-section-head > p, .shine-prose p { max-width: 58ch; font-size: 18px; line-height: 1.65; }
.shine-section-head > p, .shine-prose { padding-top: .5em; }
.shine-prose { align-self: start; }
.shine-prose p + p { margin-top: 18px; color: var(--ink-dim); }
.shine-prose a { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px; }
.shine-prose a:hover { color: var(--accent); text-decoration-color: currentColor; }
.shine-side-note { max-width: 40ch; margin-top: 20px; color: var(--ink-dim); font-size: var(--text-l); line-height: 1.6; }
.shine-note { max-width: 72ch; margin-top: 20px; color: var(--ink-faint); font-size: var(--text-s); line-height: 1.7; }

.shine-intro { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 4vw, 56px); }
.shine-intro-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.15fr); gap: var(--col-gap); align-items: center; }
.shine-intro-text .shine-prose { margin-top: 28px; padding-top: 0; }
.shine-photo { margin: 0; }
.shine-intro-grid .shine-photo img { aspect-ratio: 1 / 1; }
.shine-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }

/* Algorithms: cards with a small scope screen */
.shine-algo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shine-algo { padding: 12px 12px 24px; border-radius: var(--radius); }
.shine-algo-viz {
  height: 96px; margin-bottom: 20px; padding: 16px 16px 12px; border-radius: 10px;
  background: repeating-linear-gradient(0deg, rgba(214, 240, 233, .04) 0 1px, transparent 1px 20px), var(--night-deep);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6);
}
.shine-algo-viz .impulse { display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.shine-algo-viz .impulse span { flex: 1; min-height: 1px; border-radius: 1px 1px 0 0; background: linear-gradient(180deg, #7ae8cb, rgba(82, 220, 184, .4)); }
.shine-algo h3, .shine-algo p { padding: 0 12px; }
.shine-algo p { margin-top: 8px; color: var(--ink-dim); font-size: var(--text-m); line-height: 1.6; }

/* Figures: screenshot cards */
.shine-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shine-figures--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shine-figure { margin: 0; padding: 12px 12px 24px; border-radius: var(--radius); }
.shine-figures--feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shine-figures--feature > :first-child { grid-column: 1 / -1; }
.shine-figure-frame { position: relative; overflow: hidden; aspect-ratio: var(--ar); border-radius: 10px; background: #15191b; }
.shine-figure-frame img { position: absolute; display: block; max-width: none; height: auto; width: var(--w); left: var(--l); top: var(--t); }
/* Side-by-side crops of different shapes: column widths follow each crop's ratio, so both share one height and zoom */
.shine-figures--fit { display: flex; align-items: stretch; }
.shine-figures--fit > .shine-figure { flex: var(--fr) 1 0; min-width: 0; }
.shine-figure figcaption { padding: 20px 12px 0; }
.shine-figure figcaption p { margin-top: 8px; color: var(--ink-dim); font-size: var(--text-m); line-height: 1.6; }

/* Controls: one glass card holding a ruled list, over the video backdrop */
.shine-page .shine-controls { scroll-margin-top: 90px; }
.shine-page .shine-controls:has(.shine-param-list--two) { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(48px, 5vw, 72px); }
.shine-page .shine-controls .shine-section-head { text-shadow: 0 1px 12px #020706; }
.shine-page .shine-controls .shine-section-head > p { color: #d3ded9; }
.shine-param-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); column-gap: 40px;
  margin: 0; padding: 0 32px; overflow: hidden; border-radius: var(--radius);
  background: var(--glass); border: 1px solid rgba(214, 240, 233, .1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
}
.shine-param-list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Rules between rows: each row's top border; the first row's is clipped by the card */
.shine-param-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 6px 12px; margin-top: -1px; padding: 20px 0; border-top: 1px solid var(--rule-strong); }
.shine-param-list dt { display: flex; align-items: center; min-height: 28px; font: 600 12.5px/1.3 var(--mono); letter-spacing: .06em; }
.shine-param-list dd { grid-column: 1 / -1; margin: 0; color: #c3d0cc; font-size: var(--text-m); line-height: 1.5; }
.shine-param-list dd.shine-param-range { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; font-size: var(--text-s); line-height: 1.3; color: var(--ink); }

/* Hosts and specification over the parallax starfield */
.shine-hosts { position: relative; isolation: isolate; overflow: hidden; }
.shine-hosts-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.shine-hosts-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 45% center; }
.shine-hosts.parallax-active .shine-hosts-backdrop img {
  position: absolute;
  top: calc(-1 * var(--shine-parallax-overlap, 0px));
  height: calc(100% + 2 * var(--shine-parallax-overlap, 0px));
  transform: translate3d(0, var(--shine-parallax-shift, 0px), 0);
  will-change: transform;
}
.shine-hosts { background: var(--ground); }
.shine-hosts-backdrop::after, .shine-page .shine-controls-backdrop::after { content: ''; position: absolute; inset: 0; }
.shine-hosts-backdrop::after {
  background:
    linear-gradient(180deg, var(--ground) 0, rgba(10, 18, 19, 0) 140px, rgba(10, 18, 19, 0) calc(100% - 140px), var(--ground) 100%),
    linear-gradient(110deg, rgba(4, 14, 18, .66), rgba(4, 14, 18, .32) 60%, rgba(4, 14, 18, .55));
}
.shine-page .shine-controls { background: var(--ground); }
.shine-page .shine-controls-backdrop::after {
  background:
    linear-gradient(180deg, var(--ground) 0, rgba(10, 18, 19, 0) 140px, rgba(10, 18, 19, 0) calc(100% - 140px), var(--ground) 100%),
    linear-gradient(180deg, rgba(3, 8, 7, .4), rgba(3, 8, 7, .18) 40%, rgba(3, 8, 7, .5));
}
.shine-hosts h2 { text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.shine-host-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 28px 0 0; padding: 0; max-width: 600px; }
.shine-hosts .shine-host-list li { padding: 6px 13px; color: var(--ink); background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.shine-spec-list { margin: 0; padding: 4px 28px; border-radius: var(--radius); align-self: start; }
.shine-spec-list > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 17px 0; font-size: var(--text-m); }
.shine-spec-list > div + div { border-top: 1px solid var(--rule); }
.shine-spec-list dt { font-weight: 500; }
.shine-spec-list dd { margin: 0; color: var(--ink-dim); line-height: 1.6; text-wrap: pretty; }
.shine-spec-list dt { white-space: nowrap; }
.shine-hosts .shine-spec-list { margin-top: .5em; background: var(--glass); border-color: rgba(214, 240, 233, .12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.shine-hosts .shine-spec-list > div + div { border-color: var(--rule-strong); }
.shine-hosts .shine-spec-list dd { color: #c3d0cc; }
.shine-layouts .shine-spec-list { margin-top: .5em; }
.shine-layouts .shine-split { row-gap: 32px; }
.shine-layouts .shine-note { grid-column: 1 / -1; margin-top: 0; max-width: 72ch; font-size: var(--text-m); line-height: 1.65; color: var(--ink-dim); }

/* Close */
.shine-licence { padding-bottom: clamp(48px, 5vw, 72px); }
.shine-close { padding-top: 0; }
.shine-close-inner {
  display: grid; grid-template-columns: var(--cols); gap: 28px var(--col-gap); align-items: start;
  padding: clamp(36px, 4.5vw, 64px); border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(55% 120% at 0% 0%, rgba(82, 220, 184, .16), transparent 70%), #0f2120;
  border: 1px solid rgba(82, 220, 184, .14); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .8);
}
.shine-close-body { padding-top: .5em; }
.shine-close-body p { max-width: 44ch; font-size: var(--text-l); line-height: 1.6; color: var(--ink-dim); }
.shine-close-body .shine-actions { margin-top: 24px; }
.shine-close-body .shine-button { flex: 0 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .shine-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shine-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* Product shot straight after the intro, then the offer */
  .shine-hero > .wrap { display: flex; flex-direction: column; }
  .shine-heading { display: contents; }
  .shine-intro-block { order: 1; margin-bottom: 28px; }
  .shine-purchase { order: 2; margin-bottom: 28px; }
  .shine-interface { order: 3; }
  .shine-overview { order: 4; }
  .shine-split, .shine-section-head, .shine-close-inner, .shine-intro-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .shine-intro-grid .shine-photo { order: 2; margin-top: 8px; }
  .shine-param-list--two { grid-template-columns: minmax(0, 1fr); }
  .shine-algo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shine-figures, .shine-figures--two, .shine-figures--feature { grid-template-columns: minmax(0, 1fr); }
  .shine-figures--fit { flex-direction: column; }
}
@media (max-width: 560px) {
  .shine-page h1 { font-size: 56px; }
  .shine-hero { padding-top: 24px; }
  .shine-page .pp-crumbs { margin-bottom: 32px; }
  .shine-lede { margin-top: 18px; font-size: 18px; }
  .shine-links { gap: 0 20px; margin-top: 8px; }
  .shine-links a { min-height: 40px; }
  .shine-intro-block { margin-bottom: 20px; }
  .shine-section-head > p, .shine-prose p { font-size: 16px; }
  .shine-section-head > p, .shine-prose, .shine-close-body { padding-top: 0; }
  /* Full-bleed product shot */
  .shine-interface { margin: 0 calc(var(--gutter) * -1); }
  .shine-interface img { border-radius: 0; border-left: 0; border-right: 0; }
  .shine-interface figcaption { padding: 12px var(--gutter) 0; }
  .shine-overview { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 20px; }
  .shine-overview li { padding: 14px 0; background: none; border: 0; box-shadow: none; border-radius: 0; border-top: 1px solid var(--rule); }
  .shine-overview span { margin-top: 4px; padding-left: 17px; }
  .shine-photo img { aspect-ratio: 4 / 3; }
  .shine-algo-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .shine-algo { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; align-items: start; padding: 10px; }
  .shine-algo-viz { grid-row: 1 / 3; height: 76px; margin: 0; padding: 10px 8px 6px; border-radius: 8px; }
  .shine-algo-viz .impulse { gap: 0; }
  .shine-algo-viz .impulse span { border-radius: 0; }
  .shine-algo h3, .shine-algo p { padding: 0; }
  .shine-algo h3 { margin-top: 4px; font-size: 16px; }
  .shine-algo p { margin-top: 4px; font-size: 14px; line-height: 1.5; }
  .shine-figure { padding: 8px 8px 18px; }
  .shine-figure-frame { aspect-ratio: var(--mar, var(--ar)); }
  .shine-figure-frame img { width: var(--mw, var(--w)); left: var(--ml, var(--l)); top: var(--mt, var(--t)); }
  .shine-figure figcaption { padding: 16px 8px 0; }
  .shine-param-list { padding: 0 16px; }
  .shine-param-list > div { padding: 11px 0; gap: 4px 12px; }
  .shine-param-list dd { font-size: 14px; }
  .shine-spec-list { padding: 4px 18px; }
  .shine-spec-list > div { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 14px 0; font-size: 14px; }
  .shine-layouts .shine-spec-list > div { grid-template-columns: 128px minmax(0, 1fr); gap: 12px; }
  .shine-intro-grid .shine-photo img { aspect-ratio: 4 / 3; }
  .shine-host-list { gap: 6px; }
  .shine-hosts .shine-host-list li { padding: 5px 11px; }
  .shine-actions, .shine-button { width: 100%; }
  .shine-close-body .shine-button { flex: 1 1 auto; }
  .shine-close-inner { padding: 32px 22px; border-radius: var(--radius); }
}
@media (prefers-reduced-motion: reduce) {
  .shine-hosts.parallax-active .shine-hosts-backdrop img { transform: none; will-change: auto; }
  .shine-button, .shine-links a span { transition: none; }
}
