:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #14171c;
  --muted: #5a6270;
  --line: #e2e5ea;
  --accent: #0b6bcb;
  --accent-text: #ffffff;
  --radius: 14px;
  --ok: #17794a;
  --next: #9a5b00;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #161a21;
    --text: #e8ebf0;
    --muted: #9aa3b2;
    --line: #262c36;
    --accent: #4c9bff;
    --accent-text: #0b0e13;
    --ok: #4cc38a;
    --next: #f0a847;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 20px; }
.brand svg { width: 34px; height: 34px; }
.login { font-size: 15px; font-weight: 500; text-decoration: none; }

.hero { padding: 72px 0 56px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.02em; max-width: 18ch; }
.hero p { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 58ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 1px solid var(--accent);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn.primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); transform: translateY(-1px); }
.btn.ghost { color: var(--accent); }
.btn.ghost:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* Official "Get it on Google Play" badge in the hero CTA row.
   Height-sized so the artwork keeps its aspect ratio (per Google's rules:
   never stretch or restyle the badge). The badge artwork carries built-in
   padding, so the box is sized up (68px) for the visible mark to match
   the ~52px buttons beside it. */
.cta { align-items: center; }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 68px; width: auto; }
.store-badge-apple img { height: 50px; }

section h2 { font-size: 24px; margin: 0 0 20px; letter-spacing: -0.01em; }
.features { padding: 24px 0 64px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
/* Feature-card icon: a tinted rounded tile around the stroke icon. */
.card > svg {
  box-sizing: content-box; width: 24px; height: 24px; padding: 10px; margin-bottom: 14px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); border-radius: 12px;
}
.grid .card { transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.grid .card:hover {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 18px 36px -22px rgb(0 0 0 / 0.35);
}

.how { padding: 0 0 64px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step { padding: 4px 0 0 44px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--accent);
}
.step h3 { margin: 0 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.contact { padding: 0 0 72px; }
.contact .card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 60%);
}
.contact h2 { margin: 0 0 4px; }
.contact p { margin: 0; color: var(--muted); }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 28px; }
.nav { display: flex; align-items: center; gap: 18px; }
.lang { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; }
.lang:hover { color: var(--text); }

.screens { padding: 8px 0 56px; }
.shot { margin: 0 0 28px; }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 12px 32px -12px rgb(0 0 0 / 0.18);
  background: var(--surface);
}
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; }
.shot-note { margin: -8px 0 0; color: var(--muted); font-size: 13px; }

/* Screenshot gallery: the shots sit side by side in a scroll-snap
   track, each framed in a fixed-ratio viewer, with overlay arrows
   on the sides and dots plus a counter below. The track stays
   swipeable with no JavaScript; site.js only wires the controls. */
.gallery { container-type: inline-size; position: relative; margin: 0 0 28px; }
.gallery-track {
  display: flex; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track .shot { flex: 0 0 100%; scroll-snap-align: center; margin: 0; }
.shot-media {
  aspect-ratio: 16 / 10; overflow: hidden;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 24px 48px -24px rgb(0 0 0 / 0.28);
}
.shot-media img { width: 100%; height: 100%; object-fit: contain; display: block; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.gallery-track .shot figcaption { min-height: 3.2em; }
.gallery-btn {
  position: absolute; z-index: 2;
  top: 32%; top: calc(50cqw / 1.6); transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.12), 0 12px 28px -12px rgb(0 0 0 / 0.3);
  transition: border-color 0.15s, color 0.15s, opacity 0.15s;
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-btn:hover { border-color: var(--accent); color: var(--accent); }
.gallery-btn:disabled { opacity: 0.35; cursor: default; }
.gallery-btn:disabled:hover { border-color: var(--line); color: var(--text); }
.gallery-btn svg { width: 18px; height: 18px; }
.gallery-bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.gallery-dots { display: flex; align-items: center; gap: 8px; }
.gallery-dot {
  width: 8px; height: 8px; border-radius: 999px; padding: 0; cursor: pointer;
  background: transparent; border: 1.5px solid var(--muted); opacity: 0.5;
  transition: width 0.2s, background-color 0.2s, border-color 0.2s, opacity 0.2s;
}
.gallery-dot[aria-current="true"] { width: 26px; background: var(--accent); border-color: var(--accent); opacity: 1; }
.gallery-count { margin: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .gallery-track { scroll-behavior: auto; }
  .gallery-dot { transition: none; }
}

/* Header page links (guidelines / FAQ). */
.nav .page { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--text); }
.nav .page:hover, .nav .page[aria-current="page"] { color: var(--accent); }

/* Header "Products" menu: <details class="menu">, closed by site.js on an
   outside click or Escape. Add each new product as one more link in
   .menu-panel, on every page, in both languages. */
.menu { position: relative; }
.menu summary {
  display: flex; align-items: center; gap: 7px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 500; color: var(--text);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.menu[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.menu summary:hover, .menu.current summary { color: var(--accent); }
.menu-panel {
  position: absolute; top: calc(100% + 12px); left: -14px; z-index: 20;
  width: min(300px, calc(100vw - 32px)); padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px -12px rgb(0 0 0 / 0.25);
}
.menu-panel a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--bg); }
.menu-panel strong { display: block; font-size: 15px; }
.menu-panel span { display: block; font-size: 13px; color: var(--muted); }
.menu-panel .soon { margin: 4px 0 0; padding: 8px 12px 6px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Product sub-navigation, under the header on each product page. */
.subnav { border-bottom: 1px solid var(--line); background: var(--surface); }
.subnav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; min-height: 48px; padding-top: 8px; padding-bottom: 8px; }
.subnav .product { font-weight: 700; margin-right: 6px; }
.subnav a { font-size: 15px; text-decoration: none; color: var(--muted); }
.subnav a:hover, .subnav a[aria-current="page"] { color: var(--accent); }

@media (max-width: 600px) {
  .bar { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 10px; }
  .nav { width: 100%; flex-wrap: wrap; gap: 8px 16px; }
  .bar { position: relative; }
  .nav .lang { position: absolute; top: 15px; right: 16px; }
  .nav .login { display: none; }
  .menu-panel { left: 0; }
  .subnav .product { flex-basis: 100%; }
}

/* Sub-page hero (features, pricing). */
.page-hero { padding: 56px 0 28px; }
.page-hero h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; max-width: 22ch; }
.page-hero p { font-size: 18px; color: var(--muted); margin: 0 0 20px; max-width: 62ch; }

/* Feature status badges + legend. */
.badge {
  display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.5;
  padding: 1px 9px; border-radius: 999px; white-space: nowrap;
}
.badge.now { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.badge.next { color: var(--next); background: color-mix(in srgb, var(--next) 14%, transparent); }
.badge.later { color: var(--muted); border: 1px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }

/* In-page table of contents. */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.toc a {
  display: inline-block; padding: 6px 12px; font-size: 14px; text-decoration: none;
  color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.toc a:hover { border-color: var(--accent); color: var(--accent); }

/* Feature categories. */
.cat { padding: 28px 0; scroll-margin-top: 12px; }
.cat + .cat { border-top: 1px solid var(--line); }
.cat-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.cat-head svg { flex: none; width: 28px; height: 28px; color: var(--accent); margin-top: 2px; }
.cat-head h2 { margin: 0 0 4px; }
.cat-head p { margin: 0; color: var(--muted); max-width: 70ch; }
.flist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.flist li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.fhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-bottom: 4px; }
.flist h3 { margin: 0; font-size: 16px; }
.flist p { margin: 0; color: var(--muted); font-size: 15px; }
.sub-h { font-size: 17px; margin: 26px 0 12px; }
.note { color: var(--muted); font-size: 14px; margin: 14px 0 0; max-width: 75ch; }

/* ERP / integration tiles. */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tiles li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tiles strong { display: block; font-size: 16px; }
.tiles span.what { display: block; color: var(--muted); font-size: 14px; margin: 2px 0 8px; }

/* Pricing plans. */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan.featured { border: 2px solid var(--accent); }
.plan .tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); background: var(--accent); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.plan h2 { margin: 0 0 4px; font-size: 22px; }
.plan .for { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.price { margin: 0 0 4px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.price .amt { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.price .amt.text { font-size: 30px; line-height: 1.33; }
.price .per { color: var(--muted); font-size: 15px; }
.plan .terms { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.plan ul { margin: 0 0 22px; padding: 0; list-style: none; flex: 1; }
.plan li { position: relative; padding: 5px 0 5px 26px; font-size: 15px; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 7px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.plan li.head { padding-left: 0; font-weight: 600; }
.plan li.head::before { display: none; }
.plan .btn { text-align: center; }
.plan .btn:not(.primary) { color: var(--accent); }
.fine { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

/* Plan comparison table. */
.compare { padding: 48px 0 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 14px; position: sticky; top: 0; background: var(--surface); }
.compare td:not(:first-child), .compare thead th:not(:first-child) { text-align: center; width: 17%; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tr.group td { font-weight: 700; background: var(--bg); font-size: 14px; }
.compare .yes { color: var(--ok); font-weight: 700; }
.compare .no { color: var(--muted); }
.compare .badge { margin-left: 6px; }

/* Add-ons + hardware. */
.addons { padding: 40px 0 8px; }

/* FAQ. */
.faq { padding: 40px 0 56px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Privacy policy (privacy/, en/privacy/): long-form legal text. */
.legal .cat p, .legal .cat li { max-width: 75ch; }
.legal .cat p { margin: 0 0 12px; }
.legal .cat ul { margin: 0 0 12px; padding-left: 22px; }
.legal .cat li { margin-bottom: 6px; }
.legal .sub-h:first-of-type { margin-top: 0; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Organization home page: product cards. */
.eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.products { padding: 8px 0 56px; }
.product-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.product-card h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.01em; }
.product-card p { margin: 0 0 18px; color: var(--muted); }
.product-card img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.product-card .links { display: flex; flex-wrap: wrap; gap: 10px; }
.product-soon {
  margin-top: 16px; padding: 18px 22px; border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--muted); font-size: 15px;
}
@media (max-width: 760px) {
  .product-card { grid-template-columns: 1fr; padding: 22px; }
}

/* Guidelines page (guidelines/, en/guidelines/): long-form user guide. */
.doc .cat p, .doc .cat li, .doc .cat dl { max-width: 75ch; }
.doc .cat p { margin: 0 0 12px; }
.doc .cat ul, .doc .cat ol { margin: 0 0 12px; padding-left: 22px; }
.doc .cat li { margin-bottom: 6px; }
.doc .sub-h:first-of-type { margin-top: 0; }
.doc .warn {
  max-width: 75ch; margin: 0 0 12px; padding: 12px 16px; border-radius: 10px;
  background: color-mix(in srgb, var(--next) 10%, transparent); border-left: 3px solid var(--next);
}
.doc dl { margin: 0; }
.doc dt { font-weight: 600; margin-top: 10px; }
.doc dd { margin: 2px 0 0; color: var(--muted); }

/* FAQ page (faq/, en/faq/): grouped questions. */
.faq-group { padding: 8px 0 24px; scroll-margin-top: 12px; }
.faq-group h2 { margin-top: 12px; }
.faq-group details p + p { margin-top: 8px; }

/* Pre-order form (products/filodos/preorder/, preorder.js). */
.preorder { padding: 0 0 56px; }
.form { max-width: 560px; display: grid; gap: 18px; padding: 28px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field .opt { font-weight: 400; color: var(--muted); }
.req { color: #d33; font-weight: 600; }
.form .req-note { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .invalid { border-color: #d33; }
.stepper { display: flex; max-width: 220px; }
.stepper input { text-align: center; border-radius: 0; border-left: 0; border-right: 0; }
.stepper button {
  flex: none; width: 46px; font: inherit; font-size: 20px; cursor: pointer;
  color: var(--accent); background: var(--surface); border: 1px solid var(--line);
}
.stepper button:first-child { border-radius: 10px 0 0 10px; }
.stepper button:last-child { border-radius: 0 10px 10px 0; }
.stepper button:hover { background: var(--bg); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.form button.btn:disabled { opacity: 0.6; cursor: default; }
.form .status { margin: 0; font-size: 15px; color: var(--muted); }
.form .status.ok { color: var(--ok); }
.form .status.err { color: #d33; }
.form .fine { margin: 0; }

/* Documentation pages (products/filodos/documentation/): API
   reference tables, code samples, and endpoint method markers. */
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 16px; }
.doc th, .doc td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc thead th { font-size: 14px; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--bg); padding: 1px 6px; border-radius: 6px; }
/* Endpoint headings carry long unbroken paths (/erp/connections/{id}/sites/…); let them wrap on phones. */
.doc h2 { overflow-wrap: anywhere; }
.doc pre { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.5; }
.doc pre code { background: none; padding: 0; border-radius: 0; }
.method { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 13px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 6px; margin-right: 8px; }

/* Partners page (partners/, partner.js): an "Apply" link on each partner
   card, and the form heading. */
.flist .apply { display: inline-block; margin-top: 10px; font-size: 15px; font-weight: 600; text-decoration: none; }
.flist .apply:hover { text-decoration: underline; }
#apply { scroll-margin-top: 12px; }
#apply h2 { margin: 0 0 16px; }

/* Photo hero (organization home, product overview) and photo page hero
   (partners). Stock photos come from Unsplash (free licence), are kept
   in /img/photo/ and are served from this site: no hotlinks, no
   third-party requests. A dark gradient keeps the text readable on any
   photo, in light and dark mode alike. */
.hero.photo, .page-hero.photo {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff; background: #0b0e13;
}
.hero.photo { padding: 120px 0 104px; min-height: min(78vh, 640px); display: flex; align-items: center; }
.hero.photo > .wrap, .page-hero.photo > .wrap { width: 100%; }
.page-hero.photo { padding: 88px 0 56px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero.photo::before, .page-hero.photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(8 11 16 / 0.86) 0%, rgb(8 11 16 / 0.62) 45%, rgb(8 11 16 / 0.18) 100%),
    linear-gradient(0deg, rgb(8 11 16 / 0.55), transparent 40%);
}
.hero.photo p, .page-hero.photo p { color: rgb(255 255 255 / 0.84); }
.hero.photo .eyebrow { color: #8cc2ff; }
.hero.photo h1 { max-width: 20ch; text-shadow: 0 2px 24px rgb(0 0 0 / 0.35); }
.hero.photo .btn.primary { background: #4c9bff; border-color: #4c9bff; color: #0b0e13; }
.hero.photo .btn.primary:hover { background: #73b1ff; border-color: #73b1ff; }
.hero.photo .btn.ghost { color: #fff; border-color: rgb(255 255 255 / 0.55); backdrop-filter: blur(6px); background: rgb(255 255 255 / 0.06); }
.hero.photo .btn.ghost:hover { background: rgb(255 255 255 / 0.16); border-color: #fff; }
.page-hero.photo .toc a { color: #fff; background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.35); backdrop-filter: blur(6px); }
.page-hero.photo .toc a:hover { color: #fff; border-color: #fff; background: rgb(255 255 255 / 0.2); }
.photo-credit {
  position: absolute; right: 12px; bottom: 8px; margin: 0;
  font-size: 11px; color: rgb(255 255 255 / 0.62);
}
.hero.photo .photo-credit, .page-hero.photo .photo-credit { margin: 0; max-width: none; font-size: 11px; color: rgb(255 255 255 / 0.62); }
.hero.photo + .products, .hero.photo + .screens { padding-top: 56px; }
.photo-credit a { color: inherit; }

/* "Who it is for" photo tiles on the organization home. */
.sectors { padding: 0 0 64px; }
.sectors .lead { margin: -8px 0 22px; color: var(--muted); max-width: 62ch; }
.tiles-photo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; }
.tile-photo {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5; background: #0b0e13; color: #fff;
}
.tile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.tile-photo:hover img { transform: scale(1.05); }
.tile-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgb(8 11 16 / 0.92) 0%, rgb(8 11 16 / 0.7) 35%, rgb(8 11 16 / 0.15) 65%, transparent 80%);
}
.tile-photo figcaption { position: absolute; left: 18px; right: 18px; bottom: 26px; z-index: 1; }
.tile-photo h3 { margin: 0 0 4px; font-size: 18px; }
.tile-photo p { margin: 0; font-size: 14px; line-height: 1.5; color: rgb(255 255 255 / 0.82); }
.tile-photo .photo-credit { z-index: 1; right: 10px; bottom: 5px; font-size: 10px; }

/* "How it works" steps with a photo above each step (product overview). */
.steps.photos .step { padding: 0; }
.steps.photos .step::before { top: 12px; left: 12px; z-index: 1; box-shadow: 0 4px 12px rgb(0 0 0 / 0.25); }
.step-media { position: relative; margin: 0 0 14px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-media .photo-credit { right: 8px; bottom: 4px; font-size: 10px; color: rgb(255 255 255 / 0.75); text-shadow: 0 1px 3px rgb(0 0 0 / 0.8); }

/* Product card on the organization home: lift the screenshot. */
.product-card { box-shadow: 0 24px 48px -32px rgb(0 0 0 / 0.35); }
.product-card img { box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 18px 36px -18px rgb(0 0 0 / 0.3); }

@media (max-width: 600px) {
  .hero.photo { padding: 72px 0 64px; min-height: 0; }
  .hero.photo::before, .page-hero.photo::before { background: rgb(8 11 16 / 0.7); }
  .tile-photo { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .grid .card, .tile-photo img { transition: none; }
}
