/* Shared surfaces for discovery; the documentation reader keeps its own layout. */
:root {
  --studio-ink: #152b3a;
  --studio-muted: #465f70;
  --studio-line: #d9e3e8;
  --studio-surface: #f3f6f8;
  --studio-radius: 24px;
  --studio-shadow: 0 4px 14px rgba(24, 52, 68, .06);
}
.studio-hero {
  color: var(--studio-ink);
  background: radial-gradient(ellipse at 7% 45%, #e4edf9, transparent 58%),
              radial-gradient(ellipse at 98% 50%, #e8f1ef, transparent 50%), #f6f5f1;
  border-bottom: 1px solid var(--studio-line);
}
.studio-frame { max-width: 1320px; }
.studio-intro { padding: clamp(38px, 4.6vw, 80px) 0 clamp(28px, 3vw, 46px); text-align: center; }
.studio-intro h1 {
  font-size: clamp(42px, 4.6vw, 82px); letter-spacing: -.052em;
  color: var(--studio-ink); line-height: 1.13; font-weight: 750; margin: 0;
}
.studio-intro h1 span { display: block; }
.studio-intro h1 em { font-style: normal; color: #145c93; }
.studio-intro p { color: var(--studio-muted); margin: 18px auto 0; max-width: 40em; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.7; }
.studio-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 23px; }
.studio-actions .button { border-radius: 999px; padding: 12px 24px; }
.studio-actions .button-primary, .header-actions .portal-link { color: white; background: #162f40; border-color: #162f40; }
.studio-actions .button-outline { background: #fff; border-color: #d9e2e9; color: #183b51; }
.studio-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,1.7vw,26px); }
.studio-tile {
  display: flex; flex-direction: column; padding: 8px; min-width: 0;
  border-radius: var(--studio-radius); background: white; color: var(--studio-ink);
  box-shadow: var(--studio-shadow); border: 1px solid rgba(131,161,179,.22);
}
.studio-tile-art { overflow: hidden; border-radius: 17px; aspect-ratio: 1.85; background: #e3ebef; }
.studio-tile-art img, .opening-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.studio-tile-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 10px 9px; }
.studio-tile-copy h2 { font-size: clamp(20px,1.55vw,28px); line-height: 1.3; letter-spacing: -.035em; margin: 0; }
.studio-tile-copy p { margin: 4px 0 0; color: var(--studio-muted); line-height: 1.5; font-size: 14px; }
.studio-arrow { display: grid; place-items: center; width: 37px; height: 37px; flex: none; font-size: 19px; color: var(--studio-ink); background: #eff4f6; border-radius: 50%; }
.studio-hero .brand-service-line { max-width:1320px; background: transparent; padding-block: 23px; border: 0; box-shadow: none; }
.studio-hero .brand-service-line a { color: #284c65; }
.home-services { max-width: 1320px; }
.home-services .hs-feature {
  min-height: 0; grid-template-columns: 1fr 1.1fr; gap: clamp(18px,4vw,64px);
  padding: clamp(22px,3vw,52px); border: 1px solid var(--studio-line); border-radius: var(--studio-radius);
  background: #edf4f8;
}
.home-services .hs-custom { background: #f8f3ea; }
.home-services .hs-feature+.hs-feature { margin-top:20px; }
.home-services .hs-copy h3 { font-size: clamp(26px,2.5vw,42px); margin-bottom: 12px; }
.service-details { margin: 0 0 20px; }
.service-details summary { width: fit-content; cursor: pointer; color: #205975; font-weight: 600; }
.service-details .hs-benefits { margin: 15px 0 0; }
.hs-custom .hs-rack img { max-height: 360px; width: auto; max-width: 100%; object-fit: contain; }
.brand-value-section .brand-section, .brand-evidence .brand-section { max-width:1320px; }
.brand-value-section { background: #f0f3f5; }
.price-comparison { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; border: 0; }
.price-comparison .brand-price-card {
  display:flex; flex-direction:column; align-items:flex-start; gap: 13px; border: 1px solid var(--studio-line);
  background: white; border-radius: var(--studio-radius); padding: clamp(20px,2.2vw,36px); color: var(--studio-ink);
}
.price-comparison .brand-price-top { align-self: stretch; justify-content:space-between; }
.price-comparison .brand-price-card h3 { font-size: clamp(24px,2.2vw,36px); }
.price-comparison .brand-price { margin-top:auto; padding-top: 14px; }
.price-comparison .brand-price-card .brand-price-bottom { margin: 0; padding-top: 12px; gap: 8px; border-top:1px solid var(--studio-line); align-self: stretch; }
.brand-science .science-feature, .brand-science .science-guide-list>a, .evidence-study,
.brand-product-card, .benchmark-card, .catalog-card, .about-brand-practice-grid>article,
.principles>article, .custom-card, .step-card {
  border: 1px solid var(--studio-line); border-radius: var(--studio-radius); background-color: white; box-shadow: var(--studio-shadow);
}
.brand-science .science-feature { overflow: hidden; }
.brand-science .science-feature-copy { padding: clamp(20px,2.5vw,38px); }
.brand-science .science-guide-list { display:grid; gap: 12px; }
.brand-science .science-guide-list>a, .evidence-study { padding: clamp(18px,2vw,34px); }
.evidence-studies { gap: 22px; }
.brand-evidence { background: #f2f5f6; }
.page-opening { background: #f4f6f6; }
.page-opening .page-opening-inner { border-bottom:0; }
.page-opening .page-opening-inner:after { display:none; }
.page-opening .opening-with-art {
  align-items: center; grid-template-columns: minmax(0,1.05fr) minmax(220px,.9fr) minmax(130px,.48fr);
  gap: clamp(16px,3vw,50px); padding-block: clamp(20px,2.4vw,40px);
}
.opening-art { width:100%; aspect-ratio:1.67; overflow:hidden; border:5px solid white; border-radius:20px; box-shadow:var(--studio-shadow); }
.page-opening .page-opening-description { width:100%; }
.page-resources .pricing-options>section, .page-resources .recharge-tiers>div {
  border: 1px solid var(--studio-line); border-radius: 20px; padding: clamp(16px,2vw,32px); background: white;
}
.page-resources .recharge-tiers { border:0; background:none; padding:0; gap:12px; }
.page-resources .recharge-tiers>div { background: #e8f0fb; }
.page-resources .recharge-tiers>div:nth-child(2) { background: #eaf3ec; }
.page-resources .recharge-tiers>div:nth-child(3) { background: #fbefde; }
.page-resources .pricing-options { gap: 20px; }
.page-software .software-pathways {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom: 48px; border:0;
}
.page-software .software-pathway {
  display:flex; align-items:flex-start; flex-direction:column; row-gap:14px; padding:clamp(18px,1.7vw,28px);
  border:1px solid var(--studio-line); border-radius:var(--studio-radius); background:#e9f1fa;
}
.page-software .software-pathway:nth-child(2) { background:#faf0de; }
.page-software .software-pathway:nth-child(3) { background:#e8f1ea; }
.page-software .software-pathway:nth-child(4) { background:#f0ecf7; }
.page-software .software-pathway-art { background:#ffffffbd; border-radius:18px; width:64px; height:64px; }
.page-software .software-pathway-art svg { width:52px; height:52px; }
.page-software .software-pathway-heading h3 { font-size:clamp(20px,1.5vw,25px); margin-bottom:4px; }
.page-software .software-pathway-detail { flex:1; display:flex; flex-direction:column; }
.page-software .software-pathway-detail p { font-size:14px; line-height:1.7; }
.page-software .software-pathway-detail a { margin-top:auto; }
.page-docs #doc-groups.topics-overview { gap:18px; }
.page-docs .topics-overview .docs-group { padding:clamp(16px,1.6vw,26px); border:1px solid var(--studio-line); border-radius:20px; background:#f6f8fa; }
.page-docs .topics-overview .docs-group:nth-child(3n+2) { background:#f4f7f3; }
.page-docs .topics-overview .docs-group:nth-child(3n) { background:#faf6ee; }
.page-docs .topics-overview .topic-heading h2 { font-size:clamp(20px,1.5vw,25px); }
.page-docs .topics-overview .doc-list-card { padding-block:13px; background:transparent; }
.page-doc .doc-pager a { border:1px solid var(--studio-line); border-radius:16px; background:var(--studio-surface); }
.page-contact .contact-form, .page-contact .brand-contact-info, .page-about .about-brand-identity { border-radius:var(--studio-radius); }
.site-footer { border-top:1px solid var(--studio-line); }
.studio-tile:focus-visible, .service-details summary:focus-visible { outline:3px solid #116492; outline-offset:4px; }
@media (max-width:1000px) {
  .page-software .software-pathways { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:800px) {
  .page-opening .opening-with-art { grid-template-columns:minmax(0,1fr) minmax(96px,24%); gap:12px; }
  .opening-with-art .page-opening-description { grid-column:1/-1; grid-row:2; justify-self:start; }
  .opening-art { grid-column:2; grid-row:1; }
  .home-services .hs-feature { grid-template-columns:1fr; }
}
@media (max-width:700px) {
  .studio-gallery, .price-comparison { grid-template-columns:1fr; }
  .studio-intro h1 { font-size:clamp(30px,6.8vw,44px); }
  .studio-intro p { max-width:26em; }
  .studio-gallery { gap:12px; }
  .studio-tile { flex-direction:row; gap:12px; align-items:stretch; padding:7px; border-radius:18px; }
  .studio-tile-art { width:32%; min-height:78px; aspect-ratio:1.35; flex:none; border-radius:12px; }
  .studio-tile-copy { flex:1; padding:6px 4px 6px 0; gap:5px; min-width:0; }
  .studio-tile-copy h2 { font-size:18px; }
  .studio-tile-copy p { font-size:12px; }
  .studio-arrow { width:26px; height:26px; font-size:16px; }
  .studio-actions .button { padding:10px 15px; }
  .page-resources .recharge-tiers>div { padding:15px; }
  .page-resources .pricing-options>section { padding:16px 12px; }
  .page-software .software-pathways { gap:10px; }
  .page-software .software-pathway { padding:14px; border-radius:18px; gap:9px; }
  .page-software .software-pathway-art { width:46px; height:46px; border-radius:12px; }
  .page-software .software-pathway-art svg { width:38px; height:38px; }
  .page-software .software-pathway-heading h3 { font-size:18px; }
  .page-software .software-pathway-heading p { font-size:14px; }
}
@media(max-width:460px) {
  .page-software .software-pathways { grid-template-columns:1fr; }
  .page-software .software-pathway { display:grid; grid-template-columns:48px 1fr; align-items:center; column-gap:12px; }
  .page-software .software-pathway-detail { grid-column:1/-1; }
}
@media (prefers-reduced-motion:no-preference) {
  @keyframes studio-arrive { from { opacity:.3; transform:translateY(10px); } to { opacity:1; transform:none; } }
  .studio-intro, .studio-tile { animation:studio-arrive .45s ease-out backwards; }
  .studio-tile:nth-child(2) { animation-delay:.07s; }
  .studio-tile:nth-child(3) { animation-delay:.14s; }
  .studio-tile, .brand-price-card, .studio-arrow, .benchmark-card, .software-pathway { transition:transform .22s ease, box-shadow .22s ease, background-color .22s ease; }
  .studio-tile-art img { transition:transform .35s ease; }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .studio-tile:hover, .price-comparison .brand-price-card:hover, .benchmark-card:hover, .software-pathway:focus-within {
    transform:translateY(-4px); box-shadow:0 12px 28px rgba(26,55,73,.13);
  }
  .studio-tile:hover .studio-tile-art img { transform:scale(1.035); }
  .studio-tile:hover .studio-arrow { transform:rotate(5deg); background:#dfeaf2; }
}
