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

:root {
    color-scheme: dark;

    /* Sampled from the app: page, bubbles, action, read receipts */
    --black: #000000;
    --raised: #1c1c1e;
    --incoming: #262628;
    --felt: #134c38;
    --felt-deep: #0b3326;
    --go: #21c063;
    --go-press: #1aa856;
    --read: #53bdeb;
    --text: #ececec;
    --mute: #8e8e93;
    --rule: #2c2c2e;

    --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --phone: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

    --gutter: clamp(1.25rem, 4vw, 3rem);
    --section: clamp(5rem, 11vw, 9.5rem);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--text);
    background: var(--black);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
p,
figure,
dl,
dd,
ul,
ol {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

p,
dd {
    text-wrap: pretty;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--read);
    outline-offset: 3px;
}

.sprite {
    position: absolute;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 20;
    padding: 0.5rem 0.9rem;
    background: var(--text);
    color: var(--black);
    border-radius: 999px;
}

.skip:focus {
    top: 0.75rem;
}

.wrap {
    width: min(1240px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

/* Type */

.hero-headline,
.section-title,
.final-title,
.price {
    font-stretch: 72%;
    font-weight: 760;
    letter-spacing: -0.012em;
}

.section-title {
    font-size: clamp(2.4rem, 4.6vw, 4rem);
    line-height: 0.94;
    text-wrap: balance;
}

h3 {
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.875rem;
    padding: 0 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-go {
    background: var(--go);
    color: var(--black);
}

.btn-go:hover {
    background: var(--go-press);
}

.btn-line {
    border-color: #48484a;
    color: var(--text);
}

.btn-line:hover {
    border-color: var(--text);
}

.btn-soon {
    border-color: rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.72);
    cursor: default;
}

.btn-small {
    min-height: 2.25rem;
    padding: 0 1rem;
    font-size: 0.9375rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.form-note {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    color: var(--mute);
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--black);
    border-bottom: 1px solid var(--rule);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.logo-img {
    width: 1.75rem;
    height: 1.75rem;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.9375rem;
    text-decoration: none;
    color: var(--mute);
}

.nav-link:hover {
    color: var(--text);
}

/* Chat bubbles: shared by the hero thread and the shorthand specimen */

.bubble {
    position: relative;
    width: fit-content;
    max-width: 86%;
    padding: 0.45em 0.7em 0.4em;
    font-family: var(--phone);
    line-height: 1.32;
    border-radius: 0.6em;
    overflow-wrap: break-word;
}

.bubble.in {
    align-self: flex-start;
    background: var(--incoming);
}

.bubble.out {
    align-self: flex-end;
    margin-left: auto;
    background: var(--felt);
}

.bubble.tail.in {
    border-top-left-radius: 0;
}

.bubble.tail.out {
    border-top-right-radius: 0;
}

.bubble.tail::before {
    content: "";
    position: absolute;
    top: 0;
    width: 0.5em;
    height: 0.65em;
    background: inherit;
}

.bubble.tail.in::before {
    left: -0.48em;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.bubble.tail.out::before {
    right: -0.48em;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.meta {
    float: right;
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    margin: 0.55em 0 -0.15em 0.9em;
    font-size: 0.68em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

.ticks {
    width: 1.35em;
    height: 0.85em;
    color: var(--read);
    flex: none;
}

/* Hero */

.hero {
    padding-block: clamp(2.75rem, 6vw, 5.5rem) var(--section);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
}

.beta-pill {
    grid-column: 1 / span 7;
    grid-row: 1;
    justify-self: start;
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--go);
}

.hero-headline {
    grid-column: 1 / span 7;
    grid-row: 2;
    font-size: clamp(3rem, 6vw, 5.5rem);
    /* 0.95, not tighter: Archivo's g descender reaches the next line's caps below that */
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.hero-headline span {
    display: block;
    text-wrap: balance;
}

.hero-copy {
    grid-column: 1 / span 5;
    grid-row: 3;
    margin-top: clamp(2rem, 4vw, 3.5rem);
}

.lede {
    font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
    line-height: 1.4;
    max-width: 30ch;
    margin-bottom: 2rem;
}

.thread {
    grid-column: 8 / -1;
    grid-row: 1 / span 3;
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: clamp(1.0625rem, 1.6vw, 1.4rem);
}

.thread-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-bottom: 0.9rem;
    margin-bottom: 1rem;
    font-family: var(--phone);
    font-weight: 600;
    border-bottom: 1px solid var(--rule);
}

.avatar {
    display: grid;
    place-items: center;
    width: 2.25em;
    height: 2.25em;
    border-radius: 50%;
    background: #362720;
    color: #dca684;
}

.avatar svg {
    width: 62%;
    height: 62%;
}

.day {
    align-self: center;
    margin-bottom: 0.4rem;
    padding: 0.2em 0.65em;
    font-family: var(--phone);
    font-size: 0.72em;
    color: var(--mute);
    background: var(--raised);
    border-radius: 0.5em;
}

.thread .bubble + .bubble.tail {
    margin-top: 0.5rem;
}

/* Sections */

.section {
    padding-bottom: var(--section);
}

.decode-intro p,
.tour-intro p {
    color: var(--mute);
    max-width: 34ch;
    margin-top: 1rem;
}

.decode-intro .section-title,
.tour-intro .section-title {
    margin-bottom: 1.75rem;
}

/* Community */

.community-copy p {
    color: var(--mute);
    max-width: 46ch;
    font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
}

.community-copy p + p {
    margin-top: 1rem;
}

.channels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 1.5rem;
    margin-top: 2rem;
}

.channels li {
    padding-block: 1.15rem 1.5rem;
    border-top: 1px solid var(--rule);
}

.community-copy .channels p {
    margin-top: 0.35rem;
    font-size: 1rem;
}

.channels .more {
    margin-top: 0.75rem;
    overflow-wrap: anywhere;
}

/* Shorthand, decoded */

.decode-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 3rem;
}

.decode-intro {
    grid-column: 1 / span 4;
    grid-row: 1 / span 2;
}

.specimen,
.reading {
    grid-column: 6 / -1;
}

.cue {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    color: var(--mute);
}

.specimen .cue {
    text-align: right;
}

.cue-read {
    color: var(--read);
}

.specimen-bubble {
    max-width: 100%;
    font-size: clamp(1.5rem, 3.4vw, 2.75rem);
    line-height: 1.22;
    letter-spacing: -0.01em;
}

.specimen-bubble .meta {
    font-size: 0.42em;
}

.tok {
    text-decoration: underline dotted rgba(83, 189, 235, 0.65);
    text-decoration-thickness: 0.06em;
    text-underline-offset: 0.18em;
    border-radius: 0.15em;
    transition: background-color 0.15s ease;
}

.tok.is-lit {
    background: rgba(83, 189, 235, 0.22);
    text-decoration-style: solid;
    text-decoration-color: var(--read);
}

.key {
    /* One line of dd, and the height of a dt chip: equal, so the chip sits
       centred on the first line however many lines the dd wraps to */
    --key-line: 1.75rem;
}

.key > div {
    display: grid;
    grid-template-columns: minmax(8rem, 2fr) 5fr;
    gap: 1.5rem;
    align-items: start;
    padding-block: 0.5rem;
    border-top: 1px solid var(--rule);
}

.key > div:last-child {
    border-bottom: 1px solid var(--rule);
}

.key dt {
    justify-self: start;
    padding: 0.1rem 0.5em;
    font-family: var(--phone);
    font-size: 1rem;
    line-height: calc(var(--key-line) - 0.2rem);
    background: var(--felt);
    border-radius: 0.4em;
}

.key dd {
    font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
    line-height: var(--key-line);
    letter-spacing: -0.005em;
    transition: color 0.15s ease;
}

.key dd .dim {
    display: block;
    margin-top: 0.3em;
    font-size: 0.85em;
    line-height: 1.45;
    color: var(--mute);
}

.key > div.is-lit dd {
    color: var(--read);
}

/* Tour: the walkthrough video, with chapters that seek it */

.tour-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 2.5rem;
    align-items: start;
}

.tour-intro,
.chapters {
    grid-column: 1 / span 6;
}

.tour-screen {
    grid-column: 8 / -1;
    grid-row: 1 / span 2;
    justify-self: center;
    width: min(100%, 340px);
}

.tour-video {
    width: 100%;
    aspect-ratio: 720 / 1562;
    object-fit: cover;
    border-radius: 2rem;
    outline: 1px solid var(--rule);
    outline-offset: -1px;
    background: var(--raised);
}

.chapter {
    padding-block: 0.95rem 1.05rem;
    border-top: 1px solid var(--rule);
}

.chapter:last-child {
    border-bottom: 1px solid var(--rule);
}

.chapter-jump {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0;
    font: inherit;
    text-align: left;
    color: var(--text);
    background: none;
    border: 0;
    cursor: pointer;
}

.chapter-time {
    flex: none;
    width: 2.5rem;
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
    color: var(--mute);
}

.chapter-title {
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    transition: color 0.15s ease;
}

.chapter-jump:hover .chapter-title,
.chapter.is-current .chapter-title,
.chapter.is-current .chapter-time {
    color: var(--read);
}

.chapter p {
    margin-top: 0.3rem;
    padding-left: 3.5rem;
    max-width: calc(44ch + 3.5rem);
    color: var(--mute);
}

.chapter p a {
    color: var(--read);
    text-underline-offset: 0.2em;
}

.screen {
    width: min(100%, 290px);
    margin-top: auto;
    padding-top: 2rem;
}

/* Crops the phone's status bar, which shows a red recording banner in the videos */
.screen video,
.screen img {
    width: 100%;
    aspect-ratio: 750 / 1294;
    object-fit: cover;
    object-position: bottom;
    border-radius: 1.6rem;
    outline: 1px solid var(--rule);
    outline-offset: -1px;
    background: var(--raised);
}

/* Pricing and FAQ share the split layout */

.split {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 2.5rem;
}

.split > .section-title {
    grid-column: 1 / span 4;
    max-width: 11ch;
}

.split > :not(.section-title) {
    grid-column: 6 / -1;
}

.points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
}

.points li {
    padding-block: 1.15rem 1.5rem;
    border-top: 1px solid var(--rule);
}

/* Privacy */

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 3rem;
}

.privacy-intro {
    grid-column: 1 / span 4;
    grid-row: 1 / span 2;
}

.privacy-intro .section-title {
    margin-bottom: 1.75rem;
}

.privacy-intro p {
    color: var(--mute);
    max-width: 34ch;
    margin-top: 1rem;
}

.cipher,
.privacy-grid > .points {
    grid-column: 6 / -1;
}

.cipher {
    display: grid;
    gap: 2rem;
}

.cipher-row {
    display: flex;
    flex-direction: column;
}

.cipher-blob {
    padding: 0.9rem 1rem;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--mute);
    background: var(--raised);
    border-radius: 0.6em;
    overflow-wrap: anywhere;
}

.cipher .bubble {
    max-width: 100%;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
}

/* FAQ */

.faq-list details {
    border-top: 1px solid var(--rule);
}

.faq-list details:last-child {
    border-bottom: 1px solid var(--rule);
}

.faq-list summary {
    padding-block: 1.1rem;
    font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    color: var(--mute);
}

.faq-list details[open] summary::after {
    content: "\2212";
}

.faq-list details p {
    padding-bottom: 1.25rem;
    color: var(--mute);
    max-width: 60ch;
}

.badge-soon {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.2em 0.6em;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    vertical-align: 0.15em;
    color: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    white-space: nowrap;
}

.points p {
    margin-top: 0.35rem;
    color: var(--mute);
    max-width: 30ch;
}

.plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--rule);
}

.plan {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.75rem 1.75rem;
}

.plan-premium {
    background: var(--felt);
    margin: -1px -1px -1px 0;
}

.price {
    margin: 0.75rem 0 1.5rem;
    font-size: clamp(3rem, 5vw, 4.25rem);
    line-height: 0.9;
}

.price span {
    font-size: 1.0625rem;
    font-stretch: 100%;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--mute);
}

.plan-premium .price span {
    color: rgba(255, 255, 255, 0.65);
}

.plan-features {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-block: 0.55rem;
    border-top: 1px solid var(--rule);
}

.plan-premium .plan-features li {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.plan .btn {
    align-self: flex-start;
}

.plan-note {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.72);
}

/* Start: install steps beside the plans */

.start {
    padding-block: clamp(4.5rem, 10vw, 8.5rem);
    background: var(--felt);
}

.start-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 3.5rem;
    align-items: start;
}

.final-title {
    margin-bottom: 1.5rem;
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    line-height: 0.95;
    max-width: 8ch;
}

.start-copy {
    grid-column: 1 / span 5;
}

.start-plans {
    grid-column: 7 / -1;
}

/* On the felt, Free is outlined and Premium sits a shade deeper */
.start .plans {
    border-color: rgba(255, 255, 255, 0.2);
}

.start .plan-features li {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.start .plan-premium {
    background: var(--felt-deep);
}

.start .price span {
    color: rgba(255, 255, 255, 0.65);
}

.install-steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 0.875rem;
    margin: 0 0 2rem;
    padding: 0;
    max-width: 34rem;
}

.install-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 2.375rem;
    line-height: 1.45;
}

.install-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 50%;
    background: var(--go);
    color: var(--black);
    font-size: 0.875rem;
    font-weight: 700;
}

.cta-open {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* The QR code is for desktop visitors: hidden on touch screens and narrow layouts. */
.qr {
    display: none;
    flex: none;
    width: 160px;
    height: 160px;
    padding: 10px;
    background: #ffffff;
    border-radius: 12px;
}

@media (hover: hover) and (pointer: fine) and (min-width: 721px) {
    .qr {
        display: block;
    }
}


.cta-subtitle {
    margin-bottom: 1.5rem;
    font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
    line-height: 1.4;
}

.start .form-note {
    color: rgba(255, 255, 255, 0.62);
}

/* Footer */

.footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem 2rem;
    font-size: 0.9375rem;
    color: var(--mute);
}

.footer .logo {
    color: var(--text);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
}

/* Links into the guides */

.more {
    margin-top: 1rem;
}

.more a,
.prose a {
    color: var(--read);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.more a:hover,
.prose a:hover {
    text-decoration-thickness: 2px;
}

/* Guides */

.guide-head {
    padding-block: clamp(2.75rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
}

.crumb {
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    color: var(--mute);
}

.crumb a {
    color: var(--mute);
}

.crumb a:hover {
    color: var(--text);
}

.guide-title {
    font-size: clamp(2.75rem, 6.5vw, 5.5rem);
    font-stretch: 72%;
    font-weight: 760;
    line-height: 0.9;
    letter-spacing: -0.015em;
    max-width: 14ch;
    text-wrap: balance;
}

.guide-lede {
    margin-top: 1.5rem;
    font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
    line-height: 1.4;
    max-width: 34ch;
}

.guide-list {
    max-width: 48rem;
    padding-bottom: var(--section);
    counter-reset: guide;
}

.guide-list li {
    counter-increment: guide;
    border-top: 1px solid var(--rule);
}

.guide-list li:last-child {
    border-bottom: 1px solid var(--rule);
}

.guide-list a {
    display: grid;
    grid-template-columns: 3rem 1fr;
    column-gap: 1rem;
    padding-block: 1.25rem;
    text-decoration: none;
}

.guide-list a::before {
    content: counter(guide);
    grid-row: span 2;
    font-size: 2.25rem;
    font-stretch: 72%;
    font-weight: 760;
    line-height: 1;
    color: var(--mute);
}

.guide-list h2 {
    font-size: 1.3125rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.guide-list a:hover h2 {
    color: var(--read);
}

.guide-list p {
    margin-top: 0.3rem;
    color: var(--mute);
}

.prose {
    max-width: 40rem;
    padding-bottom: clamp(3rem, 6vw, 5rem);
    font-size: 1.125rem;
    line-height: 1.6;
}

.prose > * + * {
    margin-top: 1.1rem;
}

.prose > :first-child {
    margin-top: 0;
}

.prose h2 {
    margin-top: 3rem;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-stretch: 72%;
    font-weight: 760;
    line-height: 1;
    letter-spacing: -0.01em;
}

.prose ol,
.prose ul {
    padding-left: 1.4rem;
}

.prose ol {
    list-style: decimal;
}

.prose ul {
    list-style: disc;
}

.prose li + li {
    margin-top: 0.5rem;
}

.prose li::marker {
    color: var(--mute);
}

.prose .key,
.prose .example {
    margin-top: 1.75rem;
}

/* In a guide the key is reference, not display: same type as the prose */
.prose .key {
    --key-line: 1.8rem;
}

.prose .key dd {
    font-size: inherit;
    letter-spacing: normal;
}

.prose .key + .example,
.prose .example + .key {
    margin-top: 1rem;
}

.example .bubble {
    font-size: 1.1875rem;
}

.prose .screen {
    width: min(100%, 300px);
    margin-top: 2rem;
    padding-top: 0;
}

.note {
    padding-left: 1rem;
    color: var(--mute);
    border-left: 2px solid var(--felt);
}

/* Draft placeholders: replace before publishing */
.todo {
    padding: 0.05em 0.35em;
    color: #f5c451;
    outline: 1px dashed #f5c451;
    border-radius: 0.2em;
}

.pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 40rem;
    margin-bottom: var(--section);
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
}

.pager a {
    text-decoration: none;
}

.pager span {
    display: block;
    font-size: 0.9375rem;
    color: var(--mute);
}

.pager strong {
    font-size: 1.1875rem;
    font-weight: 600;
}

.pager a:hover strong {
    color: var(--read);
}

.pager .next {
    grid-column: 2;
    text-align: right;
}

/* The one orchestrated moment: the hero thread arrives like messages */

@media (prefers-reduced-motion: no-preference) {
    .thread .bubble {
        animation: arrive 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
        animation-delay: calc(0.35s + var(--i) * 0.55s);
    }

    .thread .bubble.out .ticks {
        animation: read 0.3s ease both;
        animation-delay: calc(0.75s + var(--i) * 0.55s);
    }
}

@keyframes arrive {
    from {
        opacity: 0;
        transform: translateY(0.6rem);
    }
}

@keyframes read {
    from {
        color: rgba(255, 255, 255, 0.45);
    }
}

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

/* Responsive */

@media (max-width: 960px) {
    .hero-copy {
        grid-column: 1 / span 6;
    }

    .thread {
        grid-column: 7 / -1;
    }

    .tour-intro,
    .chapters,
    .tour-screen,
    .start-copy,
    .start-plans {
        grid-column: 1 / -1;
    }

    /* Stacked: title, then the video, then its chapters */
    .tour-screen {
        grid-row: 2;
    }

    .chapters {
        grid-row: 3;
    }

    .decode-intro {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .specimen,
    .reading {
        grid-column: 1 / -1;
    }

    .split > .section-title,
    .split > :not(.section-title),
    .privacy-intro,
    .cipher,
    .privacy-grid > .points {
        grid-column: 1 / -1;
    }

    .privacy-intro {
        grid-row: auto;
    }

    .split > .section-title {
        max-width: 14ch;
    }
}

@media (max-width: 720px) {
    .hero-copy,
    .thread {
        grid-column: 1 / -1;
    }

    .final-title {
        max-width: none;
    }

    .hero-headline,
    .beta-pill {
        grid-column: 1 / -1;
    }

    .thread {
        grid-row: auto;
        margin-top: 3.5rem;
    }

    .screen {
        width: min(78%, 290px);
    }

    .points,
    .channels {
        grid-template-columns: 1fr;
    }

    .key > div {
        grid-template-columns: 6.5rem 1fr;
        gap: 1rem;
    }

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

    .plan {
        padding-inline: 1.25rem;
    }

    .plan-premium {
        margin: 0 -1px -1px;
    }
}

@media (max-width: 480px) {
    .nav-link {
        display: none;
    }

    .cta-row .btn {
        flex: 1 1 100%;
    }

    .footer-bar,
    .footer-links {
        flex-wrap: wrap;
    }
}
