/* Gera landing — light, monochrome. One stylesheet for both directions (logical properties). */

@font-face {
  font-family: "Farhang";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/farhang.woff2") format("woff2");
}

/* Fallback for the Latin-1 letters, punctuation and arrows Farhang does not include. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+00A0-00FF, U+2010-2027, U+2030-205E, U+2190-2199;
}

/* The app's logo face. */
@font-face {
  font-family: "Tiny5";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/assets/fonts/tiny5.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-soft: #f7f7f6;
  --ink: #0a0a0a;
  --ink-2: #262626;
  --muted: #6b6b69;
  --faint: #a3a3a1;
  --line: #e8e8e6;
  --line-strong: #d4d4d1;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;

  --shadow-frame: 0 1px 2px rgb(10 10 10 / 0.04), 0 24px 60px -24px rgb(10 10 10 / 0.18);
  --shadow-card: 0 1px 2px rgb(10 10 10 / 0.04), 0 12px 32px -18px rgb(10 10 10 / 0.16);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;

  --font: "Farhang", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-axes: "SERI" 10;
  --tracking-display: -0.025em;
}

:root:lang(fa) {
  --display-axes: normal;
  --tracking-display: 0;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

:lang(fa) body {
  line-height: 1.9;
}

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

img {
  height: auto;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul[role="list"] {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
}

.skip-link:focus {
  top: 12px;
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[dir="rtl"] .i--dir {
  transform: scaleX(-1);
}

/* ---------- Type ---------- */

.display {
  font-variation-settings: var(--display-axes);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.eyebrow {
  display: inline-block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

:lang(fa) .eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 350;
  line-height: 1.65;
  text-wrap: pretty;
}

:lang(fa) .lead {
  line-height: 2;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--ink-2);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: transparent;
}

.btn--sm {
  min-height: 38px;
  padding: 6px 16px;
  font-size: 0.875rem;
}

.btn .i {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn:hover .i--dir {
  transform: translateX(3px);
}

[dir="rtl"] .btn:hover .i--dir {
  transform: scaleX(-1) translateX(3px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Logo (the app's own mark: Tiny5 "G" on a primary square) ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-family: "Tiny5", monospace;
  font-size: 1.125rem;
  line-height: 1;
}

.brand__name {
  font-family: "Tiny5", monospace;
  font-size: 1.25rem;
  line-height: 1;
  direction: ltr;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgb(255 255 255 / 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: border-color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 100%;
}

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

.nav a {
  padding: 8px 14px;
  color: var(--muted);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-2);
  transition: background-color 0.2s ease;
}

.icon-btn:hover {
  background: var(--bg-soft);
}

.menu-toggle {
  display: none;
}

.menu-toggle .i--close,
.is-open .menu-toggle .i--menu {
  display: none;
}

.is-open .menu-toggle .i--close {
  display: block;
}

.nav__extra {
  display: none;
}

@media (max-width: 960px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .site-header__actions .btn {
    display: none;
  }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.0625rem;
  }

  .nav__extra {
    display: grid;
    padding-top: 20px;
  }

  .is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(44px, 6vw, 84px) 0;
}

.hero__bg {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: min(1100px, 120svh);
  background:
    radial-gradient(55% 45% at 50% 0%, rgb(10 10 10 / 0.07), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 50% 0 / 88px 88px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 50% 0 / 88px 88px;
  mask-image: radial-gradient(70% 62% at 50% 18%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 62% at 50% 18%, #000 25%, transparent 78%);
}

.hero__copy {
  display: grid;
  justify-items: center;
  gap: 24px;
  max-width: 1120px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 1.2rem + 5vw, 5.25rem);
  font-weight: 700;
  line-height: 1;
}

:lang(fa) .hero h1 {
  font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.75rem);
  font-weight: 800;
  line-height: 1.3;
}

.hero h1 span {
  display: block;
  color: var(--faint);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  color: var(--muted);
  font-size: 0.875rem;
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero__meta li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
}

/* Layered product shots: the dashboard in front, two screens angled behind it. */
.hero__stage {
  position: relative;
  margin-top: clamp(48px, 6vw, 72px);
  perspective: 2400px;
}

.hero__main {
  position: relative;
  z-index: 2;
  width: min(100%, 940px);
  margin-inline: auto;
}

.hero__side {
  position: absolute;
  top: 11%;
  z-index: 1;
  width: 52%;
  box-shadow: var(--shadow-card);
}

.hero__side--left {
  left: -21%;
  transform: rotateY(-24deg) scale(0.84);
  transform-origin: right center;
  mask-image: linear-gradient(to right, transparent 0%, #000 42%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%);
}

.hero__side--right {
  right: -21%;
  transform: rotateY(24deg) scale(0.84);
  transform-origin: left center;
  mask-image: linear-gradient(to left, transparent 0%, #000 42%);
  -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 42%);
}

.hero__chip {
  position: absolute;
  top: -18px;
  inset-inline-start: 5%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-card);
}

.hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(255 255 255 / 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgb(255 255 255 / 0);
  }
}

.hero__kpi {
  position: absolute;
  bottom: 12%;
  inset-inline-end: -32px;
  z-index: 3;
  display: grid;
  gap: 2px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-frame);
}

.hero__kpi small {
  color: var(--muted);
  font-size: 0.8125rem;
}

.hero__kpi strong {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  font-variation-settings: var(--display-axes);
}

@media (max-width: 1180px) {
  .hero__kpi {
    inset-inline-end: 16px;
  }
}

@media (max-width: 760px) {
  .hero__side {
    display: none;
  }
  .hero__chip {
    top: -14px;
    padding: 7px 12px;
    font-size: 0.75rem;
  }
  .hero__kpi {
    bottom: 10px;
    inset-inline-end: 10px;
    padding: 10px 14px;
  }
  .hero__kpi strong {
    font-size: 1.4rem;
  }
}

/* Entrance on load, then a gentle spread as the page scrolls. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero__copy > :nth-child(2) {
    animation-delay: 0.08s;
  }
  .hero__copy > :nth-child(3) {
    animation-delay: 0.16s;
  }
  .hero__copy > :nth-child(4) {
    animation-delay: 0.24s;
  }
  .hero__copy > :nth-child(5) {
    animation-delay: 0.32s;
  }
  .hero__stage {
    animation: rise-far 1.2s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  @supports (animation-timeline: scroll()) {
    .hero__side--left {
      animation: spread-left linear both;
      animation-timeline: scroll(root);
      animation-range: 0 70svh;
    }
    .hero__side--right {
      animation: spread-right linear both;
      animation-timeline: scroll(root);
      animation-range: 0 70svh;
    }
    .hero__main {
      animation: settle linear both;
      animation-timeline: scroll(root);
      animation-range: 0 60svh;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes rise-far {
  from {
    opacity: 0;
    transform: translateY(48px);
  }
}

@keyframes spread-left {
  to {
    transform: translateX(-10%) rotateY(-32deg) scale(0.8);
    opacity: 0.6;
  }
}

@keyframes spread-right {
  to {
    transform: translateX(10%) rotateY(32deg) scale(0.8);
    opacity: 0.6;
  }
}

@keyframes settle {
  from {
    transform: scale(0.97);
  }
  to {
    transform: scale(1.02);
  }
}

/* ---------- Browser frame ---------- */

.frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-frame);
}

.frame__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 38px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  direction: ltr;
}

.frame__dots {
  display: flex;
  gap: 7px;
}

.frame__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.frame__url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: min(240px, 40vw);
  padding: 3px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.frame__url .i {
  width: 11px;
  height: 11px;
}

.frame img {
  width: 100%;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.stat {
  padding: 28px 24px 0;
}

.stat:first-child {
  padding-inline-start: 0;
}

.stat + .stat {
  border-inline-start: 1px solid var(--line);
}

.stat dt {
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  font-variation-settings: var(--display-axes);
  letter-spacing: var(--tracking-display);
}

.stat dd {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:nth-child(3) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
  .stat:nth-child(n + 3) {
    margin-top: 28px;
    border-top: 1px solid var(--line);
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(88px, 12vw, 160px);
}

.section--soft {
  background: var(--bg-soft);
}

.section__head {
  display: grid;
  gap: 20px;
  max-width: 820px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section__head--center {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.section h2 {
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
}

:lang(fa) .section h2 {
  font-weight: 800;
  line-height: 1.45;
}

.section h3 {
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.4;
}

.checks {
  display: grid;
  gap: 12px;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-2);
}

.checks .i {
  width: 18px;
  height: 18px;
  margin-top: 0.22em;
  stroke-width: 2;
}

:lang(fa) .checks .i {
  margin-top: 0.38em;
}

/* ---------- Tour: pinned stepper ---------- */

/* Unpinned (no JS, or a viewport too short to pin): panels stack, steps hidden. */
.steps {
  display: none;
}

.panel {
  display: grid;
  gap: 28px;
  align-items: center;
}

.panel + .panel {
  margin-top: 72px;
}

.panel__copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.panel__copy h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  font-variation-settings: var(--display-axes);
  letter-spacing: var(--tracking-display);
}

:lang(fa) .panel__copy h3 {
  line-height: 1.5;
}

.panel__index {
  color: var(--faint);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
}

@media (min-width: 1000px) {
  .panel {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 64px;
  }
}

/* Pinned: the step list, the active step's copy and its screenshot share one
   screen. Every panel sits in the same subgrid cell, so rows keep the height of
   the tallest step and nothing moves when the step changes. */
.tour--pinned {
  --step-scroll: 60svh;
}

.tour--pinned .tour__track {
  position: relative;
  height: calc(6 * var(--step-scroll) + 100svh - var(--header-h));
}

.tour--pinned .tour__sticky {
  position: sticky;
  top: var(--header-h);
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: clamp(40px, 6vw, 88px);
  row-gap: 36px;
  height: calc(100svh - var(--header-h));
  padding-block: 32px;
}

.tour--pinned .steps {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  display: grid;
}

.step {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-block: 11px;
  padding-inline: 22px 0;
  border: 0;
  border-inline-start: 1px solid var(--line);
  background: none;
  color: var(--faint);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: start;
  transition: color 0.25s ease;
}

.step::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -1px;
  width: 2px;
  background: var(--ink);
  transform: scaleY(var(--fill, 0));
  transform-origin: top;
}

.step:hover {
  color: var(--ink-2);
}

.step[aria-selected="true"] {
  color: var(--ink);
}

.step__num {
  min-width: 2ch;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.tour--pinned .tour__stage {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  min-height: 0;
}

.tour--pinned .panel {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  gap: inherit;
  margin: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.tour--pinned .panel.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s;
}

.tour--pinned .panel > * {
  pointer-events: auto;
}

.tour--pinned .panel__index {
  display: none;
}

.tour--pinned .panel__copy {
  grid-column: 1;
  grid-row: 2;
  padding-inline-start: 23px;
}

.tour--pinned .panel .frame {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: calc((100svh - var(--header-h) - 64px) * 1.55);
}

.tour--pinned .panel.is-active .panel__copy,
.tour--pinned .panel.is-active .frame {
  animation: step-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (max-height: 820px) {
  .tour--pinned .panel .checks {
    display: none;
  }
}

/* Pinned on narrow screens: chips, then copy, then the screenshot. */
@media (max-width: 999px) {
  .tour--pinned {
    --step-scroll: 55svh;
  }

  .tour--pinned .tour__sticky {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: stretch;
    row-gap: 20px;
    padding-block: 18px;
  }

  .tour--pinned .steps {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tour--pinned .steps::-webkit-scrollbar {
    display: none;
  }

  .tour--pinned .step {
    flex: none;
    padding: 8px 14px;
    border: 1px solid var(--line);
    font-size: 0.875rem;
  }

  .tour--pinned .step::before {
    inset: auto -1px -1px;
    width: auto;
    height: 2px;
    transform: scaleX(var(--fill, 0));
    transform-origin: left;
  }

  [dir="rtl"] .tour--pinned .step::before {
    transform-origin: right;
  }

  .tour--pinned .step[aria-selected="true"] {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
  }

  .tour--pinned .step__num {
    display: none;
  }

  .tour--pinned .panel__copy {
    grid-row: 2;
    gap: 8px;
    padding-inline-start: 0;
  }

  .tour--pinned .panel__copy p {
    font-size: 0.975rem;
  }

  .tour--pinned .panel .checks {
    display: none;
  }

  .tour--pinned .panel .frame {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    max-width: calc((100svh - var(--header-h) - 340px) * 1.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour--pinned .panel,
  .tour--pinned .panel.is-active {
    transition: none;
  }
  .tour--pinned .panel.is-active .panel__copy,
  .tour--pinned .panel.is-active .frame {
    animation: none;
  }
}

/* ---------- Blueprints ---------- */

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.point {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-block: 28px 0;
  padding-inline: 0 28px;
}

.point + .point {
  padding-inline-start: 28px;
  border-inline-start: 1px solid var(--line);
}

.point p {
  color: var(--muted);
  font-size: 0.975rem;
}

@media (max-width: 800px) {
  .points {
    grid-template-columns: minmax(0, 1fr);
  }
  .point,
  .point + .point {
    padding: 22px 0;
    border-inline-start: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Bento ---------- */

.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

@media (min-width: 960px) {
  .bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .card--wide {
    grid-column: span 2;
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.card p {
  color: var(--muted);
  font-size: 0.975rem;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card__shot {
  margin: 18px -32px -32px;
  margin-top: auto;
  padding-top: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 6.2;
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
}

.card__shot img {
  width: 128%;
  max-width: none;
  margin-inline-start: -21%;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 0 0 1px var(--line);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.chips li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 0.875rem;
}

/* ---------- Managed service ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.pillar {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-block: 40px 44px;
  padding-inline: 0 36px;
}

.pillar + .pillar {
  padding-inline-start: 36px;
  border-inline-start: 1px solid var(--line);
}

.pillar .i {
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  stroke-width: 1.25;
}

.pillar p {
  color: var(--muted);
  font-size: 0.975rem;
}

@media (max-width: 860px) {
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }
  .pillar,
  .pillar + .pillar {
    padding: 32px 0;
    border-inline-start: 0;
  }
  .pillar + .pillar {
    border-top: 1px solid var(--line);
  }
}

/* ---------- Compliance band ---------- */

.band {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  padding: clamp(36px, 6vw, 80px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #f2f2f0;
}

.band .eyebrow,
.band .lead {
  color: #a3a3a0;
}

.band .checks {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0 40px;
}

.band .checks li {
  padding-block: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  color: inherit;
}

.band .checks strong {
  display: block;
  font-weight: 650;
}

.band .checks span span {
  display: block;
  margin-top: 2px;
  color: #a3a3a0;
  font-size: 0.9375rem;
}

.band h2 {
  font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem);
}

@media (min-width: 1000px) {
  .band {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }
  .band .section__head {
    margin-bottom: 0;
  }
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 860px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-size: 1.125rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.25px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.25px 14px no-repeat;
  transition: transform 0.3s ease;
}

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

.faq details p {
  max-width: 70ch;
  padding-bottom: 28px;
  color: var(--muted);
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete;
  }
  .faq details[open]::details-content {
    block-size: auto;
  }
}

/* ---------- CTA ---------- */

.cta {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.cta .lead {
  max-width: 54ch;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 36px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.site-footer a:hover {
  color: var(--ink);
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media print {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .site-header {
    display: none;
  }
}
