:root {
  color-scheme: light;
  --ink: #101827;
  --muted: #596579;
  --quiet: #5d6a7d;
  --line: #d9e0ea;
  --paper: #f6f8fb;
  --white: #ffffff;
  --blue: #3561ee;
  --blue-soft: #edf1ff;
  --green: #197b4b;
  --green-soft: #e8f7ef;
  --serif: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --sans: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid #1e55ff;
  outline-offset: 4px;
}

.site-nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 9px;
  font-size: 12px;
  letter-spacing: -0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

.nav-links .active { color: var(--ink); font-weight: 720; }

.language {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 13px;
  font: inherit;
  font-size: 13px;
}

/* Build-time locale pages use a native details control so the language
   switcher works without client-side translation code or a hydration step. */
.language-picker {
  position: relative;
  color: var(--ink);
  font-size: 13px;
}

.language-picker summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary::after { content: "↓"; margin-left: 8px; color: var(--quiet); font-size: 11px; }
.language-picker[open] summary { border-color: #aab5c5; background: var(--white); }
.language-picker[open] summary::after { content: "↑"; }

.language-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 142px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 34px rgba(16,24,39,.14);
}

.language-menu a,
.nav-links .language-menu a { display: block; padding: 9px 10px; border-radius: 9px; color: var(--muted); text-decoration: none; }
.language-menu a:hover,
.language-menu a[aria-current="true"] { color: var(--ink); background: var(--blue-soft); }

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 84px 32px 116px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1.14fr);
  align-items: center;
  gap: clamp(48px, 8vw, 132px);
}

.hero-copy { max-width: 590px; }

.product-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.product-name::before {
  content: "";
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent, var(--blue));
}

h1, h2, h3, p { margin: 0; }

h1 {
  max-width: 11ch;
  font-size: clamp(50px, 6.4vw, 94px);
  line-height: .98;
  letter-spacing: -0.04em;
  font-weight: 780;
}

.hero-lede {
  max-width: 53ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.015em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--white); background: var(--accent, var(--blue)); }
.button-primary:hover { background: var(--accent-deep, #234edb); }
.button-secondary { color: var(--ink); background: rgba(255,255,255,.5); border-color: var(--line); }
.button-secondary:hover { border-color: #aab5c5; background: var(--white); }

.microcopy {
  margin-top: 16px;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.45;
}

.hero-visual {
  min-height: 600px;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(500px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--halo, var(--blue-soft));
}

.phone-frame {
  position: relative;
  width: min(300px, 48vw);
  border: 8px solid #1b2431;
  border-radius: 37px;
  box-shadow: 0 28px 60px rgba(16,24,39,.18);
  overflow: hidden;
  background: #f2f4f8;
  transform: rotate(2.5deg);
}

.phone-frame img { display: block; width: 100%; height: auto; }

.phone-frame.secondary {
  position: absolute;
  width: min(236px, 38vw);
  transform: translate(112px, 100px) rotate(8deg);
  opacity: .96;
  box-shadow: 0 20px 48px rgba(16,24,39,.14);
}

.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.46);
}

.proof-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.proof-item { display: flex; gap: 12px; align-items: flex-start; }
.proof-dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--accent, var(--blue)); flex: 0 0 auto; }
.proof-item strong { display: block; font-size: 15px; letter-spacing: -0.02em; }
.proof-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.4; }

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 112px 32px;
}

.section-heading { max-width: 610px; }
.section h2 { font-size: clamp(36px, 4.8vw, 62px); line-height: 1.02; letter-spacing: -0.04em; }
.section-intro { margin-top: 18px; color: var(--muted); font-size: 18px; line-height: 1.55; }

.job-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.job {
  min-height: 210px;
  padding: 24px;
  border-top: 2px solid var(--accent, var(--blue));
  background: var(--white);
}

.job h3 { font-size: 22px; line-height: 1.1; letter-spacing: -0.04em; }
.job p { margin-top: 13px; color: var(--muted); font-size: 15px; line-height: 1.5; }

.story {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.story-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: end;
}

.story-media .phone-frame { width: min(230px, 100%); transform: rotate(-2deg); }
.story-media .phone-frame:last-child { transform: translateY(46px) rotate(3deg); }
.story-copy h2 { max-width: 11ch; }
.story-copy p { max-width: 49ch; margin-top: 22px; color: var(--muted); font-size: 18px; line-height: 1.6; }

.note {
  margin-top: 26px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.56);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.companion-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 2px 0 var(--accent, var(--blue));
}

.companion-kicker {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.companion h2 { max-width: 17ch; margin-top: 9px; font-size: clamp(28px, 3.5vw, 46px); line-height: 1.04; letter-spacing: -0.04em; }
.companion p { max-width: 56ch; margin-top: 13px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.companion .button { white-space: nowrap; }

.closing {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 32px 84px;
}

.closing-inner {
  padding: 54px 56px;
  background: var(--accent, var(--blue));
  color: var(--white);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.closing h2 { max-width: 12ch; font-size: clamp(34px, 4vw, 58px); line-height: 1.02; letter-spacing: -0.04em; }
.closing p { max-width: 43ch; margin-top: 16px; color: rgba(255,255,255,.82); line-height: 1.5; }
.closing .button-secondary { background: var(--white); border-color: var(--white); }

footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 42px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--quiet);
  font-size: 13px;
}

footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

.library-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 32px 82px;
}

.library-hero h1 { max-width: 12ch; }
.library-hero p { max-width: 62ch; margin-top: 24px; color: var(--muted); font-size: 19px; line-height: 1.55; }

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.filter {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.56);
  font-size: 13px;
}

.filter.active { color: var(--ink); border-color: var(--ink); background: var(--white); }

.library-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 112px;
}

.library-section h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; letter-spacing: -0.04em; }

.product-list {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.product-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  align-items: start;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.product-row h3 { font-size: 23px; line-height: 1.1; letter-spacing: -0.04em; }
.product-row p { max-width: 58ch; color: var(--muted); font-size: 15px; line-height: 1.5; }
.product-row .status { color: var(--accent, var(--blue)); font-size: 13px; font-weight: 720; white-space: nowrap; }
.product-row .status.muted { color: var(--quiet); }
.product-row a { text-decoration: none; }
.product-row a:hover { text-decoration: underline; text-underline-offset: .22em; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: inset 0 2px 0 var(--article-accent, var(--blue));
  text-decoration: none;
}

.article-card:hover { background: #fbfcff; }
.article-card .article-meta { color: var(--quiet); font-size: 12px; line-height: 1.4; }
.article-card h3 { margin-top: 20px; font-size: 23px; line-height: 1.08; letter-spacing: -0.04em; }
.article-card p { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.article-card .article-link { margin-top: auto; padding-top: 24px; font-size: 14px; font-weight: 720; }

.platform-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  margin-top: 72px;
  padding: 40px;
  background: var(--ink);
  color: var(--white);
}

.platform-callout h2 { max-width: 13ch; font-size: clamp(30px, 4vw, 50px); line-height: 1.02; letter-spacing: -0.04em; }
.platform-callout p { max-width: 56ch; margin-top: 16px; color: rgba(255,255,255,.72); line-height: 1.55; }
.platform-callout .button-secondary { background: var(--white); border-color: var(--white); }

.article-page { background: var(--paper); }
.article-shell { max-width: 850px; margin: 0 auto; padding: 72px 32px 100px; }
.article-shell h1 { max-width: 14ch; font-size: clamp(45px, 6vw, 78px); }
.article-dek { max-width: 60ch; margin-top: 24px; color: var(--muted); font-size: 20px; line-height: 1.55; }
.article-byline { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; color: var(--quiet); font-size: 13px; }
.article-body { margin-top: 64px; }
.article-body h2 { margin-top: 54px; font-size: 31px; line-height: 1.1; letter-spacing: -0.04em; }
.article-body p, .article-body li { max-width: 68ch; margin-top: 18px; color: #344155; font-size: 17px; line-height: 1.7; }
.article-body ul { padding-left: 24px; }
.article-body figure { margin: 42px 0; }
.article-body figure img { display: block; width: min(320px, 100%); margin: 0 auto; border: 7px solid #1b2431; border-radius: 28px; box-shadow: 0 18px 38px rgba(16,24,39,.14); }
.article-body figcaption { max-width: 52ch; margin: 15px auto 0; color: var(--quiet); font-size: 12px; line-height: 1.45; text-align: center; }
.article-cta { margin-top: 54px; padding: 30px; background: var(--blue-soft); border: 1px solid #cbd6ff; }
.article-cta h2 { margin-top: 0; }
.article-cta p { margin-top: 12px; }
.article-related { margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line); }
.article-related a { display: block; margin-top: 13px; font-weight: 720; text-underline-offset: .22em; }

@media (max-width: 780px) {
  .product-row { grid-template-columns: 1fr auto; gap: 12px 18px; }
  .product-row p { grid-column: 1 / -1; }
  .article-grid { grid-template-columns: 1fr; }
  .platform-callout { grid-template-columns: 1fr; padding: 30px 24px; }
}

@media (max-width: 680px) {
  .library-hero, .library-section, .article-shell { padding-left: 20px; padding-right: 20px; }
  .library-hero { padding-top: 48px; padding-bottom: 60px; }
  .library-section { padding-bottom: 76px; }
  .article-shell { padding-top: 48px; }
}

.powerimg { --accent: #3561ee; --accent-deep: #244ed6; --halo: #eaf0ff; }
.unmarked { --accent: #1d7c4d; --accent-deep: #12643c; --halo: #e2f5ea; }
.unmarked .button-primary { background: #3561ee; }
.unmarked .button-primary:hover { background: #244ed6; }
.unmarked .proof-dot { background: #1d7c4d; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 78px; gap: 48px; }
  .hero-copy { max-width: 680px; }
  h1 { max-width: 10ch; }
  .hero-visual { min-height: 560px; }
  .story { grid-template-columns: 1fr; }
  .story-copy { order: -1; }
  .companion-inner { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 680px) {
  .site-nav { height: auto; padding: 20px 20px; }
  .nav-links a { display: none; }
  .nav-links { gap: 10px; }
  .hero, .section { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 48px; padding-bottom: 68px; }
  h1 { font-size: clamp(46px, 15vw, 74px); }
  .hero-lede { font-size: 17px; }
  .hero-visual { min-height: 490px; }
  .phone-frame { width: min(260px, 68vw); }
  .phone-frame.secondary { width: min(196px, 49vw); transform: translate(92px, 90px) rotate(8deg); }
  .proof-inner { grid-template-columns: 1fr; padding: 22px 20px; gap: 15px; }
  .section { padding-top: 76px; padding-bottom: 76px; }
  .job-grid { grid-template-columns: 1fr; margin-top: 34px; }
  .story-media { gap: 10px; }
  .story-media .phone-frame { width: 100%; }
  .closing { padding: 12px 20px 62px; }
  .closing-inner { padding: 34px 26px; display: block; }
  .closing .button { margin-top: 28px; width: 100%; }
  footer { padding: 0 20px 30px; display: block; }
  footer span { display: block; margin-top: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
+
.article-body figure img.article-proof-wide { width: min(820px, 100%); border-width: 6px; border-radius: 20px; }
.article-body figure img.article-proof-tall { width: min(330px, 100%); }
.article-body .article-note { margin-top: 26px; padding: 17px 18px; border: 1px solid var(--line); background: rgba(255,255,255,.58); color: var(--muted); font-size: 14px; line-height: 1.5; }


/* Production extensions: the publisher catalogue and product proof system. */
:root {
  --shadow-soft: 0 24px 70px rgba(16, 24, 39, .13);
  --shadow-device: 0 34px 80px rgba(16, 24, 39, .2);
  --radius-card: 24px;
}

body { min-width: 320px; overflow-x: hidden; }
img { max-width: 100%; }
.site-nav { position: relative; z-index: 2; }
.site-nav .brand-mark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.site-nav .nav-links { align-items: center; }
.site-nav .nav-links a[aria-current="page"] { color: var(--ink); font-weight: 720; }

.brand-mark { flex: 0 0 auto; }

.catalog-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 74px 32px 68px;
}
.catalog-hero h1 { max-width: 13ch; }
.catalog-hero-lede {
  max-width: 58ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}
.catalog-hero .catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}
.catalog-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--quiet);
  background: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 112px;
}
.catalog-product {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 570px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(16,24,39,.04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.catalog-product:hover {
  transform: translateY(-4px);
  border-color: #b9c4d4;
  box-shadow: var(--shadow-soft);
}
.catalog-product::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -118px;
  bottom: -132px;
  border-radius: 50%;
  background: var(--card-halo, var(--blue-soft));
}
.catalog-product.powerimg-card { --card-accent: var(--blue); --card-halo: #eaf0ff; }
.catalog-product.unmarked-card { --card-accent: var(--green); --card-halo: #e2f5ea; }
.catalog-product .product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.catalog-product .product-card-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -.02em;
}
.product-card-name::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--card-accent, var(--blue));
}
.product-status {
  color: var(--card-accent, var(--blue));
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.catalog-product h2 {
  max-width: 12ch;
  margin-top: 48px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.035em;
}
.catalog-product .product-card-copy {
  max-width: 44ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.catalog-product .product-card-device {
  position: relative;
  z-index: 1;
  width: min(230px, 56%);
  height: 320px;
  margin: auto auto -64px 50%;
  transform: translateX(-8%);
  border: 7px solid #17202e;
  border-radius: 30px;
  overflow: hidden;
  background: #edf0f6;
  box-shadow: var(--shadow-device);
}
.catalog-product .product-card-device img { display: block; width: 100%; height: auto; }
.catalog-product .product-card-arrow {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}
.catalog-product:hover .product-card-arrow { color: var(--card-accent, var(--blue)); }

.catalog-lower {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 108px;
}
.catalog-lower .catalog-lower-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  gap: 24px;
  align-items: stretch;
}
.catalog-note {
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
}
.catalog-note h2 { max-width: 17ch; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02; letter-spacing: -.045em; }
.catalog-note p { max-width: 58ch; margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.catalog-note a { display: inline-flex; margin-top: 24px; color: var(--ink); font-size: 14px; font-weight: 750; text-underline-offset: .22em; }
.catalog-status {
  padding: 30px;
  background: var(--ink);
  color: var(--white);
}
.catalog-status h2 { font-size: 24px; line-height: 1.08; letter-spacing: -.03em; }
.catalog-status p { margin-top: 14px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.55; }
.catalog-status .status-list { display: grid; gap: 10px; margin-top: 24px; }
.catalog-status .status-list div { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.76); font-size: 13px; }
.catalog-status .status-list strong { color: var(--white); font-weight: 700; }

.product-page { --accent: var(--blue); --accent-deep: #244ed6; --halo: #eaf0ff; }
.product-page.unmarked { --accent: var(--green); --accent-deep: #12643c; --halo: #e2f5ea; }
.product-page.unmarked .button-primary { background: var(--blue); }
.product-page.unmarked .button-primary:hover { background: #244ed6; }

.product-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 74px 32px 88px;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(450px, 1.22fr);
  gap: clamp(48px, 8vw, 122px);
  align-items: center;
}
.product-hero-copy { max-width: 570px; }
.product-hero-copy .product-name { margin-bottom: 22px; }
.product-hero-copy h1 { max-width: 11ch; }
.product-hero-copy .hero-lede { max-width: 48ch; }
.product-hero .hero-visual { min-height: 620px; }
.product-hero .device-frame {
  position: relative;
  width: min(330px, 50vw);
  border: 8px solid #17202e;
  border-radius: 38px;
  overflow: hidden;
  background: #eff2f7;
  box-shadow: var(--shadow-device);
  transform: rotate(2.5deg);
}
.product-hero .device-frame img { display: block; width: 100%; height: auto; }
.product-hero .device-frame.secondary {
  position: absolute;
  width: min(250px, 38vw);
  transform: translate(118px, 114px) rotate(8deg);
  opacity: .98;
  box-shadow: 0 24px 56px rgba(16,24,39,.17);
}

.workflow-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.48);
}
.workflow-band-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
}
.workflow-band strong { font-size: 13px; letter-spacing: .02em; }
.workflow-band span { color: var(--muted); font-size: 13px; }

.product-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 104px 32px;
}
.product-section .section-heading { max-width: 650px; }
.product-section .section-heading h2 { max-width: 15ch; }
.product-section .section-intro { max-width: 56ch; }

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}
.gallery-card {
  min-width: 0;
  padding: 18px 18px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}
.gallery-card .gallery-device {
  overflow: hidden;
  border: 6px solid #17202e;
  border-radius: 25px;
  background: #eff2f7;
  box-shadow: 0 18px 34px rgba(16,24,39,.13);
}
.gallery-card img { display: block; width: 100%; height: auto; }
.gallery-card h3 { margin-top: 18px; font-size: 18px; line-height: 1.12; letter-spacing: -.035em; }
.gallery-card p { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.job-grid .job { border-radius: 0 0 16px 16px; }

.proof-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--line);
  background: var(--line);
}
.proof-flow .proof-step { padding: 26px; background: var(--white); }
.proof-step .step-number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent);
  font-size: 12px;
  font-weight: 750;
}
.proof-step h3 { margin-top: 20px; font-size: 21px; line-height: 1.1; letter-spacing: -.035em; }
.proof-step p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.52; }

.content-rail {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 108px;
}
.content-rail-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .5fr);
  gap: 34px;
  align-items: stretch;
}
.content-rail-main {
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
}
.content-rail-main .content-kicker,
.content-rail-side .content-kicker {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.content-rail-side .content-kicker { color: rgba(255,255,255,.68); }
.content-rail-main h2 { max-width: 15ch; margin-top: 10px; font-size: clamp(29px, 3.5vw, 46px); line-height: 1.04; letter-spacing: -.045em; }
.content-rail-main p { max-width: 58ch; margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.article-links { display: grid; gap: 10px; margin-top: 22px; }
.article-links a { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 720; text-decoration: none; }
.article-links a:hover { color: var(--accent); }
.content-rail-side {
  padding: 30px;
  color: var(--white);
  background: var(--ink);
}
.content-rail-side h2 { max-width: 12ch; margin-top: 10px; font-size: 28px; line-height: 1.04; letter-spacing: -.04em; }
.content-rail-side p { margin-top: 14px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.55; }
.content-rail-side .button { margin-top: 24px; color: var(--ink); background: var(--white); border-color: var(--white); }

.product-page .closing-inner { border-radius: 18px; }
.product-page footer { max-width: 1240px; }

.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 44px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--quiet);
  font-size: 13px;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }

@media (max-width: 1000px) {
  .product-hero { grid-template-columns: 1fr; padding-top: 54px; gap: 42px; }
  .product-hero-copy { max-width: 690px; }
  .product-hero .hero-visual { min-height: 580px; }
  .catalog-product { min-height: 530px; }
}
@media (max-width: 860px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-product { min-height: 590px; }
  .catalog-lower .catalog-lower-inner,
  .content-rail-inner { grid-template-columns: 1fr; }
  .product-gallery, .proof-flow { grid-template-columns: 1fr; }
  .product-gallery .gallery-card { display: grid; grid-template-columns: minmax(160px, 240px) 1fr; align-items: center; gap: 20px; }
  .product-gallery .gallery-card h3, .product-gallery .gallery-card p { margin-top: 0; }
  .product-gallery .gallery-card h3 { grid-column: 2; grid-row: 1; }
  .product-gallery .gallery-card p { grid-column: 2; grid-row: 2; }
  .product-gallery .gallery-card .gallery-device { grid-column: 1; grid-row: 1 / span 2; }
}
@media (max-width: 680px) {
  .catalog-hero, .catalog-grid, .catalog-lower, .product-hero, .product-section, .content-rail, .site-footer { padding-left: 20px; padding-right: 20px; }
  .catalog-hero { padding-top: 48px; padding-bottom: 48px; }
  .catalog-grid { padding-bottom: 76px; }
  .catalog-product { min-height: 520px; padding: 24px; border-radius: 20px; }
  .catalog-product h2 { margin-top: 36px; font-size: 38px; }
  .catalog-product .product-card-device { width: min(210px, 65%); margin-left: 40%; }
  .catalog-lower { padding-bottom: 76px; }
  .product-hero { padding-top: 42px; padding-bottom: 60px; }
  .product-hero .hero-visual { min-height: 480px; }
  .product-hero .device-frame { width: min(270px, 72vw); border-width: 7px; border-radius: 32px; }
  .product-hero .device-frame.secondary { width: min(210px, 55vw); transform: translate(88px, 88px) rotate(8deg); }
  .workflow-band-inner { padding-left: 20px; padding-right: 20px; }
  .product-section { padding-top: 76px; padding-bottom: 76px; }
  .product-gallery .gallery-card { display: block; }
  .product-gallery .gallery-card h3, .product-gallery .gallery-card p { margin-top: 15px; }
  .content-rail { padding-bottom: 76px; }
  .content-rail-main, .content-rail-side { padding: 24px; }
  .site-footer { display: block; padding-bottom: 30px; }
  .site-footer nav { justify-content: flex-start; margin-top: 12px; }
}

/* Phone-first proof assets need a deliberate tablet composition. The page
   reflows for iPad widths, while the evidence remains the clearer iPhone set. */
@media (min-width: 681px) and (max-width: 1120px) {
  .site-nav { padding-left: 40px; padding-right: 40px; }
  .catalog-hero, .catalog-grid, .catalog-lower, .product-hero, .product-section, .content-rail, .site-footer { padding-left: 40px; padding-right: 40px; }
  .catalog-grid { grid-template-columns: 1fr; max-width: 820px; }
  .catalog-product { min-height: 560px; }
  .catalog-product .product-card-device { width: min(190px, 42%); height: 300px; }
  .product-hero { grid-template-columns: 1fr; gap: 42px; padding-top: 58px; padding-bottom: 82px; }
  .product-hero-copy { max-width: 720px; }
  .product-hero .hero-visual { min-height: 610px; }
  .product-hero .device-frame { width: min(320px, 36vw); }
  .product-hero .device-frame.secondary { width: min(238px, 28vw); transform: translate(112px, 120px) rotate(8deg); }
  .product-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .product-gallery .gallery-card { display: block; padding: 14px 14px 20px; }
  .product-gallery .gallery-card h3, .product-gallery .gallery-card p { margin-top: 15px; }
}

@media (max-width: 680px) {
  .catalog-product .product-card-device { width: min(174px, 52%); height: 270px; margin-left: 38%; }
  .product-hero .hero-visual { width: 100%; min-height: 452px; }
  .product-hero .device-frame { width: min(248px, 68vw); }
  .product-hero .device-frame.secondary { width: min(188px, 51vw); transform: translate(70px, 82px) rotate(8deg); }
  .product-gallery .gallery-card .gallery-device { max-width: 260px; margin-left: auto; margin-right: auto; }
}
