/* Ciao! comparison pages, design 06 (16 Oct 2026)
 *
 * /alternatives, /alternatives/* and /from/*. A board that says
 * data-v2="vs" is built inside <div class="v2 v2-vs">, and build.py loads
 * this file after css/site.css. Everything here sits under .v2-vs, so it
 * cannot reach any other page. Colours and type are the tokens of
 * site.css part 1; each board sets its own --moment colour on its frame.
 *
 * A comparison page has five parts, in this order:
 *   1. .vs-hero     the colour hero: the two apps, "Ciao! vs X", the
 *                   byline, the one-line summary and the facts line,
 *   2. .vs-compare  the table, then its note and its "Sources:" line,
 *   3. .vs-wins     where each one wins,
 *   4. .vs-verdict  which one to get,
 *   5. .vs-close    "Try it for a week. Then decide."
 * The /alternatives hub uses the same parts plus .hub-* (at the end).
 */

.v2-vs, .v2-vs *, .v2-vs *::before, .v2-vs *::after { box-sizing: border-box; }
.v2-vs { color: var(--ink); font: 400 1.0625rem/1.5 var(--text); overflow-x: clip; }
.v2-vs img { display: block; max-width: 100%; height: auto; }
.v2-vs h1, .v2-vs h2, .v2-vs h3 {
    font-family: var(--display); font-weight: 800; letter-spacing: -0.035em;
    line-height: 1.04; margin: 0; text-wrap: balance;
}
.v2-vs p, .v2-vs ul { margin: 0; }
.v2-vs p { text-wrap: pretty; }
.v2-vs a { color: inherit; text-underline-offset: 3px; }
.v2-vs a:hover { color: inherit; }
.v2-vs :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.v2-vs [id] { scroll-margin-top: 96px; }

.v2-vs .wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.v2-vs .site-btn, .v2-vs .site-btn:hover { color: var(--cream); }
.v2-vs .site-btn:focus-visible { border-radius: 999px; }

/* An app's square: its logo, the Ciao! mark on a card, or a first letter
 * for an app with no logo we could use. */
.v2-vs .tile {
    display: grid; place-items: center; flex: none; overflow: hidden;
    background: var(--surface); border-radius: 23%;
    box-shadow: 0 1px 2px rgb(43 36 32 / .08), 0 12px 26px -16px rgb(43 36 32 / .5);
}
.v2-vs img.tile { object-fit: cover; }
.v2-vs .tile.mark img { width: 72%; height: auto; }
.v2-vs .tile.letter { background: #E4DFEC; color: #565A80; font-family: var(--display); font-weight: 800; line-height: 1; }
/* build.py moves the letter out of the markup, so headings don't read it */
.v2-vs .tile.letter[data-letter]::before { content: attr(data-letter); }
.v2-vs .tile.lg { width: clamp(64px, 8vw, 120px); height: clamp(64px, 8vw, 120px); }
.v2-vs .tile.lg.letter { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem); }
.v2-vs .tile.sm { width: 40px; height: 40px; border-radius: 11px; }
.v2-vs .tile.sm.letter { font-size: 1.25rem; }
.v2-vs .tile.xs { width: 36px; height: 36px; border-radius: 10px; }
.v2-vs .tile.xs.letter { font-size: 1.1rem; }

/* ------------------------------------------------------------- 1. hero */
.v2-vs .vs-hero {
    position: relative; isolation: isolate; overflow: hidden;
    margin-top: -72px; padding: 108px 0 clamp(36px, 6vw, 80px);
    background: var(--moment);
    border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.v2-vs .vs-hero::before,
.v2-vs .vs-hero::after {
    content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgb(255 255 255 / .42), transparent);
}
.v2-vs .vs-hero::before { width: min(90vw, 900px); aspect-ratio: 1; right: -18%; top: -40%; }
.v2-vs .vs-hero::after { width: min(70vw, 560px); aspect-ratio: 1; left: -18%; bottom: -55%; opacity: .7; }

.v2-vs .hero-grid { display: grid; gap: 0; }
.v2-vs .crumbs { font-weight: 700; font-size: .95rem; margin-bottom: 20px; }
.v2-vs .crumbs a { text-decoration: underline; text-decoration-thickness: 1.5px; }
.v2-vs .icons { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 18px); margin-bottom: 22px; }
.v2-vs .vs-word { font: 800 clamp(1.3rem, 1rem + 1vw, 2.1rem)/1 var(--display); letter-spacing: -0.02em; }
.v2-vs .vs-hero h1 { font-size: clamp(2.4rem, 1.3rem + 4vw, 4.9rem); line-height: .96; max-width: 16ch; }
.v2-vs .byline { margin-top: 12px; font-weight: 600; font-size: 1.05rem; }
/* The summary's 20px is written on the board itself: build.py reads the
 * first paragraph that says so as the page's search description. */
.v2-vs .summary { margin-top: clamp(18px, 2.4vw, 28px); max-width: 46ch; }
.v2-vs .summary p { line-height: 1.45; font-weight: 500; }
.v2-vs .facts { margin-top: 12px; font-size: 1rem; max-width: 66ch; }

@media (min-width: 960px) {
    .v2-vs .vs-hero { padding-top: 120px; }
    .v2-vs .hero-grid {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "crumbs icons" "name icons" "summary icons" "facts icons";
        column-gap: clamp(32px, 5vw, 96px); align-items: start;
    }
    .v2-vs .crumbs { grid-area: crumbs; }
    .v2-vs .name { grid-area: name; }
    .v2-vs .summary { grid-area: summary; }
    .v2-vs .facts { grid-area: facts; }
    .v2-vs .icons {
        grid-area: icons; align-self: center; margin: 0;
        padding: clamp(22px, 2.4vw, 36px); border-radius: var(--r-xl);
        background: rgb(255 255 255 / .28); border: 1px solid rgb(255 255 255 / .6);
        box-shadow: inset 0 1px 0 rgb(255 255 255 / .8), var(--shadow-float);
    }
}

/* ----------------------------------------------------------- 2. table */
.v2-vs .vs-compare { padding-top: clamp(40px, 6vw, 88px); }
.v2-vs .table-card {
    background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
    box-shadow: 0 24px 50px -36px rgb(43 36 32 / .55); overflow: hidden;
}
.v2-vs .cmp { width: 100%; border-collapse: collapse; table-layout: fixed; }
.v2-vs .cmp th,
.v2-vs .cmp td {
    padding: 20px 24px; text-align: left; vertical-align: top;
    border-bottom: 1px solid var(--hairline);
    font-size: 1.0625rem; line-height: 1.45; overflow-wrap: break-word;
}
.v2-vs .cmp tbody tr:last-child > * { border-bottom: 0; }
.v2-vs .cmp thead th { vertical-align: middle; padding-block: 16px; }
.v2-vs .cmp .corner { width: 24%; }
.v2-vs .cmp tbody th { font-weight: 700; }
.v2-vs .cmp .ciao { background: #FDF3E2; background: color-mix(in srgb, var(--moment) 16%, var(--surface)); }
.v2-vs .cmp td strong { font-weight: 800; }
.v2-vs .cmp .app { display: flex; align-items: center; gap: 12px; }
.v2-vs .cmp .nm { font: 800 clamp(1.15rem, 1rem + .5vw, 1.45rem)/1.1 var(--display); letter-spacing: -0.02em; }

/* On a phone the rows stack: the row's name across the top, then Ciao!
 * and the other app side by side. The two names stay pinned under the
 * menu while you scroll the table, so you always know which side is which. */
@media (max-width: 699px) {
    .v2-vs .vs-compare .scroll { overflow: visible; }
    .v2-vs .table-card { overflow: visible; }
    .v2-vs .cmp, .v2-vs .cmp thead, .v2-vs .cmp tbody { display: block; }
    .v2-vs .cmp tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .v2-vs .cmp th, .v2-vs .cmp td { display: block; border-bottom: 0; font-size: 1rem; }
    .v2-vs .cmp thead {
        position: sticky; top: 72px; z-index: 5;
        background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0;
        box-shadow: 0 1px 0 var(--hairline), 0 10px 18px -16px rgb(43 36 32 / .5);
    }
    .v2-vs .cmp .corner { display: none; }
    .v2-vs .cmp thead th { padding: 12px 14px; }
    .v2-vs .cmp thead th.ciao { border-top-left-radius: calc(var(--r-lg) - 1px); }
    .v2-vs .cmp thead th.them { border-top-right-radius: calc(var(--r-lg) - 1px); }
    .v2-vs .cmp .app { gap: 8px; }
    .v2-vs .cmp .tile.sm { width: 30px; height: 30px; border-radius: 8px; }
    .v2-vs .cmp .tile.sm.letter { font-size: 1rem; }
    .v2-vs .cmp .nm { font-size: 1.05rem; }
    .v2-vs .cmp .app { min-width: 0; }
    .v2-vs .cmp .nm { min-width: 0; overflow-wrap: anywhere; }
    .v2-vs .cmp tbody tr { border-top: 1px solid var(--hairline); }
    .v2-vs .cmp tbody th { grid-column: 1 / -1; padding: 14px 14px 8px; font-size: .95rem; }
    .v2-vs .cmp tbody td { padding: 10px 14px 14px; }
    .v2-vs .cmp tbody tr:last-child td.ciao { border-bottom-left-radius: calc(var(--r-lg) - 1px); }
}

.v2-vs .note,
.v2-vs .sources { margin-top: 16px; font-size: .95rem; line-height: 1.5; color: var(--muted); max-width: 92ch; }
.v2-vs .sources { margin-top: 8px; }
.v2-vs .note a,
.v2-vs .sources a { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* ------------------------------------------------------- 3. who wins */
.v2-vs .vs-wins { padding-top: clamp(40px, 6vw, 88px); }
.v2-vs .wins { display: grid; gap: clamp(14px, 2vw, 24px); }
.v2-vs .win {
    border-radius: var(--r-xl); padding: clamp(24px, 4vw, 52px);
    background: var(--surface); border: 1px solid var(--hairline);
}
.v2-vs .win.ciao {
    background: #FDF3E2; background: color-mix(in srgb, var(--moment) 30%, var(--surface));
    border-color: transparent;
}
.v2-vs .win h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1; }
.v2-vs .win ul { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 14px; }
.v2-vs .win li { position: relative; padding-left: 24px; font-size: clamp(1.05rem, 1rem + .2vw, 1.15rem); line-height: 1.5; }
.v2-vs .win .dot { position: absolute; left: 2px; top: 0; font-weight: 800; }
@media (min-width: 860px) { .v2-vs .wins { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --------------------------------------------------------- 4. verdict */
.v2-vs .vs-verdict { padding-top: clamp(40px, 6vw, 88px); }
.v2-vs .verdict {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--ink); color: var(--cream);
    border-radius: var(--r-xl); padding: clamp(28px, 5vw, 80px);
}
.v2-vs .verdict::after,
.v2-vs .diff::after {
    content: ""; position: absolute; z-index: -1; width: min(70vw, 620px); aspect-ratio: 1;
    right: -14%; bottom: -60%; border-radius: 50%; opacity: .35;
    background: radial-gradient(closest-side, var(--moment), transparent);
}
.v2-vs .verdict h2 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4.2rem); line-height: .98; max-width: 16ch; }
.v2-vs .verdict p { margin-top: clamp(16px, 2vw, 24px); font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); line-height: 1.5; max-width: 60ch; color: #EFE6D8; }

/* ----------------------------------------------------------- 5. close */
.v2-vs .vs-close { padding-top: clamp(40px, 6vw, 88px); }
.v2-vs .close {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--moment); border-radius: var(--r-xl);
    padding: clamp(40px, 7vw, 104px) clamp(24px, 5vw, 80px);
    text-align: center; display: grid; justify-items: center; gap: clamp(16px, 2vw, 24px);
}
.v2-vs .close::before {
    content: ""; position: absolute; z-index: -1; width: min(110vw, 1000px); aspect-ratio: 1;
    left: 50%; top: -30%; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgb(255 255 255 / .4), transparent);
}
.v2-vs .close .faces { display: flex; align-items: flex-end; gap: 6px; }
.v2-vs .close .faces img { width: clamp(84px, 10vw, 132px); height: auto; }
.v2-vs .close h2 { font-size: clamp(2.5rem, 1.2rem + 5vw, 5.8rem); line-height: .92; max-width: 12ch; }
.v2-vs .close .site-btn { min-height: 56px; padding: 0 26px; font-size: 1.05rem; }

@media (prefers-reduced-motion: no-preference) {
    .v2-vs .breathe { animation: vs-breathe 4.2s ease-in-out infinite; transform-origin: 50% 90%; }
    .v2-vs .breathe + .breathe { animation-delay: -1.6s; }
}
@keyframes vs-breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.025, .985); }
}


/* ------------------------------------------------ the /alternatives hub */
.v2-vs .hub-hero-grid { display: grid; gap: 18px; align-items: center; }
.v2-vs .hub-hero h1 { font-size: clamp(2.4rem, 1.3rem + 4vw, 4.9rem); line-height: .96; max-width: 20ch; }
.v2-vs .hub-lede { margin-top: clamp(18px, 2.4vw, 28px); font-size: clamp(1.125rem, 1rem + .45vw, 1.35rem); line-height: 1.45; font-weight: 500; max-width: 46ch; }
.v2-vs .hub-face { order: -1; width: clamp(88px, 14vw, 220px); height: auto; }
@media (min-width: 900px) {
    .v2-vs .hub-hero-grid { grid-template-columns: minmax(0, 1fr) auto; }
    .v2-vs .hub-face { order: 0; margin-right: clamp(0px, 4vw, 72px); }
}

/* the directory: one card per app, a row of four on a wide screen */
.v2-vs .hub-dir { --dir-cols: minmax(0, 300px) minmax(0, 1fr) 170px 172px; padding-top: clamp(40px, 6vw, 88px); }
.v2-vs .dir-cols { display: none; }
.v2-vs .dir-list { display: grid; gap: 10px; }
.v2-vs .dir-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "app app" "what what" "price go";
    gap: 10px 16px; align-items: center;
    padding: 18px 20px; border-radius: 22px;
    background: var(--surface); border: 1px solid var(--hairline);
}
.v2-vs .dir-row.here {
    background: #FDF3E2; background: color-mix(in srgb, var(--moment) 30%, var(--surface));
    border-color: transparent;
}
.v2-vs .dir-app { grid-area: app; display: flex; align-items: center; gap: 14px; min-width: 0; }
.v2-vs .dir-name { font: 800 1.3rem/1.1 var(--display); letter-spacing: -0.02em; }
.v2-vs .dir-meta { margin-top: 3px; font-size: .9rem; color: var(--muted); }
.v2-vs .dir-row.here .dir-meta { color: var(--ink); }
.v2-vs .dir-what { grid-area: what; line-height: 1.45; }
.v2-vs .dir-price { grid-area: price; font-weight: 700; font-size: .95rem; }
.v2-vs .dir-go {
    grid-area: go; justify-self: end; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    border-radius: 999px; border: 1.5px solid var(--ink); text-decoration: none;
    font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.v2-vs a.dir-go:hover { background: var(--ink); color: var(--cream); }
.v2-vs .dir-go.here { border-color: transparent; padding-inline: 0; }
.v2-vs .tile.sq { width: 46px; height: 46px; border-radius: 12px; }
.v2-vs .tile.sq.letter { font-size: 1.35rem; }
.v2-vs .tile.blank { background: var(--sunken); box-shadow: none; }
@media (min-width: 900px) {
    .v2-vs .dir-cols {
        display: grid; grid-template-columns: var(--dir-cols); gap: 22px; padding: 0 26px 12px;
        font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
    }
    .v2-vs .dir-row { grid-template-columns: var(--dir-cols); grid-template-areas: "app what price go"; gap: 22px; padding: 18px 26px; }
}

/* coming from an app that went quiet */
.v2-vs .hub-quiet { padding-top: clamp(40px, 6vw, 88px); }
.v2-vs .quiet { border-radius: var(--r-xl); padding: clamp(28px, 5vw, 72px); background: var(--sun); }
.v2-vs .quiet h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); line-height: 1; max-width: 18ch; }
.v2-vs .quiet p { margin-top: 16px; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); max-width: 56ch; }
.v2-vs .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(20px, 3vw, 32px); }
.v2-vs .chips a {
    display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px;
    background: var(--surface); text-decoration: none; font-weight: 700;
    box-shadow: 0 10px 20px -16px rgb(43 36 32 / .6);
}
.v2-vs .chips a:hover { background: var(--ink); color: var(--cream); }

/* three differences, on ink like the verdict of a comparison */
.v2-vs .hub-diff { padding-top: clamp(40px, 6vw, 88px); }
.v2-vs .diff {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--ink); color: var(--cream);
    border-radius: var(--r-xl); padding: clamp(28px, 5vw, 80px);
}
.v2-vs .diff h2 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4.2rem); line-height: .98; max-width: 16ch; }
.v2-vs .diff-sub { margin-top: 16px; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); max-width: 56ch; color: #EFE6D8; }
.v2-vs .diff-tiles { display: grid; gap: 12px; margin-top: clamp(24px, 4vw, 44px); }
.v2-vs .diff-tile {
    border-radius: var(--r-lg); padding: 22px 24px;
    background: linear-gradient(160deg, rgb(255 255 255 / .13), rgb(255 255 255 / .05));
    border: 1px solid rgb(255 255 255 / .16); box-shadow: inset 0 1px 0 rgb(255 255 255 / .2);
}
.v2-vs .diff-title { font: 800 clamp(1.4rem, 1.2rem + .8vw, 1.9rem)/1.05 var(--display); letter-spacing: -0.025em; }
.v2-vs .diff-tile p + p { margin-top: 8px; color: #E8DFD0; }
@media (min-width: 860px) { .v2-vs .diff-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* every other app */
.v2-vs .hub-all { padding-top: clamp(40px, 6vw, 88px); }
.v2-vs .hub-all h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); line-height: 1; }
.v2-vs .hub-sub { margin-top: 14px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); max-width: 60ch; }
.v2-vs .group { margin-top: clamp(28px, 4vw, 44px); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.v2-vs .link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; margin-top: 6px; }
.v2-vs .link-grid a {
    display: flex; align-items: center; min-height: 48px; padding: 8px 0;
    border-bottom: 1px solid var(--hairline); font-weight: 600; text-decoration: none;
}
.v2-vs .link-grid a:hover { text-decoration: underline; }
@media (min-width: 700px) { .v2-vs .link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .v2-vs .link-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; } }

/* Quick picks on /alternatives, above the directory (1 Nov 2026, brief 06) */
.v2-vs .hub-picks { padding-top: clamp(32px, 5vw, 64px); }
.v2-vs .hub-picks h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.v2-vs .hub-picks ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px 32px; }
@media (min-width: 800px) { .v2-vs .hub-picks ul { grid-template-columns: 1fr 1fr; } }
.v2-vs .hub-picks a { font-weight: 700; text-underline-offset: 3px; }

/* ------------------------------------------------------ 5b. questions */
/* 11 Nov 2026: the questions people search, as plain question and answer. */
.v2-vs .vs-faq { padding-top: clamp(40px, 6vw, 88px); }
.v2-vs .faq-card {
    background: #FFFDF8; border: 1px solid rgba(43, 36, 32, .08);
    border-radius: var(--r-xl); padding: clamp(24px, 4vw, 56px);
}
.v2-vs .faq-card h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1; }
.v2-vs .faq-card h3 { margin-top: clamp(22px, 2.4vw, 32px); font-size: clamp(1.15rem, 1.05rem + .3vw, 1.35rem); line-height: 1.25; }
.v2-vs .faq-card p { margin-top: 8px; font-size: clamp(1.05rem, 1rem + .2vw, 1.15rem); line-height: 1.55; max-width: 64ch; }
.v2-vs .faq-card a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
