@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #14161a;
  --muted: #545e6c;
  --accent-text: #b71223;
  --surface: #fff;
  --surface-soft: #f5f7fa;
  --surface-raised: #e9edf3;
  --header-surface: #fffffff5;
  --line: #dce1e8;
  --line-strong: #aab5c4;
  --accent-surface: #fcecef;
  --notice-surface: #fff3dc;
  --success-surface: #e6f4ea;
  --notice-text: #795016;
  --success-text: #17653c;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f1f4f9;
  --muted: #bec8d6;
  --accent-text: #ff818c;
  --surface: #161c26;
  --surface-soft: #1c2532;
  --surface-raised: #263245;
  --header-surface: #161c26f5;
  --line: #344255;
  --line-strong: #536681;
  --light: #1c2532;
  --accent-surface: #3a202c;
  --notice-surface: #352919;
  --success-surface: #193629;
  --notice-text: #ffcf80;
  --success-text: #91e2ab;
}

body { font-size: 1.0625rem; line-height: 1.65; }
.intro,
.r-page-hero .intro,
.r-contact .intro,
.r-hero-copy > p:not(.r-tag),
.r-section-top > p,
.r-intro-band p { font-size: clamp(1.0625rem, 1rem + .32vw, 1.25rem); line-height: 1.65; }
.r-hero h1,
.r-page-hero h1,
.r-contact h1 { font-size: clamp(2.35rem, 5vw, 4.35rem); line-height: 1.08; letter-spacing: -.05em; }
.r-feature-card p,
.r-capability-list,
.r-contact-company p,
.r-contact-company a,
.r-contact .lead-form label { font-size: 1rem; line-height: 1.55; }
.r-contact-company strong { font-size: 1.0625rem; }
.btn,
.r-actions .btn,
.nav-cta,
.r-plans .plan .btn,
.r-text-link { font-size: .9375rem; }
.r-footer-top > div,
.r-footer .footer-bottom,
.r-footer .footer-bottom p { font-size: .875rem; }
.nav-item > a { font-size: .9375rem; }
.site-header nav { gap: clamp(14px, 2vw, 30px); }
.nav-wrap { gap: clamp(12px, 1.8vw, 25px); }
.r-contact .form-heading p,
.r-contact .lead-form input,
.r-contact .lead-form select,
.r-contact .lead-form textarea { font-size: 1rem; }
input, select, textarea { color: inherit; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }

.r-theme-toggle {
  flex: 0 0 auto;
  min-width: 66px;
  min-height: 44px;
  padding-inline: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 750;
}
.r-theme-toggle:hover { border-color: var(--accent-text); }

.r-logo-dark,
html[data-theme="dark"] .r-logo-light { display: none; }
html[data-theme="dark"] .r-logo-dark { display: block; }

html[data-theme="dark"] :is(.r-category-nav button.active, .r-screen-filters button[aria-pressed="true"], .r-workshop-chapters button[aria-pressed="true"]) {
  background: var(--accent-surface);
  color: var(--accent-text);
  border-color: var(--accent-text);
}

#main { position: relative; }
.r-page-skeleton,
.r-video-skeleton { display: none; pointer-events: none; }
[data-page-loading] .r-page-skeleton {
  display: block;
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  padding-block: clamp(32px, 7vw, 100px);
  background: var(--surface);
  visibility: hidden;
  animation: show-skeleton 0s .12s forwards;
}
.r-page-skeleton-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: center;
}
.r-page-skeleton-copy { display: grid; gap: 15px; align-content: center; }
.r-page-skeleton-copy span,
.r-page-skeleton-media,
.r-video-skeleton {
  border-radius: 10px;
  background: linear-gradient(105deg, var(--surface-soft) 25%, var(--surface-raised) 48%, var(--surface-soft) 72%);
  background-size: 210% 100%;
  animation: skeleton-shimmer 1.15s linear infinite;
}
.r-page-skeleton-copy span { height: 18px; }
.r-page-skeleton-copy span:first-child { width: 34%; }
.r-page-skeleton-copy span:nth-child(2) { width: 90%; height: clamp(38px, 6vw, 82px); }
.r-page-skeleton-copy span:nth-child(3) { width: 80%; }
.r-page-skeleton-copy span:last-child { width: 40%; height: 44px; }
.r-page-skeleton-media { aspect-ratio: 16 / 9; }
.r-video-surface { position: relative; }
.r-video-surface[data-video-loading] .r-video-skeleton { display: block; position: absolute; inset: 0; z-index: 1; border-radius: 0; }
@keyframes show-skeleton { to { visibility: visible; } }
@keyframes skeleton-shimmer { to { background-position: -210% 0; } }

@media (max-width: 1000px) {
  .site-header nav { gap: 0; }
  .nav-item > a { font-size: 1.0625rem; }
  .r-theme-toggle { margin-left: auto; }
  .nav-cta:not([hidden]) + .r-theme-toggle { margin-left: 0; }
}
@media (max-width: 720px) {
  .r-page-skeleton-layout { grid-template-columns: 1fr; }
  .r-footer-top > div { flex-wrap: wrap; row-gap: 8px; }
  .r-hero-copy { padding-right: 0; }
  .r-actions { flex-wrap: wrap; }
  .r-theme-toggle { margin-left: auto !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r-page-skeleton-copy span, .r-page-skeleton-media, .r-video-skeleton { animation: none; }
}
@media (max-width: 480px) {
  .site-header .nav-cta { display: none; }
  .nav-wrap { gap: 12px; }
}

.admin-form { display: grid; gap: 20px; margin-top: 20px; max-width: 980px; }
.admin-form fieldset, .admin-extra-prices {
  padding: 20px;
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}
.admin-form legend { padding: 0 7px; font-weight: 800; }
.admin-form label { display: grid; gap: 5px; margin: 8px 0; }
.admin-form input:not([type="checkbox"]), .admin-form textarea {
  padding: 9px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}
.admin-form .admin-check { display: flex; align-items: center; gap: 9px; }
.admin-form textarea { resize: vertical; }
.admin-form .btn { justify-self: start; }
.admin-extra-prices summary { cursor: pointer; font-weight: 750; }
.admin-story-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.admin-form[hidden] { display: none; }
.case-story-image { max-height: 440px; object-fit: contain; margin-bottom: 16px; border-radius: 8px; }

.story-grid,
.admin-story-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
  gap: 18px;
}
.story-card {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
  overflow-wrap: anywhere;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.story-card:hover,
.story-card[aria-current="true"] {
  border-color: var(--accent-text);
  box-shadow: 0 9px 24px rgb(0 0 0 / .09);
}
.story-card:hover { transform: translateY(-3px); }
.story-card h2, .story-card .story-name {
  display: block;
  margin: 16px 0;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.25;
  font-weight: 800;
}
.story-logo {
  width: 100%;
  height: 96px;
  position: relative;
  display: grid;
  place-items: center;
  background: #fff;
  color: #495568;
  border-radius: 10px;
  font-size: 1.65rem;
  font-weight: 800;
}
.story-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
  background: #fff;
  object-fit: contain;
  border-radius: inherit;
}
.story-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin: 0;
}
.story-meta dt { font-size: .75rem; color: var(--muted); }
.story-meta dd { margin: 4px 0 0; font-size: .9rem; font-weight: 750; }
.admin-story-picker .story-card { width: 100%; }
.admin-story-status { color: var(--muted); font-size: .85rem; }
.admin-story-preview { max-width: 360px; }
.admin-form select {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}
@media (prefers-reduced-motion: reduce) {
  .story-card { transition: none; }
  .story-card:hover { transform: none; }
}
.story-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); }
.admin-story-picker .story-meta > span { font-size: .77rem; color: var(--muted); }
.admin-story-picker .story-meta strong { font-size: .9rem; color: var(--ink); }
.admin-story-picker .admin-story-status { display: block; margin-top: 10px; }

.r-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) {
  .r-plans { grid-template-columns: minmax(0, 1fr); }
}

.story-public-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 8px;
  color: var(--accent-text);
  font-size: .9rem;
  font-weight: 750;
}
a.story-public-link:hover { text-decoration: underline; }
.why-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 66px);
  align-items: center;
}
.why-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.why-dashboard {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
}
.why-dashboard img { width: 100%; height: auto; display: block; }
.why-dashboard figcaption { padding: 12px 16px; font-size: .85rem; color: var(--muted); }
.why-benefits .r-feature-grid { margin-top: 20px; }
.why-editions { margin-top: 18px; display: grid; gap: 10px; }
.why-editions details {
  padding: 14px 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.why-editions summary { cursor: pointer; font-weight: 800; }
.why-editions p { margin-top: 8px; }
.why-plan-note { margin: 14px 0 8px; }
.why-next { border-top: 1px solid var(--line); }
@media (min-width: 1001px) and (max-width: 1210px) {
  .site-header nav { gap: 12px; }
  .site-header .brand img { width: 135px; height: auto; }
  .site-header .nav-cta { display: none; }
}
@media (max-width: 820px) {
  .why-hero { grid-template-columns: minmax(0, 1fr); }
}

.r-hero-home {
  background: radial-gradient(ellipse at 88% 18%, var(--surface-raised), transparent 62%), var(--surface-soft);
}
.r-hero-home .r-hero-copy { min-width: 0; }
.r-hero-home .r-hero-copy > .r-hero-audience {
  font-size: .95rem;
  margin-top: 18px;
}
.r-workshop-carousel { align-self: center; }
.r-hero-carousel-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 16px;
  background: var(--surface);
}
.r-carousel-toggle {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: .85rem;
}
.r-carousel-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #121b2a;
}
.r-carousel-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vw, 20px);
  opacity: 0;
  transition: opacity .45s ease;
}
.r-carousel-slide.is-active { opacity: 1; }
.r-carousel-slide img { width: 100%; height: 100%; object-fit: contain; }
.r-workshop-carousel figcaption { align-items: center; }
.r-carousel-caption { flex: 1 1 230px; min-height: 3.1em; }
.r-carousel-caption p { margin: 4px 0 0; font-size: .88rem; }
.site-header nav .nav-item > a::after {
  content: "";
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.site-header nav .nav-item > a:is(:hover, :focus-visible, [aria-current="page"])::after {
  transform: scaleX(1);
}
@keyframes aa-heading-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .r-hero-home .r-hero-copy h1, .why-hero h1 { animation: aa-heading-in .45s ease-out backwards; }
  .r-hero-home .r-actions, .why-hero .r-actions { animation: aa-heading-in .45s ease-out .1s backwards; }
}
@media (prefers-reduced-motion: reduce) {
  .r-carousel-slide, .site-header nav .nav-item > a::after { transition: none; }
}
.why-faq .faqs { margin-top: 18px; }

.price-compare { margin: clamp(32px, 6vw, 64px) 0; scroll-margin-top: 100px; }
.price-compare-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin: 18px 0; }
.price-compare-tools[hidden], .price-compare [hidden] { display: none; }
.price-compare-tools label { display: grid; gap: 5px; font-size: .9rem; font-weight: 750; }
.price-compare-tools :is(select, input[type=search]) {
  max-width: 100%; min-height: 44px; padding: 8px 10px; font: inherit;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface);
}
.price-compare-tools .compare-checkbox { display: flex; align-items: center; min-height: 44px; }
.compare-checkbox input { margin: 0 6px 0 0; accent-color: var(--accent-text); }
.price-compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.price-compare table { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--surface); }
.price-compare :is(th, td, caption) { padding: 12px; text-align: left; font-size: .92rem; }
.price-compare caption { color: var(--muted); }
.price-compare :is(thead th, .compare-group th) { background: var(--surface-raised); }
.price-compare td, .price-compare tbody th { border-top: 1px solid var(--line); }
.price-compare th[scope=row], .price-compare thead th:first-child { position: sticky; left: 0; z-index: 1; }
.price-compare th[scope=row] { background: var(--surface); min-width: 145px; }
.price-compare th a { color: var(--accent-text); }
.price-compare th a:hover { text-decoration: underline; }
.price-compare .compare-yes { font-weight: 750; }
.compare-result { margin: 12px 0 0; }
.industry-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 20px; }
.industry-card { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; overflow: hidden; }
.industry-card a { display: block; height: 100%; }
.industry-card img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; transition: filter .22s ease; }
.industry-card-copy { padding: 18px 20px; }
.industry-card-copy h3 { margin: 0 0 8px; }
.industry-card-copy h3 span { color: var(--accent-text); }
.industry-card a:hover img { filter: brightness(1.08); }
.industry-card a:focus-visible { outline-offset: -4px; }
.industry-nav { margin-top: 20px; }
.industry-workflow ol { display: grid; gap: 18px; margin-block: 20px; padding-inline-start: 28px; }
.industry-faq article { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.industry-workflow p, .industry-faq p { margin: 8px 0 0; }
@media (max-width: 650px) {
  .industry-cards { grid-template-columns: minmax(0,1fr); }
  .price-compare-tools { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .industry-card img { transition: none; } }
