/* Autocuts landing page. Theme tokens come from the desktop app:
   shell #13161b, ink #eef2f3, accent #5b9dff / #4c8dff, record #db4238,
   aurora wall #092f37 / #1d7f79 / #edb56f, frame radius 24px. */

:root {
  --bg: #0e1114;
  --shell: #13161b;
  --panel: #161b22;
  --panel-2: #1a2029;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --ink: #eef2f3;
  --mut: #9fabb6;
  --soft: #c9d3da;
  --acc: #5b9dff;
  --acc-2: #4c8dff;
  --teal: #1d7f79;
  --amber: #edb56f;
  --radius: 24px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, 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(91, 157, 255, 0.32); }

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

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

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }

h1 { font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 1.1rem + 2.8vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 650; }

p { text-wrap: pretty; }

.micro {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--acc);
  margin-bottom: 14px;
}

.grad { color: var(--acc); }

.sec-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}
.sec-head p { color: var(--mut); margin-top: 14px; font-size: 1.05rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  background: var(--acc-2);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.btn--primary:hover { background: var(--acc); }
.btn--primary:active { background: var(--acc-2); }

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.24); }

.btn--sm { padding: 9px 18px; font-size: 0.9rem; }
.btn--lg { padding: 16px 34px; font-size: 1.08rem; }

/* ---------- header rail ---------- */

.rail {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 17, 20, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.rail.is-scrolled { border-bottom-color: var(--line); }

.rail__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px clamp(18px, 4vw, 32px);
  display: flex;
  align-items: center;
  gap: 24px;
}

.rail__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.rail__brand img { border-radius: 8px; }
.rail__inner > .rail__brand img {
  width: 40px;
  height: 40px;
}
.rail__brand b { font-weight: 700; }

.rail__nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 26px);
  margin-left: auto;
}
.rail__nav a {
  text-decoration: none;
  color: var(--mut);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.rail__nav a:hover { color: var(--ink); }

.rail .btn { margin-left: auto; }
.rail__nav + .btn { margin-left: 0; }

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

.hero {
  position: relative;
  padding: clamp(36px, 5.5vw, 60px) 0 24px;
  text-align: center;
}

.hero .frame { position: relative; }

.hero__copy { max-width: 1020px; margin: 0 auto; }

.hero h1 { font-size: clamp(2.5rem, 1.2rem + 5vw, 4.4rem); }
.hero h1 .grad { display: block; }

.hero__sub {
  color: var(--mut);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.14rem);
  margin: 22px auto 0;
  max-width: 760px;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero__proof {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px 0;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero__proof span {
  color: var(--mut);
  font-size: 0.92rem;
  line-height: 1.35;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 0 26px;
  white-space: nowrap;
}
.hero__proof span + span { border-left: 1px solid var(--line); }
.hero__proof svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 50%;
  background: rgba(91, 157, 255, 0.1);
  color: var(--acc);
  flex: none;
}

.hero__stage {
  max-width: 880px;
  margin: clamp(40px, 6vw, 64px) auto 0;
}

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

.vid {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--shell);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  transform: translateZ(0);
}
.vid video {
  display: block;
  width: 100%;
  height: auto;
}

.vid--wide {
  max-width: 880px;
  margin: 0 auto;
}

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

.who { padding: clamp(56px, 8vw, 88px) 0 0; }

.who__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.who__card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.who__card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.who__role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--acc);
  margin-bottom: 12px;
}
.who__card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.who__card p { color: var(--mut); font-size: 0.95rem; }
.who__card .card__link { margin-top: auto; padding-top: 16px; }

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

.how { padding: clamp(72px, 10vw, 112px) 0 0; }

.how__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.how__step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.how__step span {
  color: var(--acc);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.how__step h3 { margin: 12px 0 8px; font-size: 1.08rem; }
.how__step p { color: var(--mut); font-size: 0.92rem; }

/* ---------- features: feature rows ---------- */

.features { padding: clamp(72px, 10vw, 112px) 0 0; }
.features .frame { max-width: 1280px; }

.cards {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: clamp(26px, 3.4vw, 44px);
  align-items: center;
  padding: clamp(24px, 3vw, 36px);
  background: var(--panel);
}
.card:nth-child(even) {
  grid-template-columns: 1fr 520px;
  background: var(--panel-2);
}
.card:nth-child(even) .card__media { order: 2; }
.card + .card { border-top: 1px solid var(--line); }

.card__media {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--shell);
  aspect-ratio: 1 / 1;
}
.card__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body { max-width: 620px; }
.card__body .micro { margin-bottom: 8px; }
.card__body h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem); margin-bottom: 10px; }
.card__body p { color: var(--mut); font-size: 0.98rem; }

.card__link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--acc);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.card__link:hover { text-decoration: underline; }

.ticks {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 11px;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: 0.94rem;
  color: var(--soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(91, 157, 255, 0.14) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%235b9dff" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 11px no-repeat;
}

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

.editor {
  position: relative;
  padding: clamp(72px, 10vw, 112px) 0 0;
}
.editor .frame { position: relative; }

.editor__stage { margin-bottom: 36px; }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 500;
}
.chips li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acc);
}

/* ---------- mac ---------- */

.mac { padding: clamp(72px, 10vw, 112px) 0 0; }

.mac__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 18px;
}

.mac__card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.mac__card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.mac__card p { color: var(--mut); font-size: 0.92rem; }

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

.pricing {
  position: relative;
  padding: clamp(72px, 10vw, 112px) 0 0;
}
.pricing .frame { position: relative; }

.price-panel {
  max-width: 760px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.price-panel__info {
  padding: clamp(28px, 4vw, 40px) clamp(24px, 6vw, 56px);
  border-top: 1px solid var(--line);
}

.price-panel__info .ticks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  column-gap: 24px;
}

.price-panel__buy {
  padding: clamp(40px, 7vw, 68px) clamp(24px, 6vw, 56px) clamp(36px, 6vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.price-panel__tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--acc);
}

.price-panel__amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 6px;
}

.price-panel__was {
  font-size: 1rem;
  font-weight: 650;
  color: var(--soft);
  letter-spacing: 0.02em;
}

.price-panel__was s {
  margin-left: 3px;
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--ink);
  text-decoration-color: var(--acc);
  text-decoration-thickness: 2px;
}

.price-panel__now {
  font-size: clamp(5rem, 12vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: flex-start;
}

.price-panel__cents {
  margin-top: 0.1em;
  font-size: 0.62em;
  letter-spacing: -0.04em;
}

.price-panel__note {
  color: var(--soft);
  font-size: 1rem;
  font-weight: 550;
  margin-bottom: 28px;
}

.price-panel__buy .btn {
  width: 100%;
  max-width: 340px;
}

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

.faq { padding: clamp(72px, 10vw, 112px) 0 0; }

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 4px;
  font-weight: 600;
  font-size: 1.04rem;
  position: relative;
  transition: color 0.15s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--acc); }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  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="%239fabb6" stroke-width="2.4" 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 4px 22px;
  max-width: 640px;
}
.faq__item a { color: var(--acc); }

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

.download {
  position: relative;
  padding: clamp(72px, 10vw, 112px) 0 clamp(88px, 12vw, 120px);
}
.download .frame { position: relative; }

.download__card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(40px, 7vw, 56px) clamp(22px, 5vw, 40px);
}
.download__card img { border-radius: 16px; margin-bottom: 20px; }
.download__card h2 { margin-bottom: 12px; }
.download__card p { color: var(--mut); margin-bottom: 30px; }
.download__req {
  display: block;
  margin-top: 18px;
  color: var(--mut);
  font-size: 0.85rem;
}

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

footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  background: var(--shell);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.foot-brand p {
  color: var(--mut);
  font-size: 0.92rem;
  margin-top: 14px;
  max-width: 240px;
}

.foot-col__h {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mut);
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; display: grid; gap: 10px; }
.foot-col a {
  color: var(--soft);
  text-decoration: none;
  font-size: 0.94rem;
  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(--mut);
  font-size: 0.85rem;
}

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

[data-reveal] {
  opacity: 1;
  transform: none;
  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);
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

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

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

@media (max-width: 900px) {
  .card, .card:nth-child(even) { grid-template-columns: 1fr; }
  .card__media, .card:nth-child(even) .card__media { order: -1; max-width: 640px; }
  .hero__stage, .vid--wide { max-width: 560px; }
  .how__grid { grid-template-columns: 1fr 1fr; }
  .who__grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .price-panel__info .ticks { grid-template-columns: 1fr; }
  .who__grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .rail__nav { display: none; }
  .hero__actions { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
  .hero__proof { flex-direction: column; align-items: center; gap: 14px; }
  .hero__proof span + span { border-left: 0; }
  .hero__proof span { padding: 0; }
  .how__grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bar { flex-direction: column; }
}
