/* IBM Plex Sans (variable, OFL) — display + body */
@font-face {
  font-family: "Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plex-sans-var.woff2") format("woff2");
}
@font-face {
  font-family: "Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/plex-sans-var.woff2") format("woff2");
}
@font-face {
  font-family: "Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/plex-sans-var.woff2") format("woff2");
}
@font-face {
  font-family: "Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/plex-sans-var.woff2") format("woff2");
}
/* IBM Plex Mono (OFL) — technical accents: file names, prices, labels */
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/plex-mono-500.woff2") format("woff2");
}

/* ---- Tokens ---- */
:root {
  --ground: #f5f6f9;
  --surface: #ffffff;
  --surface-alt: #eceffa;
  --ink: #12141c;
  --muted: #5a6072;
  --line: #dfe2ea;
  --accent: #3654ff;
  --accent-ink: #22399e;
  --accent-soft: #ecefff;
  --on-accent: #ffffff;
  --header-bg: rgba(245, 246, 249, 0.82);
  --shadow: 0 1px 2px rgba(18, 20, 28, 0.04), 0 8px 24px rgba(18, 20, 28, 0.05);

  --font-sans: "Plex Sans", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Plex Mono", ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;

  font-size: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0b0c10;
    --surface: #14161c;
    --surface-alt: #1a1d26;
    --ink: #eceef3;
    --muted: #9aa0b4;
    --line: #262a34;
    --accent: #7c90ff;
    --accent-ink: #c7cfff;
    --accent-soft: #1b2040;
    --on-accent: #0b0c10;
    --header-bg: rgba(11, 12, 16, 0.75);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --ground: #0b0c10;
  --surface: #14161c;
  --surface-alt: #1a1d26;
  --ink: #eceef3;
  --muted: #9aa0b4;
  --line: #262a34;
  --accent: #7c90ff;
  --accent-ink: #c7cfff;
  --accent-soft: #1b2040;
  --on-accent: #0b0c10;
  --header-bg: rgba(11, 12, 16, 0.75);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-sans); font-weight: 700; line-height: 1.15; text-wrap: balance; letter-spacing: -0.01em; }
h3 { font-weight: 600; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 0.15em 0.42em;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---- Header / footer ---- */
.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  max-width: 1160px;
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-footer { border-top: 1px solid var(--line); flex-wrap: wrap; gap: 1rem; }

.logo { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.02rem; color: var(--ink); letter-spacing: -0.01em; }
.logo img { width: 26px; height: 26px; }

nav a { margin-left: 1.75rem; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
nav a:hover { color: var(--ink); text-decoration: none; }
.site-footer nav a { margin-left: 0; margin-right: 1.75rem; }
.social { display: flex; gap: 1.25rem; }
.social a { color: var(--muted); font-size: 0.9rem; }
.social a:hover { color: var(--ink); text-decoration: none; }

main { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
main.article { max-width: 720px; }

/* ---- Eyebrow / pills / badges ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 1.1rem;
}
.pill-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 3rem;
  padding: 4.5rem 0 5rem;
}
.hero-content { text-align: left; }
.hero h1 { font-size: clamp(2.2rem, 1.85rem + 1.6vw, 3.1rem); margin: 0 0 1rem; }
.hero .subhead { max-width: 46ch; color: var(--muted); font-size: 1.1rem; margin: 0 0 2rem; }
.hero-visual { justify-self: center; width: 100%; max-width: 560px; }

.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); text-decoration: none; transform: translateY(-1px); }
.btn-secondary { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; transform: translateY(-1px); }

/* ---- Merge diagram (hero visual) ----
   Story, on an 8.5s loop: the icon sits centered; five zip.NNN files
   "download" one after another into a stack on the left (a small arrow
   flashes before each settles in); once all five are stacked they travel
   into the icon together; the icon pulses; a Drive-style folder list
   reveals row by row on the right and holds — deliberately the longest
   phase of the loop, since the organized result is the point. Base state
   below is the fully-resolved frame (folder list visible, files gone) so
   prefers-reduced-motion users get a meaningful static image instead of
   blank space; the no-preference block is what animates. */
.merge-diagram { width: 100%; height: auto; overflow: visible; }
.merge-diagram .chip rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.merge-diagram .chip text { font-family: var(--font-mono); font-size: 13px; fill: var(--muted); }
.merge-diagram .download-arrow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.merge-diagram .tree-row svg path { fill: var(--muted); }
.merge-diagram .tree-row text { font-family: var(--font-sans); font-size: 14px; fill: var(--ink); }
.merge-diagram .tree-divider { stroke: var(--line); stroke-width: 1; }
.merge-diagram .caption { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; fill: var(--muted); text-transform: uppercase; }

.merge-diagram .chip-stack, .merge-diagram .folder-icon {
  transform-box: fill-box;
  transform-origin: center;
}
.merge-diagram .tree-row { transform-box: fill-box; transform-origin: 0% 50%; }
.merge-diagram .download-arrow { transform-box: fill-box; transform-origin: center; }

/* resolved static frame (reduced motion / no-JS default) */
.merge-diagram .chip-stack { opacity: 0; }
.merge-diagram .download-arrow { opacity: 0; }
.merge-diagram .tree-row { opacity: 1; transform: translateX(0); }
.merge-diagram .caption { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .merge-diagram .tree-row { opacity: 0; transform: translateX(-10px); }
  .merge-diagram .caption { opacity: 0; }

  .merge-diagram .chip-stack { animation: stack-into-icon 8.5s ease-in-out infinite; }
  .merge-diagram .chip-1 { animation: chip1-appear 8.5s ease-in-out infinite; }
  .merge-diagram .chip-2 { animation: chip2-appear 8.5s ease-in-out infinite; }
  .merge-diagram .chip-3 { animation: chip3-appear 8.5s ease-in-out infinite; }
  .merge-diagram .chip-4 { animation: chip4-appear 8.5s ease-in-out infinite; }
  .merge-diagram .chip-5 { animation: chip5-appear 8.5s ease-in-out infinite; }
  .merge-diagram .chip-1 .download-arrow { animation: arrow1-flash 8.5s ease-in-out infinite; }
  .merge-diagram .chip-2 .download-arrow { animation: arrow2-flash 8.5s ease-in-out infinite; }
  .merge-diagram .chip-3 .download-arrow { animation: arrow3-flash 8.5s ease-in-out infinite; }
  .merge-diagram .chip-4 .download-arrow { animation: arrow4-flash 8.5s ease-in-out infinite; }
  .merge-diagram .chip-5 .download-arrow { animation: arrow5-flash 8.5s ease-in-out infinite; }
  .merge-diagram .folder-icon { animation: folder-pulse 8.5s ease-in-out infinite; }
  .merge-diagram .tree-row-1 { animation: row1-reveal 8.5s ease-in-out infinite; }
  .merge-diagram .tree-row-2 { animation: row2-reveal 8.5s ease-in-out infinite; }
  .merge-diagram .tree-row-3 { animation: row3-reveal 8.5s ease-in-out infinite; }
  .merge-diagram .tree-row-4 { animation: row4-reveal 8.5s ease-in-out infinite; }
  .merge-diagram .tree-row-5 { animation: row5-reveal 8.5s ease-in-out infinite; }
  .merge-diagram .caption { animation: caption-fade 8.5s ease-in-out infinite; }
}

/* whole stack travels right into the centered icon, once all five have landed */
@keyframes stack-into-icon {
  0%, 23.53%  { opacity: 1; transform: translate(0, 0) scale(1); }
  34.12%, 100% { opacity: 0; transform: translate(225px, 0) scale(0.22); }
}

@keyframes chip1-appear { 0%, 3.53% { opacity: 0; } 4.71%, 100% { opacity: 1; } }
@keyframes chip2-appear { 0%, 8.24% { opacity: 0; } 9.41%, 100% { opacity: 1; } }
@keyframes chip3-appear { 0%, 12.94% { opacity: 0; } 14.12%, 100% { opacity: 1; } }
@keyframes chip4-appear { 0%, 17.65% { opacity: 0; } 18.82%, 100% { opacity: 1; } }
@keyframes chip5-appear { 0%, 22.35% { opacity: 0; } 23.53%, 100% { opacity: 1; } }

@keyframes arrow1-flash { 0%, 1.18% { opacity: 0; transform: translateY(-8px); } 2.35% { opacity: 1; transform: translateY(0); } 3.53%, 100% { opacity: 0; transform: translateY(4px); } }
@keyframes arrow2-flash { 0%, 5.88% { opacity: 0; transform: translateY(-8px); } 7.06% { opacity: 1; transform: translateY(0); } 8.24%, 100% { opacity: 0; transform: translateY(4px); } }
@keyframes arrow3-flash { 0%, 10.59% { opacity: 0; transform: translateY(-8px); } 11.76% { opacity: 1; transform: translateY(0); } 12.94%, 100% { opacity: 0; transform: translateY(4px); } }
@keyframes arrow4-flash { 0%, 15.29% { opacity: 0; transform: translateY(-8px); } 16.47% { opacity: 1; transform: translateY(0); } 17.65%, 100% { opacity: 0; transform: translateY(4px); } }
@keyframes arrow5-flash { 0%, 20% { opacity: 0; transform: translateY(-8px); } 21.18% { opacity: 1; transform: translateY(0); } 22.35%, 100% { opacity: 0; transform: translateY(4px); } }

@keyframes folder-pulse {
  0%, 34.12%  { transform: scale(1); }
  36.47%      { transform: scale(1.18); }
  40%, 100% { transform: scale(1); }
}

/* folder-list rows reveal one by one, then hold */
@keyframes row1-reveal { 0%, 40% { opacity: 0; transform: translateX(-10px); } 43.53%, 88.24% { opacity: 1; transform: translateX(0); } 96.47%, 100% { opacity: 0; transform: translateX(-10px); } }
@keyframes row2-reveal { 0%, 43.53% { opacity: 0; transform: translateX(-10px); } 47.06%, 88.24% { opacity: 1; transform: translateX(0); } 96.47%, 100% { opacity: 0; transform: translateX(-10px); } }
@keyframes row3-reveal { 0%, 47.06% { opacity: 0; transform: translateX(-10px); } 50.59%, 88.24% { opacity: 1; transform: translateX(0); } 96.47%, 100% { opacity: 0; transform: translateX(-10px); } }
@keyframes row4-reveal { 0%, 50.59% { opacity: 0; transform: translateX(-10px); } 54.12%, 88.24% { opacity: 1; transform: translateX(0); } 96.47%, 100% { opacity: 0; transform: translateX(-10px); } }
@keyframes row5-reveal { 0%, 54.12% { opacity: 0; transform: translateX(-10px); } 57.65%, 88.24% { opacity: 1; transform: translateX(0); } 96.47%, 100% { opacity: 0; transform: translateX(-10px); } }

@keyframes caption-fade {
  0%, 57.65%  { opacity: 0; }
  61.18%, 88.24% { opacity: 1; }
  96.47%, 100% { opacity: 0; }
}

/* ---- Feature / option grids ---- */
.features, .how-it-works, .options, .faq { padding: 4rem 0; border-top: 1px solid var(--line); }
.features h2, .how-it-works h2, .options h2, .faq h2 { font-size: 1.7rem; margin: 0 0 0.5rem; }
.section-intro { max-width: 62ch; color: var(--muted); font-size: 1.05rem; margin: 0.5rem 0 0; }

.feature-grid, .option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 2rem; }
.option-grid { grid-template-columns: repeat(2, 1fr); }
.feature-grid article, .option-grid > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
}
.feature-grid .icon-tile {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature-grid .icon-tile svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-grid h3, .option-grid h3 { font-size: 1.02rem; margin: 0 0 0.4rem; font-weight: 600; }
.feature-grid p, .option-grid p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.feature-grid h3 a { color: var(--ink); }
.feature-grid h3 a:hover { color: var(--accent); }

.how-it-works ol { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; counter-reset: step; }
.how-it-works li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.how-it-works li:last-child { border-bottom: none; padding-bottom: 0; }
.how-it-works li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

/* ---- FAQ ---- */
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--font-mono); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--muted); margin: 0.85rem 0 0; }

.cta-final { text-align: center; padding: 4rem 0; }
.cta-final h2 { font-size: 1.6rem; margin-bottom: 1.5rem; }

/* ---- Article pages ---- */
.article h1 { font-size: 2.1rem; margin-top: 2.5rem; }
.article .lede { font-size: 1.12rem; color: var(--muted); }
.article h2 { margin-top: 2.5rem; font-size: 1.35rem; }
.article ol, .article ul { padding-left: 1.2rem; }
.article li { margin-bottom: 0.5rem; }
.article .see-also { background: var(--surface-alt); padding: 1.1rem 1.3rem; border-radius: 10px; margin-top: 2.5rem; font-size: 0.96rem; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.75rem; margin: 2rem 0;
}
.contact-card h2 { margin-top: 0; font-size: 1.1rem; }
.contact-card .btn { margin-top: 0.75rem; }
.article .cta-final { text-align: left; display: flex; gap: 1rem; flex-wrap: wrap; padding: 3rem 0; }

/* ---- Pricing page ---- */
.pricing-hero { text-align: center; padding: 4rem 0 1rem; }
.pricing-hero h1 { font-size: clamp(2rem, 1.7rem + 1vw, 2.6rem); max-width: 640px; margin: 0 auto 1rem; }
.pricing-hero .subhead { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }
.pricing-hero .eyebrow { display: block; width: fit-content; margin: 0 auto 1rem; }

.pricing-grid-section { padding: 2rem 0 4rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; max-width: 800px; margin: 0 auto; }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.25rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pricing-card .icon-tile {
  width: 48px; height: 48px; margin-bottom: 1rem;
  border-radius: 10px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
}
.pricing-card .icon-tile svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pricing-card .icon-fill svg { fill: var(--accent); stroke: none; }
.pricing-card h2 { font-size: 1.15rem; margin: 0 0 0.35rem; }
.pricing-card .pricing-platform { color: var(--muted); font-size: 0.92rem; margin: 0 0 1rem; }
.pricing-card .price { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 600; color: var(--ink); margin: 0 0 1.25rem; }
.pricing-card .btn { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 0; text-align: left; }
  .hero-visual { justify-self: start; max-width: 420px; order: -1; }
}
@media (max-width: 700px) {
  .feature-grid, .option-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .site-header, .site-footer { padding: 1rem; }
  nav a { margin-left: 1rem; }
}
