/* html2mp4 — Pixelcut-inspired light UI (v7) — centered hero, borderless cards */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  /* Pixelcut card spec (measured 2026-10-21): solid #F8F8F8, radius 32px, padding 24px, no border, no shadow */
  --card-bg: #F8F8F8; --card-radius: 32px; --card-pad: 24px;
  --bg: #FFFFFF;
  --paper: #FFFFFF;
  --ink: #191919;
  --muted: #8A8A8E;
  --muted-weak: #CCCCCC;
  --line: #F0F0F0;
  --hairline: rgba(25,25,25,.06);
  --mark: #0F766E;
  --mark-soft: #F0FDFA;
  --code-bg: #1C1F27;
  --code-fg: #E6EAF0;
  --code-dim: #8B93A7;
  --radius: 20px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(25,25,25,.04), 0 8px 24px rgba(25,25,25,.05);
  --shadow-md: 0 8px 24px rgba(25,25,25,.06), 0 20px 48px rgba(25,25,25,.06);
  --shadow-btn: 0 1px 2px rgba(25,25,25,.12), 0 4px 10px rgba(25,25,25,.1);
  --max: 1160px;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #115E59; }
a:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }
code {
  font-family: var(--mono); font-size: .88em; color: #0F3D3A;
  background: var(--mark-soft); padding: .1em .35em; border-radius: 6px;
}

.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 99;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header — seamless, no bottom hairline */
header.site {
  position: relative; z-index: 40;
  background: rgba(255,255,255,.92);
  border-bottom: 0;
  backdrop-filter: blur(12px);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px; padding: .5rem 0;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink); text-decoration: none; flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .logo-mark { width: 24px; height: 24px; display: block; flex-shrink: 0; }
.brand-name {
  font-size: 18px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; color: var(--ink);
}
.brand .tag {
  color: var(--muted); font-weight: 400; font-size: .8125rem; line-height: 28px;
  margin-left: .25rem;
}
.foot-brand { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 700; }
.foot-brand .logo-mark { width: 20px; height: 20px; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Desktop center — Pixelcut-style hover dropdown */
.nav-center {
  display: none; align-items: center; gap: .5rem;
  flex: 1; justify-content: flex-start; margin-left: 1.5rem;
}
.nav-dd { position: relative; }
.nav-dd-trigger, .nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  height: 36px; padding: 0 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink);
  font: 500 .9375rem/1 var(--font); cursor: pointer; text-decoration: none;
  transition: background-color .15s ease;
}
.nav-dd-trigger:hover, .nav-link:hover,
.nav-dd-trigger[aria-expanded="true"] { background: #F8F8F8; color: var(--ink); text-decoration: none; }
.nav-link[aria-current="page"] { background: #F8F8F8; }
.ico-chev { display: block; transition: transform .15s ease; }
.nav-dd-trigger[aria-expanded="true"] .ico-chev { transform: rotate(180deg); }
.nav-dd-panel {
  position: absolute; left: 0; top: 100%; margin-top: 8px;
  min-width: 200px; padding: 8px;
  background: #fff; border: 1px solid #EDEDED; border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  z-index: 50;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s ease, visibility 0s linear .15s;
}
/* hover bridge across the 8px gap */
.nav-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 9px; }
.nav-dd.is-open > .nav-dd-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .15s ease, visibility 0s;
}
.nav-dd-panel a {
  display: flex; align-items: center; height: 36px; padding: 0 8px;
  border-radius: 8px; white-space: nowrap;
  color: var(--ink); font-size: .875rem; font-weight: 400; text-decoration: none;
}
.nav-dd-panel a:hover, .nav-dd-panel a:focus-visible { background: #F8F8F8; color: var(--ink); text-decoration: none; }
.nav-dd-panel a[aria-current="page"] { font-weight: 600; }

.nav-end {
  display: flex; align-items: center; gap: .5rem; margin-left: auto; flex-shrink: 0;
}
.nav-end .btn-ghost.nav-cta,
.nav-end .btn-primary.nav-cta { display: none; }

/* Mobile: hamburger -> full-screen white sheet (Pixelcut) */
.nav-toggle, .m-menu-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-right: -8px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: #000; cursor: pointer;
}
.nav-toggle:hover, .m-menu-close:hover { background: #F8F8F8; }
.m-menu {
  position: fixed; inset: 0; z-index: 90;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: #fff; overflow: hidden;
}
.m-menu[hidden] { display: none; }
.m-menu-top {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: .4rem 1rem; padding-top: calc(.4rem + env(safe-area-inset-top, 0px));
  flex-shrink: 0;
}
.m-menu-top .brand .tag { display: none; }
.m-menu-body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  -webkit-tap-highlight-color: transparent; margin-top: .5rem;
}
.m-menu-body ul { list-style: none; margin: 0; padding: 0; }
.m-menu-body li { border-bottom: 1px solid #EDEDED; }
.m-acc, .m-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; height: 64px; padding: 0 1.5rem;
  border: 0; background: transparent; cursor: pointer; text-align: left;
  font: 500 1.125rem/1.55 var(--font); color: #000; text-decoration: none;
}
.m-acc:hover, .m-row:hover { color: #000; text-decoration: none; }
.m-acc .ico-chev, .m-row .ico-chev { transform: rotate(-90deg); flex-shrink: 0; }
.m-acc[aria-expanded="true"] { background: #F8F8F8; }
.m-acc[aria-expanded="true"] .ico-chev { transform: none; }
.m-row[aria-current="page"] { background: #F8F8F8; }
.m-acc-panel { padding: 0 0 .5rem; }
.m-acc-panel a {
  display: flex; align-items: center; height: 48px; padding: 0 1.5rem;
  color: #000; font-size: 1rem; font-weight: 400; text-decoration: none;
}
.m-acc-panel a:hover { background: #F8F8F8; color: #000; text-decoration: none; }
.m-acc-panel a[aria-current="page"] { font-weight: 600; }
.m-menu-actions {
  display: flex; flex-direction: column; gap: .75rem; flex-shrink: 0;
  padding: 1rem 1.5rem; padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px));
  background: #fff;
}
.m-menu-actions .btn { width: 100%; height: 48px; font-size: 1rem; font-weight: 500; box-shadow: none; }
html.nav-locked, html.nav-locked body { overflow: hidden; }

@media (min-width: 881px) {
  .nav-center { display: flex; }
  .nav-toggle, .m-menu { display: none !important; }
  .nav-end .btn-ghost.nav-cta,
  .nav-end .btn-primary.nav-cta { display: inline-flex; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  padding: .65rem 1.2rem; font-weight: 600; cursor: pointer;
  font-size: .95rem; text-decoration: none; font-family: inherit;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  color: #fff; background: var(--ink); border-color: var(--ink);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: #000; color: #fff; border-color: #000; }
.btn-ghost {
  color: var(--ink); background: #F5F5F5;
  border-color: transparent;
  box-shadow: none;
}
.btn-ghost:hover { background: #EFEFEF; border-color: transparent; color: var(--ink); }
.btn-outline { color: var(--ink); background: #fff; border-color: #EDEDED; }
.btn-outline:hover { background: #F8F8F8; color: var(--ink); border-color: #EDEDED; }
.nav-end .btn { padding: .5rem 1.05rem; font-size: .9rem; }

/* Hero — Pixelcut: centered copy, figure full-bleed below */
.hero {
  padding: 3.5rem 0 2.75rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 3rem;
}
.hero-copy {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  width: 100%;
  max-width: 46rem;
}
.notice {
  font-size: .875rem; color: var(--muted);
  border-left: 0; padding: 0; margin: 0 0 1rem;
}
h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.5rem); /* ~36–56px */
  line-height: 1.05; letter-spacing: -.04em; margin: 0 0 .9rem;
  font-weight: 600; color: var(--ink);
}
.hero-copy h1 { max-width: 18ch; }
.lead {
  color: var(--muted); font-size: 1.0625rem; /* ~17px */
  max-width: 38rem;
  margin: 0 auto 1.5rem; line-height: 1.55;
  text-align: center;
}
.lead strong { color: var(--ink); font-weight: 600; }
.hero-cta {
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: center; margin-bottom: 1rem;
}
.meta-row {
  display: flex; flex-wrap: wrap; gap: .5rem .9rem;
  justify-content: center;
  color: var(--muted); font-size: .86rem; font-family: var(--mono);
}

.figure {
  background: var(--card-bg);
  border: 0;
  border-radius: var(--card-radius);
  padding: var(--card-pad); margin: 0;
  box-shadow: none;
  width: 100%;
}
.figure.hero-figure {
  background: transparent; border: 0; box-shadow: none; border-radius: 0;
  padding: 0; max-width: 60rem; margin: 0 auto;
}
.hero-video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border: 0; border-radius: 24px; box-shadow: none; background: #fff;
  object-fit: cover;
}
@media (max-width: 640px) {
  .hero-video { aspect-ratio: 4 / 5; border-radius: 16px; }
}
.figure.hero-figure figcaption { margin-top: .5rem; padding: 0; }
.figure img, .figure svg {
  display: block; width: 100%; height: auto;
  border-radius: 12px;
}
.figure figcaption {
  margin-top: .75rem; font-size: .82rem; color: var(--muted);
  text-align: center; padding: 0 .5rem .35rem;
}

/* Sections — no hard band borders; whitespace only */
section { padding: 3.25rem 0; }
section.band {
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}
.sec-head { margin-bottom: 1.5rem; max-width: 52rem; }
.sec-head h2 { font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.2; letter-spacing: -.035em; margin-bottom: .6rem; }
.sec-head p, .sec-head .muted { color: var(--ink); margin: 0; }

/* How it works — 4 user steps, Pixelcut flat cards */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
@media (min-width: 641px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step-card {
  background: var(--card-bg); border: 0; box-shadow: none;
  border-radius: var(--card-radius); padding: var(--card-pad);
  display: flex; flex-direction: column; gap: 20px;
}
.step-card img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10;
  border-radius: 16px; background: #fff;
}
.step-body { display: flex; flex-direction: column; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px; margin-bottom: 12px;
  background: var(--ink); color: #fff;
  font: 600 14px/1 var(--font);
}
.step-card h3 { font-size: 1.125rem; line-height: 1.35; margin: 0 0 6px; }
.step-card p { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.5; }
.steps-note { margin: 20px 0 0; font-size: .875rem; color: var(--muted); }
.steps-more { margin: 8px 0 0; font-size: 1rem; color: var(--ink); }
h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  letter-spacing: -.03em; margin: 0 0 .5rem; font-weight: 600; color: var(--ink);
}
h3 { font-size: 1.05rem; margin: 0 0 .35rem; letter-spacing: -.01em; font-weight: 600; color: var(--ink); }
.muted { color: var(--muted); }

/* Guide cards — soft edge */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; border: 0; }
.guide-list li { border: 0; }
.guide-list a {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem;
  padding: 1.15rem 1.25rem; text-decoration: none; color: inherit;
  background: var(--card-bg); border: 0;
  border-radius: var(--card-radius); box-shadow: none;
  padding: var(--card-pad);
  transition: background .15s ease;
}
.guide-list a:hover { background: #F2F2F2; }
.guide-list a:hover h3 { color: var(--mark); }
.guide-list .k {
  font-family: var(--font); font-size: .875rem; color: var(--muted);
  padding-top: .1rem; font-weight: 500;
}
.guide-list p { margin: .2rem 0 0; color: var(--ink); font-size: .95rem; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 0;
}
.timeline li + li { margin-top: .15rem; }
.timeline .n {
  font-family: var(--mono); font-size: .85rem; color: var(--mark);
  font-weight: 500; padding-top: .15rem;
}
.timeline p { margin: .25rem 0 0; color: var(--ink); }

/* Code */
.panel {
  background: var(--code-bg); border-radius: var(--card-radius); overflow: hidden;
  border: 0;
  box-shadow: none;
}
.panel-top {
  padding: .9rem var(--card-pad) .7rem; border-bottom: 1px solid #2A2F3A;
  color: var(--code-dim); font-size: .75rem; font-family: var(--mono);
}
.code, pre.code {
  margin: 0; padding: 1rem var(--card-pad) var(--card-pad);
  font-family: var(--mono); font-size: .84rem; line-height: 1.55;
  color: var(--code-fg); white-space: pre-wrap; word-break: break-word;
  background: var(--code-bg);
}
.code .c { color: #5EEAD4; }

/* FAQ — hairline + soft */
details.faq {
  border: 0; border-radius: var(--card-radius);
  background: var(--card-bg); margin-bottom: .75rem; overflow: hidden;
  box-shadow: none;
}
details.faq summary {
  cursor: pointer; padding: var(--card-pad); font-weight: 600; list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] summary { border-bottom: 0; }
details.faq p { margin: 0; padding: 0 var(--card-pad) var(--card-pad); color: var(--ink); }

/* Prose */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2rem; }
.prose p, .prose li { color: var(--ink); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose pre {
  background: var(--code-bg); border: 0;
  border-radius: var(--card-radius); padding: var(--card-pad); overflow-x: auto;
  font-family: var(--mono); font-size: .84rem; color: var(--code-fg);
  box-shadow: none;
}
.prose code {
  font-family: var(--mono); font-size: .88em; color: #0F3D3A;
  background: var(--mark-soft); padding: .1em .35em; border-radius: 3px;
}
.prose pre code { background: none; color: inherit; padding: 0; }
.crumb { font-size: .85rem; color: var(--muted); margin: 1.35rem 0 0; }
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--mark); }
.next {
  margin-top: 2.25rem; padding-top: 1.5rem; border-top: 0;
  display: flex; flex-wrap: wrap; gap: .65rem;
}
.page-hero {
  padding: 2rem 0 0;
  text-align: left;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -.035em;
  max-width: none;
}
.page-hero .lead {
  text-align: left; margin-left: 0; margin-right: 0;
  font-size: 1.0625rem; max-width: 40rem;
}
.page-hero .figure { margin: 1.5rem 0 0; max-width: 42rem; }

/* Compare — no outer frame */
.compare {
  overflow-x: auto; background: var(--card-bg);
  border: 0; border-radius: var(--card-radius);
  box-shadow: none; padding: 8px;
}
.compare table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare th, .compare td {
  text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.compare th { color: var(--muted); font-weight: 600; font-size: .82rem; background: transparent; }
.compare tr:last-child td { border-bottom: 0; }
.note { font-size: .82rem; color: var(--muted); }

footer.site {
  border-top: 0; padding: 2.5rem 0 2.75rem;
  color: var(--muted); font-size: .88rem; background: var(--bg); margin-top: 1rem;
}
footer.site .foot {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: start;
}
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--mark); }
footer.site strong { color: var(--ink); }

@media (max-width: 880px) {
  .hero { padding: 2.25rem 0 1.75rem; gap: 1.5rem; }
  .hero-copy h1 { max-width: none; }
  .guide-list a { grid-template-columns: 1fr; gap: .25rem; }
  .nav { flex-wrap: nowrap; gap: .5rem; min-height: 56px; padding: .4rem 0; }
  .brand .tag { display: none; }
  .nav-center { display: none !important; }
  .nav-end .btn-ghost.nav-cta,
  .nav-end .btn-primary.nav-cta { display: none !important; }
  section { padding: 2rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-dd-panel, .ico-chev, .nav-dd-trigger { transition: none !important; }
}
