/* Autocuts home page.
   A white page, one blue accent, black ink. The hero sits on a dark band
   that ends behind the hero video; the dark Mac section and the pricing
   card use the same tone.
   Hierarchy comes from type scale and white space. No kickers, no step
   numbers, no icon tiles, no glows. */

:root {
  --bg: #ffffff;
  --bg-2: #f4f5f7;
  --bg-3: #eceef1;
  --night: #0e1116;
  --night-2: #151920;
  --ink: #0c0f13;
  --mut: #5c646e;
  --dim: #8b929b;
  --line: rgba(12, 15, 19, 0.08);
  --line-strong: rgba(12, 15, 19, 0.16);
  --acc: #2f6fdb;
  --acc-hover: #255fc2;
  --on-night: #f3f5f7;
  --on-night-mut: rgba(243, 245, 247, 0.62);
  --radius: 14px;
  --radius-lg: 22px;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { max-width: 100%; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(47, 111, 219, 0.18); }

.frame { max-width: 1120px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }

/* ---------- type ---------- */

h1, h2, h3 { line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 1.2rem + 4.6vw, 4.4rem); line-height: 1.0; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem); letter-spacing: -0.036em; }
h3 { font-size: 1.3rem; }
p { text-wrap: pretty; }

.mono { font-size: 0.86rem; color: var(--dim); }

.sec-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec-head p { color: var(--mut); margin: 18px auto 0; font-size: 1.1rem; line-height: 1.55; max-width: 600px; }
.sec-head--left { margin-left: 0; text-align: left; }
.sec-head--left p { margin-left: 0; }
.sec-head a { color: var(--acc); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  cursor: pointer;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary { background: var(--acc); color: #fff; }
.btn--primary:hover { background: var(--acc-hover); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #22262c; }
.btn--light { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.btn--light:hover { background: var(--bg-2); }
.btn--sm { padding: 8px 15px; font-size: 0.88rem; border-radius: 999px; }
.btn--lg { padding: 15px 26px; font-size: 1.02rem; }

.tlink {
  font-size: 1rem; font-weight: 500; color: var(--mut);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-strong);
}
.tlink:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------- floating rail ---------- */

.rail { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; padding: 0 16px; pointer-events: none; }
.rail__inner {
  pointer-events: auto;
  margin: 0 auto; width: max-content; max-width: 100%;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(14, 17, 22, 0.94);
  color: var(--on-night);
  box-shadow: 0 10px 30px rgba(12, 15, 19, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.rail__brand { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; text-decoration: none; font-size: 1rem; letter-spacing: -0.02em; margin-right: 10px; }
.rail__brand img { width: 26px; height: 26px; border-radius: 6px; }
.rail__brand b { font-weight: 600; }
.rail__nav { display: flex; gap: 2px; }
.rail__nav a {
  text-decoration: none; color: var(--on-night-mut); font-size: 0.9rem; font-weight: 500;
  padding: 7px 11px; border-radius: 999px; transition: color 0.15s ease, background 0.15s ease;
}
.rail__nav a:hover { color: var(--on-night); background: rgba(255, 255, 255, 0.07); }
.rail .btn { margin-left: 8px; }

/* ---------- hero ---------- */

.hero { position: relative; padding: 128px 0 clamp(56px, 7vw, 96px); }
.hero__wall {
  position: absolute; inset: 0; z-index: -1;
  background: var(--night);
}
.hero__copy { max-width: 760px; margin: 0 auto; text-align: center; color: #fff; }
.hero__copy h1 { width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; text-wrap: nowrap; white-space: nowrap; font-size: clamp(2.5rem, 1rem + 4.2vw, 4.2rem); }
@media (max-width: 640px) { .hero__copy h1 { width: auto; text-wrap: balance; white-space: normal; } .hero__copy h1 br { display: none; } }
.hero__sub { margin: 22px auto 0; max-width: 620px; font-size: clamp(1.02rem, 0.94rem + 0.4vw, 1.18rem); line-height: 1.55; color: rgba(255, 255, 255, 0.82); }
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero .tlink { color: rgba(255, 255, 255, 0.82); text-decoration-color: rgba(255, 255, 255, 0.4); }
.hero .tlink:hover { color: #fff; text-decoration-color: #fff; }
.hero__meta { margin-top: 20px; color: rgba(255, 255, 255, 0.72); }
.hero__stage { max-width: 1040px; margin: clamp(40px, 5vw, 64px) auto 0; }

/* ---------- video frames ---------- */

.vid {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--bg-3); transform: translateZ(0);
  box-shadow: 0 12px 32px -12px rgba(12, 15, 19, 0.3), 0 0 0 1px rgba(12, 15, 19, 0.08);
}
.vid video { display: block; width: 100%; height: auto; }
.vid--hero { aspect-ratio: 16 / 9; }
.vid--hero video, .vid--wide video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- section rhythm ---------- */

.features, .how, .editor, .who, .pricing, .faq, .download { padding: clamp(72px, 9vw, 128px) 0; }
.how, .who, .faq { border-top: 1px solid var(--line); }

/* ---------- feature rows ---------- */

.frows { display: grid; gap: clamp(56px, 7vw, 104px); }

.frow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.frow--flip .frow__media { order: 2; }

.frow__media {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--bg-2); aspect-ratio: 4 / 3;
  box-shadow: 0 0 0 1px var(--line);
}
.frow__media video { display: block; width: 100%; height: 100%; object-fit: cover; }

.frow__body { max-width: 480px; }
.frow--flip .frow__body { justify-self: end; }
.frow__body h3 { font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.05rem); }
.frow__body > p { margin-top: 14px; color: var(--mut); font-size: 1.02rem; line-height: 1.6; }

/* A plain list with a hairline; the tick is a thin check, drawn once. */
.flist { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.flist li {
  position: relative; padding-left: 26px; font-size: 0.96rem; color: #39414a;
}
.flist li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230c0f13" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / contain no-repeat;
}

.card__link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 10px;
  color: var(--acc); font-size: 0.95rem; font-weight: 500; text-decoration: none;
}
.card__link::after { content: "→"; transition: transform 0.15s ease; }
.card__link:hover::after { transform: translateX(3px); }

/* ---------- feature cards: 2 x 2 ---------- */

.fcards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
  margin-top: clamp(56px, 7vw, 104px);
}
.fcard {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); background: var(--bg-2); overflow: hidden;
}
.fcard__media { aspect-ratio: 4 / 3; background: var(--bg-3); }
.fcard__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.fcard__body { padding: 26px clamp(22px, 3vw, 32px) 30px; }
.fcard__body h3 { font-size: 1.32rem; }
.fcard__body > p { margin-top: 10px; color: var(--mut); font-size: 0.96rem; line-height: 1.6; }
.fcard__body .flist { margin-top: 16px; gap: 7px; }
.fcard__body .flist li { font-size: 0.92rem; }

/* ---------- how it works ---------- */

.how__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.how__step { border-top: 2px solid var(--ink); padding-top: 20px; }
.how__step h3 { font-size: 1.2rem; }
.how__step p { margin-top: 10px; color: var(--mut); font-size: 0.95rem; line-height: 1.6; }

/* ---------- editor ---------- */

.editor { background: var(--bg-2); }
.editor .vid { margin-top: 0; }
.caps {
  list-style: none; margin-top: clamp(32px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 40px);
}
.caps li { border-top: 1px solid var(--line-strong); padding: 12px 0; font-size: 0.95rem; color: #39414a; }
.editor .card__link { margin-top: 24px; }

/* ---------- who ---------- */

.who__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.who__item { padding: 30px clamp(20px, 3vw, 36px) 34px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.who__item:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
.who__item:nth-child(-n + 3) { border-top: 0; }
.who__item h3 { font-size: 1.2rem; }
.who__item p { margin-top: 10px; color: var(--mut); font-size: 0.95rem; line-height: 1.6; }
.who__item .card__link { font-size: 0.9rem; margin-top: 4px; }

/* ---------- mac: dark band with a spec table ---------- */

.mac { background: var(--night); color: var(--on-night); padding: clamp(80px, 10vw, 140px) 0; }
.mac .sec-head p { color: var(--on-night-mut); }
.mac__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 860px; margin: 0 auto; }
.spec { margin-top: 8px; }
.spec__row {
  display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 0 clamp(18px, 2.5vw, 32px);
  align-items: baseline; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0;
}
.spec__row:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.spec__row dt { font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(243, 245, 247, 0.5); }
.spec__row dd { font-size: 1rem; color: rgba(243, 245, 247, 0.88); }
.spec__row dd a { color: #8ab4ff; }
.mac__foot { margin-top: 40px; text-align: center; color: var(--on-night-mut); font-size: 0.9rem; }

/* ---------- pricing ---------- */

.price-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 900px; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--night); color: var(--on-night);
}
.price-panel__buy { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.price-panel__now { font-size: clamp(4rem, 8vw, 6rem); font-weight: 600; letter-spacing: -0.055em; line-height: 1; font-variant-numeric: tabular-nums; display: inline-flex; align-items: flex-start; }
.price-panel__cents { font-size: 0.5em; margin-top: 0.16em; }
.price-panel__note { margin-top: 14px; color: var(--on-night-mut); }
.price-panel__buy .btn { margin-top: 30px; }
.price-panel__info {
  padding: clamp(30px, 4vw, 48px) clamp(24px, 4vw, 56px);
  background: var(--night-2); border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; justify-content: center;
}
.price-panel__info .flist { margin-top: 0; gap: 12px; }
.price-panel__info .flist li { color: rgba(243, 245, 247, 0.9); }
.price-panel__info .flist li::before { filter: invert(1); }
.price-panel__info p { margin-top: 22px; color: var(--on-night-mut); font-size: 0.94rem; line-height: 1.6; }

/* ---------- faq ---------- */

.faq__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.faq__list { border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 2px;
  font-weight: 500; font-size: 1.04rem; line-height: 1.4; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--acc); }
.faq__item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%);
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%238b929b" stroke-width="2.2" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg>') center / contain no-repeat;
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--mut); padding: 0 2px 24px; font-size: 0.98rem; line-height: 1.62; max-width: 720px; }
.faq__item a { color: var(--acc); }

/* ---------- download ---------- */

.download { padding-top: 0; }
.download__band {
  display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--bg-2);
}
.download__band > img { border-radius: 16px; flex: none; }
.download__copy { flex: 1 1 380px; }
.download__copy p { margin-top: 12px; color: var(--mut); max-width: 560px; }
.download__get { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.download__req { display: block; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.foot-brand .rail__brand { color: var(--ink); margin: 0; }
.foot-brand p { color: var(--dim); font-size: 0.88rem; margin-top: 14px; max-width: 240px; }
.foot-col__h { font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 16px; }
.foot-col ul { list-style: none; display: grid; gap: 10px; }
.foot-col a { color: #39414a; text-decoration: none; font-size: 0.9rem; transition: color 0.15s ease; }
.foot-col a:hover { color: var(--acc); }
.foot-bar { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--dim); font-size: 0.82rem; }

/* ---------- reveal ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s cubic-bezier(0.22, 0.6, 0.25, 1), transform 0.7s cubic-bezier(0.22, 0.6, 0.25, 1); }
.js [data-reveal-delay="1"] { transition-delay: 0.1s; }
.js [data-reveal-delay="2"] { transition-delay: 0.2s; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card__link::after { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .frow, .frow--flip { grid-template-columns: 1fr; }
  .frow__media, .frow--flip .frow__media { order: -1; max-width: 640px; }
  .frow__body, .frow--flip .frow__body { max-width: none; justify-self: start; }
  .how__grid { grid-template-columns: 1fr 1fr; }
  .faq__grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .who__grid { grid-template-columns: 1fr 1fr; }
  .who__item:nth-child(3n + 1) { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 36px); }
  .who__item:nth-child(-n + 3) { border-top: 1px solid var(--line); }
  .who__item:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .who__item:nth-child(-n + 2) { border-top: 0; }
}

@media (max-width: 760px) {
  .rail__nav { display: none; }
  .fcards { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr 1fr; }
  .price-panel { grid-template-columns: 1fr; }
  .price-panel__info { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 104px; }
  .how__grid, .caps, .who__grid { grid-template-columns: 1fr; }
  .who__item { border-left: 0 !important; padding-left: 0 !important; }
  .who__item:first-child { border-top: 0 !important; }
  .spec__row { grid-template-columns: 1fr; gap: 6px; }
  .hero__actions { flex-direction: column; gap: 16px; }
  .download__get, .download__get .btn { width: 100%; }
  .download__get .btn { justify-content: center; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bar { flex-direction: column; }
}
