/* Video Editor — one stylesheet for four pages.

   Dark by default because the app is, and because a legal page read at night
   on a phone is the common case. Everything is system fonts: a legal page that
   waits on a webfont is a legal page nobody has read yet. */

:root {
    --ink: #f5f5f7;
    --ink-soft: rgba(245, 245, 247, 0.72);
    --ink-faint: rgba(245, 245, 247, 0.48);
    --bg: #0a0a0b;
    --surface: #131316;
    --surface-raised: #1c1c20;
    --hairline: rgba(255, 255, 255, 0.10);
    --brand: #ff2e43;
    --brand-deep: #c2001a;
    --radius: 18px;
    --column: 720px;
}

@media (prefers-color-scheme: light) {
    :root {
        --ink: #0a0a0b;
        --ink-soft: rgba(10, 10, 11, 0.70);
        --ink-faint: rgba(10, 10, 11, 0.50);
        --bg: #fbfbfd;
        --surface: #ffffff;
        --surface-raised: #f2f2f5;
        --hairline: rgba(0, 0, 0, 0.10);
    }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header ------------------------------------------------------------------ */

header.site {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom: 1px solid var(--hairline);
}

header.site .inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.wordmark {
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.wordmark img {
    width: 30px;
    height: 30px;
    border-radius: 7px;
}

nav.site {
    margin-left: auto;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

nav.site a {
    color: var(--ink-soft);
    font-size: 15px;
    padding: 7px 12px;
    border-radius: 999px;
}

nav.site a:hover { background: var(--surface-raised); text-decoration: none; }
nav.site a[aria-current="page"] { color: var(--ink); background: var(--surface-raised); }

/* Hero -------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 84px 20px 72px;
    border-bottom: 1px solid var(--hairline);
}

/* A glow rather than a photograph: there is no App Store page to take
   screenshots from yet, and a placeholder mockup looks worse than none. */
.hero::before {
    content: "";
    position: absolute;
    inset: -40% 50% auto;
    width: 640px;
    height: 640px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 46, 67, 0.28), transparent 62%);
    filter: blur(40px);
    pointer-events: none;
}

.hero .icon {
    width: 108px;
    height: 108px;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.40);
    position: relative;
}

.hero h1 {
    position: relative;
    margin: 26px 0 12px;
    font-size: clamp(34px, 6vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero p {
    position: relative;
    margin: 0 auto;
    max-width: 560px;
    color: var(--ink-soft);
    font-size: clamp(17px, 2.4vw, 20px);
}

.badge {
    position: relative;
    display: inline-block;
    margin-top: 26px;
    padding: 13px 26px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand), var(--brand-deep));
    color: #fff;
    font-weight: 600;
}

.badge:hover { text-decoration: none; filter: brightness(1.06); }

.badge.quiet {
    background: transparent;
    border: 1px solid var(--hairline);
    color: var(--ink-soft);
    font-weight: 500;
}

/* Content ----------------------------------------------------------------- */

main {
    max-width: 980px;
    margin: 0 auto;
    padding: 56px 20px 96px;
}

.prose { max-width: var(--column); }

h2 {
    margin: 48px 0 14px;
    font-size: 24px;
    letter-spacing: -0.02em;
}

h2:first-child { margin-top: 0; }

h3 {
    margin: 30px 0 8px;
    font-size: 18px;
    letter-spacing: -0.01em;
}

p, li { color: var(--ink-soft); }
li { margin: 6px 0; }
strong { color: var(--ink); font-weight: 600; }

.lede {
    font-size: 19px;
    color: var(--ink);
}

.updated {
    display: inline-block;
    margin-bottom: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--surface-raised);
    color: var(--ink-faint);
    font-size: 13px;
}

/* Cards ------------------------------------------------------------------- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 40px 0;
}

.card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 22px;
}

.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; font-size: 15.5px; }

.callout {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin: 28px 0;
}

.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15.5px;
}

th, td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid var(--hairline);
    color: var(--ink-soft);
}

th { color: var(--ink); font-weight: 600; }

/* Footer ------------------------------------------------------------------ */

footer.site {
    border-top: 1px solid var(--hairline);
    padding: 34px 20px 48px;
}

footer.site .inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    align-items: center;
    color: var(--ink-faint);
    font-size: 14px;
}

footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
footer.site a { color: var(--ink-soft); }

@media (max-width: 560px) {
    .hero { padding: 60px 18px 52px; }
    footer.site nav { margin-left: 0; }
}


/* ==========================================================================
   Home page.

   No product shots: the App Store carries those, and a marketing page that
   leans on them says nothing the store page does not. What is left has to be
   carried by type, space and one colour — so the rules here are about rhythm
   rather than decoration. ================================================= */

.display {
    position: relative;
    padding: 132px 20px 108px;
    text-align: center;
    overflow: hidden;
}

/* Two slow lights rather than a gradient wash: a flat wash reads as a
   template, and anything faster than this reads as a banner ad. */
.display::before,
.display::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: 0.55;
}

.display::before {
    width: 560px; height: 560px;
    top: -220px; left: 50%;
    margin-left: -420px;
    background: radial-gradient(circle, rgba(255, 46, 67, 0.55), transparent 65%);
    animation: drift 26s ease-in-out infinite alternate;
}

.display::after {
    width: 460px; height: 460px;
    top: -120px; left: 50%;
    margin-left: 60px;
    background: radial-gradient(circle, rgba(120, 60, 255, 0.34), transparent 65%);
    animation: drift 31s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    from { transform: translate3d(-24px, 0, 0) scale(1); }
    to   { transform: translate3d(30px, 26px, 0) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .display::before, .display::after { animation: none; }
}

.display .inner { position: relative; max-width: 860px; margin: 0 auto; }

.kicker {
    display: inline-block;
    margin-bottom: 26px;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid var(--hairline);
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    backdrop-filter: blur(8px);
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.display h1 {
    margin: 0;
    text-wrap: balance;
    font-size: clamp(42px, 8.4vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 660;
}

/* One word in the brand, so the colour means something instead of decorating. */
.display h1 em {
    font-style: normal;
    background: linear-gradient(120deg, var(--brand), #ff8a5c 55%, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.display .sub {
    margin: 26px auto 0;
    max-width: 580px;
    font-size: clamp(17px, 2.2vw, 20.5px);
    color: var(--ink-soft);
}

.rule {
    width: 100%;
    max-width: 980px;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--hairline) 18%, var(--hairline) 82%, transparent);
}

/* Numbered capability list ------------------------------------------------- */

.capabilities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 20px;
}

.capability {
    padding: 38px 30px 34px;
    border-right: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.capability .no {
    display: block;
    margin-bottom: 14px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
}

.capability h3 {
    margin: 0 0 8px;
    font-size: 19px;
    letter-spacing: -0.015em;
}

.capability:nth-child(2n) { border-right: 0; }

.capability p { margin: 0; font-size: 15.5px; }

/* Section heads ------------------------------------------------------------ */

.section-head {
    max-width: 640px;
    margin: 96px 0 34px;
}

.section-head .tagline {
    display: block;
    margin-bottom: 12px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-head h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4.4vw, 40px);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-head p { margin: 0; font-size: 17.5px; }

/* A quiet abstraction of a timeline. CSS, not an image: it is three coloured
   bars and a playhead, and asking for a download to draw that would be silly. */
.timeline-art {
    position: relative;
    margin: 46px 0 8px;
    padding: 26px;
    border: 1px solid var(--hairline);
    border-radius: 22px;
    background: var(--surface);
    overflow: hidden;
}

.timeline-art .track {
    display: flex;
    gap: 6px;
    height: 34px;
    margin-bottom: 10px;
}

.timeline-art .track:last-of-type { margin-bottom: 0; }
.timeline-art .clip { border-radius: 7px; height: 100%; }
.timeline-art .clip.a { flex: 3; background: linear-gradient(135deg, #ff2e43, #8b0f1d); }
.timeline-art .clip.b { flex: 2; background: linear-gradient(135deg, #2c2c31, #17171a); border: 1px solid var(--hairline); }
.timeline-art .clip.c { flex: 4; background: linear-gradient(135deg, #a855f7, #4c1d95); }
.timeline-art .clip.d { flex: 1.4; background: linear-gradient(135deg, #f59e0b, #b45309); }

.timeline-art .wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 26px;
}

.timeline-art .wave span {
    flex: 1;
    background: color-mix(in srgb, var(--ink) 26%, transparent);
    border-radius: 2px;
}

.timeline-art .playhead {
    position: absolute;
    top: 14px; bottom: 14px;
    left: 38%;
    width: 2px;
    background: var(--brand);
    box-shadow: 0 0 12px rgba(255, 46, 67, 0.75);
}

/* Pricing ------------------------------------------------------------------ */

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
    gap: 16px;
    margin: 34px 0 14px;
}

.plan {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 22px;
    padding: 28px;
}

.plan.best {
    border-color: color-mix(in srgb, var(--brand) 50%, transparent);
    background:
        radial-gradient(120% 130% at 50% 0%, rgba(255, 46, 67, 0.12), transparent 60%),
        var(--surface);
}

.plan .name { color: var(--ink-faint); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.plan .price { margin: 10px 0 2px; font-size: 34px; font-weight: 650; letter-spacing: -0.035em; color: var(--ink); }
.plan .per { color: var(--ink-faint); font-size: 14px; }
.plan ul { margin: 18px 0 0; padding-left: 18px; }
.plan li { font-size: 15px; }

/* Closing ------------------------------------------------------------------ */

.strip {
    margin: 92px 0 0;
    padding: 52px 46px;
    border-radius: 26px;
    border: 1px solid var(--hairline);
    background:
        radial-gradient(110% 150% at 8% 0%, rgba(255, 46, 67, 0.14), transparent 58%),
        var(--surface);
}

.strip h2 { margin: 0 0 12px; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.028em; }
.strip p { max-width: 58ch; margin: 0; }

@media (max-width: 620px) {
    header.site .inner { flex-wrap: wrap; gap: 10px; padding: 11px 16px; }
    nav.site { width: 100%; margin-left: 0; gap: 4px; justify-content: space-between; flex-wrap: nowrap; }
    nav.site a { padding: 6px 10px; font-size: 14.5px; }

    .display { padding: 88px 18px 72px; }
    .display h1 { font-size: clamp(30px, 8.6vw, 44px); }
    .display .sub { font-size: 16.5px; }

    .capabilities { grid-template-columns: minmax(0, 1fr); }
    .capability { padding: 30px 22px; border-right: 0; }

    .strip { padding: 34px 24px; }
}
