:root {
  /* Color tokens */
  --blue: #0a84ff;
  --blue-deep: #0060df;
  --ink: #0c1626;            /* near-black navy for headings */
  --ink-soft: #44516b;       /* body text */
  --ink-faint: #6e7a93;
  --bg: #f6f9fd;             /* page base */
  --bg-tint: #eef4fb;        /* tinted sections */
  --card: #ffffff;
  --line: rgba(12, 38, 84, 0.10);
  --grid-line: rgba(12, 60, 140, 0.055);

  /* Dark sections */
  --dark-bg: #0a111f;
  --dark-card: rgba(255, 255, 255, 0.05);
  --dark-line: rgba(255, 255, 255, 0.10);
  --dark-text: #aab6cc;

  /* Effects */
  --shadow-soft: 0 2px 6px rgba(10, 30, 70, 0.05), 0 18px 44px rgba(10, 30, 70, 0.09);
  --shadow-device: 0 8px 18px rgba(8, 20, 50, 0.18), 0 40px 90px rgba(8, 20, 50, 0.28);
  --radius: 20px;
  --radius-lg: 28px;

  /* Type & layout */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --section-pad: clamp(4.5rem, 10vw, 8rem);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p  { margin: 0 0 1em; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 6px 18px rgba(10, 110, 255, 0.35);
}
.btn--primary:hover { box-shadow: 0 10px 26px rgba(10, 110, 255, 0.45); }

.btn--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(12, 38, 84, 0.25); }

.btn--small { padding: 0.55rem 1.1rem; font-size: 0.92rem; }

/* Apple-style App Store badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1.4rem 0.7rem 1.2rem;
  border-radius: 14px;
  line-height: 1.15;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 22px rgba(8, 20, 50, 0.25);
}
.appstore-badge:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(8, 20, 50, 0.32);
}
.appstore-badge__apple { width: 26px; height: 26px; flex: none; }
.appstore-badge__text { display: flex; flex-direction: column; text-align: left; }
.appstore-badge__text small { font-size: 0.68rem; opacity: 0.85; letter-spacing: 0.01em; }
.appstore-badge__text strong { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }

.appstore-badge--light { background: #fff; color: var(--ink); }

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: rgba(10, 132, 255, 0.09);
  border: 1px solid rgba(10, 132, 255, 0.18);
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  margin: 0 0 1.2rem;
}
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}
.eyebrow--light {
  color: #8ec2ff;
  background: rgba(10, 132, 255, 0.14);
  border-color: rgba(110, 175, 255, 0.3);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(248, 251, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(10, 30, 70, 0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav__brand:hover { text-decoration: none; }
.nav__logo { border-radius: 9px; }

.nav__links {
  display: flex;
  gap: 1.9rem;
}
.nav__links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--ink); text-decoration: none; }

/* "For your trade" dropdown (native <details>, no JS required) */
.nav__drop { position: relative; }
.nav__drop summary {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
  transition: color 0.15s ease;
}
.nav__drop summary::-webkit-details-marker { display: none; }
.nav__drop summary:hover,
.nav__drop[open] summary,
.nav__drop[data-active] summary { color: var(--ink); }
.nav__drop-caret { transition: transform 0.18s ease; margin-top: 1px; }
.nav__drop[open] .nav__drop-caret { transform: rotate(180deg); }
.nav__menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 210px;
  padding: 0.5rem;
  background: rgba(250, 252, 255, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  z-index: 120;
}
.nav__menu a {
  padding: 0.55rem 0.8rem;
  border-radius: 9px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav__menu a:hover { background: rgba(10, 132, 255, 0.08); color: var(--ink); }
.nav__menu a[aria-current="page"] { color: var(--blue-deep); font-weight: 600; }

.nav__actions { display: flex; align-items: center; gap: 0.8rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  /* a subtle glass fill so the icon is always visible — even over the hero artwork */
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 22px;          /* explicit width — don't rely on flex-stretch */
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(68px + clamp(3rem, 8vw, 6rem)) 0 clamp(3.5rem, 8vw, 6.5rem);
  /* blueprint grid */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero__glow--a {
  width: 640px; height: 640px;
  right: -160px; top: -180px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.22), transparent 65%);
}
.hero__glow--b {
  width: 520px; height: 520px;
  left: -200px; bottom: -220px;
  background: radial-gradient(circle, rgba(90, 200, 250, 0.18), transparent 65%);
}
.hero__blueprint {
  position: absolute;
  width: clamp(280px, 38vw, 540px);
  right: -60px;
  bottom: -80px;
  color: rgba(12, 60, 140, 0.08);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero__title {
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.032em;
}
.hero__sub {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  max-width: 34em;
  margin-bottom: 2rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.hero__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__step-sep { color: var(--blue); }

/* Hero device + chips */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.device {
  background: #0b0d12;
  border-radius: clamp(38px, 4.5vw, 52px);
  padding: clamp(10px, 1.2vw, 14px);
  box-shadow: var(--shadow-device);
  width: min(340px, 78vw);
}
.device img { border-radius: clamp(28px, 3.5vw, 40px); width: 100%; }

.device--hero {
  width: min(370px, 80vw);
  transform: rotate(2deg);
  animation: float 7s ease-in-out infinite;
}
.device--glow {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 140px rgba(10, 132, 255, 0.22);
}

@keyframes float {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50%      { transform: rotate(2deg) translateY(-12px); }
}

/* glass chips floating around hero phone */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
}
.chip small {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-faint);
}
.chip__icon {
  width: 30px; height: 30px;
  flex: none;
  padding: 5px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}
.chip--a { top: 7%;  left: -4%;  animation: float-chip 6s ease-in-out infinite; }
.chip--b { top: 43%; right: -7%; animation: float-chip 7s ease-in-out 0.8s infinite; }
.chip--c { bottom: 7%; left: -1%; animation: float-chip 6.5s ease-in-out 1.6s infinite; }

@keyframes float-chip {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section--tinted { background: var(--bg-tint); }

.section__head {
  max-width: 760px;
  margin-bottom: clamp(2.6rem, 6vw, 4.2rem);
}
.section__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  color: var(--ink-soft);
  margin-bottom: 0;
}
.section__sub--light { color: var(--dark-text); }

/* Dark sections */
.section--dark {
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(10, 132, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(10, 132, 255, 0.10), transparent 60%),
    var(--dark-bg);
  color: var(--dark-text);
}
.section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- Use case cards ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.case-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.4rem;
  box-shadow: 0 1px 2px rgba(10, 30, 70, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.case-card h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.case-card p { margin: 0; font-size: 0.97rem; }
.case-card__icon {
  display: inline-flex;
  width: 46px; height: 46px;
  padding: 10px;
  margin-bottom: 1.1rem;
  border-radius: 13px;
  color: var(--blue-deep);
  background: rgba(10, 132, 255, 0.10);
}
.case-card__icon svg { width: 100%; height: 100%; }
.case-card__icon--red {
  color: #e23b30;
  background: rgba(226, 59, 48, 0.10);
}

/* ---------- Workflow steps ---------- */
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.2rem, 6vw, 5rem);
  padding: clamp(2.4rem, 5vw, 4rem) 0;
}
.step + .step { border-top: 1px dashed rgba(12, 38, 84, 0.14); }
.step--flip .step__media { order: 2; }
.step--flip .step__copy  { order: 1; }

.step__media { display: flex; justify-content: center; }

.step__num {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.10);
  border-radius: 10px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 1.1rem;
}
.step__copy h3 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.step__copy p { max-width: 33em; }

.step__points {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.3rem;
}
.step__points li {
  position: relative;
  padding-left: 1.7rem;
  font-weight: 550;
  color: var(--ink);
  font-size: 0.99rem;
}
.step__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.18em;
  width: 1.05em; height: 1.05em;
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M6 12.5l4 4 8-9" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>')
    center / 70% no-repeat,
    linear-gradient(135deg, var(--blue), var(--blue-deep));
}

/* screenshot cards (non-device) */
.shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  width: min(380px, 84vw);
  border: 1px solid var(--line);
}
.shot img { width: 100%; }
.shot--dark {
  border-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 10px 26px rgba(8, 20, 50, 0.20), 0 40px 80px rgba(8, 20, 50, 0.25);
}
.shot--photo { width: min(420px, 86vw); }

/* ---------- 3D dark feature ---------- */
.dark-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.dark-feature__media { display: flex; justify-content: center; }

.dark-feature__list {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}
.dark-feature__list li {
  padding: 1.05rem 1.2rem;
  border-radius: 16px;
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  font-size: 0.97rem;
}
.dark-feature__list strong {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 0.15rem;
  letter-spacing: -0.01em;
}

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 1.3rem;
}
.bento__card {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.45rem 1.35rem;
  box-shadow: 0 1px 2px rgba(10, 30, 70, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bento__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
/* small bento cards fill their row (no gaps between) with vertically-centred content */
.bento__card:not(.bento__card--tall) { justify-content: center; }
.bento__card h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.bento__card p { margin: 0; font-size: 0.94rem; }

.bento__card--tall {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
}
.bento__media {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #11151d;
}
.bento__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.bento__media--device { background: #e8edf5; }
.bento__media--device img { object-position: center 20%; }
.bento__body { padding: 1.35rem 1.5rem 1.45rem; }
.bento__body p { margin: 0; font-size: 0.96rem; }

.bento__icon {
  display: inline-flex;
  width: 42px; height: 42px;
  padding: 9px;
  margin-bottom: 0.95rem;
  border-radius: 12px;
  color: var(--blue-deep);
  background: rgba(10, 132, 255, 0.10);
}
.bento__icon svg { width: 100%; height: 100%; }

/* ---------- Export formats ---------- */
.formats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.format {
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.format:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 175, 255, 0.4);
}
.format h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.format p { margin: 0; font-size: 0.94rem; }
.format__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8ec2ff;
  background: rgba(10, 132, 255, 0.16);
  border: 1px solid rgba(110, 175, 255, 0.28);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  margin-bottom: 1rem;
}

/* Units toggle demo */
.units {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.units__copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.units__copy p { max-width: 30em; }
.units__shot { justify-self: center; }
.units__shot img { transition: opacity 0.25s ease; }

.units__toggle {
  display: inline-flex;
  margin-top: 1.4rem;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--dark-line);
}
.units__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--dark-text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.units__btn.is-active {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 110, 255, 0.4);
}

/* ---------- Field work strip ---------- */
.field {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.field__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.55rem 1.5rem 1.35rem;
  box-shadow: 0 1px 2px rgba(10, 30, 70, 0.04);
}
.field__item svg {
  width: 30px; height: 30px;
  color: var(--blue);
  margin-bottom: 0.85rem;
}
.field__item h3 { font-size: 1.07rem; margin-bottom: 0.3rem; }
.field__item p { margin: 0; font-size: 0.94rem; }

/* ---------- Final CTA ---------- */
.section--cta { padding-top: 0; }
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: clamp(24px, 4vw, 40px);
  padding: clamp(3.2rem, 8vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  color: #dce9ff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(900px 480px at 50% -20%, rgba(10, 132, 255, 0.5), transparent 65%),
    linear-gradient(170deg, #0d1830, #0a111f 70%);
  background-size: 44px 44px, 44px 44px, auto, auto;
  box-shadow: var(--shadow-device);
}
.cta h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); }
.cta > p {
  max-width: 36em;
  margin-inline: auto;
  font-size: 1.08rem;
}
.cta__logo {
  border-radius: 16px;
  margin: 0 auto 1.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.cta__actions {
  display: flex;
  justify-content: center;
  margin: 1.8rem 0 1.4rem;
}
.cta__contact { margin: 0; font-size: 0.96rem; color: #93a5c4; }
.cta__contact a { color: #8ec2ff; font-weight: 600; }

/* ---------- Terms & privacy ---------- */
.legal {
  padding-top: 0;
}
.legal__inner {
  max-width: 820px;
  font-size: 0.95rem;
  color: var(--ink-faint);
}
.legal h2 {
  font-size: 1.35rem;
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
}
.legal h2:first-child { margin-top: 0; }
.legal__list {
  list-style: disc;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.7rem;
}
.legal__list strong { color: var(--ink-soft); }
.legal__list a { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0;
  background: var(--bg);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.footer__links { display: flex; gap: 1.6rem; }
.footer__links a {
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
}
.footer__links a:hover { color: var(--ink); }
.footer__legal {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
/* gentle stagger inside grids */
.cases .reveal:nth-child(3n + 2), .bento .reveal:nth-child(3n + 2),
.field .reveal:nth-child(3n + 2), .formats .reveal:nth-child(3n + 2) { transition-delay: 0.08s; }
.cases .reveal:nth-child(3n),     .bento .reveal:nth-child(3n),
.field .reveal:nth-child(3n),     .formats .reveal:nth-child(3n) { transition-delay: 0.16s; }

/* no-JS fallback: show everything */
.no-observer .reveal { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--tall { grid-column: span 2; grid-row: auto; }
  .bento__media { max-height: 340px; }
  .formats { grid-template-columns: repeat(2, 1fr); }
  .cases, .field { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__cta, .hero__steps { justify-content: center; }
  .hero__visual { margin-top: 1.5rem; }
  .hero__blueprint { display: none; }
  .chip--a { left: 0; }
  .chip--b { right: 0; }
  .chip--c { left: 4%; }

  .step,
  .dark-feature,
  .units { grid-template-columns: 1fr; }
  .step--flip .step__media { order: 0; }
  .step--flip .step__copy { order: 0; }
  .step__media { order: -1; }
  .dark-feature__media { order: -1; }
  .units__shot { order: -1; }
}

@media (max-width: 768px) {
  /* collapse nav links into a sheet */
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 68px;
    left: 0.75rem;
    right: 0.75rem;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.8rem;
    border-radius: 18px;
    background: rgba(250, 252, 255, 0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__links a {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 1.02rem;
  }
  .nav__links a:hover { background: rgba(10, 132, 255, 0.07); }

  /* dropdown expands inline within the mobile sheet (not a floating flyout) */
  .nav__drop { width: 100%; }
  .nav__drop summary {
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 1.02rem;
  }
  .nav__drop summary:hover { background: rgba(10, 132, 255, 0.07); }
  .nav__menu {
    position: static;
    transform: none;
    min-width: 0;
    padding: 0.1rem 0 0.3rem 0.6rem;
    background: none;
    border: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav__menu a { font-size: 0.98rem; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .cases, .field, .formats { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento__card--tall { grid-column: span 1; }
  /* compact floating chips on small screens */
  .chip {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    font-size: 0.8rem;
    border-radius: 13px;
  }
  .chip small { font-size: 0.68rem; }
  .chip__icon { width: 26px; height: 26px; padding: 4.5px; border-radius: 8px; }
  .chip--a { top: 4%; left: 0; }
  .chip--b { top: 45%; right: 0; }
  .chip--c { bottom: 4%; left: 2%; }
  .device--hero { transform: none; }
  .hero__steps { font-size: 0.78rem; gap: 0.45rem; }
  .footer__inner { flex-direction: column; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .device--hero, .chip--a, .chip--b, .chip--c { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .appstore-badge, .case-card, .bento__card, .format, .post-card { transition: none; }
}

/* ============================================================
   GUIDES / BLOG — article cards, index, and the read view.
   Built on the existing tokens; no new palette.
   ============================================================ */

/* Named hero gradients (referenced by article frontmatter `hero:`) */
.hero-sky    { --h1: #0a84ff; --h2: #5ac8fa; }
.hero-ember  { --h1: #ff5e3a; --h2: #ff2d55; }
.hero-mint   { --h1: #0ab39c; --h2: #34c759; }
.hero-violet { --h1: #7d5cff; --h2: #0a84ff; }
.hero-slate  { --h1: #44516b; --h2: #0c1626; }
/* Unknown hero names fall back via the var(--h1, var(--blue)) defaults at each use site. */

/* ---------- Card grid + preview card ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(10, 30, 70, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
}
.post-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.post-card__art {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--h1, var(--blue)), var(--h2, var(--blue-deep)));
  color: rgba(255, 255, 255, 0.55);
}
.post-card__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-card__art--img { background: var(--bg-tint); }
.post-card__art--img img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
.post-card__art--svg { background: #f3f7fd; }
.post-card__art--svg svg { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
.post-card__body { display: flex; flex-direction: column; padding: 1.25rem 1.3rem 1.35rem; }
.post-card__tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: rgba(10, 132, 255, 0.10);
  border: 1px solid rgba(10, 132, 255, 0.18);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.85rem;
}
.post-card__title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.post-card__desc { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 1rem; }
.post-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-faint);
}
.post-card__meta svg { color: var(--blue); }

/* ---------- Index filters / empty ---------- */
.guide-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}
.guide-chip {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
}
.guide-chip:hover { text-decoration: none; border-color: rgba(12, 38, 84, 0.25); color: var(--ink); }
.guide-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(10, 110, 255, 0.3);
}
.guide-empty { color: var(--ink-faint); font-size: 1.05rem; }

/* ---------- Article read view ---------- */
.article-main { padding-top: calc(68px + 1.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.post-wrap { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }

.post-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 1.4rem;
}
.post-crumbs a { color: var(--ink-soft); font-weight: 500; }
.post-crumbs span[aria-hidden] { color: var(--ink-faint); }

.post-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff;
  /* faint white blueprint grid over the gradient (like the homepage CTA) */
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, var(--h1, var(--blue)), var(--h2, var(--blue-deep)));
  background-size: 40px 40px, 40px 40px, auto;
  box-shadow: var(--shadow-soft);
}
.post-hero__art { position: absolute; inset: 0; color: rgba(255, 255, 255, 0.18); pointer-events: none; }
.post-hero__art svg { position: absolute; right: -4%; top: 0; height: 100%; }
.post-hero > * { position: relative; }
.post-hero__tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1rem;
}
.post-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  letter-spacing: -0.03em;
  max-width: 18em;
}
.post-hero__desc {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 40em;
  margin-bottom: 1.1rem;
}
.post-hero__meta { margin: 0; font-size: 0.9rem; font-weight: 600; color: rgba(255, 255, 255, 0.8); }

/* ---- Per-trade landing pages (/for/<slug>) ---- */
.trade-hero-section { padding-bottom: 0; }
.trade-hero { padding: clamp(2.4rem, 5vw, 3.6rem); }
.trade-hero .post-hero__desc { margin-bottom: 1.6rem; }
.trade-hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
/* Ghost button that reads on the coloured hero gradient */
.btn--ghost-on-dark {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}
.btn--ghost-on-dark:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.65); }

/* "Built for your trade" inline link row (homepage + landing-page cross-links) */
.trade-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.1rem;
  margin: 2rem 0 0;
  font-weight: 600;
}
.trade-links__label { color: var(--ink-faint); font-weight: 700; }
.trade-links a { color: var(--blue-deep); }

.post-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}
.post-toc { align-self: start; position: sticky; top: 90px; }
.post-toc__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.8rem;
}
.post-toc ul { display: grid; gap: 0.55rem; border-left: 2px solid var(--line); padding-left: 1rem; }
.post-toc a { color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; }
.post-toc a:hover { color: var(--blue-deep); text-decoration: none; }

/* ---------- Article body typography ---------- */
.post-body { max-width: 44rem; font-size: 1.075rem; line-height: 1.75; color: var(--ink-soft); }
.post-body > :first-child { margin-top: 0; }
.post-body .lede { font-size: 1.2rem; line-height: 1.7; color: var(--ink); margin-bottom: 1.5rem; }
.post-body h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  margin: 2.4rem 0 0.9rem;
  scroll-margin-top: 90px;
}
.post-body h3 { font-size: 1.25rem; margin: 1.8rem 0 0.6rem; }
.post-body p { margin: 0 0 1.15rem; }
.post-body a { color: var(--blue-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.post-body ul, .post-body ol { margin: 0 0 1.3rem; padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.post-body ul { list-style: none; padding-left: 0; }
.post-body ul > li { position: relative; padding-left: 1.7rem; }
.post-body ul > li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 0.7em; height: 0.7em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}
.post-body ol { list-style: decimal; }
.post-body ol > li { padding-left: 0.3rem; }
.post-body li > strong:first-child { color: var(--ink); }
.post-body figure { margin: 1.8rem 0; }
.post-figure { margin: 0 0 1.7rem; }
.post-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-tint); }
.post-body figure img,
.post-body figure svg,
.post-body > svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-tint);
}
.post-body figcaption { margin-top: 0.6rem; font-size: 0.88rem; color: var(--ink-faint); text-align: center; }
.post-body blockquote {
  margin: 1.8rem 0;
  padding: 0.4rem 0 0.4rem 1.3rem;
  border-left: 3px solid var(--blue);
  color: var(--ink);
  font-style: italic;
}
.post-body .callout {
  display: flex;
  gap: 0.9rem;
  margin: 1.8rem 0;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(10, 132, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(10, 132, 255, 0.06);
  font-size: 0.99rem;
}
.post-body .callout strong { color: var(--ink); }
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(12, 38, 84, 0.06);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.96rem;
}
.post-body th, .post-body td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.post-body th { color: var(--ink); font-weight: 700; background: var(--bg-tint); }

/* In-article App-Store CTA card */
.post-ctacard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin: 2.6rem 0 0;
  padding: 1.6rem 1.7rem;
  border-radius: var(--radius-lg);
  color: #dce9ff;
  background:
    radial-gradient(700px 360px at 80% -40%, rgba(10, 132, 255, 0.45), transparent 65%),
    linear-gradient(170deg, #0d1830, #0a111f 75%);
  box-shadow: var(--shadow-device);
}
.post-ctacard h3 { color: #fff; margin: 0 0 0.3rem; font-size: 1.2rem; }
.post-ctacard p { margin: 0; font-size: 0.96rem; color: #aab6cc; max-width: 32em; }
/* The App Store badge lives inside .post-body, whose `a` rule would otherwise tint it
   blue + underline it (dark-on-dark). Keep the badge's own colours. */
.post-body .appstore-badge { text-decoration: none; color: #fff; }
.post-body .appstore-badge:hover { text-decoration: none; }
.post-body .appstore-badge--light { color: var(--ink); }

/* Related strip */
.post-related { margin: clamp(3rem, 7vw, 4.5rem) 0 0; }
.post-related h2 { font-size: 1.5rem; margin-bottom: 1.4rem; }

/* 404 */
.notfound { text-align: center; padding: clamp(2rem, 6vw, 4rem) 0; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.6rem; }

/* ---------- Guides responsive ---------- */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .post-toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
  .post-toc ul { border-left: none; padding-left: 0; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-ctacard { flex-direction: column; align-items: flex-start; }
}

/* ---------- Nav active state (plain, no underline) ---------- */
.nav__links a.is-active { color: var(--ink); font-weight: 600; }

/* ---------- Article hero with an export photo ---------- */
.post-hero--img { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem); }
.post-hero__photo { flex: 0 0 auto; width: clamp(150px, 24%, 220px); border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.45); box-shadow: 0 14px 36px rgba(8, 20, 50, 0.3); background: #fff; }
.post-hero__text { flex: 1 1 auto; min-width: 0; }
.post-hero__photo img { display: block; width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 3; }
.post-hero__photo--svg { padding: 12px; }
.post-hero__photo--svg svg { display: block; width: 100%; height: auto; }
@media (max-width: 720px) { .post-hero--img { flex-direction: column; align-items: flex-start; } .post-hero__photo { width: min(260px, 70%); } }

/* ---------- Related: large "All articles" button ---------- */
.post-related__more { display: flex; justify-content: center; margin: 2.6rem 0 0.5rem; }
.post-related__more .btn { font-size: 1.02rem; padding: 0.95rem 2.1rem; }

/* ---------- Rich footer (SEO) ---------- */
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 2rem; }
.footer__stack { display: grid; gap: 1.7rem; align-content: start; }
.footer__group h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin: 0 0 0.9rem; }
.footer__group ul { display: grid; gap: 0.5rem; }
.footer__brand-blurb { color: var(--ink-faint); font-size: 0.92rem; margin: 0.85rem 0 0; max-width: 24em; }
.footer__col h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin: 0 0 0.9rem; }
.footer__col ul { display: grid; gap: 0.5rem; }
.footer__col a:not(.appstore-badge) { color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; }
.footer__col a:hover { color: var(--blue-deep); text-decoration: none; }
.footer__col--wide ul { columns: 2; column-gap: 1.4rem; }
.footer__col--wide li { break-inside: avoid; margin-bottom: 0.5rem; }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
@media (max-width: 880px) { .footer__cols { grid-template-columns: 1fr 1fr; } .footer__col--wide { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__cols { grid-template-columns: 1fr; } .footer__col--wide ul { columns: 1; } }

/* In-article illustration (top of the article body): the JPG when present, else the kept SVG. */
.article-illus { margin: 0 0 1.8rem; border-radius: 16px; overflow: hidden; border: 1px solid var(--hairline); background: #fff; box-shadow: 0 10px 30px rgba(8, 20, 50, 0.06); }
.article-illus img { display: block; width: 100%; height: auto; }
.article-illus--svg { padding: clamp(1.1rem, 3.5vw, 2.2rem); }
.article-illus--svg svg { display: block; width: 100%; height: auto; }

/* ---------- On iPhone + iPad / iCloud sync (device-duo showcase) ---------- */
.device-duo { display: flex; align-items: flex-end; justify-content: center; gap: clamp(1rem, 3vw, 2.6rem); max-width: 980px; margin: 0 auto; }
.device-duo__ipad { width: min(70%, 680px); height: auto; border-radius: 18px; box-shadow: 0 44px 90px rgba(0, 0, 0, 0.5); }
.device-duo__iphone { width: min(23%, 200px); height: auto; border-radius: 30px; border: 7px solid #0b0d12; background: #0b0d12; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55); }
.devices__grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin: clamp(2.4rem, 5vw, 3.6rem) 0 0; padding: 0; }
.devices__grid li { padding: 1.05rem 1.2rem; border-radius: 16px; background: var(--dark-card); border: 1px solid var(--dark-line); font-size: 0.95rem; line-height: 1.5; }
.devices__grid strong { display: block; color: #fff; font-size: 1.02rem; margin-bottom: 0.25rem; letter-spacing: -0.01em; }
@media (max-width: 760px) { .devices__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .device-duo { gap: 0.8rem; } .device-duo__ipad { width: 66%; } .device-duo__iphone { width: 27%; } }

/* inline "Settings -> iCloud Sync" UI path */
.ui-path { font-style: normal; font-weight: 600; color: #fff; white-space: nowrap; }

/* ---------- FAQ accordion (homepage #faq) ---------- */
/* Native <details>/<summary> - no JavaScript, works under the strict CSP. */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.85rem; }
.faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(10, 30, 70, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq__item[open] { box-shadow: var(--shadow-soft); border-color: rgba(10, 132, 255, 0.28); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-size: 1.05rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em;
  cursor: pointer; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--blue); }
.faq__q:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: var(--radius); }
.faq__chevron { width: 22px; height: 22px; flex-shrink: 0; color: var(--ink-faint); transition: transform 0.25s ease, color 0.2s ease; }
.faq__item[open] .faq__chevron { transform: rotate(180deg); color: var(--blue); }
.faq__a { padding: 0 1.4rem 1.25rem; }
.faq__a p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.65; max-width: 68ch; }
@media (prefers-reduced-motion: reduce) { .faq__chevron { transition: none; } }
@media (max-width: 560px) {
  .faq__q { padding: 1rem 1.1rem; font-size: 1rem; }
  .faq__a { padding: 0 1.1rem 1.1rem; }
}

/* ============================================================
   Free Tools (/tools + /tools/<slug>)
   ============================================================ */

.container--narrow { max-width: 860px; }

/* Breadcrumbs */
.crumbs {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin-bottom: 1.6rem;
}
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs span[aria-hidden] { margin: 0 0.35rem; opacity: 0.6; }
.crumbs [aria-current] { color: var(--ink-soft); font-weight: 600; }

/* Index: section blocks + card grid */
.tool-section { margin-top: 3.2rem; }
.tool-section h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-bottom: 1.1rem; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}
.tool-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(10, 30, 70, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 132, 255, 0.45);
  box-shadow: var(--shadow-soft);
}
.tool-card__ico {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(10, 132, 255, 0.10);
  color: var(--blue);
  transition: background 0.16s ease;
}
.tool-card:hover .tool-card__ico { background: rgba(10, 132, 255, 0.16); }
.tool-card__icon { width: 24px; height: 24px; }
.tool-card__body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.tool-card__name { font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.tool-card__desc { font-size: 0.92rem; color: var(--ink-faint); line-height: 1.45; }

/* Highlighted file-viewer cards - each viewer gets its own accent so they
   stand out from the plain calculator cards. --vc is the accent as an "r,g,b"
   triple so one rule covers tint, border, shadow and the filled icon chip. */
.tool-card--viewer {
  --vc: 10, 132, 255;
  background: linear-gradient(135deg, rgba(var(--vc), 0.10), rgba(var(--vc), 0.02));
  border-color: rgba(var(--vc), 0.30);
  box-shadow: 0 2px 12px rgba(var(--vc), 0.12);
}
.tool-card--viewer:hover {
  border-color: rgba(var(--vc), 0.6);
  box-shadow: 0 12px 28px rgba(var(--vc), 0.24);
}
.tool-card--viewer .tool-card__ico,
.tool-card--viewer:hover .tool-card__ico {
  background: linear-gradient(135deg, rgba(var(--vc), 1), rgba(var(--vc), 0.72));
  color: #fff;
  box-shadow: 0 5px 14px rgba(var(--vc), 0.42);
}
.tool-card--viewer-dxf  { --vc: 10, 132, 255; }   /* blue - CAD */
.tool-card--viewer-usdz { --vc: 139, 92, 246; }   /* violet - 3D / AR */

/* Tool page hero */
.tool-hero .eyebrow { margin-bottom: 0.5rem; }
.tool-hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.7rem); }
.tool-lede { max-width: 640px; }

/* The calculator card */
.calc {
  margin: 2rem 0 2.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem clamp(1.1rem, 3vw, 1.9rem) 1.6rem;
}
.calc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.calc__title {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.calc__units {
  display: inline-flex;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.calc__units button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}
.calc__units button.is-active { background: var(--blue); color: #fff; }

.calc__field { display: block; margin-bottom: 0.8rem; }
.calc__field-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.calc__field-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 1.1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.calc__field-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}
.calc__field-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.55rem 0;
  outline: none;
}
.calc__unit { font-size: 0.9rem; color: var(--ink-faint); white-space: nowrap; }

.calc__field--options { border: 0; padding: 0; margin: 0 0 0.9rem; }
.calc__options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.calc__option input { position: absolute; opacity: 0; pointer-events: none; }
.calc__option span {
  display: inline-block;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.14s ease;
}
.calc__option input:checked + span {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.calc__option input:focus-visible + span { box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.3); }

.calc__results {
  margin-top: 1.3rem;
  background: rgba(10, 132, 255, 0.06);
  border: 1px solid rgba(10, 132, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.calc__empty { margin: 0; color: var(--ink-faint); }
.calc__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.3rem 0;
}
.calc__row .calc__label { color: var(--ink-faint); font-size: 0.92rem; }
.calc__row .calc__value {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.calc__row--big .calc__value { color: var(--blue); font-size: 1.35rem; font-weight: 800; }
.calc__verdict { font-weight: 700; padding: 0.3rem 0; }
.calc__verdict.is-pass { color: #0f8a3d; }
.calc__verdict.is-fail { color: #d02b20; }
.calc__note { color: var(--ink-faint); font-size: 0.92rem; padding: 0.3rem 0; margin: 0; }

/* Copy blocks */
.tool-copy { margin: 2.4rem 0; }
.tool-copy h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin-top: 2rem; }
.tool-copy h3 { font-size: 1.08rem; margin: 1.4rem 0 0.4rem; }
.tool-copy p { margin: 0.4rem 0 0.9rem; }

.tool-related { margin: 2.6rem 0; }
.tool-related h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin-bottom: 1rem; }

/* App CTA band */
.tool-cta {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  background: var(--dark-bg);
  color: var(--dark-text);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.tool-cta h2 { color: #fff; font-size: clamp(1.3rem, 2.8vw, 1.7rem); margin-bottom: 0.4rem; }
.tool-cta p { margin: 0; max-width: 520px; }
.tool-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }
/* Plain underlined text link beside the App Store badge (no button chrome). */
.cta-textlink {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}
.cta-textlink:hover { text-decoration-color: #fff; }

/* Homepage teaser row */
.tools-teaser { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.8rem; margin-top: 1.8rem; }

@media (max-width: 640px) {
  .calc__head { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .tool-cta { flex-direction: column; align-items: flex-start; }
  .calc__row { flex-direction: column; gap: 0.05rem; }
  .calc__row .calc__value { text-align: left; }
}

/* Dark-section tool cards (homepage teaser) */
.tool-card--dark {
  background: var(--dark-card);
  border-color: var(--dark-line);
  box-shadow: none;
}
.tool-card--dark .tool-card__name { color: #fff; }
.tool-card--dark .tool-card__desc { color: var(--dark-text); }
.tool-card--dark .tool-card__ico { background: rgba(77, 163, 255, 0.16); color: #6fb4ff; }
.tool-card--dark:hover .tool-card__ico { background: rgba(77, 163, 255, 0.24); }
.tool-card--dark:hover {
  border-color: rgba(10, 132, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

/* Free Tools search box */
.tools-search {
  position: relative;
  max-width: 560px;
  margin: 0 0 1.4rem;
}
.tools-search__icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--ink-faint);
  pointer-events: none;
}
.tools-search__input {
  width: 100%;
  font: inherit;
  font-size: 1.02rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.85rem 1.2rem 0.85rem 3rem;
  box-shadow: 0 1px 3px rgba(10, 30, 70, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tools-search__input::placeholder { color: var(--ink-faint); }
.tools-search__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}
.tools-search-empty {
  color: var(--ink-faint);
  font-weight: 500;
  padding: 1rem 0;
}

/* ============================================================
   File viewers (DXF / USDZ) - /free-tools/<viewer>
   ============================================================ */
.viewer { margin: 2rem 0 2.6rem; }
.viewer__file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.viewer__drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: clamp(1.8rem, 6vw, 3.2rem) 1.4rem;
  background: var(--bg-tint);
  border: 2px dashed rgba(10, 132, 255, 0.35);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.viewer__drop:hover { border-color: var(--blue); background: rgba(10, 132, 255, 0.06); }
.viewer.is-drag .viewer__drop {
  border-color: var(--blue);
  background: rgba(10, 132, 255, 0.1);
  transform: scale(1.005);
}
.viewer__drop-ico { color: var(--blue); line-height: 0; }
.viewer__drop-ico svg { width: 48px; height: 48px; }
.viewer__drop-title { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.viewer__browse { color: var(--blue); text-decoration: underline; }
.viewer__drop-hint { color: var(--ink-faint); font-size: 0.9rem; }

.viewer__stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1rem clamp(1rem, 3vw, 1.5rem) 1.3rem;
}
.viewer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
.viewer__fname {
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.viewer__btns { display: flex; gap: 0.4rem; flex-shrink: 0; }
.viewer__btn {
  border: 1px solid var(--line);
  background: var(--bg-tint);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 2.2rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.viewer__btn:hover { border-color: rgba(12, 38, 84, 0.25); }
.viewer__btn--ghost { background: transparent; color: var(--ink-soft); }

/* DXF canvas */
.viewer__canvas-wrap {
  position: relative;
  height: clamp(320px, 62vh, 620px);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 26px 26px,
    #fbfdff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.viewer__canvas-wrap.is-panning { cursor: grabbing; }
.viewer__canvas { display: block; }
.viewer__canvas-hint {
  position: absolute;
  right: 0.7rem;
  bottom: 0.6rem;
  margin: 0;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  pointer-events: none;
}

/* Stats (shared) */
.viewer__stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.2rem;
  margin: 1.1rem 0 0;
}
.viewer__stats dt { color: var(--ink-faint); font-size: 0.9rem; }
.viewer__stats dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: right;
  overflow-wrap: anywhere;
}

/* USDZ - AR launcher */
.viewer__ar-slot { text-align: center; margin-bottom: 0.4rem; }
.viewer__ar-btn {
  display: inline-block;
  border-radius: 14px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  box-shadow: 0 8px 20px rgba(10, 110, 255, 0.28);
}
.viewer__ar-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(10, 110, 255, 0.4); }
.viewer__ar-img { display: block; }
.viewer__ar-note { margin: 0.55rem 0 0; color: var(--ink-faint); font-size: 0.86rem; }
.viewer__ar-fallback {
  background: rgba(10, 132, 255, 0.06);
  border: 1px solid rgba(10, 132, 255, 0.16);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  text-align: left;
}
.viewer__ar-fallback strong { display: block; color: var(--ink); margin-bottom: 0.2rem; }
.viewer__ar-fallback p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* USDZ - texture previews */
.viewer__textures {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.7rem;
  margin-top: 1.1rem;
}
.viewer__tex { margin: 0; }
.viewer__tex img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    conic-gradient(#e9eef6 25%, #f6f9fd 0 50%, #e9eef6 0 75%, #f6f9fd 0) 0 0 / 16px 16px;
}
.viewer__tex figcaption {
  margin-top: 0.3rem;
  font-size: 0.74rem;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* USDZ - file list */
.viewer__files { margin-top: 1.3rem; }
.viewer__files-title { font-weight: 700; color: var(--ink); margin: 0 0 0.5rem; }
.viewer__files-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.viewer__files-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.viewer__files-list li:last-child { border-bottom: 0; }
.viewer__file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.viewer__file-tag {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
  background: rgba(10, 132, 255, 0.1);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
}
.viewer__file-size { flex-shrink: 0; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

.viewer__error {
  margin: 1rem 0 0;
  padding: 0.8rem 1.1rem;
  background: rgba(208, 43, 32, 0.07);
  border: 1px solid rgba(208, 43, 32, 0.2);
  border-radius: var(--radius);
  color: #b3241b;
  font-size: 0.92rem;
}

@media (max-width: 560px) {
  .viewer__stats dd { text-align: left; }
  .viewer__bar { flex-wrap: wrap; }
}
