/* «Що вміє Dibsly» on the shared style (2026-10-29): v2/features.css's feature cards, live examples and roadmap in the
   landing's dark colours, with the phone, its crossfading screens and their tap mark, the browser and the dialogue from
   v2/v2.css. The page itself (nav, list, footer) is v3/pages.css. */
:root {
    --page: var(--bg);
    --raised: #241E1A;
    --ink-2: var(--soft);
    --peach: #3A261B;
    --bubble-dibsly: #3A261B;
    --orange-text: var(--orange-soft);
    --font: var(--text);
    --r-card: 24px;
    --r-ctl: 12px;
    --shadow: 0 22px 48px rgba(0, 0, 0, 0.40);
}
.fhero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 32px; align-items: end; }
.fhero .mascot { width: 150px; }
.fsection { padding: 48px 0 0; scroll-margin-top: 96px; }
.fsection:first-child { padding-top: 16px; }
.feature { border: 1px solid var(--line); }
.feature h3, .pcard h3, .rcol h3, .rcol h4, .missing-form h3 { font-family: var(--display); }

/* The phone (an iPhone drawn in CSS, every size a share of its width) and its crossfading screens */
.phone { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1 / 2.11; container-type: inline-size;
    border-radius: 16% / 7.58%; background: #050505;
    box-shadow: inset 0 0 0 1.5px #8d8d93, inset 0 0 0 3px #3a3a3e, inset 0 0 0 4px #0b0b0c, 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow); }
.phone::before, .phone::after { content: ""; position: absolute; width: 1.1cqw; border-radius: 1cqw;
    background: linear-gradient(90deg, #4a4a4e, #8a8a90 50%, #4a4a4e); }
.phone::before { right: -0.9cqw; top: 26%; height: 11%; }
.phone::after { left: -0.9cqw; top: 17%; height: 22%;
    -webkit-mask: linear-gradient(#000 0 15%, transparent 15% 30%, #000 30% 62%, transparent 62% 69%, #000 69% 100%);
    mask: linear-gradient(#000 0 15%, transparent 15% 30%, #000 30% 62%, transparent 62% 69%, #000 69% 100%); }
.slides { position: absolute; top: 2.7cqw; left: 2.7cqw; width: calc(100% - 5.4cqw); height: calc(100% - 5.4cqw);
    border-radius: 13.4cqw; overflow: hidden; background: var(--page); }
.slides::after { content: ""; position: absolute; z-index: 3; top: 2.4cqw; left: 50%; width: 27.5cqw; height: 8cqw;
    transform: translateX(-50%); border-radius: 999px; background: #000; pointer-events: none; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0;
    transition: opacity 0.45s ease; }
.slides img.on { opacity: 1; }
.tap { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; pointer-events: none;
    background: rgba(28, 25, 23, 0.16); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); opacity: 0; }
.tap.go { animation: tap 0.55s var(--ease); }
@keyframes tap { 0% { opacity: 0; transform: scale(0.5); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: var(--raised); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.browser-bar p { margin: 0 0 0 12px; color: var(--muted); font-size: 13px; }
.mascot { aspect-ratio: 404 / 386; position: relative; }

.fvisual.wide .fcrop { max-width: 440px; margin: 0 auto; }
.fsection > h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 18px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 36px; align-items: center; background: var(--card);
    border-radius: var(--r-card); padding: 28px; margin-top: 14px; scroll-margin-top: 80px; }
.feature.widevis { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.feature.textonly { grid-template-columns: 1fr; }
.kind { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--raised); color: var(--ink-2);
    font: 600 12.5px/1.7 var(--font); }
.kind.pro { background: var(--peach); color: var(--peach-ink); }
.feature h3 { margin-top: 10px; font-size: 23px; }
.feature .desc { color: var(--ink-2); margin-top: 8px; max-width: 62ch; }
.try { margin-top: 14px; color: var(--muted); font-size: 15px; }
.try b { color: var(--ink); font-weight: 600; }
.fguide { margin-top: 8px; font-size: 15px; font-weight: 600; }
.fvisual { justify-self: center; width: 100%; }
.fvisual .phone { max-width: 230px; margin: 0 auto; }
.fcrop { border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(110, 52, 16, 0.1), 0 12px 28px rgba(110, 52, 16, 0.08);
}
.fcrop img { width: 100%; height: auto; }
.fvisual .browser { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.convo { display: grid; gap: 8px; }
.convo p { margin: 0; max-width: 92%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; }
.convo .me { justify-self: end; background: var(--raised); border-bottom-right-radius: 6px; }
.convo .ai { background: var(--bubble-dibsly); border-bottom-left-radius: 6px; }
.halfcard { background: var(--ink); color: var(--page); border-radius: 18px; padding: 20px; }
.halfcard .big { font: 750 34px/1 var(--display); margin-bottom: 14px; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pcard { background: var(--card); border-radius: var(--r-card); padding: 24px; }
.pcard h3 { font-size: 19px; }
.pcard p { color: var(--ink-2); margin-top: 8px; font-size: 15.5px; }
.pmore { margin-top: 14px; font-weight: 600; }

/* The ideas behind the features (2026-10-21): the owner's rule first, then a card per idea with the app's own screen
   on the right or an example — live ones (ideas.js) answer a tap. «Що далі» last: the roadmap with «Хочу це» and the
   form «Чого тобі не вистачає?». */
.fsection > .intro { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 64ch; margin-bottom: 6px; }
.feature.exvis { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.feature.idea .ftext > .iex { margin-top: 18px; max-width: 420px; }
.iex { display: grid; gap: 8px; font-size: 14.5px; }
.iex span { color: var(--ink-2); }
.iex b { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.iex i { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pockets .pocket { display: grid; grid-template-columns: 1fr auto; row-gap: 2px; padding: 12px 14px; border-radius: 14px;
    background: var(--raised); }
.pockets .pocket i { grid-column: 1 / -1; }
.pockets .pocket.main { background: var(--peach); }
.pockets .pocket.main b { font-size: 19px; }
.pockets .pocket.main span, .pockets .pocket.main i { color: var(--peach-ink); }
.tots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tots.three { grid-template-columns: repeat(3, 1fr); }
.tot { background: var(--peach); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; }
.tot span { color: var(--peach-ink); font-size: 12.5px; font-weight: 600; }
.tot b { font-size: 18px; color: var(--ink); }
.tot b.bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 0% { transform: scale(1.08); color: var(--orange-text); } 100% { transform: none; } }
.live .hint { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.ledger { display: grid; background: var(--raised); border-radius: 14px; padding: 4px 14px; }
.ledger .row { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
    padding: 10px 0; cursor: pointer; border-radius: 8px; }
.ledger .row + .row { border-top: 1px solid var(--line); }
.ledger .row:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.ledger .row i { justify-self: end; white-space: nowrap; padding: 1px 8px; border-radius: 999px; background: var(--card); }
.ledger .row span::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px;
    border-radius: 50%; background: var(--card); color: var(--muted); font-weight: 700; font-size: 13px; }
.ledger .row.on span::before { content: "✓"; background: var(--orange); color: #fff; }
.ledger .row.in.on b, .ledger .row.in.on i { color: var(--green); }
.ledger .row.same b { color: var(--muted); }
.ledger .row:not(.on) b, .ledger .row:not(.on) i { opacity: 0.6; }
.switch-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px;
    border-radius: 14px; background: var(--raised); cursor: pointer; }
.switch-row > span:first-child { display: grid; }
.switch-row em { grid-column: 1 / -1; font-style: normal; font-size: 13px; color: var(--muted); }
.toggle { position: relative; width: 51px; height: 31px; }
.toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background 0.2s; pointer-events: none; }
.toggle span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: transform 0.25s var(--ease); }
.toggle input:checked + span { background: var(--green); }
.toggle input:checked + span::after { transform: translateX(20px); }
.toggle input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 14px/1 var(--font); padding: 10px 14px; border-radius: 999px; border: 0; background: var(--raised); color: var(--ink);
    cursor: pointer; }
.chip:hover { background: var(--peach); color: var(--peach-ink); }
.chip[data-act="reset"] { background: none; color: var(--muted); }
.sums { gap: 0; background: var(--raised); border-radius: 14px; padding: 4px 14px; }
.sums .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; }
.sums .row + .row { border-top: 1px solid var(--line); }
.sums .row.total { border-top: 2px solid var(--ink); }
.sums .row.total span, .sums .row.total b { color: var(--ink); font-weight: 700; font-size: 16px; }
.iex.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; gap: 10px; }
.iex.steps li { counter-increment: step; position: relative; padding: 12px 14px 12px 46px; border-radius: 14px; background: var(--raised);
    color: var(--ink); font-weight: 600; }
.iex.steps li::before { content: counter(step); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px;
    display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; font-size: 12.5px; }
.iex.steps li:last-child { background: var(--peach); color: var(--peach-ink); }
/* As many columns as the roadmap has groups (tools/features.py's ROADMAP), side by side; two, then one, on smaller screens. */
.rgrid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.rcol { background: var(--card); border-radius: var(--r-card); padding: 20px; }
.rcol h3 { font-size: 15px; color: var(--muted); font-weight: 650; }
.rcol ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 14px; }
.rcol li { display: grid; gap: 8px; }
.rcol h4 { font-size: 16.5px; line-height: 1.3; }
.rcol li p { margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.want { justify-self: start; display: inline-flex; gap: 6px; align-items: center; font: 600 13.5px/1 var(--font); padding: 8px 12px;
    border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink-2); cursor: pointer; }
.want b:empty { display: none; }
.want b { font-weight: 700; color: var(--ink); }
.want:hover { border-color: var(--orange); }
.want.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.want.on b { color: #fff; }
.missing-form { margin-top: 14px; background: var(--peach); border-radius: var(--r-card); padding: 28px; display: grid; gap: 12px; }
.missing-form h3 { font-size: 23px; color: var(--peach-ink); }
.missing-form > p { color: var(--peach-ink); }
.missing-form textarea, .missing-form input { font: 400 16px/1.45 var(--font); color: var(--ink); background: var(--card);
    border: 1px solid transparent; border-radius: var(--r-ctl); padding: 12px 14px; width: 100%; box-sizing: border-box; }
.missing-form textarea { resize: vertical; min-height: 110px; }
.missing-form textarea:focus, .missing-form input:focus { outline: none; border-color: var(--orange); }
.form-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.missing-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-status:empty { display: none; }
.form-status { font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.down { color: #C2410C; }
.form-note { font-size: 13px; color: var(--peach-ink); opacity: 0.8; }
.form-note a { color: inherit; text-decoration: underline; }


/* A few sums in a row wrap to the next line on a narrow screen instead of pushing the page sideways */
.tots, .tots.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 96px), 1fr)); }
.tot { min-width: 0; }
.fend { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 48px; padding: 28px; border-radius: var(--r-card);
    background: linear-gradient(160deg, rgba(58, 38, 27, 0.95), rgba(29, 24, 21, 0.95) 70%); border: 1px solid rgba(255, 138, 61, 0.45); }
.fend p { margin: 0; color: var(--peach-ink); }

@media (min-width: 901px) and (max-width: 1180px) {
    .rgrid { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .feature, .feature.widevis, .feature.exvis { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px; }
    .fvisual .phone { max-width: 220px; }
    .pgrid { grid-template-columns: 1fr; }
    .feature.idea .ftext > .iex { max-width: none; }
    .rgrid { grid-auto-flow: row; grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .missing-form { padding: 22px; }
    .fhero .wrap { grid-template-columns: minmax(0, 1fr) 96px; }
    .fhero .mascot { width: 96px; }
}
@media (max-width: 640px) {
    .feature, .feature.widevis, .feature.exvis { padding: 18px; }
    .fhero .wrap { grid-template-columns: minmax(0, 1fr); }
    .fhero .mascot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .slides img, .toggle span, .toggle span::after { transition: none; }
    .tap.go, .tot b.bump { animation: none; }
}
