/* The site is set like the pictures of the bot: a white sheet, Manrope, a heavy headline in ink,
   the numbers in wine, notes in grey, and a scene standing on the edge of its band. */
@font-face {
    font-family: "Manrope";
    src: url("/media/manrope.woff2") format("woff2");
    font-weight: 500 800;
    font-display: swap;
}
:root {
    --paper: #ffffff;
    --cream: #f3e7d4;
    --ink: #292128;
    --wine: #503640;
    --muted: #75676a;
    --line: rgba(41, 33, 40, .16);
    --edge: clamp(20px, 5vw, 56px);
    --wide: 1216px;
}
* { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 500 18px/1.55 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}
a { color: var(--wine); text-underline-offset: 4px; }
:focus-visible {
    outline: 3px solid var(--wine);
    outline-offset: 3px;
    border-radius: 4px;
}
h1, h2 {
    margin: 0;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.035em;
    text-wrap: balance;
}
h1 { font-size: clamp(50px, 8vw, 100px); }
section[id] { scroll-margin-top: 68px; }
h2 { font-size: clamp(38px, 5.4vw, 68px); }
.keep { white-space: nowrap; }

/* --- the top line stays on the screen while the page is read: the way to the bot is always one tap away.
   It runs the full width, and its padding keeps the words on the same column as the bands below. */
.top {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: max(10px, env(safe-area-inset-top)) max(var(--edge), calc((100% - var(--wide)) / 2 + var(--edge))) 10px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 1px 0 var(--line);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
}
/* The logo is drawn by scripts/site_media.py; the letters are styled for a page built without the drawing. */
.mark {
    display: flex;
    align-items: center;
    margin-right: auto;
    padding: 3px 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
}
.mark svg { display: block; }
.top nav {
    display: flex;
    gap: 26px;
}
.top nav a {
    color: var(--ink);
    font-size: 16px;
    text-decoration: none;
}
.top nav a {
    padding: 10px 0;
    text-decoration: underline transparent;
    transition: text-decoration-color .2s ease;
}
.top nav a:hover { text-decoration-color: currentColor; }

/* --- buttons */
.button {
    display: inline-block;
    padding: 16px 30px;
    border-radius: 999px;
    background: var(--wine);
    color: var(--cream);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, scale .15s ease;
}
.button.small {
    padding: 13px 20px;
    font-size: 15px;
}
.button.second {
    margin-top: 22px;
    box-shadow: inset 0 0 0 2px var(--wine);
    background: transparent;
    color: var(--wine);
}
.more { font-weight: 700; }
.more::after {
    content: "↓";
    display: inline-block;
    margin-left: 6px;
    transition: translate .2s ease;
}

/* --- a band of the front page: words on one side, a scene on the other */
.band.cream { background: var(--cream); }
.band.wine {
    background: var(--wine);
    color: var(--cream);
}
.band .inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    column-gap: clamp(24px, 5vw, 80px);
    max-width: var(--wide);
    margin: 0 auto;
    padding: 0 var(--edge);
}
.words {
    align-self: center;
    padding: clamp(56px, 8vw, 112px) 0;
}
/* A figure that the artwork cuts at the bottom stands on the lower edge of its band. */
.scene, .wine .cutout {
    display: block;
    align-self: end;
    justify-self: end;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin-top: clamp(28px, 4vw, 56px);
}
.turned .words { order: 2; }
.turned .scene { justify-self: start; }
/* A whole figure is set in the middle of the band instead. */
.loose .scene {
    align-self: center;
    margin: clamp(40px, 6vw, 80px) 0;
}
/* A scene that lies rather than stands takes the wider half of its band. */
@media (min-width: 900px) {
    .band:has(.wide) .inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
    .turned:has(.wide) .inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
    .scene.wide { max-width: 660px; }
    /* On a wide page the logo stands nearly as high as the button beside it. */
    .mark svg { width: auto; height: 40px; }
}
/* The artwork is drawn on white: on a cream band the white takes the colour of the band. */
.cream .scene { mix-blend-mode: multiply; }
/* The cut-out figure is a sticker with a white edge: its lower edge goes under the edge of the band. */
.band.wine { overflow: hidden; }
.wine .cutout {
    justify-self: center;
    max-width: 400px;
    margin-bottom: -14px;
}

.platforms {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(22px, 2.7vw, 32px);
    line-height: 1.35;
}
/* The days added for following the channel: a block of its own under the headline. */
.bonus {
    display: inline-block;
    margin: 20px 0 0;
    padding: 10px 18px;
    border-radius: 14px;
    background: var(--cream);
    font-size: clamp(18px, 2vw, 22px);
}
.bonus b {
    color: var(--wine);
    font-weight: 800;
}
.lead {
    max-width: 30em;
    margin: 24px 0 0;
    font-size: clamp(18px, 1.7vw, 21px);
}
.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin: 34px 0 0;
}
.note {
    max-width: 34em;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 16px;
}
.cream .note { color: #675a5d; }

/* --- two steps */
.steps {
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.steps li {
    position: relative;
    max-width: 30em;
    margin-top: 24px;
    padding-left: 60px;
    counter-increment: step;
}
.steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wine);
    color: var(--cream);
    font-size: 20px;
    font-weight: 800;
    line-height: 40px;
    text-align: center;
}
.steps b {
    display: block;
    margin-bottom: 4px;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    line-height: 40px;
    letter-spacing: -.015em;
}

/* --- rows of numbers: plans and their prices, devices and their apps */
table {
    width: 100%;
    max-width: 520px;
    margin: 34px 0 0;
    border-collapse: collapse;
}
th, td { padding: 0; }
tbody tr { border-top: 1px solid var(--line); }
.prices th, .prices td {
    padding: 13px 0 13px 20px;
    text-align: right;
    white-space: nowrap;
}
.prices thead th {
    padding-bottom: 8px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 500;
}
.prices tbody th {
    padding-left: 0;
    font-size: clamp(20px, 2.3vw, 26px);
    font-weight: 500;
    text-align: left;
    white-space: normal;
}
.prices tbody td {
    color: var(--wine);
    font-size: clamp(20px, 2.3vw, 26px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
/* One plan: a row for each term, and what the term costs counted for 30 days. */
.prices.terms td.per {
    width: 46%;
    color: var(--muted);
    font-size: 16px;
    font-weight: 500;
}
.devices th, .devices td {
    padding: 11px 0;
    font-size: 17px;
    font-weight: 500;
    text-align: left;
}
.devices td {
    padding-left: 20px;
    color: #675a5d;
    text-align: right;
}

/* --- what a payment means */
.facts { margin: 34px 0 0; }
.facts dt {
    margin-top: 24px;
    font-size: clamp(20px, 2.1vw, 24px);
    font-weight: 800;
    letter-spacing: -.015em;
}
.facts dd {
    max-width: 32em;
    margin: 6px 0 0;
}

/* --- questions */
details {
    max-width: 34em;
    border-top: 1px solid var(--line);
}
h2 + details { margin-top: 36px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
    position: relative;
    padding: 17px 44px 17px 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
/* The sign is two strokes: the upright one lies down when the answer opens, and the plus becomes a minus. */
summary::before, summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 6px;
    width: 16px;
    height: 2px;
    margin-top: -1px;
    border-radius: 1px;
    background: var(--wine);
    transition: rotate .25s ease;
}
summary::after { rotate: 90deg; }
details[open] summary::after { rotate: 0deg; }
details p {
    margin: 0;
    padding: 0 44px 20px 0;
}
.support {
    max-width: 34em;
    margin: 28px 0 0;
}

/* --- the last band */
.wine .button {
    background: var(--cream);
    color: var(--wine);
}
.wine :focus-visible { outline-color: var(--cream); }
/* A finger leaves the hover state stuck after a tap, so the hover colours are for a pointer only. */
@media (hover: hover) {
    .button:hover { background: var(--ink); }
    .button.second:hover {
        background: var(--wine);
        color: var(--cream);
    }
    .wine .button:hover { background: var(--paper); }
    .more:hover::after { translate: 0 3px; }
}

/* --- the bottom: who the service is for on the left, the documents and the contacts on the right */
footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 56px;
    align-content: center;
    max-width: var(--wide);
    margin: 0 auto;
    padding: 36px var(--edge) max(36px, env(safe-area-inset-bottom));
    color: var(--muted);
    font-size: 15px;
}
.document footer { border-top: 1px solid var(--line); }
.age {
    display: flex;
    grid-row: 1 / span 4;
    align-items: center;
    align-self: center;
    gap: 18px;
    max-width: 340px;
}
.age .cutout {
    flex: none;
    width: 88px;
    height: auto;
}
footer > p {
    grid-column: 2;
    margin: 0 0 6px;
}
.age p { margin: 0; }

/* --- a document: one column of text */
.document main {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px var(--edge) 72px;
}
.document h1 {
    margin-bottom: 14px;
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.08;
    letter-spacing: -.025em;
}
.document h2 {
    margin: 40px 0 12px;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -.01em;
}
.document main p { margin: 0 0 14px; }
.document ul {
    margin: 0 0 14px;
    padding-left: 22px;
}
.document li { margin: 0 0 6px; }
.date { color: var(--muted); font-size: 15px; }

/* --- motion. The first screen arrives once; the rest of the page comes up as it is scrolled to; an answer
   opens instead of jumping. Nothing here is needed to read the page: a browser that does not know these
   rules, and a person who asked the system for less motion, get every block standing in its place. */
@keyframes rise {
    from { opacity: 0; translate: 0 22px; }
}
@keyframes settle {
    from { box-shadow: 0 1px 0 transparent; }
}
@media (prefers-reduced-motion: no-preference) {
    .hero .words > *, .hero .scene { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
    .hero .words > :nth-child(2) { animation-delay: .07s; }
    .hero .words > :nth-child(3) { animation-delay: .14s; }
    .hero .words > :nth-child(4) { animation-delay: .21s; }
    .hero .scene { animation-duration: .9s; animation-delay: .12s; }
    .button:active { scale: .97; }

    /* The line under the top bar appears once the page has moved. */
    @supports (animation-timeline: scroll()) {
        .top {
            animation: settle 1ms linear both;
            animation-timeline: scroll();
            animation-range: 0 72px;
        }
    }
    /* Each piece of a band comes up while its first 180px enter the screen, at the speed of the scroll. */
    @supports (animation-timeline: view()) {
        .band:not(.hero) .words > *, .band:not(.hero) .scene, .wine .cutout {
            animation: rise 1ms linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 180px;
        }
    }
    /* An answer grows to its own height. */
    @supports (interpolate-size: allow-keywords) {
        :root { interpolate-size: allow-keywords; }
        details::details-content {
            block-size: 0;
            overflow: hidden;
            opacity: 0;
            transition: block-size .3s ease, opacity .3s ease, content-visibility .3s allow-discrete;
        }
        details[open]::details-content {
            block-size: auto;
            opacity: 1;
        }
    }
}
@media (prefers-reduced-motion: reduce) {
    .button, .more::after, summary::before, summary::after, .top nav a { transition: none; }
}

/* --- a narrow screen: the words first, the scene under them */
@media (max-width: 899px) {
    .top nav { display: none; }
    .band .inner { grid-template-columns: minmax(0, 1fr); }
    .words { padding-bottom: 0; }
    /* The headline starts close to the top line, so the heroine shows on the first screen. */
    .hero .words { padding-top: 30px; }
    .hero .scene { margin-top: 22px; }
    .turned .words { order: 0; }
    .scene, .turned .scene, .wine .cutout {
        justify-self: center;
        max-width: min(100%, 440px);
    }
    .wine .cutout { max-width: min(78%, 320px); }
    table { max-width: none; }
    footer { grid-template-columns: minmax(0, 1fr); }
    .age {
        grid-row: auto;
        margin-bottom: 20px;
    }
    footer > p { grid-column: 1; }
    /* Links that stand one under another are given the height of a fingertip. */
    footer > p a {
        display: inline-block;
        padding: 9px 0;
    }
    /* The two documents stand one under the other, and the dot between them is not needed. */
    .papers a { display: block; }
    .papers span { display: none; }
}
@media (max-width: 479px) {
    h1 { font-size: clamp(40px, 14.6vw, 58px); }
    .actions .button { width: 100%; }
    .button.second { width: 100%; }
    .age { max-width: none; }
    /* Three columns on the narrowest phones: the price for 30 days may take two lines instead of pushing the table off the screen. */
    .prices.terms td { padding-left: 12px; }
    .prices.terms td.per { width: auto; font-size: 15px; white-space: normal; }
}
