/* v7 (Tiago's round 5, 13 Nov 2026): more neutral and design-driven. Loaded after app-v3.css and after the website's
   shared ../assets/css/v7-system.css (tokens --v7-off/--v7-ink/--v7-tile/--v7-line/--v7-shadow/--v7-radius, the .v7-grid
   hairlines, the .v7-tiles layer built by ../assets/js/v7-tiles.js, and the filled .v7-nav). This file keeps only what
   the brand area adds on top:
   - background: a plain neutral gradient (no v7 background photo is free yet; the website session will say which);
   - frames for numbers and charts: plain solid off-white tiles, no glass, easy to read; the conversion card is dark;
   - hover: a gentle switch light ↔ dark, the text always contrasting;
   - bold, round-ended, smooth chart lines. */

:root {
  --v7-paper: var(--v7-off);     /* the solid off-white tile (shared token) */
  --v7-r: var(--v7-radius);      /* square frames, as on the site (2px); only the symbol and type stay round */
  --v7-bg-a: #3B3936; --v7-bg-b: #22211F; --v7-bg-c: #141414;
  --v7-swap: 420ms cubic-bezier(.4, 0, .2, 1);
}

/* background: plain gradient instead of the cloth texture */
.cloth { background: radial-gradient(120% 90% at 78% 0%, var(--v7-bg-a) 0%, var(--v7-bg-b) 52%, var(--v7-bg-c) 100%); }
.cloth::after, .grain { display: none; }

/* the filled top menu is the shared .v7-nav; here only the app's own bits */
.nav { -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-links a[aria-current="page"] { background: var(--v7-paper); color: var(--v7-ink); border-radius: var(--v7-r); }
.nav-links a { border-radius: var(--v7-r); }
.menu { background: var(--v7-ink); -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: var(--v7-r); }

/* the background layer: the shared hairline grid over the whole screen, and the shared tile layer (built in app.js,
   sized to the window so its squares sit on the grid's lines); behind every screen after log in */
.v7-bg { --v7-line: rgba(243,243,241,.06); position: fixed; inset: var(--nav) 0 0 0; z-index: -1; pointer-events: none; overflow: hidden; }
.v7-bg > .v7-tiles { position: absolute; left: 0; top: 0; }
[data-screen-on="login"] .v7-bg, [data-screen-on="register"] .v7-bg { display: none; }
body[data-screen-on="plan"] .v7-bg .v7-tiles, body[data-screen-on="pay"] .v7-bg .v7-tiles { display: none; }

/* frames: plain solid tiles, no glass. The card's own colour words (--white…) flip to ink, so everything inside follows */
.screen .card, .screen .plan {
  --white: rgba(22,21,20,.94); --white-2: rgba(22,21,20,.68); --white-3: rgba(22,21,20,.5);
  --line: rgba(22,21,20,.12); --line-2: rgba(22,21,20,.22); --v7-track: rgba(22,21,20,.09);
  --series-a: #161514; --series-b: rgba(22,21,20,.32);
  background: var(--v7-paper); color: var(--white); border: 0; border-radius: var(--v7-r);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--v7-shadow);
  transition: background-color var(--v7-swap), color var(--v7-swap);
}
.screen .card *, .screen .plan * { transition: color var(--v7-swap), background-color var(--v7-swap), border-color var(--v7-swap), fill var(--v7-swap), stroke var(--v7-swap); }
/* the dark tile: the conversion card by default, and any card on hover (a gentle switch, never a jump) */
.screen .card.conv, .screen .card:hover, .screen .plan:hover {
  --white: rgba(241,240,236,.96); --white-2: rgba(241,240,236,.72); --white-3: rgba(241,240,236,.5);
  --line: rgba(241,240,236,.14); --line-2: rgba(241,240,236,.26); --v7-track: rgba(241,240,236,.14);
  --series-a: #F1F0EC; --series-b: rgba(241,240,236,.4);
  background: var(--v7-ink); color: var(--white);
}
.screen .card.conv:hover { --white: rgba(22,21,20,.94); --white-2: rgba(22,21,20,.68); --white-3: rgba(22,21,20,.5);
  --line: rgba(22,21,20,.12); --line-2: rgba(22,21,20,.22); --v7-track: rgba(22,21,20,.09);
  --series-a: #161514; --series-b: rgba(22,21,20,.32); background: var(--v7-paper); }
.screen .card .small b, .screen .card .num, .screen .card .h3 { color: var(--white); }

/* bars, tracks, segments and tags inside tiles: flat, from the same colour words */
.screen .card .split-bar, .screen .card .rank li .bar, .screen .card .meter, .screen .card .dist .col { background: var(--v7-track); }
.screen .card .split-bar i, .screen .card .rank li .bar i, .screen .card .meter > i, .screen .card .dist .col i { background: var(--white); opacity: 1; border-radius: 999px; }
.screen .card .split-bar, .screen .card .split-bar i { border-radius: 999px; height: 8px; }
.screen .card .rank li .bar, .screen .card .rank li .bar i { height: 6px; border-radius: 999px; }
.screen .card .dist .col, .screen .card .dist .col i { border-radius: 6px; }
.screen .card .seg { background: var(--v7-track); border-color: transparent; }
.screen .card .seg button { color: var(--white-2); }
.screen .card .seg button[aria-pressed="true"] { background: var(--white); color: var(--v7-paper); }
.screen .card:hover .seg button[aria-pressed="true"], .screen .card.conv .seg button[aria-pressed="true"] { color: var(--v7-ink); }
.screen .card .src { border-color: var(--line-2); color: var(--white-3); }
.screen .card .src.live { border-style: solid; border-color: #2E8B5E; color: #1F7A4D; }
.screen .card:hover .src.live, .screen .card.conv .src.live { border-color: rgba(111,211,162,.6); color: #9FE3BF; }
.screen .card.conv:hover .src.live { border-color: #2E8B5E; color: #1F7A4D; }
.screen .card .legend { color: var(--white-2); }
.screen .card .legend i { border-radius: 999px; height: 4px; width: 16px; vertical-align: 3px; }

/* charts: bold, round-ended, smooth lines in the tile's own colours */
.chart .grid line { stroke: var(--line); }
.chart .axis text { fill: var(--white-3); }
.chart .hair { stroke: var(--white-3); }
.chart .ln { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .ln.a { stroke: var(--series-a); } .chart .ln.b { stroke: var(--series-b); }
.chart .dot { stroke-width: 3; }
.chart .dot.a { fill: var(--series-a); stroke: var(--v7-paper); } .chart .dot.b { fill: var(--series-b); stroke: var(--v7-paper); }
.card:hover .chart .dot, .card.conv .chart .dot { stroke: var(--v7-ink); }
.chart .end { font: 11px var(--font-mono); } .chart .end.a { fill: var(--white); } .chart .end.b { fill: var(--white-2); }
.kpi svg .ln { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tip { background: var(--v7-ink); border: 0; border-radius: 12px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.tip .row i { border-radius: 999px; }

/* the head over the background keeps light text; its controls are flat too */
.screen-head .seg { background: rgba(241,240,236,.08); border-color: transparent; }
.screen-head .seg button[aria-pressed="true"] { background: var(--v7-paper); color: var(--v7-ink); }
.screen-head .label:first-child { display: inline-flex; align-items: center; gap: 10px; }

/* the right-hand frames of the chapters (preview, install window) sit on the tile layer as solid tiles too */
.win { border: 0; border-radius: var(--v7-r); box-shadow: var(--v7-shadow); }

/* the conversion tile has no gradient now */
.conv { background-image: none; }

/* top products: three lists fit at 1280 (title on one line, compact switch) */
.top-card .card-head { flex-wrap: nowrap; }
.top-card .card-head .h3 { white-space: nowrap; }
.top-card .seg button { padding: 0 10px; }
@media (max-width: 1400px) { .top-card .seg button { padding: 0 8px; font-size: 10.5px; } }

/* the head's controls sit on one dark tile, so the tile layer never fights the words */
[data-screen="analytics"] .screen-head > div:last-child { background: var(--v7-ink); border-radius: var(--v7-r); padding: 10px 12px 10px 16px; box-shadow: var(--v7-shadow); position: relative; z-index: 1; }
/* month bars in a light tile: past months mid-grey, this month solid */
.screen .card .months .col { background: transparent; }
.screen .card .months .col i { background: var(--series-b); }
.screen .card .months div:last-child .col i { background: var(--white); }
.screen .card .months .col i { border-radius: 6px; }

/* plan pick: the chosen plan keeps its blue ring */
.screen .plan[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent), var(--v7-shadow); }

/* square, like the site's v7 frames: segments, tags and the head's control tile */
.screen .card .seg, .screen .card .seg button, .screen-head .seg, .screen-head .seg button { border-radius: var(--v7-r); }

/* form fields inside a tile: plain and square, following the tile's light/dark colours */
.screen .card .input, .screen .card select, .screen .card textarea { background-color: #fff; border: 1px solid var(--line-2); color: var(--white); border-radius: var(--v7-r); }
.screen .card .input::placeholder, .screen .card textarea::placeholder { color: var(--white-3); }
.screen .card:hover .input, .screen .card:hover select, .screen .card:hover textarea { background-color: rgba(241,240,236,.06); }
.screen .card select.input { background-image: linear-gradient(45deg, transparent 50%, var(--white-2) 50%), linear-gradient(135deg, var(--white-2) 50%, transparent 50%); }
