/*
 * Art direction: a quiet, crafted Mac app page on warm grey paper. The hero backdrop is a field of
 * tiny document text with a few highlighted names and [PLACEHOLDER] tokens in it, so the texture
 * itself tells the masking story; it fades out behind the headline. The product (the Hushfile
 * window, animated, with small floating cards) is the main image. Inter Tight with tight tracking
 * for display, two-tone headings, small letter-spaced mono labels, hairline grids and thin guide
 * lines instead of boxes.
 *
 * Accent: deep ink-blue (#27398a), used only for labels and small links. It is the colour family
 * of the placeholders, so blue means "what replaces your data", while highlighter yellow stays
 * reserved for detections. An amber accent would have competed with the yellow.
 * Light only. Spacing steps: 8, 16, 24, 32, 48, 64, 96, 128.
 */

@font-face {
    font-family: "Inter Tight";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2-variations"),
        url("/assets/fonts/inter-tight-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;
    --paper: #f4f3ef;
    --white: #ffffff;
    --ink: #16171b;
    --ink-2: #53565e;
    --ink-3: #6a6d75;
    --lead: #8b8d94;
    --rule: #dcd9d1;
    --accent: #27398a;
    --hl: #ffe27a;
    --hl-soft: #fff1b8;
    --amber: #c98a00;
    --ph: #1e3170;
    --ph-bg: #e3e8f5;
    --mac-blue: #0a64d9;
    --shadow-sm: 0 1px 2px rgba(20, 22, 30, 0.05), 0 2px 8px rgba(20, 22, 30, 0.04);
    --shadow-lg: 0 0 0 0.5px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(20, 22, 30, 0.06), 0 30px 80px -24px rgba(20, 30, 60, 0.32);
    --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
    --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
    --serif: "New York", "Iowan Old Style", Charter, "Bitstream Charter", Georgia, serif;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    --col: 1160px;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.31 0 0 0 0 0.2 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--grain), var(--paper);
    color: var(--ink);
    font: 17px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
}

/* Thin guide lines framing the content column. */
@media (min-width: 1240px) {
    body {
        background:
            linear-gradient(var(--rule), var(--rule)) calc(50% - 600px) 0 / 1px 100% no-repeat,
            linear-gradient(var(--rule), var(--rule)) calc(50% + 600px) 0 / 1px 100% no-repeat,
            var(--grain), var(--paper);
    }
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--sans);
    text-wrap: balance;
}

p {
    margin: 0 0 16px;
}

code {
    font-family: var(--mono);
    font-size: 0.88em;
}

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

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 20;
    padding: 6px 12px;
    background: var(--ink);
    color: #fff;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

.sprite {
    position: absolute;
}

.wrap {
    max-width: var(--col);
    margin: 0 auto;
    padding: 0 32px;
}

.wrap.narrow {
    max-width: 760px;
}

/* Labels and headings */
.kicker {
    margin: 0 0 20px;
    color: var(--accent);
    font: 500 12px/1.4 var(--mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.two {
    max-width: 17em;
    font-size: clamp(32px, 4.4vw, 54px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.two .dim {
    color: var(--lead);
}

section[id],
main {
    scroll-margin-top: 72px;
}

.more {
    margin: 24px 0 0;
    font-size: 16px;
    font-weight: 550;
}

.more a {
    text-decoration: none;
}

.more a::after {
    content: " \203A";
}

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

/* Section index on the right edge, desktop only */
.ticks {
    position: fixed;
    top: 50%;
    right: 20px;
    z-index: 5;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    transform: translateY(-50%);
}

.ticks a {
    display: block;
    width: 16px;
    height: 12px;
    background: linear-gradient(var(--ink-3), var(--ink-3)) right center / 16px 1px no-repeat;
    transition: background-size 0.2s ease;
}

.ticks a:hover,
.ticks a:focus-visible {
    background-size: 30px 1px;
    background-image: linear-gradient(var(--ink), var(--ink));
}

@media (min-width: 1320px) {
    .ticks {
        display: flex;
    }
}

.intro {
    max-width: 30em;
    margin: 24px 0 0;
    color: var(--ink-2);
    font-size: 18px;
}

/* Buttons and pills */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: 550 16px/1.2 var(--sans);
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
    background: #2b2d34;
    transform: translateY(-1px);
}

.btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 4px 14px 4px 4px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    font-weight: 500;
}

.pill .chip {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}


/* Header: logo, pill nav in the centre, ink capsule on the right.
   Transparent over the hero; translucent with blur once the page scrolls. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-header.scrolled,
.site-header.open {
    background: rgba(244, 243, 239, 0.8);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    backdrop-filter: saturate(150%) blur(14px);
    border-bottom-color: var(--rule);
}

.site-header .wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    color: var(--ink);
    font: 650 18px/1 var(--sans);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand img {
    width: 28px;
    height: 28px;
}

.pillnav {
    display: flex;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-sm);
}

.pillnav a {
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pillnav a:hover {
    background: rgba(22, 23, 27, 0.05);
    color: var(--ink);
}

.head-end {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 8px;
}

.head-cta {
    padding: 9px 18px;
    font-size: 14px;
    white-space: nowrap;
}

.menu-btn {
    display: none;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
    cursor: pointer;
}

.menu-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.menu-btn .x {
    display: none;
}

.menu-btn[aria-expanded="true"] .x {
    display: block;
}

.menu-btn[aria-expanded="true"] .bars {
    display: none;
}

@media (max-width: 768px) {
    .site-header .wrap {
        grid-template-columns: 1fr auto;
    }

    .pillnav {
        display: none;
    }

    .menu-btn:not([hidden]) {
        display: grid;
    }

    /* The same nav becomes a small dropdown sheet when the menu is open. */
    .site-header.open .pillnav {
        position: absolute;
        top: 64px;
        right: 16px;
        left: 16px;
        display: flex;
        flex-direction: column;
        padding: 8px;
        border-radius: 18px;
        background: var(--white);
        box-shadow: var(--shadow-lg);
    }

    .site-header.open .pillnav a {
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 16px;
    }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--rule);
    color: var(--ink-3);
    font-size: 14px;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 32px;
    padding-bottom: 48px;
}

.site-footer a {
    color: var(--ink-2);
}

.site-footer .links a + a {
    margin-left: 16px;
}

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

.hero {
    position: relative;
    margin-top: -69px;
    padding-top: 141px;
    background: url("/assets/hero-mosaic.webp") center -24px / 1600px auto no-repeat;
    text-align: center;
}

.hero h1 {
    max-width: 12em;
    margin: 28px auto 0;
    font-size: clamp(44px, 7vw, 86px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero .sub {
    max-width: 32em;
    margin: 24px auto 0;
    color: var(--ink-2);
    font-size: 19px;
    line-height: 1.5;
}

.hero .actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
}

.hero .terms {
    margin: 0;
    color: var(--ink-3);
    font-size: 15px;
}

.hero .terms span {
    white-space: nowrap;
}

.stage {
    position: relative;
    margin-top: 72px;
    padding: 0 24px 96px;
    overflow-x: clip;
}

.for-whom {
    margin: 48px auto 0;
    color: var(--ink-3);
    font-size: 15px;
}

/* Floating cards over the window edge */
.float {
    position: absolute;
    z-index: 2;
    padding: 1.6em 1.8em;
    border-radius: 1.2em;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
    font-family: var(--sans);
    text-align: left;
}

.float .flabel {
    margin: 0 0 0.8em;
    font: 500 1.1em/1.3 var(--mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.float.ask {
    top: 15em;
    right: -5em;
    width: 31em;
    opacity: 0;
}

.float.ask .flabel {
    color: #8a5a00;
}

.float.ask .q {
    margin: 0 0 1em;
    font-size: 1.6em;
    line-height: 1.35;
}

.float .btns {
    display: flex;
    justify-content: flex-end;
    gap: 0.8em;
}

.float .btns span {
    padding: 0.45em 1.3em;
    border: 0.1em solid var(--rule);
    border-radius: 999px;
    font-size: 1.4em;
    font-weight: 550;
}

.float .btns .go {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.float.done {
    bottom: 5em;
    left: -4em;
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 1.2em 1.8em 1.2em 1.4em;
    border-radius: 999px;
    font-size: 1.45em;
    white-space: nowrap;
}

.float.done .dot {
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    background: #2f8a5b;
    box-shadow: 0 0 0 0.3em rgba(47, 138, 91, 0.16);
}

.float.done b {
    font-weight: 600;
}

.float.done small {
    color: var(--ink-3);
    font-size: 1em;
}

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

.section {
    padding: 128px 0;
    border-top: 1px solid var(--rule);
}

.cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 80px;
    align-items: center;
    margin-top: 64px;
}

/* Numbered mono list with hairlines */
.steps {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rule);
    list-style: none;
}

.steps li {
    display: grid;
    grid-template-columns: 48px 1fr;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
    color: var(--ink-3);
}

.steps .n {
    color: var(--ink-3);
    font: 500 13px/1.9 var(--mono);
}

.steps b {
    color: var(--ink);
    font-weight: 600;
}

/* Before and after: two overlapping sheets */
.pair.panel {
    position: relative;
    padding: 136px 32px 40px 104px;
    background: radial-gradient(ellipse at 80% 100%, rgba(255, 226, 122, 0.18), transparent 60%), rgba(255, 255, 255, 0.55);
}

.sheet {
    position: relative;
    padding: 32px 36px;
    border-radius: 6px;
    background: var(--white);
    box-shadow: var(--shadow-sm), 0 24px 50px -28px rgba(40, 30, 10, 0.3);
    font: 16px/1.85 var(--serif);
}

.sheet p {
    margin: 0 0 12px;
}

.sheet p:last-child {
    margin: 0;
}

.sheet .re {
    font-weight: 700;
}

.sheet .tagline {
    position: absolute;
    top: -12px;
    left: 24px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--rule);
    color: var(--ink-2);
    font: 500 11px/1.4 var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sheet.before {
    position: absolute;
    top: 40px;
    left: 32px;
    right: 104px;
    transform: rotate(-2deg);
}

.sheet.after .tagline {
    border-color: var(--ph);
    background: var(--ph);
    color: #fff;
}

/* Formats: hairline grid */
.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin: 64px 0 0;
    padding: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
    list-style: none;
}

.grid li {
    padding: 28px 24px 24px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    transition: background 0.2s ease;
}

.grid li:hover {
    background: rgba(255, 255, 255, 0.55);
}

.grid svg {
    display: block;
    width: 44px;
    height: 55px;
    margin-bottom: 28px;
    filter: drop-shadow(0 2px 3px rgba(20, 30, 60, 0.1));
}

.grid b {
    display: block;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.grid small {
    color: var(--ink-3);
    font: 13px/1.6 var(--mono);
}

/* Private */
.facts {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rule);
    list-style: none;
}

.facts li {
    display: grid;
    grid-template-columns: 48px 1fr;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
    color: var(--ink-3);
}

.facts .n {
    font: 500 13px/1.9 var(--mono);
}

.facts b {
    color: var(--ink);
    font-weight: 600;
}

.note {
    display: flex;
    gap: 14px;
    margin: 24px 0 0;
    color: var(--ink-2);
    font-size: 16px;
}

.note mark {
    flex: none;
    align-self: flex-start;
    margin-top: 2px;
    padding: 1px 8px;
    border-radius: 4px;
    background: var(--hl);
    color: var(--ink);
    font: 600 11px/1.6 var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.panel {
    padding: 48px 32px;
    border: 1px solid var(--rule);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.55);
}

.offline {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0 auto;
}

/* Pricing: a hairline box split in two */
.price {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 64px;
    border: 1px solid var(--rule);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
}

.price > div {
    padding: 48px;
}

.price > div + div {
    border-left: 1px solid var(--rule);
}

.price .app-icon {
    width: 72px;
    height: 72px;
}

.amount {
    margin: 24px 0 4px;
    font: 600 72px/1 var(--sans);
    letter-spacing: -0.05em;
}

.amount small {
    margin-left: 8px;
    color: var(--ink-3);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.price .after {
    margin: 0;
    color: var(--ink-2);
}

.price ul {
    margin: 0 0 32px;
    padding: 0;
    border-top: 1px solid var(--rule);
    list-style: none;
}

.price li {
    display: grid;
    grid-template-columns: 48px 1fr;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
}

.price li .n {
    color: var(--ink-3);
    font: 500 13px/1.9 var(--mono);
}

.soon-line {
    margin: 0;
    padding: 12px 16px;
    border: 1px dashed #c9c4b6;
    border-radius: 12px;
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.app-icon {
    display: block;
    filter: drop-shadow(0 10px 18px rgba(40, 30, 10, 0.16));
}

/* FAQ */
.faq {
    margin-top: 48px;
    border-top: 1px solid var(--rule);
}

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

.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 550;
    letter-spacing: -0.01em;
    list-style: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.faq summary:hover {
    color: var(--accent);
}

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

.faq summary::after {
    content: "+";
    color: var(--ink-3);
    font: 400 20px/1 var(--mono);
}

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

.faq details p {
    max-width: 38em;
    margin: -6px 0 20px;
    color: var(--ink-2);
}

/* Closing */
.closing {
    padding: 144px 0 128px;
    border-top: 1px solid var(--rule);
    background: url("/assets/hero-mosaic.webp") center 40% / 1500px auto no-repeat;
    text-align: center;
}

.closing .app-icon {
    width: 112px;
    height: 112px;
    margin: 0 auto 32px;
}

.closing h2 {
    margin: 0 auto;
}

.closing p {
    margin: 20px 0 0;
    color: var(--ink-2);
    font-size: 18px;
}

/* ------------------------------------------------------------------ */
/* Privacy and support pages                                           */
/* ------------------------------------------------------------------ */

.prose {
    padding-top: 56px;
    padding-bottom: 96px;
}

.prose h1 {
    font-size: 52px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.prose h2 {
    margin: 48px 0 8px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.prose .updated {
    margin: 8px 0 32px;
    color: var(--ink-3);
    font-size: 15px;
}

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

.lead {
    padding: 18px 22px;
    border: 1px solid var(--rule);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    font-size: 18px;
}

/* ------------------------------------------------------------------ */
/* Responsive (page)                                                   */
/* ------------------------------------------------------------------ */

@media (max-width: 1100px) {
    .float.ask {
        right: 1em;
    }

    .float.done {
        left: 1em;
    }
}

@media (max-width: 960px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cols {
        grid-template-columns: 1fr;
        gap: 56px;
    }

}

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

    .price > div + div {
        border-top: 1px solid var(--rule);
        border-left: 0;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 16px;
    }

    .wrap {
        padding: 0 20px;
    }

    .hero {
        padding-top: 117px;
        background:
            linear-gradient(var(--paper) 40px, rgba(244, 243, 239, 0) 150px),
            radial-gradient(ellipse 60% 32% at 50% 38%, rgba(244, 243, 239, 0.85), rgba(244, 243, 239, 0) 100%),
            url("/assets/hero-mosaic.webp") center -24px / 1100px auto no-repeat;
    }

    .hero .sub {
        font-size: 17px;
    }

    .stage {
        margin-top: 40px;
        padding: 0 20px 64px;
    }

    .section {
        padding: 88px 0;
    }

    .cols,
    .grid,
    .price {
        margin-top: 40px;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid li {
        padding: 20px 14px 16px;
    }

    .grid svg {
        margin-bottom: 16px;
    }

    .pair.panel {
        padding: 112px 12px 20px 36px;
    }

    .sheet.before {
        top: 28px;
        left: 12px;
        right: 36px;
    }

    .sheet {
        padding: 24px 22px;
        font-size: 15px;
    }

    .price > div {
        padding: 32px 24px;
    }

    .amount {
        font-size: 60px;
    }

    .panel {
        padding: 32px 16px;
    }

    .closing {
        padding: 96px 0 88px;
        background-size: 1000px auto;
    }

    .prose h1 {
        font-size: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ------------------------------------------------------------------ */
/* The app window. Sized in em so the whole thing scales as one image. */
/* ------------------------------------------------------------------ */

.app-wrap {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    font-size: min(10px, calc((100vw - 48px) / 108));
}




.app {
    position: relative;
    width: 108em;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1.1em;
    background: #fff;
    box-shadow: var(--shadow-lg);
    color: #1d1d1f;
    font-family: var(--sys);
    text-align: left;
    user-select: none;
}

.app-toolbar {
    display: flex;
    align-items: center;
    gap: 1.6em;
    height: 5.2em;
    padding: 0 1.6em;
    border-bottom: 0.1em solid #e3e3e6;
    background: linear-gradient(#f7f7f8, #efeff1);
}

.lights {
    display: flex;
    gap: 0.8em;
}

.lights i {
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow: inset 0 0 0 0.05em rgba(0, 0, 0, 0.12);
}

.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.tb-icon {
    display: grid;
    place-items: center;
    width: 2.8em;
    height: 2.4em;
    border-radius: 0.6em;
    color: #6e6e73;
}

.tb-icon svg {
    width: 1.7em;
    height: 1.7em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-title {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}

.app-title b {
    display: block;
    font-size: 1.35em;
    font-weight: 650;
}

.app-title small {
    color: #8a8a8e;
    font-size: 1.1em;
}

.seg {
    position: relative;
    display: flex;
    padding: 0.2em;
    border-radius: 0.7em;
    background: #e4e4e7;
    font-size: 1.2em;
    font-weight: 500;
}

.seg span {
    position: relative;
    width: 6.4em;
    padding: 0.3em 0;
    color: #3c3c43;
    text-align: center;
}

.seg .thumb {
    position: absolute;
    top: 0.2em;
    bottom: 0.2em;
    left: 0.2em;
    width: 6.4em;
    border-radius: 0.55em;
    background: #fff;
    box-shadow: 0 0.05em 0.2em rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
}

.swap {
    display: inline-grid;
}

.swap > span {
    grid-area: 1 / 1;
    white-space: nowrap;
}

.swap .s1,
.status .s2 {
    opacity: 0;
}

.tb-btn {
    display: flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.4em 0.9em;
    border: 0.1em solid #d6d6da;
    border-radius: 0.6em;
    background: #fff;
    font-size: 1.2em;
    font-weight: 500;
    color: #1d1d1f;
}

.tb-btn svg {
    width: 1.1em;
    height: 1.1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.app-body {
    display: grid;
    grid-template-columns: 30em 1fr;
    height: 47em;
}

/* Sidebar */
.side {
    overflow: hidden;
    padding: 1.4em 1.2em;
    border-right: 0.1em solid #e3e3e6;
    background: #f4f4f6;
    font-size: 1.25em;
}

.side h4 {
    display: flex;
    justify-content: space-between;
    margin: 1.1em 0.6em 0.35em;
    color: #8a8a8e;
    font-size: 0.82em;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.side h4:first-child {
    margin-top: 0.2em;
}

.row {
    display: flex;
    align-items: center;
    gap: 0.6em;
    height: 2.1em;
    padding: 0 0.6em;
    border-radius: 0.45em;
    white-space: nowrap;
}

.row .label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row .n {
    color: #8a8a8e;
    font-size: 0.88em;
    font-variant-numeric: tabular-nums;
}

.cb {
    position: relative;
    flex: none;
    width: 1.1em;
    height: 1.1em;
    border-radius: 0.25em;
    background: var(--mac-blue);
}

.cb::after {
    content: "";
    position: absolute;
    left: 0.36em;
    top: 0.16em;
    width: 0.28em;
    height: 0.55em;
    border-right: 0.13em solid #fff;
    border-bottom: 0.13em solid #fff;
    transform: rotate(45deg);
}

.cb.off {
    border: 0.08em solid #b4b4ba;
    background: #fff;
}

.cb.off::after {
    display: none;
}

.row.sel {
    background: rgba(10, 100, 217, 0.12);
}

.badge {
    padding: 0.05em 0.5em;
    border-radius: 0.5em;
    background: #fdf0cc;
    color: #8a5a00;
    font-size: 0.78em;
    font-weight: 650;
}

/* Document preview */
.canvas {
    position: relative;
    overflow: hidden;
    padding: 3.2em 4em 0;
    background: #e9e9ec;
}

.page {
    max-width: 62em;
    margin: 0 auto;
    padding: 4.4em 5.6em;
    background: #fff;
    box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.12), 0 0.8em 2.4em -1em rgba(0, 0, 0, 0.2);
    color: #1d1d1f;
    font: 1.5em/1.75 var(--serif);
}

.page p {
    margin: 0 0 0.9em;
}

.page .re {
    font-weight: 700;
}

.canvas::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 7em;
    background: linear-gradient(rgba(233, 233, 236, 0), #e9e9ec 85%);
}

.app-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5.4em;
    padding: 0 1.8em;
    border-top: 0.1em solid #e3e3e6;
    background: #f7f7f8;
    font-size: 1.25em;
}

.app-foot .status {
    color: #6e6e73;
}

.app-foot .status b {
    color: #1d1d1f;
    font-weight: 600;
}

.app-foot .status em {
    color: #8a5a00;
    font-style: normal;
}

.mac-btn {
    padding: 0.4em 1.1em;
    border-radius: 0.5em;
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    box-shadow: 0 0.05em 0.15em rgba(0, 0, 0, 0.25);
}

/* Detections in the hero window. Base styles are the finished, masked state;
   the animation below plays the review from the start. */
.d {
    white-space: nowrap;
}

.d > span {
    display: inline-block;
    overflow: hidden;
    border-radius: 0.15em;
}

/* overflow: hidden puts an inline-block's baseline at its bottom edge, so these offsets
   line the text back up with the surrounding serif baseline. */
.d .o {
    line-height: 1.4;
    vertical-align: -0.42em;
}

.d .o {
    max-width: 0;
    padding: 0;
    background-color: var(--hl);
    opacity: 0;
}

.d .p {
    max-width: 12em;
    padding: 0 0.3em;
    background: var(--ph-bg);
    color: var(--ph);
    font: 600 0.82em/1.65 var(--mono);
    vertical-align: -0.5em;
}

.side .badge {
    opacity: 0;
}

/* Highlights, shared by the window and the before/after letters */
mark {
    padding: 0 0.12em;
    border-radius: 0.15em;
    background: var(--hl);
    color: inherit;
}

mark.unsure {
    background: var(--hl-soft);
    box-shadow: inset 0 -0.12em 0 var(--amber);
}

mark.focus {
    outline: 0.12em solid var(--mac-blue);
    outline-offset: 0.08em;
}

.ph {
    display: inline-block;
    padding: 0 0.3em;
    border-radius: 0.2em;
    background: var(--ph-bg);
    color: var(--ph);
    font: 600 0.82em/1.6 var(--mono);
    white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Responsive (app window). Three size modes:                          */
/*   desktop  > 860px: full 108em window with sidebar                  */
/*   tablet   601-860: 56em, no sidebar, em capped at 11px             */
/*   phone    <= 600: 34em, no sidebar, em capped at 10.6px, short     */
/* ------------------------------------------------------------------ */

@media (max-width: 860px) {
    .app-wrap {
        font-size: min(11px, calc((100vw - 48px) / 56));
    }

    .app {
        width: 56em;
    }

    .app-body {
        grid-template-columns: 1fr;
        height: 40em;
    }

    .side,
    .tb-btn,
    .tb-icon {
        display: none;
    }

    .canvas {
        padding: 2em 2.4em 0;
    }

    .page {
        padding: 2.6em 3.2em;
        font-size: 1.3em;
    }

    .app-title b {
        font-size: 1.2em;
    }

    .seg {
        font-size: 1.1em;
    }

    .float.ask {
        top: 10em;
        right: 1em;
    }

    .float.done {
        bottom: 6.5em;
        left: 1em;
    }
}

@media (max-width: 600px) {
    /* Phones: a compact but complete mini window, smaller than the page copy. */
    .app-wrap {
        font-size: min(10.6px, calc((100vw - 40px) / 34));
    }

    .app {
        width: 34em;
        border-radius: 0.9em;
    }

    .app-body {
        height: 25em;
    }

    .app-toolbar {
        gap: 1em;
        height: 3.8em;
        padding: 0 1.1em;
    }

    .lights {
        gap: 0.55em;
    }

    .lights i {
        width: 1em;
        height: 1em;
    }

    .app-title b {
        overflow: hidden;
        font-size: 1.05em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-title small {
        display: none;
    }

    .seg {
        font-size: 1em;
    }

    .seg span,
    .seg .thumb {
        width: 5.4em;
    }

    .canvas {
        padding: 1em 1.1em 0;
    }

    .page {
        padding: 1.4em 1.6em;
        font-size: 1.2em;
    }

    .page p:first-child {
        display: none;
    }

    .app-foot {
        height: 3.8em;
        padding: 0 1.1em;
        font-size: 1.05em;
    }

    .float {
        padding: 1em 1.1em;
        border-radius: 0.9em;
    }

    .float .flabel {
        font-size: 0.85em;
    }

    .float.ask {
        top: 6.5em;
        right: 0.6em;
        width: 21em;
    }

    .float.ask .q {
        margin-bottom: 0.7em;
        font-size: 1.2em;
    }

    .float .btns span {
        font-size: 1.05em;
    }

    .float.done {
        bottom: 5em;
        left: 0.6em;
        padding: 0.7em 1.1em 0.7em 0.9em;
        font-size: 1.05em;
    }

    .float.done small {
        display: none;
    }
}

/* ------------------------------------------------------------------ */
/* Hero animation, 10 s loop: the letter appears, detections highlight */
/* one by one as the sidebar fills, a card asks about the unsure name, */
/* the switch flips to Masked and highlights become placeholders, a    */
/* card confirms. Hold, fade out, reset while invisible. Generated.    */
/* ------------------------------------------------------------------ */

@keyframes hf-page {
    0% { opacity: 0; transform: translateY(0.6em); }
    4%, 90% { opacity: 1; transform: none; }
    95%, 100% { opacity: 0; transform: none; }
}

.page {
    animation: hf-page 10s ease-in-out infinite both;
}

@keyframes hf-hl0 {
    0%, 8% { background-color: rgba(255, 226, 122, 0); }
    9.6%, 100% { background-color: #ffe27a; }
}

@keyframes hf-o0 {
    0%, 47% { max-width: 20em; padding: 0 0.08em; opacity: 1; }
    50%, 96% { max-width: 0; padding: 0; opacity: 0; }
    97%, 100% { max-width: 20em; padding: 0 0.08em; opacity: 1; }
}

@keyframes hf-p0 {
    0%, 47% { max-width: 0; padding: 0; opacity: 0; }
    50%, 96% { max-width: 12em; padding: 0 0.3em; opacity: 1; }
    97%, 100% { max-width: 0; padding: 0; opacity: 0; }
}

.m0 .o {
    animation: hf-hl0 10s ease-in-out infinite both, hf-o0 10s ease-in-out infinite both;
}

.m0 .p {
    animation: hf-p0 10s ease-in-out infinite both;
}

@keyframes hf-hl1 {
    0%, 10.2% { background-color: rgba(255, 226, 122, 0); }
    11.8%, 100% { background-color: #ffe27a; }
}

@keyframes hf-o1 {
    0%, 47.8% { max-width: 20em; padding: 0 0.08em; opacity: 1; }
    50.8%, 96% { max-width: 0; padding: 0; opacity: 0; }
    97%, 100% { max-width: 20em; padding: 0 0.08em; opacity: 1; }
}

@keyframes hf-p1 {
    0%, 47.8% { max-width: 0; padding: 0; opacity: 0; }
    50.8%, 96% { max-width: 12em; padding: 0 0.3em; opacity: 1; }
    97%, 100% { max-width: 0; padding: 0; opacity: 0; }
}

.m1 .o {
    animation: hf-hl1 10s ease-in-out infinite both, hf-o1 10s ease-in-out infinite both;
}

.m1 .p {
    animation: hf-p1 10s ease-in-out infinite both;
}

@keyframes hf-hl2 {
    0%, 12.4% { background-color: rgba(255, 226, 122, 0); }
    14%, 100% { background-color: #ffe27a; }
}

@keyframes hf-o2 {
    0%, 48.6% { max-width: 20em; padding: 0 0.08em; opacity: 1; }
    51.6%, 96% { max-width: 0; padding: 0; opacity: 0; }
    97%, 100% { max-width: 20em; padding: 0 0.08em; opacity: 1; }
}

@keyframes hf-p2 {
    0%, 48.6% { max-width: 0; padding: 0; opacity: 0; }
    51.6%, 96% { max-width: 12em; padding: 0 0.3em; opacity: 1; }
    97%, 100% { max-width: 0; padding: 0; opacity: 0; }
}

.m2 .o {
    animation: hf-hl2 10s ease-in-out infinite both, hf-o2 10s ease-in-out infinite both;
}

.m2 .p {
    animation: hf-p2 10s ease-in-out infinite both;
}

@keyframes hf-hl3 {
    0%, 14.6% { background-color: rgba(255, 226, 122, 0); }
    16.2%, 100% { background-color: #ffe27a; }
}

@keyframes hf-o3 {
    0%, 49.4% { max-width: 20em; padding: 0 0.08em; opacity: 1; }
    52.4%, 96% { max-width: 0; padding: 0; opacity: 0; }
    97%, 100% { max-width: 20em; padding: 0 0.08em; opacity: 1; }
}

@keyframes hf-p3 {
    0%, 49.4% { max-width: 0; padding: 0; opacity: 0; }
    52.4%, 96% { max-width: 12em; padding: 0 0.3em; opacity: 1; }
    97%, 100% { max-width: 0; padding: 0; opacity: 0; }
}

.m3 .o {
    animation: hf-hl3 10s ease-in-out infinite both, hf-o3 10s ease-in-out infinite both;
}

.m3 .p {
    animation: hf-p3 10s ease-in-out infinite both;
}

@keyframes hf-hl4 {
    0%, 16.8% { background-color: rgba(255, 226, 122, 0); }
    18.4%, 100% { background-color: #ffe27a; }
}

@keyframes hf-o4 {
    0%, 50.2% { max-width: 20em; padding: 0 0.08em; opacity: 1; }
    53.2%, 96% { max-width: 0; padding: 0; opacity: 0; }
    97%, 100% { max-width: 20em; padding: 0 0.08em; opacity: 1; }
}

@keyframes hf-p4 {
    0%, 50.2% { max-width: 0; padding: 0; opacity: 0; }
    53.2%, 96% { max-width: 12em; padding: 0 0.3em; opacity: 1; }
    97%, 100% { max-width: 0; padding: 0; opacity: 0; }
}

.m4 .o {
    animation: hf-hl4 10s ease-in-out infinite both, hf-o4 10s ease-in-out infinite both;
}

.m4 .p {
    animation: hf-p4 10s ease-in-out infinite both;
}

@keyframes hf-hl5 {
    0%, 19% { background-color: rgba(255, 226, 122, 0); box-shadow: inset 0 -0.12em 0 rgba(201, 138, 0, 0), 0 0 0 0 rgba(39, 57, 138, 0); }
    20.6%, 30% { background-color: var(--hl-soft); box-shadow: inset 0 -0.12em 0 var(--amber), 0 0 0 0 rgba(39, 57, 138, 0); }
    32.5% { background-color: var(--hl-soft); box-shadow: inset 0 -0.12em 0 var(--amber), 0 0 0 0.2em rgba(39, 57, 138, 0.3); }
    35%, 37.5% { background-color: var(--hl-soft); box-shadow: inset 0 -0.12em 0 var(--amber), 0 0 0 0 rgba(39, 57, 138, 0); }
    39.5%, 100% { background-color: #ffe27a; box-shadow: inset 0 -0.12em 0 rgba(201, 138, 0, 0), 0 0 0 0 rgba(39, 57, 138, 0); }
}

@keyframes hf-o5 {
    0%, 51% { max-width: 20em; padding: 0 0.08em; opacity: 1; }
    54%, 96% { max-width: 0; padding: 0; opacity: 0; }
    97%, 100% { max-width: 20em; padding: 0 0.08em; opacity: 1; }
}

@keyframes hf-p5 {
    0%, 51% { max-width: 0; padding: 0; opacity: 0; }
    54%, 96% { max-width: 12em; padding: 0 0.3em; opacity: 1; }
    97%, 100% { max-width: 0; padding: 0; opacity: 0; }
}

.m5 .o {
    animation: hf-hl5 10s ease-in-out infinite both, hf-o5 10s ease-in-out infinite both;
}

.m5 .p {
    animation: hf-p5 10s ease-in-out infinite both;
}

@keyframes hf-hl6 {
    0%, 21.2% { background-color: rgba(255, 226, 122, 0); }
    22.8%, 100% { background-color: #ffe27a; }
}

@keyframes hf-o6 {
    0%, 51.8% { max-width: 20em; padding: 0 0.08em; opacity: 1; }
    54.8%, 96% { max-width: 0; padding: 0; opacity: 0; }
    97%, 100% { max-width: 20em; padding: 0 0.08em; opacity: 1; }
}

@keyframes hf-p6 {
    0%, 51.8% { max-width: 0; padding: 0; opacity: 0; }
    54.8%, 96% { max-width: 12em; padding: 0 0.3em; opacity: 1; }
    97%, 100% { max-width: 0; padding: 0; opacity: 0; }
}

.m6 .o {
    animation: hf-hl6 10s ease-in-out infinite both, hf-o6 10s ease-in-out infinite both;
}

.m6 .p {
    animation: hf-p6 10s ease-in-out infinite both;
}

@keyframes hf-hl7 {
    0%, 23.4% { background-color: rgba(255, 226, 122, 0); }
    25%, 100% { background-color: #ffe27a; }
}

@keyframes hf-o7 {
    0%, 52.6% { max-width: 20em; padding: 0 0.08em; opacity: 1; }
    55.6%, 96% { max-width: 0; padding: 0; opacity: 0; }
    97%, 100% { max-width: 20em; padding: 0 0.08em; opacity: 1; }
}

@keyframes hf-p7 {
    0%, 52.6% { max-width: 0; padding: 0; opacity: 0; }
    55.6%, 96% { max-width: 12em; padding: 0 0.3em; opacity: 1; }
    97%, 100% { max-width: 0; padding: 0; opacity: 0; }
}

.m7 .o {
    animation: hf-hl7 10s ease-in-out infinite both, hf-o7 10s ease-in-out infinite both;
}

.m7 .p {
    animation: hf-p7 10s ease-in-out infinite both;
}

@keyframes hf-hl8 {
    0%, 25.6% { background-color: rgba(255, 226, 122, 0); }
    27.2%, 100% { background-color: #ffe27a; }
}

@keyframes hf-o8 {
    0%, 53.4% { max-width: 20em; padding: 0 0.08em; opacity: 1; }
    56.4%, 96% { max-width: 0; padding: 0; opacity: 0; }
    97%, 100% { max-width: 20em; padding: 0 0.08em; opacity: 1; }
}

@keyframes hf-p8 {
    0%, 53.4% { max-width: 0; padding: 0; opacity: 0; }
    56.4%, 96% { max-width: 12em; padding: 0 0.3em; opacity: 1; }
    97%, 100% { max-width: 0; padding: 0; opacity: 0; }
}

.m8 .o {
    animation: hf-hl8 10s ease-in-out infinite both, hf-o8 10s ease-in-out infinite both;
}

.m8 .p {
    animation: hf-p8 10s ease-in-out infinite both;
}

@keyframes hf-r0 {
    0%, 8% { opacity: 0; transform: translateX(-0.6em); }
    9.6%, 90% { opacity: 1; transform: none; }
    94%, 100% { opacity: 0; transform: none; }
}

@keyframes hf-cb0 {
    0%, 8.8% { background-color: #fff; box-shadow: inset 0 0 0 0.08em #b4b4ba; }
    10.2%, 94% { background-color: var(--mac-blue); box-shadow: inset 0 0 0 0.08em rgba(180, 180, 186, 0); }
    96%, 100% { background-color: #fff; box-shadow: inset 0 0 0 0.08em #b4b4ba; }
}

.side .r0 {
    animation: hf-r0 10s ease-in-out infinite both;
}

.side .r0 .cb {
    animation: hf-cb0 10s ease-in-out infinite both;
}

@keyframes hf-r1 {
    0%, 10.2% { opacity: 0; transform: translateX(-0.6em); }
    11.8%, 90% { opacity: 1; transform: none; }
    94%, 100% { opacity: 0; transform: none; }
}

@keyframes hf-cb1 {
    0%, 11% { background-color: #fff; box-shadow: inset 0 0 0 0.08em #b4b4ba; }
    12.4%, 94% { background-color: var(--mac-blue); box-shadow: inset 0 0 0 0.08em rgba(180, 180, 186, 0); }
    96%, 100% { background-color: #fff; box-shadow: inset 0 0 0 0.08em #b4b4ba; }
}

.side .r1 {
    animation: hf-r1 10s ease-in-out infinite both;
}

.side .r1 .cb {
    animation: hf-cb1 10s ease-in-out infinite both;
}

@keyframes hf-r2 {
    0%, 12.4% { opacity: 0; transform: translateX(-0.6em); }
    14%, 90% { opacity: 1; transform: none; }
    94%, 100% { opacity: 0; transform: none; }
}

@keyframes hf-cb2 {
    0%, 13.2% { background-color: #fff; box-shadow: inset 0 0 0 0.08em #b4b4ba; }
    14.6%, 94% { background-color: var(--mac-blue); box-shadow: inset 0 0 0 0.08em rgba(180, 180, 186, 0); }
    96%, 100% { background-color: #fff; box-shadow: inset 0 0 0 0.08em #b4b4ba; }
}

.side .r2 {
    animation: hf-r2 10s ease-in-out infinite both;
}

.side .r2 .cb {
    animation: hf-cb2 10s ease-in-out infinite both;
}

@keyframes hf-r4 {
    0%, 16.8% { opacity: 0; transform: translateX(-0.6em); }
    18.4%, 90% { opacity: 1; transform: none; }
    94%, 100% { opacity: 0; transform: none; }
}

@keyframes hf-cb4 {
    0%, 17.6% { background-color: #fff; box-shadow: inset 0 0 0 0.08em #b4b4ba; }
    19%, 94% { background-color: var(--mac-blue); box-shadow: inset 0 0 0 0.08em rgba(180, 180, 186, 0); }
    96%, 100% { background-color: #fff; box-shadow: inset 0 0 0 0.08em #b4b4ba; }
}

.side .r4 {
    animation: hf-r4 10s ease-in-out infinite both;
}

.side .r4 .cb {
    animation: hf-cb4 10s ease-in-out infinite both;
}

@keyframes hf-r5 {
    0%, 19% { opacity: 0; transform: translateX(-0.6em); }
    20.6%, 90% { opacity: 1; transform: none; }
    94%, 100% { opacity: 0; transform: none; }
}

@keyframes hf-cb5 {
    0%, 38% { background-color: #fff; box-shadow: inset 0 0 0 0.08em #b4b4ba; }
    39.4%, 94% { background-color: var(--mac-blue); box-shadow: inset 0 0 0 0.08em rgba(180, 180, 186, 0); }
    96%, 100% { background-color: #fff; box-shadow: inset 0 0 0 0.08em #b4b4ba; }
}

.side .r5 {
    animation: hf-r5 10s ease-in-out infinite both, hf-sel 10s ease-in-out infinite both;
}

.side .r5 .cb {
    animation: hf-cb5 10s ease-in-out infinite both;
}

@keyframes hf-r6 {
    0%, 21.2% { opacity: 0; transform: translateX(-0.6em); }
    22.8%, 90% { opacity: 1; transform: none; }
    94%, 100% { opacity: 0; transform: none; }
}

@keyframes hf-cb6 {
    0%, 22% { background-color: #fff; box-shadow: inset 0 0 0 0.08em #b4b4ba; }
    23.4%, 94% { background-color: var(--mac-blue); box-shadow: inset 0 0 0 0.08em rgba(180, 180, 186, 0); }
    96%, 100% { background-color: #fff; box-shadow: inset 0 0 0 0.08em #b4b4ba; }
}

.side .r6 {
    animation: hf-r6 10s ease-in-out infinite both;
}

.side .r6 .cb {
    animation: hf-cb6 10s ease-in-out infinite both;
}

@keyframes hf-r7 {
    0%, 23.4% { opacity: 0; transform: translateX(-0.6em); }
    25%, 90% { opacity: 1; transform: none; }
    94%, 100% { opacity: 0; transform: none; }
}

@keyframes hf-cb7 {
    0%, 24.2% { background-color: #fff; box-shadow: inset 0 0 0 0.08em #b4b4ba; }
    25.6%, 94% { background-color: var(--mac-blue); box-shadow: inset 0 0 0 0.08em rgba(180, 180, 186, 0); }
    96%, 100% { background-color: #fff; box-shadow: inset 0 0 0 0.08em #b4b4ba; }
}

.side .r7 {
    animation: hf-r7 10s ease-in-out infinite both;
}

.side .r7 .cb {
    animation: hf-cb7 10s ease-in-out infinite both;
}

@keyframes hf-r8 {
    0%, 25.6% { opacity: 0; transform: translateX(-0.6em); }
    27.2%, 90% { opacity: 1; transform: none; }
    94%, 100% { opacity: 0; transform: none; }
}

@keyframes hf-cb8 {
    0%, 26.4% { background-color: #fff; box-shadow: inset 0 0 0 0.08em #b4b4ba; }
    27.8%, 94% { background-color: var(--mac-blue); box-shadow: inset 0 0 0 0.08em rgba(180, 180, 186, 0); }
    96%, 100% { background-color: #fff; box-shadow: inset 0 0 0 0.08em #b4b4ba; }
}

.side .r8 {
    animation: hf-r8 10s ease-in-out infinite both;
}

.side .r8 .cb {
    animation: hf-cb8 10s ease-in-out infinite both;
}

@keyframes hf-sel {
    0%, 19% { background-color: rgba(10, 100, 217, 0); }
    20.6%, 38% { background-color: rgba(10, 100, 217, 0.12); }
    41%, 100% { background-color: rgba(10, 100, 217, 0); }
}

@keyframes hf-badge {
    0%, 30% { opacity: 1; transform: none; box-shadow: 0 0 0 0 rgba(201, 138, 0, 0); }
    32.5% { opacity: 1; transform: scale(1.12); box-shadow: 0 0 0 0.35em rgba(201, 138, 0, 0.18); }
    35%, 37.5% { opacity: 1; transform: none; box-shadow: 0 0 0 0 rgba(201, 138, 0, 0); }
    40%, 94% { opacity: 0; transform: none; }
    96%, 100% { opacity: 1; transform: none; }
}

.side .badge {
    animation: hf-badge 10s ease-in-out infinite both;
}

@keyframes hf-thumb {
    0%, 43% { transform: translateX(0); }
    46%, 94% { transform: translateX(100%); }
    97%, 100% { transform: translateX(0); }
}

.seg .thumb {
    animation: hf-thumb 10s ease-in-out infinite both;
}

@keyframes hf-sub1 {
    0%, 43% { opacity: 1; }
    45%, 94% { opacity: 0; }
    96%, 100% { opacity: 1; }
}

@keyframes hf-sub2 {
    0%, 43% { opacity: 0; }
    45%, 94% { opacity: 1; }
    96%, 100% { opacity: 0; }
}

.app-title .s1 {
    animation: hf-sub1 10s ease-in-out infinite both;
}

.app-title .s2 {
    animation: hf-sub2 10s ease-in-out infinite both;
}

@keyframes hf-st1 {
    0%, 26% { opacity: 1; }
    28%, 96% { opacity: 0; }
    98%, 100% { opacity: 1; }
}

@keyframes hf-st2 {
    0%, 26% { opacity: 0; }
    28%, 37.5% { opacity: 1; }
    39.5%, 100% { opacity: 0; }
}

@keyframes hf-st3 {
    0%, 37.5% { opacity: 0; }
    39.5%, 94% { opacity: 1; }
    96%, 100% { opacity: 0; }
}

.status .s1 {
    animation: hf-st1 10s ease-in-out infinite both;
}

.status .s2 {
    animation: hf-st2 10s ease-in-out infinite both;
}

.status .s3 {
    animation: hf-st3 10s ease-in-out infinite both;
}

@keyframes hf-btn {
    0%, 54% { opacity: 0.4; }
    58%, 94% { opacity: 1; }
    97%, 100% { opacity: 0.4; }
}

.mac-btn {
    animation: hf-btn 10s ease-in-out infinite both;
}

@keyframes hf-ask {
    0%, 28% { opacity: 0; transform: translateY(0.8em) scale(0.97); }
    31%, 38% { opacity: 1; transform: none; }
    41%, 100% { opacity: 0; transform: translateY(-0.4em); }
}

.float.ask {
    animation: hf-ask 10s ease-in-out infinite both;
}

@keyframes hf-press {
    0%, 36% { transform: none; filter: none; }
    37% { transform: scale(0.94); filter: brightness(1.4); }
    38.5%, 100% { transform: none; filter: none; }
}

.float.ask .go {
    animation: hf-press 10s ease-in-out infinite both;
}

@keyframes hf-done {
    0%, 55% { opacity: 0; transform: translateY(0.8em) scale(0.97); }
    59%, 89% { opacity: 1; transform: none; }
    93%, 100% { opacity: 0; transform: translateY(0.4em); }
}

.float.done {
    animation: hf-done 10s ease-in-out infinite both;
}

@media (prefers-reduced-motion: reduce) {
    /* Show the finished, masked state without motion. */
    .app *,
    .app *::before,
    .app *::after,
    .float,
    .float * {
        animation: none !important;
    }
}

