/* OPD Office landing — minimal Swiss layout, real app screens as the hero.
   Design tokens first; every colour in the page comes from these. */
:root {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --on-accent: #ffffff;
  --ring: #2563eb;
  --device: #0b0f17;
  --device-edge: #2a303b;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06);
  --shadow-md: 0 12px 32px -12px rgb(15 23 42 / 0.18);
  --shadow-lg: 0 40px 80px -32px rgb(15 23 42 / 0.35);

  /* Product family colours — taken from the app's own file icons */
  --pdf: #e32636;
  --word: #1c6fd6;
  --excel: #25a365;
  --ppt: #ee7326;
  /* Brand words in the headline: the app's PDF red (FileFilter.PdfBrandRed); Office takes the Word blue */
  --pdf-brand: #d7373f;
  --office-brand: var(--word);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120;
    --bg-alt: #0f172a;
    --surface: #111a2e;
    --text: #f1f5f9;
    --text-2: #cbd5e1;
    --text-3: #94a3b8;
    --border: #1e293b;
    --border-strong: #334155;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --on-accent: #0b1120;
    --ring: #93c5fd;
    --device: #05070c;
    --device-edge: #3b4352;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 12px 32px -12px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 40px 80px -32px rgb(0 0 0 / 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120;
  --bg-alt: #0f172a;
  --surface: #111a2e;
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --text-3: #94a3b8;
  --border: #1e293b;
  --border-strong: #334155;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --on-accent: #0b1120;
  --ring: #93c5fd;
  --device: #05070c;
  --device-edge: #3b4352;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 12px 32px -12px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 40px 80px -32px rgb(0 0 0 / 0.8);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}

.wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}
.section {
  padding-block: 112px;
}
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head h2,
.faq-intro h2,
.download h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 800;
}
.section-head > p:last-child {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 18px;
}
.note {
  margin-top: 24px;
  color: var(--text-3);
  font-size: 14px;
}
.note-center {
  text-align: center;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.text-link .icon {
  transition: transform 0.2s var(--ease);
}
.text-link:hover .icon {
  transform: translateX(4px);
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-badge {
  display: block;
  border-radius: 12px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.store-badge img {
  display: block;
  height: 50px;
  width: auto;
}
.store-badge:hover {
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.brand img {
  border-radius: 8px;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover {
  background: var(--bg-alt);
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: 72px 48px;
  overflow: hidden;
}
.hero::before {
  /* one quiet wash of the accent behind the devices — no motion */
  content: "";
  position: absolute;
  inset: -20% -10% auto 40%;
  height: 120%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, transparent), transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}
.family-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.family-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.hero h1 {
  font-size: clamp(38px, 4.8vw, 58px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero h1 .h1-line {
  display: block;
}
.c-pdf {
  color: var(--pdf-brand);
}
.c-office {
  color: var(--office-brand);
}
.lede {
  max-width: 34em;
  margin: 24px 0 32px;
  color: var(--text-2);
  font-size: 19px;
}
.hero .store-badges {
  margin-bottom: 16px;
}

/* ---------- Devices ----------
   The frame is sized off its own width (container units), so a phone or a
   tablet keeps the same proportions at any size. */
.device {
  margin: 0;
  container-type: inline-size;
}
.device-frame {
  padding: 2.4cqw;
  border-radius: 6cqw;
  background: var(--device);
  box-shadow: 0 0 0 1px var(--device-edge) inset, var(--shadow-lg);
}
.device-frame img {
  display: block;
  width: 100%;
  border-radius: 4cqw;
  background: #fff;
}
.device-iphone .device-frame {
  padding: 3.6cqw;
  border-radius: 15cqw;
}
.device-iphone .device-frame img {
  border-radius: 11.5cqw;
}

/* An iPad with an iPhone overlapping its lower-left corner */
.duo {
  position: relative;
  aspect-ratio: 1 / 1.06;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
}
.duo .device-ipad {
  position: absolute;
  top: 0;
  right: 0;
  width: 78%;
}
.duo .device-iphone {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 33%;
}

/* ---------- Facts ---------- */
.facts {
  padding-block: 24px 16px;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--border);
}
.facts-grid > div {
  padding: 28px 24px 8px 0;
}
.facts-grid > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--border);
}
.facts dt {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}
.facts dd {
  margin: 4px 0 0;
}
.facts strong {
  display: block;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.facts dd span {
  display: block;
  margin-top: 6px;
  color: var(--text-3);
  font-size: 14px;
}

/* ---------- Editors ---------- */
.editors {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}
.tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 72px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.tab + .tab {
  border-left: 1px solid var(--border);
}
.tab::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  background: var(--family);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.tab:hover {
  background: var(--bg-alt);
  color: var(--text);
}
.tab[aria-selected="true"] {
  color: var(--text);
}
.tab[aria-selected="true"]::after {
  transform: scaleX(1);
}
.tab:focus-visible {
  outline-offset: -4px;
}
.panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
  padding: 56px;
}
.panel:focus-visible {
  outline-offset: -4px;
}
.panel[hidden] {
  display: none;
}
.panel.is-entering .duo {
  animation: panel-in 0.45s var(--ease) both;
}
.ext {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.ext span {
  padding: 2px 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--family) 12%, transparent);
  color: color-mix(in srgb, var(--family) 75%, var(--text));
  font-size: 14px;
  font-weight: 700;
}
.panel h3 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
}
.panel-copy > p:not(.ext):not(.note) {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 17px;
}
.checks {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}
.checks .icon {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--family) 14%, transparent);
  color: var(--family);
  stroke-width: 3;
}
.duo-panel {
  max-width: 520px;
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.card h3 {
  font-size: 22px;
  font-weight: 700;
}
.card p {
  margin-top: 8px;
  color: var(--text-2);
}
.card-library {
  grid-column: span 4;
}
.card-combine {
  grid-column: span 2;
}
.card-small {
  grid-column: span 2;
}
.card-small h3 {
  margin-top: 20px;
  font-size: 19px;
}
.card-text {
  position: relative;
  z-index: 1;
  max-width: 360px;
}
/* Drawn illustrations — a file library and a merge into one PDF */
/* Four paper sheets fanned out — skeleton bars instead of text so it reads as art, not UI */
.doc-fan {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 210px;
  margin: auto -32px -32px;
  padding-top: 24px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
  mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
.sheet {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  width: 150px;
  height: 196px;
  margin-inline: -14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.sheet img {
  margin-bottom: 6px;
}
.sheet-pdf {
  transform: translateY(18px) rotate(-9deg);
}
.sheet-word {
  transform: translateY(2px) rotate(-3deg);
}
.sheet-excel {
  transform: translateY(2px) rotate(3deg);
}
.sheet-ppt {
  transform: translateY(18px) rotate(9deg);
}
.sheet .line {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}
.sheet .line.wide {
  height: 9px;
  width: 70%;
  background: color-mix(in srgb, var(--word) 35%, var(--border));
}
.sheet .line.short {
  width: 55%;
}
.sheet .block {
  height: 44px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--pdf) 16%, var(--border));
}
.sheet .cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.sheet .cells i {
  height: 14px;
  border-radius: 2px;
  background: var(--border);
}
.sheet .cells i:nth-child(-n + 3) {
  background: color-mix(in srgb, var(--excel) 40%, var(--border));
}
.sheet .slide {
  height: 64px;
  border-radius: 6px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ppt) 55%, var(--surface)), color-mix(in srgb, var(--ppt) 20%, var(--border)));
}
.star {
  position: absolute;
  top: 18px;
  left: calc(50% - 150px);
  width: 26px;
  height: 26px;
  background: #f5b301;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  transform: rotate(-12deg);
}
.merge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: auto;
  padding-top: 32px;
}
.merge-in {
  display: grid;
  gap: 8px;
}
.merge-in img:nth-child(2) {
  margin-left: 14px;
}
.merge-arrow {
  width: 28px;
  height: 28px;
  color: var(--text-3);
}
.merge-out {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 20px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  box-shadow: var(--shadow-md);
}
.merge-out small {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

/* Line icons from the app, tinted per tool through a mask */
.tile-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--fg) 12%, transparent);
}
.tile-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  background: var(--fg);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

/* ---------- Cloud ---------- */
.cloud-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}
.cloud-copy h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 800;
}
.cloud-copy > p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 18px;
}
.cloud-copy .text-link {
  margin-top: 24px;
}
/* Decorative diagram: the app in the middle, four storage places around it */
.hub {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  margin-inline: auto;
  pointer-events: none;
}
.hub::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, transparent), transparent);
}
.hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.hub-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px 28px 20px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -50%);
}
.hub-core img {
  border-radius: 18px;
}
.hub-core strong {
  font-size: 15px;
  white-space: nowrap;
}
.node {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 120px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transform: translate(-50%, -50%);
}
.node span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border), var(--shadow-md);
}
.node-tl {
  top: 21%;
  left: 21%;
}
.node-tr {
  top: 21%;
  left: 79%;
}
.node-bl {
  top: 79%;
  left: 21%;
}
.node-br {
  top: 79%;
  left: 79%;
}

/* ---------- Tools ---------- */
.tool-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip span {
  color: var(--text-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.chip[aria-pressed="true"] {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}
.chip[aria-pressed="true"] span {
  color: inherit;
  opacity: 0.7;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(280px, 100%);
}
.search .icon {
  position: absolute;
  left: 14px;
  color: var(--text-3);
  pointer-events: none;
}
.search input {
  width: 100%;
  min-height: 44px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.search input::placeholder {
  color: var(--text-3);
}
.search input:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
  border-color: transparent;
}
.tool-count {
  margin: 20px 0 16px;
  color: var(--text-3);
  font-size: 14px;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tool {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.tool:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.tool[hidden] {
  display: none;
}
.tool h3 {
  font-size: 17px;
  font-weight: 700;
}
.tool p {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}
.tools-empty {
  padding: 48px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-2);
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.faq-intro > p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 18px;
}
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s var(--ease);
}
.contact:hover {
  border-color: var(--border-strong);
}
.contact small {
  display: block;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
}
.contact > .icon {
  margin-left: auto;
  color: var(--text-3);
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.faq {
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-block: 16px;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  color: var(--text-3);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary .icon {
  transform: rotate(45deg);
}
.faq details p {
  max-width: 40em;
  padding-bottom: 24px;
  color: var(--text-2);
}

/* ---------- Download ---------- */
.download {
  padding-block: 112px;
}
.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  padding: 64px;
  border-radius: 32px;
  background: #0f172a;
  color: #f8fafc;
  overflow: hidden;
  position: relative;
}
.download-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(37 99 235 / 0.45), transparent);
  pointer-events: none;
}
.download-copy {
  position: relative;
}
.download-icon {
  margin-bottom: 24px;
  border-radius: 16px;
}
.download h2 {
  max-width: 14em;
}
.download-copy > p {
  margin: 16px 0 32px;
  color: #cbd5e1;
  font-size: 18px;
}
.qr-row {
  position: relative;
  display: flex;
  gap: 16px;
}
.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: #ffffff;
  color: #0f172a;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.qr:hover {
  transform: translateY(-3px);
}
.qr-code {
  position: relative;
  display: block;
  margin-bottom: 10px;
}
.qr-code > img:first-child {
  display: block;
  width: 132px;
  height: 132px;
}
.qr-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 3px solid #fff;
  border-radius: 8px;
  transform: translate(-50%, -50%);
}
.qr strong {
  font-size: 15px;
}
.qr span:last-child {
  color: #64748b;
  font-size: 13px;
}

/* ---------- Footer ---------- */
.footer {
  padding-block: 56px 40px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 15px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-top p {
  margin-top: 12px;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  text-decoration: none;
}
.footer nav a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 13px;
}
.footer-bottom p {
  max-width: 560px;
}

/* ---------- Reveal on scroll (only when JS runs and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal],
  .js [data-reveal-group] > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .js [data-reveal].is-visible,
  .js [data-reveal-group].is-visible > * {
    opacity: 1;
    transform: none;
  }
  .js [data-reveal-group].is-visible > * {
    transition-delay: calc(var(--i, 0) * 60ms);
  }
  .hero-copy,
  .hero-visual {
    animation: rise 0.6s var(--ease) both;
  }
  .hero-visual {
    animation-delay: 0.1s;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }
  .panel {
    gap: 40px;
    padding: 40px;
  }
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-library {
    grid-column: span 6;
  }
  .card-combine,
  .card-small {
    grid-column: span 3;
  }
  .download-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .section,
  .download {
    padding-block: 80px;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .hero {
    padding-top: 40px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual .duo {
    max-width: 480px;
  }
  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts-grid > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .facts-grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--border);
    margin-top: 20px;
  }
  .panel {
    grid-template-columns: 1fr;
    padding: 32px 24px 40px;
  }
  .duo-panel {
    max-width: 440px;
  }
  .faq-grid,
  .cloud-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .nav {
    display: none;
  }
  .header-inner {
    justify-content: space-between;
  }
  .lede {
    font-size: 17px;
  }
  .store-badge img {
    height: 44px;
  }
  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tab:nth-child(3) {
    border-left: 0;
  }
  .tab:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
  .tab {
    min-height: 60px;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .card-combine,
  .card-small {
    grid-column: span 6;
  }
  .card {
    padding: 24px;
  }
  .doc-fan {
    height: 170px;
    margin: auto -24px -24px;
  }
  .sheet {
    width: 108px;
    height: 150px;
    margin-inline: -12px;
    padding: 12px;
  }
  .star {
    left: calc(50% - 112px);
  }
  .search {
    width: 100%;
  }
  .download-card {
    padding: 40px 24px;
    border-radius: 24px;
  }
  .qr-row {
    display: none; /* scanning a QR shown on the same phone is pointless */
  }
  .facts strong {
    font-size: 36px;
  }
  .node span {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }
  .node span img {
    width: 30px;
    height: 30px;
  }
  .node {
    font-size: 13px;
  }
  .hub-core {
    padding: 16px 18px 14px;
    border-radius: 22px;
  }
  .hub-core img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
}
