/* ==========================================================================
   Vincubate Ventures — Design System
   Swiss minimalism · pure black & white · zero radius · borders over shadows
   ========================================================================== */

/* Self-hosted fonts (latin subset) */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/dmsans-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+20AC;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+20AC;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/poppins-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+20AC;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/poppins-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+20AC;
}

/* Brand font — the word "vincubate" is always set in League Spartan */
@font-face {
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/leaguespartan-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+20AC;
}

:root {
  --color-bg: #ffffff;
  --color-fg: #000000;
  --color-muted: #f5f5f5;
  --color-muted-fg: #525252;
  --color-faint-fg: #8a8a8a;
  --color-border: #000000;
  --color-hairline: #e5e5e5;

  --font-heading: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-brand: "League Spartan", "Poppins", sans-serif;

  --radius: 0px;
  --container: 1200px;
  --gutter: 1.5rem;
  --section-y: clamp(4.5rem, 10vw, 8rem);

  --border-hairline: 1px solid var(--color-hairline);
  --border-thin: 1px solid var(--color-border);
  --border-thick: 2px solid var(--color-border);

  --transition: 200ms ease;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Guard against horizontal overflow — the fixed header must always match the body width */
html,
body {
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--color-fg);
  color: var(--color-bg);
}

/* The hidden attribute must always win over component display rules */
[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

@media (max-width: 640px) {
  h1, h2, h3 {
    hyphens: auto;
  }
}

.display-xl {
  font-size: clamp(2.75rem, 7.5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.display-l {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.display-m {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.lead {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.55;
  color: var(--color-muted-fg);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.eyebrow--tag {
  border: var(--border-thin);
  padding: 0.35rem 0.85rem;
}

.text-muted {
  color: var(--color-muted-fg);
}

/* The brand word "vincubate" — always League Spartan, always lowercase.
   Slightly larger than the surrounding copy so it reads as a wordmark. */
.brand {
  font-family: var(--font-brand);
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: lowercase;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  scroll-margin-top: 90px;
}

.section--muted {
  background: var(--color-muted);
}

.section--inverted {
  background: var(--color-fg);
  color: var(--color-bg);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-head .lead {
  margin-top: 1.25rem;
}

.section-index {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-faint-fg);
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  gap: var(--gutter);
}

/* Grid items must be allowed to shrink below their min-content width,
   otherwise long unbreakable words (domains, German compounds) blow up the track */
.grid > * {
  min-width: 0;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border: var(--border-thick);
  border-radius: var(--radius);
  background: var(--color-fg);
  color: var(--color-bg);
  transition: background var(--transition), color var(--transition);
}

.btn:hover {
  background: var(--color-bg);
  color: var(--color-fg);
}

.btn--outline {
  background: transparent;
  color: var(--color-fg);
}

.btn--outline:hover {
  background: var(--color-fg);
  color: var(--color-bg);
}

.btn--inverted {
  background: var(--color-bg);
  color: var(--color-fg);
  border-color: var(--color-bg);
}

.btn--inverted:hover {
  background: transparent;
  color: var(--color-bg);
}

.btn--sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  border-width: 1px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-bottom: var(--border-thick);
  padding-bottom: 0.2rem;
  transition: gap var(--transition);
}

.arrow-link:hover {
  gap: 0.9rem;
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: var(--border-hairline);
  transition: border-color var(--transition);
}

.site-header.is-scrolled {
  border-bottom: var(--border-thin);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 72px;
}

.site-header__brand img {
  height: 48px;
  width: auto;
}

.site-header__brand .brand {
  font-size: 1.6rem;
  color: var(--color-fg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--color-fg);
}

/* Mega menu (nav groups) */
.nav-group__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  padding-block: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-fg);
  border-bottom: 2px solid transparent;
}

.nav-group__toggle::after {
  content: "+";
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  transition: transform var(--transition);
}

.nav-group__toggle:hover,
.nav-group__toggle[aria-expanded="true"] {
  border-bottom-color: var(--color-fg);
}

.nav-group__toggle[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.nav-panel {
  display: none;
}

.nav-panel.is-open {
  display: block;
}

@media (min-width: 993px) {
  .nav-panel {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: var(--border-thick);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .nav-panel__inner {
    max-width: var(--container);
    margin-inline: auto;
    padding: 2.5rem var(--gutter) 3rem;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
}

.nav-col h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-faint-fg);
  margin-bottom: 0.9rem;
}

.nav-col ul {
  list-style: none;
  display: grid;
  gap: 0.15rem;
}

/* Stacked sub-groups within one mega-menu column */
.nav-col ul + h3 {
  margin-top: 1.5rem;
}

/* Stacked sub-groups within one footer column */
.site-footer__colgroup nav + nav {
  margin-top: 1.75rem;
}

.nav-col a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.95rem;
  color: var(--color-muted-fg);
  border-bottom: none;
}

.nav-col a:hover {
  color: var(--color-fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-col a.nav-col__hub {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-fg);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: var(--border-thin);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.lang-switch a,
.lang-switch span {
  padding: 0.35rem 0.65rem;
  border-bottom: none;
}

.lang-switch .is-active {
  background: var(--color-fg);
  color: var(--color-bg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: var(--border-thin);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-fg);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem var(--gutter) 2rem;
    background: var(--color-bg);
    transform: translateX(100%);
    transition: transform 250ms ease;
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a {
    width: 100%;
    padding: 1.1rem 0;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: var(--border-hairline);
  }

  .site-nav .nav-group {
    width: 100%;
  }

  .site-nav .nav-group__toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 1.1rem 0;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: var(--border-hairline);
  }

  .site-nav .nav-panel {
    border-bottom: var(--border-hairline);
  }

  .site-nav .nav-panel__inner {
    display: grid;
    gap: 1.75rem;
    padding: 1rem 0 1.75rem;
  }

  .site-nav .nav-col a {
    width: 100%;
    padding: 0.45rem 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    border-bottom: none;
  }

  .site-nav .nav-col a.nav-col__hub {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
  }

  .site-nav .lang-switch {
    margin-top: 1.5rem;
  }

  .site-nav .lang-switch a {
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-bottom: none;
  }

  .site-nav .btn {
    margin-top: 1.5rem;
    width: 100%;
  }
}

body.nav-locked {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(72px + clamp(3.5rem, 9vw, 7rem));
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  border-bottom: var(--border-thick);
}

.hero--sub {
  padding-top: calc(72px + 2rem);
}

.hero__title {
  max-width: 17ch;
}

.hero__title .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--color-fg);
}

.hero__lead {
  max-width: 42rem;
  margin-top: 1.75rem;
}

.hero__actions {
  margin-top: 2.5rem;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--border-thin);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.hero__facts > div {
  padding: 1.5rem;
}

.hero__facts > div + div {
  border-left: var(--border-thin);
}

.hero__facts h3,
.hero__facts-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--color-fg);
}

.hero__facts p {
  font-size: 0.95rem;
  color: var(--color-muted-fg);
}

@media (max-width: 768px) {
  .hero__facts {
    grid-template-columns: 1fr;
  }

  .hero__facts > div + div {
    border-left: none;
    border-top: var(--border-thin);
  }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  border: var(--border-hairline);
  background: var(--color-bg);
  padding: 2rem;
  transition: border-color var(--transition);
}

.card:hover {
  border-color: var(--color-fg);
}

.app-refs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.app-ref {
  flex: 0 1 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: 1.75rem 1.25rem;
  border: var(--border-hairline);
  background: var(--color-bg);
  transition: border-color var(--transition);
}
.app-ref:hover {
  border-color: var(--color-fg);
}
.app-ref__icon {
  width: 72px;
  height: 72px;
  max-width: 100%;
  border-radius: 16px;
}
.app-ref__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--color-fg);
}
.app-ref__links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  margin-top: auto;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.9rem;
  background: var(--color-fg);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition);
}
.store-btn:hover {
  opacity: 0.82;
}
.store-btn__i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--color-muted-fg);
  flex-grow: 1;
}

.card .arrow-link {
  margin-top: 1.5rem;
  align-self: flex-start;
}

.card__icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 1.25rem;
}

/* Featured (flagship) cards */
.feature-card {
  display: flex;
  flex-direction: column;
  border: var(--border-thick);
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--color-bg);
  transition: background var(--transition), color var(--transition);
}

.feature-card:hover {
  background: var(--color-fg);
  color: var(--color-bg);
}

.feature-card:hover p {
  color: var(--color-bg);
}

.feature-card:hover .arrow-link {
  border-color: var(--color-bg);
}

.feature-card .eyebrow {
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--color-muted-fg);
  flex-grow: 1;
  transition: color var(--transition);
}

.feature-card .arrow-link {
  margin-top: 2rem;
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   Numbered service rows (editorial list)
   -------------------------------------------------------------------------- */
.service-rows {
  border-top: var(--border-thin);
}

.service-row {
  display: grid;
  grid-template-columns: 5rem 1fr 2fr auto;
  gap: 2rem;
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: var(--border-thin);
}

.service-row__index {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-faint-fg);
}

.service-row h3 {
  font-size: 1.35rem;
}

.service-row p {
  color: var(--color-muted-fg);
}

@media (max-width: 992px) {
  .service-row {
    grid-template-columns: 3rem 1fr;
    gap: 0.75rem 1.5rem;
  }

  .service-row p,
  .service-row .arrow-link {
    grid-column: 2;
  }

  .service-row .arrow-link {
    margin-top: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */
.portfolio-card {
  border: var(--border-hairline);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}

.portfolio-card:hover {
  border-color: var(--color-fg);
}

.portfolio-card__logo {
  height: 72px;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.portfolio-card__logo img {
  max-height: 64px;
  width: auto;
  filter: grayscale(1);
  transition: filter var(--transition);
}

.portfolio-card:hover .portfolio-card__logo img {
  filter: grayscale(0);
}

.portfolio-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: var(--border-thin);
  padding: 0.25rem 0.6rem;
  margin-bottom: 1rem;
}

.portfolio-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.portfolio-card p {
  font-size: 0.95rem;
  color: var(--color-muted-fg);
  flex-grow: 1;
}

.portfolio-card .arrow-link {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  align-self: flex-start;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  border: var(--border-thin);
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem;
}

.step + .step {
  border-top: var(--border-thin);
}

.step::before {
  content: "0" counter(step);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--color-muted-fg);
}

@media (max-width: 640px) {
  .step {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   Checklist / benefit list
   -------------------------------------------------------------------------- */
.checklist {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.checklist li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.checklist li::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.3rem;
  background: var(--color-fg);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 4%, 39% 68%);
}

.section--inverted .checklist li::before {
  background: var(--color-bg);
}

.checklist strong {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   FAQ (native details/summary)
   -------------------------------------------------------------------------- */
.faq {
  border-top: var(--border-thin);
}

.faq details {
  border-bottom: var(--border-thin);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  padding: 0 0 1.5rem;
  color: var(--color-muted-fg);
  max-width: 52rem;
}

/* --------------------------------------------------------------------------
   Split layout (text + aside)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 992px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Problem / pain-point blocks
   -------------------------------------------------------------------------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: var(--border-thin);
  border-left: var(--border-thin);
}

.pain-grid > div {
  padding: 1.75rem;
  border-right: var(--border-thin);
  border-bottom: var(--border-thin);
}

.pain-grid h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.pain-grid p {
  font-size: 0.98rem;
  color: var(--color-muted-fg);
}

@media (max-width: 768px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Tech / tag list
   -------------------------------------------------------------------------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.tag-list li {
  border: var(--border-thin);
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.section--inverted .tag-list li {
  border-color: var(--color-bg);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--color-fg);
  color: var(--color-bg);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.cta-band .lead {
  color: #b8b8b8;
  max-width: 40rem;
  margin-top: 1.25rem;
}

.cta-band .btn-row {
  margin-top: 2.25rem;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-info {
  display: grid;
  gap: 0;
  border: var(--border-thin);
}

.contact-info > div {
  padding: 1.5rem;
}

.contact-info > div + div {
  border-top: var(--border-thin);
}

.contact-info h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

.contact-info a:hover {
  text-decoration: underline;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  border: var(--border-thin);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-fg);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-fg);
  outline-offset: 0;
}

.form-status {
  display: none;
  padding: 1rem 1.25rem;
  border: var(--border-thin);
  font-weight: 600;
}

.form-status.is-visible {
  display: block;
}

.form-status--error {
  background: var(--color-fg);
  color: var(--color-bg);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-fg);
  color: var(--color-bg);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.site-footer__logo {
  display: block;
  width: clamp(240px, 30vw, 360px);
  height: auto;
}

.site-footer__wordmark {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: lowercase;
}

.site-footer__tagline {
  margin-top: 0.75rem;
  color: #b8b8b8;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
}

.site-footer h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  font-family: var(--font-body);
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.site-footer ul a {
  color: #d4d4d4;
  font-size: 0.95rem;
}

.site-footer ul a:hover {
  color: var(--color-bg);
  text-decoration: underline;
}

.site-footer__bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: #b8b8b8;
}

@media (max-width: 992px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.mt-5 { margin-top: 4rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.max-w-prose { max-width: 46rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: var(--color-fg);
  color: var(--color-bg);
  padding: 0.75rem 1.25rem;
}

.skip-link:focus {
  left: var(--gutter);
  top: var(--gutter);
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.85rem;
  color: var(--color-muted-fg);
  margin-bottom: 2rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--color-faint-fg);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-fg);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Long-form prose (knowledge pages)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 52rem;
}

.prose h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 2.75rem 0 1rem;
}

.prose h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.prose p {
  margin-bottom: 1.1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.prose strong {
  font-weight: 700;
}

.toc {
  border: var(--border-thin);
  padding: 1.5rem;
  margin: 2.5rem 0;
  max-width: 52rem;
}

.toc h2 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.toc ol {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  counter-reset: toc;
}

.toc ol a {
  display: inline-flex;
  gap: 0.75rem;
  counter-increment: toc;
}

.toc ol a::before {
  content: counter(toc, decimal-leading-zero);
  font-weight: 700;
  color: var(--color-faint-fg);
}

.toc ol a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Reference / case-study box (Pauly)
   -------------------------------------------------------------------------- */
.case-box {
  border: var(--border-thick);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.case-box + .case-box {
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.case-box__logo {
  display: block;
  height: 44px;
  width: auto;
  margin-bottom: 1.1rem;
}

.case-box h3 a {
  color: inherit;
  text-decoration: none;
}

.case-box h3 a:hover {
  text-decoration: underline;
}

.case-box__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--color-fg);
  color: var(--color-bg);
  padding: 0.3rem 0.7rem;
  margin-bottom: 1rem;
}

.case-box h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.75rem;
}

/* App icon inline before the case title. */
.case-box__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.case-box__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.case-box p {
  color: var(--color-muted-fg);
  max-width: 38rem;
}

.case-box__actions {
  display: grid;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .case-box {
    grid-template-columns: 1fr;
  }

  .case-box__actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .case-box__actions .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Project inquiry form (multi-step)
   -------------------------------------------------------------------------- */
.split--form {
  grid-template-columns: 2fr 3fr;
}

@media (max-width: 992px) {
  .split--form {
    grid-template-columns: 1fr;
  }
}

.pform {
  border: var(--border-thick);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  display: grid;
  gap: 1.75rem;
}

.pform fieldset {
  border: none;
  min-width: 0;
}

.pform__progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: var(--border-thin);
}

.pform__progress li {
  padding: 0 0 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-faint-fg);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pform__progress li.is-active {
  color: var(--color-fg);
  border-bottom-color: var(--color-fg);
}

.pform__progress li.is-done {
  color: var(--color-fg);
}

.pform__progress-num {
  font-family: var(--font-heading);
  font-weight: 800;
  margin-right: 0.25rem;
}

.pform__q {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pform__q + .pform__q,
.pform__pills + .pform__q,
.pform__pills + p.pform__q {
  margin-top: 1.75rem;
}

/* Project type tiles */
.pform__tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 560px) {
  .pform__tiles {
    grid-template-columns: 1fr;
  }
}

.pform__tile {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  border: var(--border-thin);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.pform__tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pform__tile-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.pform__tile-sub {
  font-size: 0.85rem;
  color: var(--color-muted-fg);
  transition: color var(--transition);
}

.pform__tile:hover {
  background: var(--color-muted);
}

.pform__tile:has(input:checked) {
  background: var(--color-fg);
  color: var(--color-bg);
}

.pform__tile:has(input:checked) .pform__tile-sub {
  color: #b8b8b8;
}

.pform__tile:has(input:focus-visible) {
  outline: 2px solid var(--color-fg);
  outline-offset: 2px;
}

/* Pills (budget / timeframe) */
.pform__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pform__pill {
  cursor: pointer;
  position: relative;
}

.pform__pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pform__pill span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: var(--border-thin);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.pform__pill:hover span {
  background: var(--color-muted);
}

.pform__pill:has(input:checked) span {
  background: var(--color-fg);
  color: var(--color-bg);
}

.pform__pill:has(input:focus-visible) span {
  outline: 2px solid var(--color-fg);
  outline-offset: 2px;
}

/* Step visibility (JS-driven; without JS all steps are visible) */
html.js .pform__step {
  display: none;
}

html.js .pform__step.is-active {
  display: block;
}

.pform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 560px) {
  .pform__row {
    grid-template-columns: 1fr;
  }
}

.pform__privacy {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-faint-fg);
}

.pform__nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: var(--border-hairline);
  padding-top: 1.5rem;
}

.pform__nav .pform__next,
.pform__nav .pform__submit {
  margin-left: auto;
}

html:not(.js) .pform__nav .pform__next,
html:not(.js) .pform__nav .pform__back {
  display: none;
}

html:not(.js) .pform__nav .pform__submit {
  display: inline-flex !important;
}

/* Footer brand row + wide SEO link grid */
.site-footer__brandrow {
  margin-bottom: 2.5rem;
}

/* The footer may run wider than the page container to give the link columns room. */
.site-footer > .container {
  max-width: 1560px;
}

.site-footer__grid--wide {
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
}

@media (max-width: 1200px) {
  .site-footer__grid--wide {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .site-footer__grid--wide {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .site-footer__grid--wide {
    grid-template-columns: 1fr;
  }
}

/* Contact CTA stack (left column of the inquiry section) */
.contact-ctas {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.contact-cta {
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-size: 1.05rem;
}

.contact-cta__icon {
  flex-shrink: 0;
}

.contact-ctas__hint {
  font-size: 0.875rem;
  color: var(--color-faint-fg);
  margin: -0.35rem 0 0.6rem;
}

.contact-ctas__hint--form {
  margin-top: 1rem;
  color: var(--color-muted-fg);
}

/* Phone CTA: action label on touch/small screens, plain number on desktop */
.contact-cta__desktop { display: inline; }
.contact-cta__mobile { display: none; }

@media (max-width: 992px), (hover: none) {
  .contact-cta__desktop { display: none; }
  .contact-cta__mobile { display: inline; }
}

/* Privacy consent checkbox (step 3) */
.pform__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  margin-top: 1.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-muted-fg);
}

.pform__consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--color-fg);
  cursor: pointer;
}

.pform__consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  color: var(--color-fg);
}

/* --------------------------------------------------------------------------
   Timeline (regulatory roadmap etc.)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 52rem;
  padding-left: 0.5rem;
}

/* the container itself only draws the line — items reveal individually */
.timeline[data-reveal] {
  opacity: 1;
  transform: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--color-fg);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1400ms ease;
}

.timeline.is-revealed::before {
  transform: scaleY(1);
}

.timeline__item {
  position: relative;
  padding: 0 0 2.75rem 3rem;
}

.timeline__item:last-child {
  padding-bottom: 0.5rem;
}

/* square marker on the rail — filled for milestones already in force */
.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 18px;
  height: 18px;
  background: var(--color-bg);
  border: 2px solid var(--color-fg);
}

.timeline__item--done::before {
  background: var(--color-fg);
}

.timeline__year {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.timeline__item--done .timeline__year::after {
  content: "✓";
  font-size: 0.7em;
  margin-left: 0.5rem;
  vertical-align: 0.15em;
}

.timeline__body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.timeline__body p {
  color: var(--color-muted-fg);
  max-width: 44rem;
}

@media (prefers-reduced-motion: reduce) {
  .timeline::before {
    transform: none;
    transition: none;
  }
}



/* Tag list as link chips (e.g. city cross-linking) */
.tag-list--links li {
  padding: 0;
  border: none;
}

.tag-list--links a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: var(--border-thin);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.tag-list--links a:hover {
  background: var(--color-fg);
  color: var(--color-bg);
}

/* --------------------------------------------------------------------------
   App showcase — phone-screenshot slider ('showcase' section type).
   Animation & structure copied from getpauly.com, restyled monochrome:
   no colored glows, square tag pill/arrows/dots per the 0-radius system.
   The phone bezel keeps its rounded corners (it depicts a physical device).
   -------------------------------------------------------------------------- */
.showcase {
  text-align: center;
  overflow: hidden;
}

.fc-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 40px;
  position: relative;
}

.fc-arrow {
  width: 52px;
  height: 52px;
  border: var(--border-thin);
  background: var(--color-bg);
  color: var(--color-fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  z-index: 5;
}

.fc-arrow:hover {
  background: var(--color-fg);
  color: var(--color-bg);
  transform: scale(1.05);
}

.fc-arrow:active {
  transform: scale(0.95);
}

.fc-arrow:focus-visible,
.fc-dot:focus-visible {
  outline: 2px solid var(--color-fg);
  outline-offset: 2px;
}

.fc-arrow svg {
  width: 18px;
  height: 18px;
}

.fc-phone {
  border-radius: 36px;
  background: #111;
  padding: 10px;
  position: relative;
  flex-shrink: 0;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.18),
    0 6px 20px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.fc-phone::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #111;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}

.fc-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: #f8f9fa;
}

.fc-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.97);
  will-change: opacity, transform;
}

.fc-screen img.active {
  opacity: 1;
  transform: scale(1);
}

.fc-phone-center {
  width: 260px;
  height: 530px;
  z-index: 3;
}

.fc-phone-side {
  width: 200px;
  height: 408px;
  border-radius: 30px;
  padding: 8px;
  opacity: 0.45;
  transform: scale(0.88);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.fc-phone-side::before {
  width: 68px;
  height: 18px;
  top: 8px;
  border-radius: 0 0 10px 10px;
}

.fc-phone-side .fc-screen {
  border-radius: 24px;
}

.fc-phone-side .fc-screen img {
  opacity: 1;
  transform: scale(1);
}

.fc-phone-side:hover {
  opacity: 0.65;
  transform: scale(0.91);
}

.fc-side-left {
  margin-right: -12px;
}

.fc-side-right {
  margin-left: -12px;
}

/* Reserved height keeps slide-text changes from shifting the layout (CLS). */
.fc-text {
  text-align: center;
  min-height: 130px;
}

.fc-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: var(--border-thin);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.fc-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-fg);
  margin-bottom: 6px;
}

.fc-desc {
  font-size: 0.95rem;
  color: var(--color-muted-fg);
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto;
}

.fc-text-inner {
  animation: fcFadeIn 0.3s ease both;
}

@keyframes fcFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fc-dots {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 24px;
}

/* 24×24 touch target (WCAG 2.5.8) with the visual dot drawn via ::before. */
.fc-dot {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fc-dot::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--color-hairline);
  transition: all 0.3s;
}

.fc-dot.active::before {
  background: var(--color-fg);
  width: 28px;
}

@media (max-width: 768px) {
  .fc-stage { margin-top: 28px; }
  .fc-phone-side { display: none; }
  .fc-phone-center {
    width: 220px;
    height: 450px;
    border-radius: 30px;
    padding: 8px;
    margin: 0 14px;
  }
  .fc-phone-center::before { width: 76px; height: 20px; top: 8px; }
  .fc-phone-center .fc-screen { border-radius: 24px; }
  .fc-arrow { width: 44px; height: 44px; }
  .fc-title { font-size: 1.15rem; }
  .fc-desc { font-size: 0.9rem; }
  .fc-text { min-height: 150px; }
}

@media (max-width: 480px) {
  .fc-phone-center {
    width: 195px;
    height: 400px;
    border-radius: 26px;
    padding: 7px;
    margin: 0 8px;
  }
  .fc-phone-center::before { width: 66px; height: 17px; top: 7px; }
  .fc-phone-center .fc-screen { border-radius: 21px; }
  .fc-arrow { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .fc-screen img,
  .fc-phone-side,
  .fc-arrow {
    transition: none;
  }
  .fc-text-inner {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Case-box screenshot thumbnail + lightbox slider.
   The thumbnail sits at the left edge of a case box; clicking it opens the
   <dialog> lightbox and pages through the app's screenshots.
   -------------------------------------------------------------------------- */
.case-box--gallery {
  grid-template-columns: auto 1fr auto;
}

.case-box__shot {
  display: block;
  width: clamp(96px, 11vw, 132px);
  padding: 0;
  border: var(--border-thin);
  background: none;
  cursor: zoom-in;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.case-box__shot img {
  display: block;
  width: 100%;
  height: auto;
}

.case-box__shot:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 var(--color-fg);
}

.case-box__shot:focus-visible {
  outline: 2px solid var(--color-fg);
  outline-offset: 3px;
}

/* Framed variant (raw in-app screenshots): mini phone bezel like the showcase
   slider. Store-design galleries keep the plain 1px border. */
.case-box__shot--framed {
  border: none;
  background: #111;
  padding: 4px;
  border-radius: 18px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.case-box__shot--framed img {
  border-radius: 14px;
}

.case-box__shot--framed::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 10px;
  background: #111;
  border-radius: 0 0 6px 6px;
  z-index: 2;
}

.case-box__shot--framed .case-box__shot-hint {
  right: 4px;
  bottom: 4px;
  border-bottom-right-radius: 12px;
}

/* Expand glyph in the corner — visible without hover (touch devices). */
.case-box__shot-hint {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32px;
  height: 32px;
  background: var(--color-fg);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-box__shot-hint svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .case-box--gallery {
    grid-template-columns: 1fr;
  }

  .case-box__shot {
    width: 132px;
    justify-self: center;
  }
}

/* Lightbox — the <dialog> itself is the dark full-viewport surface, so a
   click on any empty area (e.target === dialog) closes it. */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: none;
  padding: clamp(0.75rem, 2.5vw, 1.5rem);
  background: rgba(0, 0, 0, 0.96);
  color: #fff;
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-bottom: 0.75rem;
}

.lightbox__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.lightbox__count {
  margin-left: auto;
  color: #b8b8b8;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.lightbox__btn {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.lightbox__btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.lightbox__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lightbox__btn svg {
  width: 20px;
  height: 20px;
}

.lightbox__stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  width: 100%;
  position: relative;
  touch-action: pan-y;
}

.lightbox__frame {
  max-height: 100%;
  min-height: 0;
  display: flex;
}

.lightbox__img {
  max-height: calc(100dvh - 140px);
  max-width: min(88vw, 420px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

/* Phone-bezel variant for raw in-app screenshots (same look as the slider).
   Bezel thickness, corner radius and notch scale with the viewport so the
   frame keeps the slider's proportions at any popup size. */
.lightbox__frame--phone {
  --lb-pad: clamp(8px, 1.3vw, 19px);
  --lb-rad: clamp(32px, 4vw, 56px);
  background: #111;
  padding: var(--lb-pad);
  border-radius: var(--lb-rad);
  position: relative;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lightbox__frame--phone::before {
  content: '';
  position: absolute;
  top: var(--lb-pad);
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  height: 3.2%;
  background: #111;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.lightbox__frame--phone .lightbox__img {
  max-height: calc(100dvh - 170px);
  border-radius: calc(var(--lb-rad) - var(--lb-pad));
  box-shadow: none;
}

/* Mobile: arrows overlay the lower corners so the image can use the full
   width; swiping on the image works as well. */
@media (max-width: 600px) {
  .lightbox__nav {
    position: absolute;
    bottom: 0.5rem;
    z-index: 2;
  }

  .lightbox__nav--prev { left: 0.25rem; }
  .lightbox__nav--next { right: 0.25rem; }

  .lightbox__img {
    max-width: 92vw;
  }
}
