/* Clips to Scripts — shared tokens and components (theme + /app plugin) */
:root {
  --c2s-green: #00833e;
  --c2s-green-hover: #009a49;
  --c2s-green-pressed: #006d33;
  --c2s-bg: #141414;
  --c2s-panel: #1e1e1e;
  --c2s-text: #ececec;
  --c2s-muted: #888;
  --c2s-border: #333;
  --c2s-error: #ff9800;
  --c2s-ok: #a5d6a7;
  --c2s-radius: 6px;
  --c2s-font: system-ui, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  /* Marketing light surfaces */
  --c2s-marketing-bg: #f7f7f7;
  --c2s-marketing-surface: #ffffff;
  --c2s-marketing-text: #1a1a1a;
  --c2s-marketing-muted: #555;
}

* {
  box-sizing: border-box;
}

form {
  margin: 0;
}

/* --- App shell (dark) --- */
body.c2s-app {
  margin: 0;
  font-family: var(--c2s-font);
  background: var(--c2s-bg);
  color: var(--c2s-text);
  line-height: 1.5;
}

.c2s-app .wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

@media (min-width: 768px) {
  .c2s-app .wrap {
    max-width: 720px;
    padding: 2.5rem 1.5rem 4rem;
  }
}

.c2s-app h1 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

.c2s-app h2 {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.c2s-app .lead {
  color: var(--c2s-muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.c2s-app a {
  color: var(--c2s-green);
}

/* App portal header (dark marketing-style bar) */
.c2s-app-header {
  background: var(--c2s-panel);
  border-bottom: 1px solid var(--c2s-border);
  margin: 0 0 1.5rem;
  padding: 0.75rem 1.25rem;
}

.c2s-app-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.c2s-app-header__bar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.c2s-app-brand a {
  color: var(--c2s-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.c2s-app-brand a:hover {
  color: #fff;
}

.c2s-app-brand {
  flex: 0 0 auto;
  max-width: 325px;
  min-width: 0;
}

.c2s-app-brand__link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  min-width: 0;
  max-width: 100%;
}

.c2s-app-brand__logo--full {
  width: 325px;
  max-width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 325 / 57;
  object-fit: contain;
  display: block;
}

.c2s-app-brand__logo--badge {
  display: none;
  width: 57px;
  height: 57px;
  object-fit: contain;
}

.c2s-app-menu-toggle__icon {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.c2s-app .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.c2s-app-header__nav {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
  margin-left: auto;
  font-size: 0.95rem;
  min-width: 0;
}

.c2s-app-header__nav a {
  color: var(--c2s-muted);
  text-decoration: none;
  font-weight: 500;
}

.c2s-app-header__nav a:hover {
  color: var(--c2s-text);
}

.c2s-app-header__signout {
  background: var(--c2s-green);
  color: #fff;
  border: 1px solid var(--c2s-green-hover);
  border-radius: 4px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.3;
}

.c2s-app-header__signout:hover {
  background: var(--c2s-green-hover);
}

.c2s-app .c2s-card-subheading {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.1rem;
}

.c2s-app .c2s-referral-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.c2s-app .c2s-referral-code-line {
  margin: 0;
  flex: 1 1 12rem;
}

.c2s-app .c2s-referral-code-value {
  color: var(--c2s-green);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.c2s-app .c2s-referral-notice {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--c2s-green);
  border-radius: var(--c2s-radius);
  background: #17261a;
}

.c2s-app .c2s-referral-notice__title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--c2s-ok);
  font-size: 0.95rem;
}

.c2s-app .c2s-referral-notice__body {
  margin: 0;
}

.c2s-app .c2s-referral-link-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  margin-top: 0.5rem;
}

.c2s-app .c2s-referral-link-form input {
  flex: 1 1 10rem;
  min-width: 0;
}

.c2s-app .c2s-referral-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.c2s-app .c2s-referral-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--c2s-border);
  font-size: 0.95rem;
}

.c2s-app .c2s-referral-list .c2s-referral-bonus {
  margin-top: 0.25rem;
  font-size: 0.88rem;
}

.c2s-app .c2s-referral-list li:last-child {
  border-bottom: none;
}

.c2s-app .c2s-referral-empty {
  margin: 0.5rem 0 0;
  font-style: italic;
}

.c2s-app .c2s-usage-empty {
  margin-top: 1rem;
  font-style: italic;
}

.c2s-app .c2s-usage-toolbar {
  margin-bottom: 1rem;
}

.c2s-app .c2s-usage-toolbar label {
  margin-top: 0.75rem;
}

.c2s-app .c2s-usage-cap-note {
  margin: 0;
  line-height: 1.45;
}

.c2s-app .c2s-usage-month {
  margin-bottom: 1rem;
}

.c2s-app .c2s-usage-month__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: #fff;
}

.c2s-app .c2s-usage-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.c2s-app .c2s-usage-list__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--c2s-border);
}

.c2s-app .c2s-usage-list__row:last-child {
  border-bottom: none;
}

.c2s-app .c2s-usage-list__main {
  min-width: 0;
  flex: 1 1 auto;
}

.c2s-app .c2s-usage-list__label {
  font-weight: 600;
  font-size: 0.95rem;
}

.c2s-app .c2s-usage-list__meta {
  margin-top: 0.2rem;
  font-size: 0.85rem;
}

.c2s-app .c2s-usage-list__delta {
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.c2s-app .c2s-usage-list__delta--credit {
  color: var(--c2s-ok);
}

.c2s-app .c2s-usage-list__delta--debit {
  color: var(--c2s-error);
}

.c2s-app .c2s-usage-list__delta--neutral {
  color: var(--c2s-muted);
}

.c2s-app input[type="file"].c2s-file-input {
  padding: 0.5rem 0;
  border: none;
  background: transparent;
}

.c2s-app input[type="file"].c2s-file-input::file-selector-button {
  background: var(--c2s-green);
  color: #fff;
  border: 1px solid var(--c2s-green-hover);
  border-radius: 4px;
  padding: 0.45rem 0.9rem;
  margin-right: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.c2s-app input[type="file"].c2s-file-input::file-selector-button:hover {
  background: var(--c2s-green-hover);
}

.c2s-app input[type="file"].c2s-file-input::-webkit-file-upload-button {
  background: var(--c2s-green);
  color: #fff;
  border: 1px solid var(--c2s-green-hover);
  border-radius: 4px;
  padding: 0.45rem 0.9rem;
  margin-right: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.c2s-app input[type="file"].c2s-file-input.c2s-file-input--panel::file-selector-button {
  background: var(--c2s-panel);
  color: var(--c2s-muted);
  border: 1px solid var(--c2s-border);
  font-weight: 500;
}

.c2s-app input[type="file"].c2s-file-input.c2s-file-input--panel::file-selector-button:hover {
  background: var(--c2s-panel);
  color: var(--c2s-text);
}

.c2s-app input[type="file"].c2s-file-input.c2s-file-input--panel::-webkit-file-upload-button {
  background: var(--c2s-panel);
  color: var(--c2s-muted);
  border: 1px solid var(--c2s-border);
  font-weight: 500;
}

.c2s-app .c2s-referral-notice--granted {
  border-color: var(--c2s-border);
  background: var(--c2s-panel);
}

.c2s-app .c2s-referral-notice--granted .c2s-referral-notice__title {
  color: var(--c2s-text);
}

.c2s-card,
.c2s-app .card {
  background: var(--c2s-panel);
  border: 1px solid var(--c2s-border);
  border-radius: var(--c2s-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.c2s-app label {
  display: block;
  font-size: 0.85rem;
  color: var(--c2s-muted);
  margin-bottom: 0.35rem;
}

.c2s-app input[type="text"],
.c2s-app input[type="email"],
.c2s-app input[type="password"],
.c2s-app input[type="file"],
.c2s-app select,
.c2s-app textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--c2s-border);
  border-radius: 4px;
  background: #101010;
  color: var(--c2s-text);
  font-size: 0.95rem;
  font-family: inherit;
}

.c2s-app textarea {
  min-height: 120px;
  resize: vertical;
}

.c2s-app button,
.c2s-app .btn {
  display: inline-block;
  background: var(--c2s-green);
  color: #fff;
  border: 1px solid var(--c2s-green-hover);
  border-radius: 4px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.c2s-app button:hover,
.c2s-app .btn:hover {
  background: var(--c2s-green-hover);
}

.c2s-app button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.c2s-app button.is-busy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.c2s-app .btn-spinner {
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: c2s-spin 0.65s linear infinite;
  display: none;
}

.c2s-app button.is-busy .btn-spinner {
  display: block;
}

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

.c2s-app .c2s-section-title {
  margin: 1.75rem 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.c2s-app .c2s-section-lead {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.c2s-app .c2s-portal-row {
  margin-top: 1.25rem;
}

.c2s-app .c2s-credits-legal-notice {
  margin-top: 1.25rem;
}

.c2s-app .c2s-credits-referral {
  margin-bottom: 1.25rem;
}

.c2s-app .c2s-credits-referral .c2s-referral-notice {
  margin-top: 0;
}

/* Credits page: stacked sections (tablet/mobile); tabs from 1024px (matches app nav) */
.c2s-app .c2s-billing-tabs__nav {
  display: none;
}

.c2s-app .c2s-billing-tabs__panels {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.c2s-app .c2s-billing-tabs__panel {
  display: block;
}

.c2s-app .c2s-billing-tabs__panel-heading .c2s-section-title {
  margin-top: 1.75rem;
}

.c2s-app .c2s-billing-tabs__panel:first-child .c2s-billing-tabs__panel-heading .c2s-section-title {
  margin-top: 0.25rem;
}

@media (min-width: 1024px) {
  .c2s-app .c2s-billing-tabs:not(.c2s-billing-tabs--stacked) .c2s-billing-tabs__nav {
    display: flex;
    gap: 0.35rem;
    margin: 0 0 1rem;
    padding: 0.35rem;
    background: var(--c2s-panel);
    border: 1px solid var(--c2s-border);
    border-radius: var(--c2s-radius);
  }

  .c2s-app .c2s-billing-tabs:not(.c2s-billing-tabs--stacked) .c2s-billing-tabs__tab {
    flex: 1 1 0;
    min-height: 2.75rem;
    margin: 0;
    padding: 0.55rem 0.75rem;
    background: var(--c2s-panel);
    color: var(--c2s-muted);
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
  }

  .c2s-app .c2s-billing-tabs:not(.c2s-billing-tabs--stacked) .c2s-billing-tabs__tab:hover {
    color: var(--c2s-text);
  }

  .c2s-app .c2s-billing-tabs:not(.c2s-billing-tabs--stacked) .c2s-billing-tabs__tab[aria-selected="true"] {
    color: var(--c2s-text);
    border-color: var(--c2s-border);
    box-shadow: inset 0 0 0 1px var(--c2s-border);
  }

  .c2s-app .c2s-billing-tabs:not(.c2s-billing-tabs--stacked) .c2s-billing-tabs__panel-heading .c2s-section-title {
    display: none;
  }

  .c2s-app .c2s-billing-tabs:not(.c2s-billing-tabs--stacked) .c2s-billing-tabs__panel-heading .c2s-section-lead {
    margin-top: 0;
    margin-bottom: 1rem;
  }

  .c2s-app .c2s-billing-tabs:not(.c2s-billing-tabs--stacked) .c2s-billing-tabs__panel:not(.is-active) {
    display: none;
  }

  .c2s-app .c2s-billing-tabs:not(.c2s-billing-tabs--stacked) .c2s-billing-tabs__panel.is-active {
    display: block;
  }
}

.c2s-app .c2s-packs-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--c2s-muted);
  font-size: 0.95rem;
}

.c2s-app .c2s-inline-spinner {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--c2s-green);
  border-radius: 50%;
  animation: c2s-spin 0.65s linear infinite;
}

.c2s-app button.secondary {
  background: transparent;
  color: var(--c2s-text);
  border-color: var(--c2s-border);
}

.c2s-app button.linklike {
  display: inline;
  background: none;
  border: none;
  color: var(--c2s-green);
  padding: 0;
  font-weight: 400;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
}

.c2s-app button.linklike:hover {
  background: none;
  text-decoration: underline;
}

/* After generic .c2s-app button rules so display/background win on desktop */
.c2s-app .c2s-app-header button.c2s-app-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 1px solid var(--c2s-border);
  border-radius: 4px;
  color: var(--c2s-text);
  cursor: pointer;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: 0;
}

.c2s-app .c2s-app-header button.c2s-app-menu-toggle:hover {
  background: transparent;
  color: var(--c2s-text);
  border-color: var(--c2s-muted);
}

/* Tablet + mobile: badge logo and collapsible nav (desktop inline nav at 1024px+) */
@media (max-width: 1023px) {
  .c2s-app-header {
    padding: 0.65rem 1rem;
  }

  .c2s-app-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .c2s-app-header__bar {
    width: 100%;
    justify-content: space-between;
  }

  .c2s-app-brand {
    max-width: none;
  }

  .c2s-app-brand__logo--full {
    display: none;
  }

  .c2s-app-brand__logo--badge {
    display: block;
  }

  .c2s-app .c2s-app-header button.c2s-app-menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .c2s-app-header__nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0.35rem;
    border-top: 1px solid var(--c2s-border);
  }

  .c2s-app-header--menu-open .c2s-app-header__nav {
    display: flex;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .c2s-app-header__nav a {
    padding: 0.5rem 0.25rem;
  }

  .c2s-app-header__signout {
    width: 100%;
    margin-top: 0.35rem;
    text-align: center;
  }
}

.c2s-app .forgot-row {
  margin: -0.35rem 0 0.85rem;
}

.c2s-app #forgot-form button[type="submit"] {
  display: block;
  margin-bottom: 0;
}

.c2s-app #forgot-form .forgot-row {
  margin: 0;
  padding-top: 1.5rem;
}

.c2s-app .c2s-turnstile {
  margin: 0.75rem 0 0.85rem;
  min-height: 65px;
}

.c2s-app .msg {
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.c2s-app .msg.error {
  color: var(--c2s-error);
}

.c2s-app .msg.ok {
  color: var(--c2s-ok);
}

.c2s-app .pack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 480px) {
  .c2s-app .pack {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.c2s-app .pack-title {
  font-weight: 600;
}

.c2s-app .pack-meta {
  font-size: 0.85rem;
  color: var(--c2s-muted);
}

.c2s-app .hidden {
  display: none !important;
}

body.c2s-app.c2s-protected:not(.c2s-app-content-ready) .wrap {
  visibility: hidden;
}

body.c2s-app.c2s-protected.c2s-app-content-ready .wrap {
  visibility: visible;
}

.c2s-app-page-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 12rem;
  margin: 0 auto;
  max-width: 640px;
  padding: 2rem 1.25rem;
  color: var(--c2s-muted);
  font-size: 0.95rem;
}

body.c2s-app.c2s-protected:not(.c2s-app-content-ready) .c2s-app-page-loader {
  display: flex;
}

body.c2s-app.c2s-protected.c2s-app-content-ready .c2s-app-page-loader {
  display: none;
}

body.c2s-app.c2s-signing-out .wrap,
body.c2s-app.c2s-protected.c2s-app-content-ready.c2s-signing-out .wrap,
body.c2s-app.c2s-signin-pending.c2s-signin-ready.c2s-signing-out .wrap {
  visibility: hidden;
}

body.c2s-app.c2s-signing-out .c2s-app-page-loader {
  display: none !important;
}

.c2s-signout-status,
.c2s-auth-status {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  font-size: 1rem;
  color: var(--c2s-muted, #9ca3af);
  pointer-events: none;
}

.c2s-signout-status {
  display: flex;
}

/* Support */
.c2s-ticket-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.c2s-ticket-list li {
  margin-bottom: 0.5rem;
}

.c2s-ticket-list a {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--c2s-panel);
  border: 1px solid var(--c2s-border);
  border-radius: var(--c2s-radius);
  text-decoration: none;
  color: var(--c2s-text);
}

.c2s-ticket-list a:hover {
  border-color: var(--c2s-green);
}

.c2s-status {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: #2b2b2b;
  color: var(--c2s-muted);
}

.c2s-thread {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.c2s-message {
  padding: 1rem;
  border-radius: var(--c2s-radius);
  border: 1px solid var(--c2s-border);
}

.c2s-message--customer {
  background: #101010;
}

.c2s-message--staff {
  background: #1a2920;
  border-color: #24352b;
}

.c2s-message-meta {
  font-size: 0.8rem;
  color: var(--c2s-muted);
  margin-bottom: 0.5rem;
}

.c2s-attachments {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.c2s-attachments a {
  display: inline-block;
  margin-right: 0.75rem;
}

.c2s-back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Marketing (block theme front-end) */
body:not(.c2s-app) {
  font-family: var(--c2s-font);
  color: var(--c2s-marketing-text);
  background: var(--c2s-marketing-bg);
  line-height: 1.6;
}

.c2s-site-header {
  background: var(--c2s-marketing-surface);
  border-bottom: 1px solid #e0e0e0;
  padding: 0.75rem 1.25rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.c2s-site-header__inner {
  max-width: 1100px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem !important;
  box-sizing: border-box;
}

.c2s-site-header__inner > .c2s-site-header__nav {
  margin-block: 0;
}

.c2s-site-header__bar {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.c2s-site-header a {
  color: var(--c2s-marketing-text);
  text-decoration: none;
  font-weight: 600;
}

.c2s-site-header__nav {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
  margin-left: auto;
  font-size: 0.95rem;
  min-width: 0;
}

.c2s-site-header__nav a:not(.c2s-btn-primary) {
  font-weight: 500;
  color: var(--c2s-marketing-muted);
}

.c2s-site-header__nav a:not(.c2s-btn-primary):hover {
  color: var(--c2s-marketing-text);
}

.c2s-site-header .c2s-btn-primary {
  display: inline-block;
  background: var(--c2s-green);
  color: #fff !important;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid var(--c2s-green-hover);
}

.c2s-site-header .c2s-btn-primary:hover {
  background: var(--c2s-green-hover);
  color: #fff !important;
}

/* Home only: portal-style header (matches /app/ bar) */
.c2s-site-header.c2s-site-header--portal {
  background: var(--c2s-panel);
  border-bottom: 1px solid var(--c2s-border);
}

.c2s-site-header.c2s-site-header--portal a {
  color: var(--c2s-text);
}

.c2s-site-header.c2s-site-header--portal .c2s-site-header__nav a:not(.c2s-btn-primary) {
  color: var(--c2s-muted);
}

.c2s-site-header.c2s-site-header--portal .c2s-site-header__nav a:not(.c2s-btn-primary):hover {
  color: #fff;
}

body:not(.c2s-app) .c2s-site-header.c2s-site-header--portal button.c2s-site-menu-toggle {
  border-color: var(--c2s-border);
  color: var(--c2s-text);
}

body:not(.c2s-app) .c2s-site-header.c2s-site-header--portal button.c2s-site-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #555;
}

@media (max-width: 1023px) {
  .c2s-site-header.c2s-site-header--portal .c2s-site-header__nav {
    border-top-color: var(--c2s-border);
  }
}

.c2s-site-menu-toggle__icon {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

body:not(.c2s-app) .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

body:not(.c2s-app) .c2s-site-header button.c2s-site-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: var(--c2s-marketing-text);
  cursor: pointer;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: 0;
}

body:not(.c2s-app) .c2s-site-header button.c2s-site-menu-toggle:hover {
  background: #f5f5f5;
  border-color: #aaa;
}

.c2s-marketing-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

@media (min-width: 768px) {
  .c2s-marketing-main {
    padding: 3rem 1.5rem 4rem;
  }
}

.c2s-site-footer {
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: 0.85rem;
  color: var(--c2s-marketing-muted);
  border-top: 1px solid #e0e0e0;
  background: var(--c2s-marketing-surface);
}

/* Site brand (text today; optional logo via .has-logo on .c2s-site-brand) */
.c2s-site-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(325px, 100%);
}

.c2s-site-brand__link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  min-width: 0;
  max-width: 100%;
}

.c2s-site-brand__logo--full {
  display: none;
  width: min(325px, 100%);
  max-width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 325 / 57;
  object-fit: contain;
}

.c2s-site-brand__logo--badge {
  display: none;
  width: 57px;
  height: 57px;
  object-fit: contain;
}

.c2s-site-brand.has-logo .c2s-site-brand__logo--full {
  display: block;
}

.c2s-site-brand.has-logo .c2s-site-brand__text {
  display: none;
}

.c2s-site-brand__text {
  margin: 0;
  font-size: 1.05rem;
}

.c2s-nav-account {
  font-weight: 600 !important;
  color: var(--c2s-marketing-text) !important;
}

/* Tablet + mobile: badge logo and collapsible marketing nav (desktop inline at 1024px+) */
@media (max-width: 1023px) {
  .c2s-site-header {
    padding: 0.65rem 1rem;
  }

  .c2s-site-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
  }

  .c2s-site-header__bar {
    width: 100%;
    justify-content: space-between;
  }

  .c2s-site-brand {
    max-width: none;
  }

  .c2s-site-brand.has-logo .c2s-site-brand__logo--full {
    display: none;
  }

  .c2s-site-brand.has-logo .c2s-site-brand__logo--badge {
    display: block;
  }

  body:not(.c2s-app) .c2s-site-header button.c2s-site-menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .c2s-site-header__nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0.35rem;
    border-top: 1px solid #e0e0e0;
  }

  .c2s-site-header--menu-open .c2s-site-header__nav {
    display: flex;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .c2s-site-header__nav a:not(.c2s-btn-primary) {
    padding: 0.5rem 0.25rem;
  }

  .c2s-site-header .c2s-btn-primary {
    width: 100%;
    margin-top: 0.35rem;
    text-align: center;
  }
}

/* Home hero banner (image + copy; below portal header) */
.c2s-hero-banner {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem clamp(2.75rem, 7vw, 4.5rem);
  box-sizing: border-box;
  background-color: #141414;
  background-image: linear-gradient(
      105deg,
      rgba(10, 10, 10, 0.52) 0%,
      rgba(10, 10, 10, 0.32) 10%,
      rgba(10, 10, 10, 0.1) 100%
    ),
    url("../images/clips-to-scripts-hero-bg.jpg");
  background-size: cover;
  background-position: center;
  color: var(--c2s-text);
}

.c2s-hero-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

/* Beat core layout inline CSS (.wp-container-core-group-* > *) on hero copy blocks */
.c2s-hero-banner__inner > .c2s-hero-banner__title,
.c2s-hero-banner__inner > .c2s-hero-banner__lead,
.c2s-hero-banner__inner > .c2s-hero-banner__actions {
  margin-left: 0 !important;
  margin-right: auto !important;
  max-width: 100% !important;
}

.c2s-hero-banner__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 1rem;
  color: #fff;
}

.c2s-hero-banner__lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1.5rem;
}

.c2s-hero-banner__actions {
  margin: 0;
  justify-content: flex-start !important;
}

@media (min-width: 1024px) {
  .c2s-hero-banner {
    padding: 4.25rem 1.25rem 5rem;
    background-position: 68% center;
  }

  .c2s-hero-banner__inner {
    max-width: 1040px;
  }

  .c2s-hero-banner__inner > .c2s-hero-banner__title,
  .c2s-hero-banner__inner > .c2s-hero-banner__lead,
  .c2s-hero-banner__inner > .c2s-hero-banner__actions {
    max-width: 66.666% !important;
  }

  .c2s-hero-banner__title {
    font-size: 3rem;
    margin-bottom: 1.125rem;
  }

  .c2s-hero-banner__lead {
    margin-bottom: 1.75rem;
  }
}

.c2s-hero-banner .c2s-btn-secondary .wp-block-button__link {
  border-radius: 4px;
  font-weight: 600;
  background: #d4d4d4 !important;
  color: #1a1a1a !important;
  border: 1px solid #bdbdbd !important;
}

.c2s-hero-banner .c2s-btn-secondary .wp-block-button__link:hover {
  background: #e3e3e3 !important;
  color: #1a1a1a !important;
  border-color: #a8a8a8 !important;
}

body:not(.c2s-app) .c2s-site-header.c2s-site-header--portal {
  max-width: none !important;
  width: 100%;
}

.c2s-marketing-main--home {
  padding-top: 2rem;
}

.c2s-home-preview {
  margin-top: 0;
  margin-bottom: 2rem;
}

/* Legacy centered hero (other templates) */
.c2s-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.c2s-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.c2s-hero__lead {
  font-size: 1.125rem;
  color: var(--c2s-marketing-muted);
  margin: 0 auto 1.25rem;
  max-width: 36rem;
}

.c2s-hero__badge {
  display: inline-block;
  margin: 0 auto 1.5rem;
  padding: 0.65rem 1rem;
  background: var(--c2s-marketing-surface);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.95rem;
}

.c2s-hero__actions {
  justify-content: center;
}

.c2s-feature-grid {
  margin-bottom: 2.5rem;
}

.c2s-feature-grid > h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.c2s-feature-grid__cols {
  gap: 1.25rem;
}

.c2s-marketing-card {
  background: var(--c2s-marketing-surface);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
  height: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.c2s-marketing-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.c2s-marketing-card--accent {
  border-color: var(--c2s-green);
  box-shadow: 0 0 0 1px rgba(0, 131, 62, 0.12);
}

.c2s-download-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 0;
}

.c2s-download-card {
  display: flex;
  flex-direction: column;
  background: var(--c2s-marketing-surface);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.c2s-marketing-prose .c2s-download-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

.c2s-download-card > p:not(.c2s-download-card__action) {
  margin: 0 0 1.25rem;
}

.c2s-download-card__action {
  margin: auto 0 0;
}

.c2s-marketing-prose .c2s-download-card__button {
  display: inline-block;
  background: var(--c2s-green);
  color: #fff;
  border-radius: 4px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.c2s-marketing-prose .c2s-download-card__button:hover {
  background: var(--c2s-green-hover);
  color: #fff;
}

.c2s-download-card__soon {
  color: var(--c2s-marketing-muted);
  font-weight: 600;
}

@media (max-width: 781px) {
  .c2s-download-cards {
    grid-template-columns: 1fr;
  }
}

.c2s-editable-island {
  margin: 2.5rem 0;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.c2s-editable-island__hint {
  font-size: 0.9rem;
  color: var(--c2s-marketing-muted);
  font-style: italic;
}

.c2s-cta-band {
  text-align: center;
  margin-top: 2.5rem;
  padding: 2rem 1.5rem;
  background: var(--c2s-marketing-surface);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
}

.c2s-cta-band .wp-block-buttons {
  justify-content: center;
}

body:not(.c2s-app) .wp-block-button__link {
  background: var(--c2s-green);
  color: #fff;
  border-radius: 4px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

body:not(.c2s-app) .wp-block-button__link:hover {
  background: var(--c2s-green-hover);
  color: #fff;
}

/* Legal / default page prose */
.c2s-marketing-prose h1 {
  margin-top: 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.c2s-marketing-prose h2,
.c2s-marketing-prose h3 {
  margin-top: 1.75rem;
}

.c2s-page-lead {
  font-size: 1.05rem;
  color: var(--c2s-marketing-muted);
}

.c2s-marketing-prose a {
  color: var(--c2s-green);
}

.c2s-marketing-prose ul,
.c2s-marketing-prose ol {
  padding-left: 1.35rem;
}

.c2s-marketing-prose li {
  margin-bottom: 0.35rem;
}

/* Contact: form vs signed-in support CTA (WordPress adds body.logged-in) */
.c2s-contact-member {
  display: none;
  margin-bottom: 1.5rem;
}

body.logged-in:not(.c2s-app) .c2s-contact-member {
  display: block;
}

body.logged-in:not(.c2s-app) .c2s-contact-guest {
  display: none;
}

/* Administrators can preview the guest form while logged in */
body.logged-in.administrator:not(.c2s-app) .c2s-contact-guest {
  display: block;
  margin-top: 1.5rem;
}

.c2s-contact-form-notice {
  font-size: 0.95rem;
  color: var(--c2s-marketing-muted);
}

.c2s-contact-form-notice--admin {
  padding: 0.75rem 1rem;
  border: 1px dashed #c9c9c9;
  border-radius: 6px;
  background: #fffef5;
  color: #5c4a00;
}

.c2s-contact-extra:empty {
  display: none;
}

@media (max-width: 767px) {
  .c2s-feature-grid__cols {
    flex-direction: column;
  }

  .c2s-feature-grid__cols > .wp-block-column {
    flex-basis: 100% !important;
  }

  .c2s-hero__actions .wp-block-button {
    width: 100%;
  }

  .c2s-hero__actions .wp-block-button__link {
    width: 100%;
    text-align: center;
  }
}

/* Mailchimp for WordPress (marketing site) */
body:not(.c2s-app) .mc4wp-form {
  max-width: 28rem;
}

body:not(.c2s-app) .mc4wp-form-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

body:not(.c2s-app) .mc4wp-form-fields input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  padding: 0.55rem 0.65rem;
  font-family: var(--c2s-font);
  font-size: 0.95rem;
  color: var(--c2s-marketing-text);
  background: var(--c2s-marketing-surface);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-sizing: border-box;
}

body:not(.c2s-app) .mc4wp-form-fields input[type="email"]::placeholder {
  color: var(--c2s-marketing-muted);
}

body:not(.c2s-app) .mc4wp-form-fields input[type="email"]:focus {
  outline: 2px solid rgba(0, 131, 62, 0.35);
  outline-offset: 1px;
  border-color: var(--c2s-green);
}

body:not(.c2s-app) .mc4wp-form-fields input[type="submit"] {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.55rem 1.1rem;
  font-family: var(--c2s-font);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--c2s-green);
  border: 1px solid var(--c2s-green-hover);
  border-radius: 4px;
  cursor: pointer;
}

body:not(.c2s-app) .mc4wp-form-fields input[type="submit"]:hover {
  background: var(--c2s-green-hover);
}

body:not(.c2s-app) .mc4wp-response {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--c2s-marketing-muted);
}

@media (max-width: 480px) {
  body:not(.c2s-app) .mc4wp-form-fields input[type="submit"] {
    width: 100%;
  }
}

/* --- Marketing cookie consent & YouTube facades --- */
body:not(.c2s-app).c2s-consent-banner-active {
  padding-bottom: var(--c2s-consent-banner-offset, 0px);
}

body:not(.c2s-app) .c2s-consent-root {
  position: relative;
  z-index: 100000;
}

body:not(.c2s-app) .c2s-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100001;
  padding: 1rem 1.25rem;
  background: var(--c2s-marketing-surface);
  color: var(--c2s-marketing-text);
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  font-family: var(--c2s-font);
  font-size: 0.9rem;
  box-sizing: border-box;
}

body:not(.c2s-app) .c2s-consent-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
}

body:not(.c2s-app) .c2s-consent-banner__text {
  flex: 1 1 16rem;
  min-width: 0;
}

body:not(.c2s-app) .c2s-consent-banner__title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
}

body:not(.c2s-app) .c2s-consent-banner__body {
  margin: 0 0 0.35rem;
  color: var(--c2s-marketing-muted);
  line-height: 1.45;
}

body:not(.c2s-app) .c2s-consent-banner__links {
  margin: 0;
  font-size: 0.85rem;
}

body:not(.c2s-app) .c2s-consent-banner__links a {
  color: var(--c2s-green);
}

body:not(.c2s-app) .c2s-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 1 auto;
}

body:not(.c2s-app) .c2s-consent-btn {
  font-family: var(--c2s-font);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
}

body:not(.c2s-app) .c2s-consent-btn--primary {
  background: var(--c2s-green);
  color: #fff;
  border-color: var(--c2s-green-hover);
}

body:not(.c2s-app) .c2s-consent-btn--primary:hover {
  background: var(--c2s-green-hover);
}

body:not(.c2s-app) .c2s-consent-btn--secondary {
  background: var(--c2s-marketing-surface);
  color: var(--c2s-marketing-text);
  border-color: #ccc;
}

body:not(.c2s-app) .c2s-consent-btn--secondary:hover {
  border-color: #999;
}

body:not(.c2s-app) .c2s-consent-btn--ghost {
  background: transparent;
  color: var(--c2s-marketing-muted);
  border-color: transparent;
  text-decoration: underline;
}

body:not(.c2s-app) .c2s-consent-dialog {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

body:not(.c2s-app) .c2s-consent-dialog__panel {
  width: 100%;
  max-width: 28rem;
  max-height: min(90vh, 640px);
  overflow: auto;
  background: var(--c2s-marketing-surface);
  color: var(--c2s-marketing-text);
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  font-family: var(--c2s-font);
  font-size: 0.9rem;
}

body:not(.c2s-app) .c2s-consent-dialog__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

body:not(.c2s-app) .c2s-consent-dialog__intro {
  margin: 0 0 1rem;
  color: var(--c2s-marketing-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

body:not(.c2s-app) .c2s-consent-pref {
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

body:not(.c2s-app) .c2s-consent-pref--essential {
  opacity: 0.85;
}

body:not(.c2s-app) .c2s-consent-pref__label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
}

body:not(.c2s-app) .c2s-consent-pref__title {
  display: block;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

body:not(.c2s-app) .c2s-consent-pref__desc {
  margin: 0.35rem 0 0;
  color: var(--c2s-marketing-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

body:not(.c2s-app) .c2s-consent-pref__warn {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #a65c00;
}

body:not(.c2s-app) .c2s-consent-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

body:not(.c2s-app) .c2s-consent-dialog__links {
  margin: 1rem 0 0;
  font-size: 0.85rem;
}

body:not(.c2s-app) .c2s-consent-dialog__links a {
  color: var(--c2s-green);
}

body:not(.c2s-app) .c2s-youtube-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0d0d0d;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  text-align: center;
}

body:not(.c2s-app) .c2s-youtube-facade__poster {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 50%, #141414 100%);
  pointer-events: none;
}

body:not(.c2s-app) .c2s-youtube-facade__play {
  position: relative;
  z-index: 1;
  font-family: var(--c2s-font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: var(--c2s-green);
  color: #fff;
}

body:not(.c2s-app) .c2s-youtube-facade__play:hover {
  background: var(--c2s-green-hover);
}

body:not(.c2s-app) .c2s-youtube-facade__hint {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 22rem;
  font-size: 0.8rem;
  color: #ccc;
  line-height: 1.4;
}

body:not(.c2s-app) .c2s-youtube-facade__iframe,
body:not(.c2s-app) iframe.c2s-youtube-facade__iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 4px;
}

/* Click-to-play poster teasers (Custom HTML / templates; logic in c2s-consent.js) */
body:not(.c2s-app) .c2s-video-teaser {
  margin: 0 auto;
  max-width: min(100%, 48rem);
}

body:not(.c2s-app) .c2s-video-teaser--wide {
  max-width: min(100%, 56rem);
}

body:not(.c2s-app) .c2s-video-teaser--full {
  max-width: 100%;
}

body:not(.c2s-app) .c2s-video-teaser__trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
}

body:not(.c2s-app) .c2s-video-teaser__trigger img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

body:not(.c2s-app) .c2s-video-teaser__trigger:hover img {
  opacity: 0.92;
}

body:not(.c2s-app) .c2s-video-teaser__trigger:focus-visible {
  outline: 2px solid var(--c2s-green);
  outline-offset: 3px;
}

body:not(.c2s-app) figure.c2s-home-preview iframe.c2s-youtube-facade__iframe,
body:not(.c2s-app) .c2s-marketing-prose iframe.c2s-youtube-facade__iframe {
  display: block;
  width: 100%;
  max-width: min(100%, 48rem);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  body:not(.c2s-app) .c2s-consent-banner__actions {
    width: 100%;
  }

  body:not(.c2s-app) .c2s-consent-banner__actions .c2s-consent-btn {
    flex: 1 1 auto;
  }
}

/* User Guide — prose + tables (Custom HTML blocks on /guide/) */
.c2s-marketing-prose .c2s-guide-prose,
.c2s-guide-prose {
  max-width: 100%;
}

.c2s-marketing-prose .c2s-guide-prose .lead,
.c2s-guide-prose .lead {
  font-size: 1.05rem;
  color: var(--c2s-marketing-muted);
  margin: 0 0 1.5rem;
}

.c2s-table-wrap {
  width: 100%;
  margin: 1.25rem 0 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.c2s-marketing-prose .c2s-table,
.c2s-guide-prose .c2s-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
  background: var(--c2s-marketing-surface);
}

.c2s-marketing-prose .c2s-table th,
.c2s-marketing-prose .c2s-table td,
.c2s-guide-prose .c2s-table th,
.c2s-guide-prose .c2s-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid #ddd;
}

.c2s-marketing-prose .c2s-table thead th,
.c2s-guide-prose .c2s-table thead th {
  background: #eef5f0;
  color: var(--c2s-marketing-text);
  font-weight: 600;
  white-space: nowrap;
}

.c2s-marketing-prose .c2s-table tbody tr:nth-child(even),
.c2s-guide-prose .c2s-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.c2s-marketing-prose .c2s-table--compact td:last-child,
.c2s-marketing-prose .c2s-table--compact th:last-child,
.c2s-guide-prose .c2s-table--compact td:last-child,
.c2s-guide-prose .c2s-table--compact th:last-child {
  text-align: right;
  white-space: nowrap;
}

/* Wide tables: card-style rows at all viewport sizes (Typical workflows, etc.) */
.c2s-table-wrap--stack {
  overflow-x: visible;
}

.c2s-table-wrap--stack .c2s-table--stack {
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
}

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

.c2s-table-wrap--stack .c2s-table--stack tbody {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.c2s-table-wrap--stack .c2s-table--stack tbody tr {
  display: block;
  border: 1px solid #ccc;
  border-radius: var(--c2s-radius);
  overflow: hidden;
  background: var(--c2s-marketing-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.c2s-table-wrap--stack .c2s-table--stack tbody tr:nth-child(even) {
  background: var(--c2s-marketing-surface);
}

.c2s-table-wrap--stack .c2s-table--stack td {
  display: grid;
  grid-template-columns: minmax(7.5rem, 34%) 1fr;
  gap: 0.5rem 1.25rem;
  align-items: start;
  border: none;
  border-bottom: 1px solid #e8e8e8;
  padding: 0.7rem 1rem;
}

.c2s-table-wrap--stack .c2s-table--stack td:last-child {
  border-bottom: none;
}

.c2s-table-wrap--stack .c2s-table--stack td::before {
  content: attr(data-label);
  font-weight: 600;
  color: var(--c2s-marketing-muted);
  font-size: 0.8125rem;
  line-height: 1.35;
  text-align: left;
}

.c2s-table-wrap--stack .c2s-table--stack td:not(:first-child) {
  text-align: right;
}

.c2s-table-wrap--stack .c2s-table--stack td:first-child {
  background: #eef5f0;
  font-weight: 600;
  grid-template-columns: 1fr;
  font-size: 1rem;
  padding: 0.85rem 1rem;
}

.c2s-table-wrap--stack .c2s-table--stack td:first-child::before {
  display: none;
}

@media (min-width: 900px) {
  .c2s-table-wrap--stack .c2s-table--stack td {
    grid-template-columns: minmax(10rem, 28%) 1fr;
    padding: 0.75rem 1.15rem;
  }
}
