/* WP Raiser 2026 Public Shell, Controls, Typography & Shared Patterns */
:root {
  --public-header-height: 4.5rem;
  --public-header-offset: var(--public-header-height);
  scroll-padding-block-start: calc(var(--public-header-offset) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, h4, p, dl, dd { margin: 0; }

body {
  background: var(--studio-surface);
  color: var(--studio-ink);
  font: 400 1rem/1.6 var(--studio-font);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--studio-brand-soft);
  color: var(--studio-ink);
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
:where(p, li, dd) { text-wrap: pretty; }
a {
  color: var(--studio-link);
  text-decoration: none;
  transition: color var(--studio-fast) var(--studio-ease),
              background-color var(--studio-fast) var(--studio-ease),
              border-color var(--studio-fast) var(--studio-ease),
              box-shadow var(--studio-fast) var(--studio-ease),
              transform var(--studio-fast) var(--studio-ease);
}
a:is(:hover, :focus-visible) { color: var(--studio-link-hover); }
:where(p, dd, li, td) > a:not([class]) { font-weight: 600; }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--studio-focus); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-block-start: calc(var(--public-header-offset) + 1.5rem); }

.wrap, .v2-container {
  width: calc(100% - 2 * var(--studio-gutter));
  max-width: var(--studio-width);
  margin-inline: auto;
}

h1, h2, h3, h4 {
  color: var(--studio-ink);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 { font-size: var(--studio-display); letter-spacing: -0.04em; }
h2 { font-size: var(--studio-title); letter-spacing: -0.035em; }
h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -0.025em; line-height: 1.25; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--studio-brand-line);
  border-radius: var(--studio-pill);
  background: var(--studio-brand-faint);
  color: var(--studio-link);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.ic { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.125em; }

/* Buttons & interactive links */
.v2-button, .textlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  line-height: 1.25;
  text-decoration: none;
}

.v2-button {
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  padding: 0.72rem 1.3rem;
  background: var(--studio-brand);
  color: var(--studio-on-brand);
  border: 1px solid transparent;
  border-radius: var(--studio-radius);
  box-shadow: 0 1px 2px rgb(17 19 21 / 0.1), inset 0 1px 0 rgb(255 255 255 / 0.18);
  transition: background-color var(--studio-fast) var(--studio-ease),
              border-color var(--studio-fast) var(--studio-ease),
              box-shadow var(--studio-fast) var(--studio-ease),
              transform var(--studio-fast) var(--studio-ease);
}
.v2-button:is(:hover, :focus-visible) { color: var(--studio-on-brand); }
.v2-button:hover {
  background-color: var(--studio-hover);
  box-shadow: var(--studio-shadow-brand), inset 0 1px 0 rgb(255 255 255 / 0.2);
  transform: translateY(-1px);
}
.v2-button:active {
  background-color: var(--studio-pressed);
  transform: translateY(0);
  box-shadow: 0 1px 2px rgb(17 19 21 / 0.12);
}

.v2-button-secondary {
  background: var(--studio-surface);
  border-color: var(--studio-input-line);
  color: var(--studio-ink);
  box-shadow: var(--studio-shadow-xs);
}
.v2-button-secondary:is(:hover, :focus-visible) { color: var(--studio-ink); }
.v2-button-secondary:hover {
  background-color: var(--studio-canvas);
  border-color: var(--studio-line-strong);
  box-shadow: var(--studio-shadow-sm);
}
.v2-button-secondary:active {
  background-color: var(--studio-canvas-2);
  border-color: var(--studio-ink-2);
  transform: translateY(0);
}

.textlink {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--studio-link);
}
.textlink:is(:hover, :focus-visible) { color: var(--studio-link-hover); }
.textlink .ic {
  color: currentColor;
  transition: transform var(--studio-fast) var(--studio-ease);
}
.textlink:hover .ic { transform: translateX(3px); }

.v2-skip-link {
  position: fixed;
  z-index: 60;
  top: 0.65rem;
  left: 0.65rem;
  transform: translateY(-180%);
  padding: 0.65rem 1rem;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  background: var(--studio-surface);
  color: var(--studio-ink);
  font-weight: 600;
  box-shadow: var(--studio-shadow);
}
.v2-skip-link:focus { transform: none; }

/* Frosted sticky header */
.v2-site { padding-block-start: var(--public-header-offset); }
.v2-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgb(17 19 21 / 0.08);
  transition: box-shadow var(--studio-med) var(--studio-ease), background-color var(--studio-med) var(--studio-ease);
}
.v2-header.is-scrolled {
  background: rgb(255 255 255 / 0.95);
  box-shadow: 0 4px 20px -8px rgb(17 19 21 / 0.1);
}
.v2-header-inner, .header-menu, .main-nav, .account-nav {
  display: flex;
  align-items: center;
}
.v2-header-inner {
  min-height: var(--public-header-height);
  gap: 2rem;
}
.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
}
.brand img { height: auto; }
.header-menu {
  flex: 1;
  justify-content: space-between;
  gap: 1rem;
}
.main-nav {
  gap: 0.25rem;
  margin-inline: auto;
}
.account-nav {
  gap: 0.65rem;
}
.main-nav > a,
.account-nav > a:not(.v2-button) {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--studio-radius);
  color: var(--studio-ink-2);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}
.main-nav > a:is(:hover, :focus-visible),
.account-nav > a:not(.v2-button):is(:hover, :focus-visible) {
  background: var(--studio-canvas);
  color: var(--studio-ink);
}
.main-nav [aria-current="page"] {
  background: var(--studio-brand-soft);
  color: var(--studio-hover);
  font-weight: 600;
}
.account-nav .v2-button {
  min-height: 2.45rem;
  padding: 0.5rem 1.05rem;
  font-size: 0.9rem;
}
.menu-toggle, .menu-fallback-close { display: none; }
.mobile-plans { display: none; }

/* Modern footer */
.public-footer {
  background: var(--studio-surface);
  border-top: 1px solid var(--studio-line);
  color: var(--studio-muted);
  font-size: 0.875rem;
}
.footer-columns {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(3rem, 5vw, 4.5rem);
  align-items: start;
}
.footer-brand-col {
  display: grid;
  gap: 0.85rem;
  max-width: 22rem;
}
.footer-tagline {
  color: var(--studio-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.public-footer .footer-columns nav {
  display: grid;
  justify-items: start;
  gap: 0.2rem;
  align-items: start;
}
.footer-columns nav h2 {
  margin-bottom: 0.5rem;
  color: var(--studio-ink);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-columns nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  color: var(--studio-muted);
  font-weight: 500;
  font-size: 0.9rem;
}
.footer-columns nav a:is(:hover, :focus-visible) {
  color: var(--studio-ink);
}
.footer-legal {
  background: var(--studio-canvas);
  border-top: 1px solid var(--studio-line);
  padding: 1.1rem 0;
  font-size: 0.8125rem;
}
.footer-legal > .wrap {
  display: flex;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-legal nav {
  display: flex;
  gap: 0.5rem 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer-legal nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  color: var(--studio-muted);
  font-weight: 500;
}
.footer-legal nav a:is(:hover, :focus-visible) {
  color: var(--studio-ink);
}

/* Reading & documentation base */
.v2-page-hero {
  background: var(--studio-canvas);
  padding-block: clamp(2.75rem, 5vw, 4.75rem);
}
.v2-page-hero h1 {
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  max-width: 21ch;
}
.v2-page-hero .eyebrow { margin-bottom: 0.85rem; }
.v2-page-hero p:not(.eyebrow),
.section-lead {
  color: var(--studio-muted);
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  max-width: 58ch;
  margin-top: 1rem;
}
.v2-page-hero .v2-button { margin-top: 1.35rem; }
.v2-section { padding-block: var(--studio-section); }

.v2-prose { line-height: 1.72; color: var(--studio-ink-2); overflow-wrap: anywhere; }
.v2-prose :where(p, li), .article-copy :where(p, li) { text-wrap: pretty; }
.v2-prose > :where(p, ul, ol, details, table, blockquote),
.article-copy > :where(p, ul, ol) { margin: 0.95rem 0 0; }
.v2-prose :is(ul, ol) { padding-left: 1.4rem; }
.v2-prose li + li { margin-top: 0.45rem; }
.v2-prose h2, .v2-contact-layout h2, .release h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  color: var(--studio-ink);
}
.v2-prose h3 { font-size: 1.15rem; color: var(--studio-ink); }
.v2-prose :where(h2, h3, h4, h5):not(:first-child) { margin-top: 2.1rem; }
.v2-prose :where(h2, h3, h4, h5) + :where(p, ol, ul) { margin-top: 0.75rem; }
.v2-prose code {
  font-family: var(--studio-mono);
  font-size: 0.84em;
  padding: 0.14rem 0.4rem;
  border: 1px solid var(--studio-line);
  border-radius: 5px;
  background: var(--studio-canvas);
  color: var(--studio-ink);
  overflow-wrap: anywhere;
}
.v2-prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  overflow: hidden;
  background: var(--studio-surface);
}
.v2-prose :is(th, td) {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--studio-line);
}
.v2-prose tbody tr:last-child :is(th, td) { border-bottom: 0; }
.v2-prose thead th {
  background: var(--studio-canvas);
  color: var(--studio-muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.v2-legal { margin-inline: auto; padding-block: var(--studio-section); }
.back-to-top {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--studio-line);
  font-size: 0.9375rem;
  font-weight: 600;
}
.legal-sections, .legal-guarantee {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-panel);
  background: var(--studio-canvas);
}
.legal-subhead { font-size: 1rem; }

.v2-doc-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 16.5rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: var(--studio-section);
  align-items: start;
}
.v2-doc-nav {
  padding: 1.25rem;
  background: var(--studio-canvas);
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-panel);
}
@media (min-width: 52rem) and (min-height: 40rem) {
  .v2-doc-nav {
    position: sticky;
    top: calc(var(--public-header-offset) + 1.5rem);
    max-height: calc(100dvh - var(--public-header-offset) - 3rem);
    overflow-y: auto;
  }
}
.v2-doc-nav h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--studio-muted);
  margin-bottom: 0.75rem;
  padding-inline: 0.55rem;
}
.v2-doc-nav a {
  display: flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.35rem 0.65rem;
  border-left: 2px solid transparent;
  border-radius: 0 var(--studio-radius) var(--studio-radius) 0;
  color: var(--studio-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.v2-doc-nav a:is(:hover, :focus-visible) {
  color: var(--studio-ink);
  background: var(--studio-surface);
  border-left-color: var(--studio-line-strong);
}
.v2-doc-nav a.is-active {
  color: var(--studio-hover);
  background: var(--studio-surface);
  border-left-color: var(--studio-brand);
  font-weight: 600;
}
.v2-doc-body section + section,
.topic-detail + .topic-detail {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--studio-line);
}
.article-copy > :first-child,
.topic-detail > :first-child { margin-top: 0; }
.buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}

/* Forms & alerts */
.v2-form, .v2-field { display: grid; gap: 0.45rem; }
.v2-form { gap: 1.2rem; }
.v2-form > button { justify-self: start; }
.v2-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.v2-field label, .v2-portfolio-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--studio-ink);
}
.v2-field :is(input, select, textarea),
.v2-price-card select {
  min-height: 2.85rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--studio-input-line);
  border-radius: var(--studio-radius);
  background: var(--studio-surface);
  color: var(--studio-ink);
  font-size: 0.95rem;
}
.v2-field select,
.v2-price-card select {
  padding-right: 1.75rem;
}
.v2-field textarea { resize: vertical; }
.v2-form > p, .v2-field p { font-size: 0.875rem; color: var(--studio-muted); }
.v2-alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--studio-canvas);
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  font-size: 0.9375rem;
}
.v2-alert-success {
  color: var(--studio-success);
  background: var(--studio-success-bg);
  border-color: var(--studio-success-line);
}
.v2-alert-error {
  color: var(--studio-error);
  background: var(--studio-error-bg);
  border-color: var(--studio-error-line);
}
.v2-alert p { margin: 0.45rem 0; }

/* Shared disclosures */
.topic-panel {
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  background: var(--studio-surface);
  transition: border-color var(--studio-fast) var(--studio-ease), box-shadow var(--studio-fast) var(--studio-ease);
}
.topic-panel + .topic-panel { margin-top: 0.65rem; }
.topic-panel[open] {
  border-color: var(--studio-line-strong);
  box-shadow: var(--studio-shadow-xs);
}
.topic-panel > summary,
.stack-group > summary,
.legal-model-form > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.25rem;
  align-items: center;
  gap: 1rem;
  min-height: 3.35rem;
  padding: 0.9rem 1.15rem;
  list-style: none;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--studio-ink);
  border-radius: var(--studio-radius);
}
:is(.topic-panel, .stack-group, .legal-model-form) > summary::-webkit-details-marker { display: none; }
:is(.topic-panel, .stack-group, .legal-model-form) > summary::after {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  background: var(--studio-muted);
  transition: transform var(--studio-fast) var(--studio-ease), background-color var(--studio-fast) var(--studio-ease);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is(.topic-panel, .stack-group, .legal-model-form)[open] > summary::after {
  transform: rotate(180deg);
  background: var(--studio-brand);
}
:is(.topic-panel, .stack-group, .legal-model-form) > summary :is(h2, h3, .disclosure-title) {
  margin: 0;
  min-width: 0;
  font: inherit;
  letter-spacing: normal;
  text-wrap: pretty;
}
.topic-panel > .article-copy {
  padding: 0 1.15rem 1.2rem;
  color: var(--studio-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.topic-panel > .article-copy > :first-child { margin-top: 0; }
.topic-panel > .article-copy > :last-child { margin-bottom: 0; }
:is(.topic-panel, .stack-group, .legal-model-form) > summary:hover {
  background: var(--studio-canvas);
}

/* Mobile & tablet navigation */
@media (max-width: 52rem) {
  :root { --public-header-height: 4rem; }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .v2-header-inner { padding-block: 0.5rem; justify-content: space-between; gap: 0.5rem; }
  .v2-header .brand img { width: 7.75rem; }
  .header-mobile-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  .menu-enabled .menu-toggle, .menu-fallback {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    min-height: 2.5rem;
    border: 1px solid var(--studio-input-line);
    border-radius: var(--studio-radius);
    background: var(--studio-surface);
    color: var(--studio-ink);
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
    font-weight: 600;
  }
  .mobile-plans {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--studio-radius);
    background: var(--studio-brand);
    color: var(--studio-on-brand);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
    margin-left: auto;
  }
  .mobile-plans:is(:hover, :focus-visible) {
    color: var(--studio-on-brand);
    background-color: var(--studio-hover);
  }
  .menu-toggle:hover { background-color: var(--studio-canvas); color: var(--studio-ink); }
  .menu-cross, .menu-toggle[aria-expanded="true"] .menu-lines { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-cross { display: block; }
  .header-menu {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100vh - var(--public-header-offset));
    max-height: calc(100dvh - var(--public-header-offset));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.75rem var(--studio-gutter) 1.25rem;
    background: var(--studio-surface);
    border-top: 1px solid var(--studio-line);
    box-shadow: var(--studio-shadow-lg);
  }
  .header-menu.is-open, :root:not(.menu-enabled) .header-menu:target { display: flex; }
  .menu-fallback-close { display: inline-block; padding-block: 0.7rem; }
  .header-menu, .main-nav { align-items: stretch; flex-direction: column; gap: 0.2rem; }
  .main-nav { margin: 0 0 0.75rem; }
  .main-nav > a { padding: 0.65rem 0.75rem; min-height: 2.75rem; font-size: 1rem; }
  .account-nav {
    padding-top: 0.85rem;
    border-top: 1px solid var(--studio-line);
    justify-content: space-between;
    gap: 0.75rem;
  }
  .account-nav .v2-button { flex: 1; }
  .v2-doc-layout { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .v2-doc-nav { columns: 2; }
  .v2-doc-nav h2 { column-span: all; }
  .v2-doc-nav a { break-inside: avoid; }
}

@media (max-width: 48rem) {
  .footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand-col { grid-column: 1 / -1; max-width: 34rem; }
}

@media (max-width: 35rem) {
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
  .footer-legal > .wrap { align-items: start; flex-direction: column; gap: 0.75rem; }
  .v2-doc-nav { columns: auto; }
  .v2-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 22rem) {
  .v2-header .brand img { width: 6.75rem; }
  .mobile-plans { padding-inline: 0.65rem; font-size: 0.85rem; }
  .menu-enabled .menu-toggle, .menu-fallback { padding-inline: 0.55rem; font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
