/* Derived — getderived.com */

:root {
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue",
        Helvetica, Arial, sans-serif;
    --ink: #f5f5f7;
    --ink-2: #86868b;
    --paper: #000000;
    --paper-2: #0b0b0d;
    --card: #161618;
    --line: rgba(255, 255, 255, 0.14);
    --night: #000000;
    --night-card: #141416;
    --night-ink: #f5f5f7;
    --night-ink-2: #86868b;
    --orange: #ee7a4a;
    --red: #ff4848;
    --pink: #ff3cc6;
    --violet: #a46cff;
    --brand: linear-gradient(90deg, var(--orange) 0%, var(--red) 28%, var(--pink) 62%, var(--violet) 100%);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --max: 1080px;
    --gutter: max(22px, calc((100vw - var(--max)) / 2));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.022em;
    color: var(--ink);
    background: var(--night);
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 100;
    padding: 8px 14px;
    border-radius: 980px;
    background: #fff;
    color: #000;
}

.skip:focus {
    left: 8px;
}

/* ---------- Type ---------- */

.eyebrow {
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.gradient-text {
    display: inline-block;
    background: var(--brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.headline {
    font-size: clamp(40px, 6.2vw, 80px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.headline--md {
    font-size: clamp(34px, 4.8vw, 64px);
}

.lede {
    font-size: clamp(19px, 1.9vw, 24px);
    line-height: 1.38;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink-2);
    max-width: 760px;
}

.lede strong {
    color: var(--ink);
    font-weight: 600;
}

.dark .lede {
    color: var(--night-ink-2);
}

.dark .lede strong {
    color: var(--night-ink);
}

.center {
    text-align: center;
    margin-inline: auto;
}

/* ---------- Sections ---------- */

.section {
    position: relative;
    padding: clamp(96px, 12vw, 160px) var(--gutter);
    background: var(--paper);
    color: var(--ink);
}

.section--gray {
    background: var(--paper-2);
}

.dark {
    background: var(--night);
    color: var(--night-ink);
}

.section__head {
    max-width: 860px;
    margin-bottom: clamp(56px, 7vw, 96px);
}

.section__head .lede {
    margin-top: 24px;
}

.section__head.center .lede {
    margin-inline: auto;
}

/* ---------- Navigation ---------- */

.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: 52px;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--night-ink);
    background: rgba(18, 18, 20, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    transition: border-color 0.4s, background-color 0.4s;
}

.nav.is-scrolled {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 19px;
    letter-spacing: -0.02em;
    text-decoration: none;
    margin-right: auto;
}

.nav__brand img {
    width: 28px;
    height: 28px;
    border-radius: 22.5%;
    box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.25);
}

.nav__links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    letter-spacing: -0.01em;
}

.nav__links a {
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav__links a:hover {
    opacity: 1;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 980px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}

.pill--small {
    padding: 5px 13px;
    font-size: 13px;
}

.pill--large {
    padding: 14px 26px;
    font-size: 17px;
}

.pill--brand {
    color: #fff;
    background: var(--brand);
    background-size: 160% 100%;
    background-position: 0 0;
    transition: background-position 0.6s var(--ease);
}

.pill--brand:hover {
    background-position: 100% 0;
}

.pill--ghost {
    color: inherit;
    box-shadow: inset 0 0 0 1px currentColor;
    opacity: 0.85;
}

.link-arrow {
    color: var(--pink);
    font-size: 19px;
    text-decoration: none;
}

.link-arrow::after {
    content: " ›";
}

.link-arrow:hover {
    text-decoration: underline;
}

/* ---------- iPhone 18 Pro ---------- */
/* Proportions from the device: 1206 × 2622 px display behind a thin metal band. */

.iphone {
    --w: 300px;
    --metal: linear-gradient(135deg, #64666d 0%, #2b2c31 16%, #18191c 42%, #44464d 68%, #1a1b1e 100%);
    --button: #2c2d31;
    position: relative;
    flex: none;
    width: var(--w);
    aspect-ratio: 719 / 1500;
    padding: calc(var(--w) * 0.0125);
    border-radius: calc(var(--w) * 0.18);
    background: var(--metal);
    box-shadow:
        inset 0 0 0 calc(var(--w) * 0.0022) rgba(255, 255, 255, 0.38),
        inset 0 0 calc(var(--w) * 0.012) rgba(255, 255, 255, 0.14),
        0 calc(var(--w) * 0.12) calc(var(--w) * 0.22) calc(var(--w) * -0.06) rgba(0, 0, 0, 0.55),
        0 calc(var(--w) * 0.03) calc(var(--w) * 0.06) rgba(0, 0, 0, 0.22);
}

.iphone--silver {
    --metal: linear-gradient(135deg, #f7f7f9 0%, #c9cbcf 18%, #e9eaec 44%, #b5b7bc 70%, #eeeff1 100%);
    --button: #c4c6ca;
    box-shadow:
        inset 0 0 0 calc(var(--w) * 0.0022) rgba(255, 255, 255, 0.9),
        inset 0 0 calc(var(--w) * 0.012) rgba(255, 255, 255, 0.5),
        0 calc(var(--w) * 0.12) calc(var(--w) * 0.22) calc(var(--w) * -0.06) rgba(0, 0, 0, 0.32),
        0 calc(var(--w) * 0.03) calc(var(--w) * 0.06) rgba(0, 0, 0, 0.12);
}

/* Action button and volume on the left, side button and Camera Control on the right. */
.iphone::before,
.iphone::after {
    content: "";
    position: absolute;
    width: calc(var(--w) * 0.011);
}

.iphone::before {
    left: calc(var(--w) * -0.0085);
    top: 18%;
    height: 24.5%;
    border-radius: calc(var(--w) * 0.006) 0 0 calc(var(--w) * 0.006);
    background: linear-gradient(
        to bottom,
        var(--button) 0 15.5%,
        transparent 15.5% 32.5%,
        var(--button) 32.5% 63.5%,
        transparent 63.5% 69.5%,
        var(--button) 69.5% 100%
    );
}

.iphone::after {
    right: calc(var(--w) * -0.0085);
    top: 27%;
    height: 35%;
    border-radius: 0 calc(var(--w) * 0.006) calc(var(--w) * 0.006) 0;
    background: linear-gradient(to bottom, var(--button) 0 31%, transparent 31% 80%, #111 80% 100%);
}

.iphone__bezel {
    height: 100%;
    padding: calc(var(--w) * 0.025);
    border-radius: calc(var(--w) * 0.1675);
    background: #000;
}

.iphone__screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
    border-radius: calc(var(--w) * 0.1425);
    background: #0b0b0c;
}

.iphone__screen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s var(--ease);
}

.iphone__screen img.is-active {
    opacity: 1;
}

.iphone__screen::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: calc(var(--w) * 0.0253);
    left: 50%;
    width: calc(var(--w) * 0.28);
    height: calc(var(--w) * 0.082);
    transform: translateX(-50%);
    border-radius: 999px;
    background: #000;
}

.iphone__screen::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 34%);
}

/* ---------- Motion ---------- */

.js .reveal {
    opacity: 0;
    translate: 0 48px;
    transition:
        opacity 1s var(--ease),
        translate 1.1s var(--ease);
}

.js .reveal.is-in {
    opacity: 1;
    translate: 0 0;
}

.js .reveal--late {
    transition-delay: 0.15s;
}

.js .reveal--later {
    transition-delay: 0.3s;
}

[data-scroll] {
    --p: 0;
}

.drift {
    --depth: 120px;
    transform: translate3d(0, calc((0.5 - var(--p)) * var(--depth)), 0);
    will-change: transform;
}

.drift--far {
    --depth: 260px;
}

.drift--back {
    --depth: -140px;
}

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

.hero {
    --phone: clamp(210px, 25vw, 330px);
    position: relative;
    overflow: hidden;
    padding: calc(52px + clamp(44px, 5.5vw, 84px)) var(--gutter) 0;
    text-align: center;
    background: var(--night);
    color: var(--night-ink);
}

.hero__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(38% 30% at 30% 62%, rgba(238, 122, 74, 0.32), transparent 70%),
        radial-gradient(34% 30% at 52% 70%, rgba(255, 60, 198, 0.3), transparent 70%),
        radial-gradient(36% 32% at 72% 60%, rgba(164, 108, 255, 0.3), transparent 70%);
    filter: blur(20px);
    transform: translate3d(0, calc(var(--p) * 160px), 0) scale(calc(1 + var(--p) * 0.3));
    opacity: calc(1 - var(--p) * 0.6);
}

/* The phones sink into the next section instead of ending on a hard edge. */
.hero::after {
    content: "";
    position: absolute;
    z-index: 4;
    inset: auto 0 0;
    height: clamp(90px, 12vw, 160px);
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000);
}

.hero__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 22.5%;
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.2),
        0 12px 40px rgba(255, 60, 198, 0.25);
}

.hero h1 {
    font-size: clamp(46px, 7.6vw, 100px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.hero .lede {
    margin: 22px auto 0;
    max-width: 720px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px 30px;
    margin-top: 30px;
}

.hero__stage {
    position: relative;
    height: calc(var(--phone) * 1.72);
    margin-top: clamp(44px, 5vw, 72px);
}

.hero__phone {
    --w: var(--phone);
    position: absolute;
    top: 0;
    left: 50%;
}

.hero__phone--center {
    z-index: 3;
    transform: translate3d(-50%, calc(var(--p) * -70px), 0) scale(calc(1 + var(--p) * 0.05));
}

.hero__phone--left,
.hero__phone--right {
    --w: calc(var(--phone) * 0.88);
    z-index: 2;
    top: calc(var(--phone) * 0.16);
}

.hero__phone--left {
    transform: translate3d(calc(-50% - var(--phone) * (0.66 + var(--p) * 0.22)), calc(var(--p) * 60px), 0)
        rotate(calc(-7deg + var(--p) * 4deg));
}

.hero__phone--right {
    transform: translate3d(calc(-50% + var(--phone) * (0.66 + var(--p) * 0.22)), calc(var(--p) * 60px), 0)
        rotate(calc(7deg - var(--p) * 4deg));
}

.hero__rise {
    animation: rise 1.4s var(--ease) both;
}

.hero__rise--1 {
    animation-delay: 0.1s;
}

.hero__rise--2 {
    animation-delay: 0.25s;
}

.hero__rise--3 {
    animation-delay: 0.4s;
}

@keyframes rise {
    from {
        opacity: 0;
        translate: 0 90px;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

/* ---------- Statement (scroll-lit words) ---------- */

.statement {
    height: 240vh;
    background: var(--night);
    color: var(--night-ink);
}

.statement__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 var(--gutter);
}

.statement__text {
    max-width: 980px;
    margin: 0 auto;
    font-size: clamp(32px, 4.6vw, 60px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.js .statement__text .w {
    color: rgba(245, 245, 247, 0.16);
    transition: color 0.35s linear;
}

.js .statement__text .w.is-lit {
    color: var(--night-ink);
}

.js .statement__text .hl--did .w.is-lit {
    color: var(--orange);
}

.js .statement__text .hl--happened .w.is-lit {
    color: var(--pink);
}

.js .statement__text .hl--meet .w.is-lit {
    color: var(--violet);
}

/* ---------- Bento ---------- */

.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: var(--max);
    margin: 0 auto;
}

.tile {
    position: relative;
    overflow: hidden;
    grid-column: span 2;
    min-height: 300px;
    padding: 36px 34px;
    border-radius: 28px;
    background: var(--card);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
}

.tile--wide {
    grid-column: span 4;
}

.tile--half {
    grid-column: span 3;
}

.tile--dark {
    background: var(--night);
    color: var(--night-ink);
    box-shadow: inset 0 0 0 1px var(--line);
}

.tile__big {
    align-self: flex-start;
    font-size: clamp(56px, 7vw, 92px);
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -0.045em;
    margin-bottom: auto;
}

.tile__big--words {
    font-size: clamp(40px, 4.4vw, 60px);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.tile h3 {
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.tile p:not(.tile__big) {
    color: var(--ink-2);
    font-size: 17px;
    max-width: 440px;
}

.tile--dark p:not(.tile__big) {
    color: var(--night-ink-2);
}

.tile__glyph {
    width: 64px;
    height: 64px;
    margin-bottom: auto;
}

.tile__glow {
    position: absolute;
    inset: auto -20% -60% 30%;
    height: 120%;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(255, 60, 198, 0.35), transparent);
    filter: blur(10px);
}

.tile__bars {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: auto;
}

.tile__bars span {
    display: block;
    height: 12px;
    border-radius: 6px;
    background: var(--brand);
    transform-origin: left center;
}

.tile__bars span:nth-child(1) {
    width: 92%;
}

.tile__bars span:nth-child(2) {
    width: 64%;
}

.tile__bars span:nth-child(3) {
    width: 78%;
}

.tile__bars span:nth-child(4) {
    width: 40%;
}

.js .tile__bars span {
    transform: scaleX(0);
    transition: transform 1.2s var(--ease);
}

.js .is-in .tile__bars span {
    transform: scaleX(1);
}

.js .is-in .tile__bars span:nth-child(2) {
    transition-delay: 0.1s;
}

.js .is-in .tile__bars span:nth-child(3) {
    transition-delay: 0.2s;
}

.js .is-in .tile__bars span:nth-child(4) {
    transition-delay: 0.3s;
}

/* ---------- Story (sticky phone) ---------- */

.story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    max-width: var(--max);
    margin: 0 auto;
}

.story__step {
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 460px;
    transition: opacity 0.5s var(--ease);
}

.js .story__step {
    opacity: 0.25;
}

.js .story__step.is-current {
    opacity: 1;
}

.story__step h3 {
    font-size: clamp(32px, 3.8vw, 48px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.story__step p:not(.eyebrow) {
    margin-top: 18px;
    font-size: 19px;
    line-height: 1.45;
    color: var(--ink-2);
}

.story__step .eyebrow {
    color: var(--pink);
}

.story__inline {
    display: none;
}

.story__stage {
    position: sticky;
    top: calc(50vh - var(--w) * 1.043);
    align-self: start;
    display: flex;
    justify-content: center;
    padding: 0 0 40px;
    --w: clamp(250px, 24vw, 320px);
}

.story__stage .iphone {
    --w: inherit;
}

/* ---------- Findings ---------- */

.findings {
    overflow: hidden;
}

.findings__stage {
    --fw: clamp(230px, 26vw, 320px);
    --fgap: clamp(24px, 5vw, 72px);
    /* Where a question starts: just inside the outer edge of a phone. */
    --edge: calc(50% + var(--fgap) / 2 + var(--fw));
    position: relative;
    display: flex;
    justify-content: center;
    gap: var(--fgap);
    max-width: var(--max);
    margin: 0 auto;
    padding: 40px 0 60px;
}

.findings__stage .iphone {
    --w: var(--fw);
}

.findings__stage .iphone:nth-child(2) {
    margin-top: 120px;
}

.question {
    position: absolute;
    z-index: 4;
    max-width: 250px;
    padding: 12px 20px;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--night-ink);
    background: rgba(40, 40, 46, 0.66);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow:
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.2),
        0 18px 40px rgba(0, 0, 0, 0.35);
}

.question::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--pink);
    vertical-align: 1px;
}

.question--1 {
    top: 10%;
    right: calc(var(--edge) - 64px);
}

.question--2 {
    top: 36%;
    left: calc(var(--edge) - 64px);
}

.question--2::before {
    background: var(--orange);
}

.question--3 {
    top: 60%;
    right: calc(var(--edge) - 40px);
}

.question--3::before {
    background: var(--violet);
}

.question--4 {
    bottom: 10%;
    left: calc(var(--edge) - 80px);
}

.question--4::before {
    background: var(--red);
}

/* ---------- Simulate ---------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
    max-width: var(--max);
    margin: 0 auto;
}

.split__phones {
    position: relative;
    height: calc(var(--w) * 2.35);
    --w: clamp(230px, 24vw, 310px);
}

.split__phones .iphone {
    position: absolute;
}

.split__phones .iphone:first-child {
    left: 0;
    top: 0;
    z-index: 2;
}

.split__phones .iphone:last-child {
    right: 0;
    top: calc(var(--w) * 0.26);
}

.specs {
    display: grid;
    gap: 28px;
    margin-top: 44px;
}

.split .lede {
    margin-top: 24px;
}

.spec {
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.spec h3 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.spec p {
    margin-top: 6px;
    color: var(--ink-2);
}

/* ---------- Privacy ---------- */

.privacy {
    overflow: hidden;
    text-align: center;
}

.privacy__lock {
    width: 96px;
    height: 96px;
    margin: 0 auto 36px;
}

.privacy .headline {
    max-width: 900px;
    margin-inline: auto;
}

.privacy .lede {
    margin: 28px auto 0;
}

.zeros {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: var(--max);
    margin: clamp(64px, 8vw, 104px) auto 0;
}

.zero {
    padding: 44px 24px 40px;
    border-radius: 28px;
    background: var(--night-card);
}

.zero strong {
    display: block;
    font-size: clamp(72px, 9vw, 120px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.zero span {
    display: block;
    margin-top: 10px;
    font-size: 21px;
    font-weight: 600;
    color: var(--night-ink-2);
}

.label-card {
    display: flex;
    align-items: center;
    gap: 22px;
    max-width: 640px;
    margin: 20px auto 0;
    padding: 28px 32px;
    border-radius: 28px;
    background: var(--night-card);
    text-align: left;
}

.label-card svg {
    flex: none;
    width: 52px;
    height: 52px;
}

.label-card strong {
    display: block;
    font-size: 21px;
    letter-spacing: -0.02em;
}

.label-card span {
    color: var(--night-ink-2);
}

.privacy__note {
    max-width: 640px;
    margin: 40px auto 0;
    color: var(--night-ink-2);
}

/* ---------- Works with ---------- */

.sources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: var(--max);
    margin: 0 auto;
}

.source {
    padding: 32px 30px;
    border-radius: 24px;
    background: var(--card);
}

.source__mark {
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 19px;
}

.source__mark svg {
    width: 24px;
    height: 24px;
}

.source__mark--health {
    background: linear-gradient(160deg, #ff5f6d, #ff2d55);
}

.source__mark--watch {
    background: linear-gradient(160deg, #5a5a60, #2a2a2e);
}

.source__mark--mac {
    background: linear-gradient(160deg, #9a9ca3, #55575e);
}

.source__mark--platforms {
    background: linear-gradient(160deg, #3c8cff, #1b5fd6);
}

.source__mark--files {
    background: linear-gradient(160deg, #a46cff, #7a3cf0);
}

.source__mark--export {
    background: linear-gradient(160deg, #34c759, #1f9d47);
}

.source h3 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.source p {
    margin-top: 6px;
    color: var(--ink-2);
}

.tag {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 10px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    vertical-align: 3px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.12);
}

/* ---------- Gallery ---------- */

.gallery {
    overflow: hidden;
    padding-inline: 0;
}

.gallery .section__head {
    padding-inline: var(--gutter);
    margin-inline: auto;
}

.gallery__track {
    display: flex;
    gap: clamp(28px, 4vw, 48px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 24px var(--gutter) 40px;
    scroll-padding-inline: var(--gutter);
}

.gallery__track::-webkit-scrollbar {
    display: none;
}

.gallery__item {
    flex: none;
    scroll-snap-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    text-align: center;
}

.gallery__item .iphone {
    --w: clamp(220px, 21vw, 270px);
}

.gallery__item figcaption {
    max-width: 260px;
    color: var(--night-ink-2);
    font-size: 15px;
}

.gallery__item figcaption strong {
    display: block;
    color: var(--night-ink);
    font-size: 17px;
}

.gallery__controls {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.round {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--night-ink);
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: background-color 0.2s;
}

.round:hover {
    background: rgba(255, 255, 255, 0.2);
}

.round svg {
    width: 18px;
    height: 18px;
}

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

.plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 920px;
    margin: 0 auto;
}

.plan {
    position: relative;
    overflow: hidden;
    padding: 44px 40px;
    border-radius: 28px;
    background: var(--card);
}

.plan--plus {
    color: var(--night-ink);
    background: var(--night);
    box-shadow: inset 0 0 0 1px var(--line);
}

.plan--plus::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--brand);
}

.plan__name {
    font-size: 21px;
    font-weight: 600;
}

.plan__price {
    margin-top: 10px;
    font-size: 48px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.plan__price small {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.plan__alt {
    margin-top: 6px;
    color: var(--ink-2);
}

.plan--plus .plan__alt {
    color: var(--night-ink-2);
}

.plan ul {
    list-style: none;
    margin: 30px 0 0;
    padding: 26px 0 0;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
}

.plan--plus ul {
    border-top-color: rgba(255, 255, 255, 0.14);
}

.plan li {
    position: relative;
    padding-left: 28px;
}

.plan li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.45em;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--pink);
    border-bottom: 2px solid var(--pink);
    transform: rotate(-45deg);
}

.plans__note {
    max-width: 640px;
    margin: 36px auto 0;
    text-align: center;
    color: var(--ink-2);
}

/* ---------- Finale ---------- */

.finale {
    text-align: center;
    overflow: hidden;
}

.mark {
    width: clamp(150px, 18vw, 220px);
    margin: 0 auto 44px;
    overflow: visible;
}

.mark rect,
.mark path {
    transform-box: fill-box;
}

.js .mark rect {
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 1.3s var(--ease);
}

.js .mark path {
    transform-origin: center;
    opacity: 0;
    transform: translate(-30%, 30%) scale(0.4);
    transition:
        opacity 0.8s var(--ease) 0.9s,
        transform 1s var(--ease) 0.9s;
}

.js .is-in .mark rect {
    transform: scaleX(1);
}

.js .is-in .mark path {
    opacity: 1;
    transform: none;
}

.js .is-in .mark rect:nth-of-type(2) {
    transition-delay: 0.07s;
}

.js .is-in .mark rect:nth-of-type(3) {
    transition-delay: 0.14s;
}

.js .is-in .mark rect:nth-of-type(4) {
    transition-delay: 0.21s;
}

.js .is-in .mark rect:nth-of-type(5) {
    transition-delay: 0.28s;
}

.js .is-in .mark rect:nth-of-type(6) {
    transition-delay: 0.35s;
}

.js .is-in .mark rect:nth-of-type(7) {
    transition-delay: 0.42s;
}

.finale .lede {
    margin: 22px auto 0;
}

.finale__badge {
    margin-top: 40px;
}

.finale__small {
    margin-top: 18px;
    font-size: 14px;
    color: var(--night-ink-2);
}

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

.footer {
    padding: 40px var(--gutter) 48px;
    background: var(--paper-2);
    color: var(--ink-2);
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.footer__inner {
    max-width: var(--max);
    margin: 0 auto;
}

.footer__logo {
    width: 150px;
    height: auto;
    margin-bottom: 24px;
}

.footer p + p {
    margin-top: 10px;
}

.footer__bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.footer__bar nav {
    display: flex;
    gap: 18px;
}

.footer a {
    text-decoration: none;
    color: var(--ink);
}

.footer a:hover {
    text-decoration: underline;
}

/* ---------- Document pages (privacy, 404) ---------- */

.doc {
    min-height: 100vh;
    padding: calc(52px + 80px) var(--gutter) 120px;
    background: var(--paper);
}

.doc__inner {
    max-width: 720px;
    margin: 0 auto;
}

.doc h1 {
    font-size: clamp(40px, 5vw, 56px);
    line-height: 1.07;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.doc .doc__date {
    margin-top: 12px;
    color: var(--ink-2);
}

.doc .lede {
    margin-top: 32px;
}

.doc h2 {
    margin-top: 52px;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.doc p,
.doc ul {
    margin-top: 16px;
    font-size: 17px;
}

.doc ul {
    padding-left: 22px;
}

.doc li + li {
    margin-top: 8px;
}

.doc a {
    color: var(--pink);
}

.doc--center {
    display: grid;
    place-items: center;
    text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 1068px) {
    .tile,
    .tile--half {
        grid-column: span 3;
    }

    .tile--wide {
        grid-column: span 6;
    }

    .question--2 {
        right: -4%;
    }
}

@media (max-width: 834px) {
    .nav__links {
        display: none;
    }

    .story {
        grid-template-columns: 1fr;
    }

    .story__stage {
        display: none;
    }

    .story__step {
        min-height: 0;
        max-width: none;
        padding: 56px 0;
        align-items: center;
        text-align: center;
    }

    .js .story__step {
        opacity: 1;
    }

    .story__inline {
        display: block;
        margin-top: 44px;
    }

    .story__inline .iphone {
        --w: min(72vw, 300px);
    }

    .split {
        grid-template-columns: 1fr;
    }

    .split__phones {
        order: 2;
        max-width: calc(var(--w) * 1.85);
        width: 100%;
        margin: 0 auto;
    }

    .sources,
    .zeros {
        grid-template-columns: 1fr 1fr;
    }

    .plans {
        grid-template-columns: 1fr;
    }

    .findings__stage .iphone:nth-child(2) {
        margin-top: 80px;
    }

    .question {
        max-width: 210px;
        font-size: 13px;
        padding: 9px 14px;
    }
}

@media (max-width: 640px) {
    .bento {
        grid-template-columns: 1fr;
    }

    .tile,
    .tile--half,
    .tile--wide {
        grid-column: auto;
        min-height: 240px;
    }

    .sources,
    .zeros {
        grid-template-columns: 1fr;
    }

    .findings__stage {
        --fw: 44vw;
    }

    .findings__stage .iphone:nth-child(2) {
        margin-top: 60px;
    }

    .question--1,
    .question--4 {
        display: none;
    }

    .question--2 {
        top: 2%;
        right: 2%;
        left: auto;
    }

    .question--3 {
        top: auto;
        bottom: 2%;
        right: auto;
        left: 2%;
    }

    .split__phones {
        --w: 46vw;
    }

    .label-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal,
    .hero__rise {
        opacity: 1;
        translate: none;
        animation: none;
        transition: none;
    }

    .drift,
    .hero__phone,
    .hero__glow {
        transform: none;
    }

    .hero__phone--center {
        transform: translateX(-50%);
    }

    .hero__phone--left {
        transform: translateX(calc(-50% - var(--phone) * 0.7)) rotate(-4deg);
    }

    .hero__phone--right {
        transform: translateX(calc(-50% + var(--phone) * 0.7)) rotate(4deg);
    }

    .statement {
        height: auto;
    }

    .statement__sticky {
        position: static;
        height: auto;
        padding-block: 140px;
    }

    .js .statement__text .w {
        color: var(--night-ink);
        transition: none;
    }

    .js .tile__bars span,
    .js .mark rect,
    .js .mark path {
        transform: none;
        opacity: 1;
        transition: none;
    }
}
