:root {
  --ink: #151513;
  --paper: #f5f1e9;
  --white: #fffdf8;
  --coral: #cf3e27;
  --blue: #2b55d4;
  --line: rgba(21, 21, 19, .18);
  --font-display: "Manrope", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.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; }

.site-header { position: absolute; z-index: 10; inset: 0 0 auto; height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 5vw, 76px); color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 800 25px/1 var(--font-display); }
.brand-mark { display: flex; align-items: end; gap: 2px; width: 22px; height: 24px; transform: skew(-8deg); }
.brand-mark i { display: block; width: 6px; background: var(--coral); }
.brand-mark i:nth-child(1) { height: 13px; }
.brand-mark i:nth-child(2) { height: 21px; }
.brand-mark i:nth-child(3) { height: 17px; background: var(--blue); }
nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
nav a, .text-button { border-bottom: 1px solid transparent; transition: border-color .2s ease; }
nav a:hover, .text-button:hover { border-color: currentColor; }
.text-button { border: 0; border-bottom: 1px solid transparent; padding: 0; color: inherit; background: none; cursor: pointer; }

.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: center; padding: 98px clamp(24px, 5vw, 76px) 70px; background: #e8e1d6; }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { background: url("assets/kilo-video-workspace.webp") 66% center / cover no-repeat; transform: scale(1.03); animation: heroImage 1.3s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-shade { right: auto; width: 58%; background: rgba(246,242,234,.28); }
.hero-content { position: relative; z-index: 1; width: min(650px, 49vw); padding-top: 18px; animation: heroIn .9s .15s both cubic-bezier(.2,.8,.2,1); }
.eyebrow { margin: 0 0 19px; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font: 800 clamp(74px, 10vw, 150px)/.86 var(--font-display); letter-spacing: 0; }
.hero-line { margin: 17px 0 8px; font: 700 clamp(24px, 3vw, 42px)/1.05 var(--font-display); }
.hero-copy { max-width: 470px; margin-bottom: 28px; font-size: 16px; line-height: 1.55; }
.download-form { width: min(620px, 100%); }
.url-field { height: 62px; display: flex; align-items: center; padding: 0 13px 0 19px; background: var(--white); border: 2px solid transparent; transition: border-color .2s, box-shadow .2s; }
.url-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43,85,212,.12); }
.url-field.invalid { border-color: var(--coral); }
.url-field svg { width: 21px; margin-right: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.url-field input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.url-field input::placeholder { color: #77736c; }
.paste-button { border: 0; padding: 10px 12px; background: transparent; color: var(--blue); font-size: 13px; font-weight: 700; cursor: pointer; }
.primary-button, .dark-button { min-height: 55px; display: inline-flex; align-items: center; justify-content: center; gap: 30px; border: 0; padding: 0 25px; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s; }
.primary-button { margin-top: 11px; color: white; background: var(--coral); }
.primary-button:hover, .dark-button:hover { transform: translateY(-2px); }
.primary-button:hover { background: #b93320; }
.primary-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.primary-button:disabled { cursor: wait; opacity: .7; transform: none; }
.form-error { min-height: 19px; margin: 7px 0 0; color: #a42513; font-size: 13px; font-weight: 600; }
.form-meta { display: flex; gap: 24px; margin-top: 6px; color: #58544e; font-size: 12px; }
.quota b { color: var(--coral); font-size: 15px; }
.legal-mini { max-width: 590px; margin: 18px 0 0; color: #625e57; font-size: 11px; line-height: 1.45; }
.scroll-cue { position: absolute; z-index: 1; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 7px; color: #4f4b45; font-size: 11px; font-weight: 700; transform: translateX(-50%); }
.scroll-cue svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; animation: bob 1.7s infinite; }

.section { padding: clamp(90px, 11vw, 155px) clamp(24px, 7vw, 110px); }
.section-heading { display: grid; grid-template-columns: minmax(180px, .55fr) 1.45fr; gap: 40px; }
.section h2 { margin-bottom: 0; font: 700 clamp(39px, 5vw, 72px)/1.04 var(--font-display); }
.steps { list-style: none; margin: 90px 0 0 auto; padding: 0; width: min(930px, 100%); border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 29px 0; border-bottom: 1px solid var(--line); }
.step-number { color: var(--coral); font: 700 13px var(--font-display); }
.steps h3, .trust h3 { margin: 0 0 6px; font: 700 22px var(--font-display); }
.steps p, .trust p { max-width: 500px; margin: 0; color: #625e57; line-height: 1.55; }

.membership { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(50px, 9vw, 140px); align-items: center; color: var(--white); background: var(--blue); }
.membership-copy p:last-child { max-width: 510px; margin: 27px 0 0; font-size: 21px; line-height: 1.5; }
.price-block { border-left: 1px solid rgba(255,255,255,.4); padding-left: clamp(35px, 6vw, 85px); }
.price { display: flex; align-items: flex-start; margin-bottom: 35px; font: 800 90px/.85 var(--font-display); }
.price span { margin: 6px 5px 0 0; font-size: 28px; }
.price sup { margin-top: 4px; font-size: 30px; }
.price small { align-self: end; margin: 0 0 5px 8px; font: 500 15px var(--font-body); }
.price-block ul { list-style: none; margin: 0 0 34px; padding: 0; }
.price-block li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.price-block li::before { content: "✓"; margin-right: 10px; color: #a9ffc7; }
.dark-button { color: var(--white); background: var(--ink); }
.price-block > p { margin: 11px 0 0; font-size: 12px; opacity: .75; }

.trust { background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 54px; border-top: 1px solid var(--line); }
.trust-grid > div { padding: 34px 35px 10px 0; }
.trust-grid > div + div { border-left: 1px solid var(--line); padding-left: 35px; }
.trust strong { display: block; margin-bottom: 58px; color: var(--coral); font-size: 12px; }

footer { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 35px; align-items: center; padding: 45px clamp(24px, 5vw, 76px); color: white; background: var(--ink); font-size: 12px; }
footer p { margin: 0; color: #aaa79f; }
footer div { display: flex; gap: 18px; }
.footer-brand { font-size: 22px; }

.dialog { width: min(660px, calc(100% - 32px)); max-height: calc(100svh - 32px); border: 0; padding: clamp(28px, 5vw, 52px); color: var(--ink); background: var(--white); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.dialog::backdrop { background: rgba(15,15,13,.68); backdrop-filter: blur(5px); }
.dialog[open] { animation: dialogIn .24s ease both; }
.dialog-close { position: absolute; top: 17px; right: 19px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; }
.dialog-kicker { margin-bottom: 15px; color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.dialog h2 { margin-bottom: 9px; font: 700 29px/1.16 var(--font-display); }
.video-preview { display: grid; grid-template-columns: 115px 1fr; gap: 22px; align-items: center; }
.preview-art { aspect-ratio: 16/10; display: grid; place-items: center; color: white; background: var(--blue); }
.preview-art span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; font-size: 12px; }
#preview-url { overflow: hidden; margin: 0; color: #6a665f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.format-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 28px 0 19px; padding: 0; border: 0; }
.format-picker legend { margin-bottom: 11px; font-weight: 700; }
.format-picker label { cursor: pointer; }
.format-picker input { position: absolute; opacity: 0; }
.format-picker span { display: block; border: 1px solid var(--line); padding: 15px; transition: border .2s, background .2s; }
.format-picker input:checked + span { border-color: var(--blue); background: rgba(43,85,212,.07); }
.format-picker b, .format-picker small { display: block; }
.format-picker small { margin-top: 3px; color: #6d6962; }
.rights-check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.rights-check input { margin-top: 2px; accent-color: var(--blue); }
.full { width: 100%; }
.dialog .primary-button { margin-top: 20px; }
.dialog-status { min-height: 20px; margin: 9px 0 0; color: #625e57; font-size: 13px; }
.membership-dialog > p { color: #625e57; line-height: 1.5; }
.membership-dialog form { margin-top: 25px; }
.membership-dialog label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.membership-dialog input[type="email"] { width: 100%; height: 54px; margin-bottom: 10px; border: 1px solid var(--line); padding: 0 15px; background: white; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 24px; max-width: calc(100% - 32px); padding: 13px 18px; color: white; background: var(--ink); font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: .25s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes heroIn { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: none; } }
@keyframes heroImage { from { opacity: .4; transform: scale(1.08); } to { opacity: 1; transform: scale(1.03); } }
@keyframes bob { 50% { transform: translateY(4px); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }

@media (max-width: 820px) {
  .site-header { height: 70px; }
  nav a { display: none; }
  .hero { align-items: end; min-height: 840px; padding-top: 90px; padding-bottom: 78px; }
  .hero-image { background-position: 69% top; }
  .hero-shade { top: 48%; width: 100%; background: rgba(246,242,234,.94); }
  .hero-content { width: 100%; padding: 0; }
  h1 { font-size: clamp(68px, 24vw, 110px); }
  .hero-line { font-size: 25px; }
  .hero-copy { font-size: 14px; }
  .download-form > .primary-button { width: 100%; }
  .form-meta { justify-content: space-between; gap: 8px; }
  .scroll-cue { display: none; }
  .section-heading, .membership { grid-template-columns: 1fr; }
  .section-heading { gap: 10px; }
  .steps { margin-top: 50px; }
  .membership { gap: 60px; }
  .price-block { border-top: 1px solid rgba(255,255,255,.4); border-left: 0; padding: 45px 0 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div + div { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
  .trust strong { margin-bottom: 25px; }
  footer { grid-template-columns: 1fr 1fr; }
  footer div { justify-content: end; }
}

@media (max-width: 520px) {
  .site-header { padding-inline: 18px; }
  .hero { min-height: 780px; padding-inline: 18px; }
  .hero-image { background-position: 67% top; }
  .hero-shade { top: 44%; background: rgba(246,242,234,.96); }
  .hero-content .eyebrow { margin-bottom: 11px; }
  .hero-copy { margin-bottom: 17px; }
  .url-field { height: 56px; padding-left: 14px; }
  .legal-mini { margin-top: 12px; }
  .section { padding-inline: 22px; }
  .steps li { grid-template-columns: 48px 1fr; }
  .membership-copy p:last-child { font-size: 17px; }
  .price { font-size: 72px; }
  footer { grid-template-columns: 1fr; gap: 18px; }
  footer div { justify-content: flex-start; }
  .video-preview { grid-template-columns: 1fr; }
  .preview-art { width: 120px; }
  .format-picker { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
