/* v3 (10 Nov 2026): the site's language. Tiago, on the How it works screenshot: "this should resemble the same language
   in the page". Loaded after app.css. Same scale as the site (site.css v6): titles Opposit 400 clamp(30px, 3.3vw, 54px),
   lead 14-16px, labels 11-13px, step rows with hairlines, symbol + wordmark in the bar with the links on the right,
   white for "on", and blue only for each screen's main action. */
body { font-size: 14px; }
:root { --nav: 64px; --series-a: rgba(255,255,255,.92); --series-b: rgba(255,255,255,.3); }
.label { font-size: clamp(11px, .65vw, 13px); letter-spacing: .06em; }
.title { font-weight: 400; font-size: clamp(30px, 3.3vw, 54px); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.lead { color: var(--white-2); font-size: clamp(14px, calc(7px + .55vw), 16px); line-height: 1.55; max-width: 46ch; }
.h3 { font-weight: 400; font-size: clamp(16px, 1.2vw, 20px); }
.small { font-size: 12px; }

/* the cloth: soft, out-of-focus folds like the site's blurred backgrounds, under the same dark scrim */
.cloth {   /* the site's twill (site.css .ch-bg.cloth), with softer folds: calm behind numbers */
  background:
    radial-gradient(60% 120% at 22% -10%, rgba(255,255,255,.07), transparent 60%),
    linear-gradient(108deg, transparent 10%, rgba(255,255,255,.06) 22%, rgba(0,0,0,.28) 32%, transparent 40%, rgba(255,255,255,.05) 54%, rgba(0,0,0,.3) 64%, transparent 72%, rgba(255,255,255,.05) 84%, transparent 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.35) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, #262422 0%, #181716 55%, #0d0d0c 100%);
}
.cloth::after { background: radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(0,0,0,.5) 100%); }

/* the bar: like the site's (symbol + wordmark left, links right, a hairline under it) */
.nav { height: var(--nav); gap: 10px; background: linear-gradient(180deg, rgba(8,8,8,.72), rgba(8,8,8,.38)); border-bottom: 1px solid var(--line); }
.nav .brand { margin-right: auto; }
.nav .brand .sym { width: 30px; }
.nav .brand .wm { width: 82px; height: auto; filter: invert(1); opacity: .94; }
.nav .brand span { display: none; }
.nav-links { margin: 0; gap: 4px; }
.nav-links a { font-size: 12px; min-height: 44px; padding: 0 14px; }
.nav .divider { width: 1px; height: 28px; background: var(--line-2); margin: 0 10px; }
.nav .right { margin-left: 0; gap: 10px; }
.who > button { min-height: 40px; border-color: rgba(255,255,255,.28); background: none; font-size: 11px; letter-spacing: .06em; color: var(--white-2); padding: 0 6px 0 14px; }
.avatar { background: rgba(255,255,255,.9); }
.chip { font-size: 11px; height: 26px; background: none; border-color: rgba(255,255,255,.22); }
.chip.live::before { background: var(--white); box-shadow: 0 0 0 3px rgba(255,255,255,.14); }

/* white means on; blue stays for the main action only */
.switch[aria-checked="true"] { background: rgba(255,255,255,.92); }
.switch[aria-checked="true"]::after { background: #141210; }
.check input { accent-color: #f3f3f1; }
.meter.accent > i { background: var(--white); }
.btn { font-size: 12px; min-height: 40px; }
.btn.sm { min-height: 34px; font-size: 11.5px; }
.tag.sample { border-color: rgba(255,255,255,.34); color: var(--white-2); }

/* headings: label, title, lead (the site's chapter head) */
.screen { padding: clamp(18px, 3.4vh, 40px) var(--gutter) clamp(14px, 2.6vh, 30px); gap: clamp(12px, 2.2vh, 26px); }
.screen-head { align-items: flex-end; }
.head { display: grid; gap: clamp(6px, 1vh, 12px); align-content: start; }

/* a chapter: words and rows on the left, one glass frame on the right */
.screen.chapter { grid-template-rows: minmax(0, 1fr); }
.split { display: grid; grid-template-columns: minmax(300px, 36%) minmax(0, 1fr); column-gap: clamp(28px, 4.4vw, 84px); min-height: 0; }
.split > .side { display: grid; align-content: center; gap: clamp(14px, 2.4vh, 26px); min-height: 0; }
.split > .stage { display: grid; min-height: 0; }
.rows { display: grid; align-content: start; min-height: 0; }
.rows > .r { display: grid; grid-template-columns: 3ch minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 46px; padding: clamp(5px, 1vh, 10px) 0; border-top: 1px solid var(--line); font-size: 12.5px; letter-spacing: .03em; color: var(--white); }
.rows > .r:last-child { border-bottom: 1px solid var(--line); }
.rows > .r { text-align: left; }
.rows > .r > .n { font-size: 12px; color: var(--white-3); }
.rows > .r .sub { display: block; margin-top: 2px; font-size: 11.5px; color: var(--white-2); letter-spacing: .02em; }
.rows > .r.wrap { grid-template-columns: 3ch minmax(0, 1fr) auto; }
.rows > .r.wrap > .more { grid-column: 2 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rows.steps > button.r { width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; cursor: pointer; color: var(--white-2); position: relative; font: inherit; font-size: 12.5px; }
.rows.steps > button.r:last-child { border-bottom: 1px solid var(--line); }
.rows.steps > button.r[aria-pressed="true"] { color: var(--white); }
.rows.steps > button.r[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--white); }
.note { font-size: clamp(11px, .65vw, 12.5px); letter-spacing: .04em; color: var(--white-2); max-width: 60ch; }

/* the glass browser frame (the site's "your store · admin" window) */
.win { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.win > .bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; background: #E9E8E5; color: #555; font-size: 12px; letter-spacing: .03em; }
.win > .bar i { width: 9px; height: 9px; border-radius: 50%; background: #CFCFCC; }
.win > .bar span { margin-left: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win > .body { min-height: 0; background: #F3F3F1; color: var(--ink); position: relative; }

/* install: the frame shows the chosen step big */
.inst-body { display: grid; align-content: center; justify-items: center; padding: clamp(18px, 3vw, 48px); gap: 18px; overflow: hidden; }
.inst-body .mock { width: min(520px, 100%); font-size: 14px; padding: 22px; border-radius: 14px; box-shadow: none; border: 1px solid #E2E2DF; }
.inst-body .mock .mt { font-size: 16px; margin-bottom: 12px; }
.inst-body .mock .mrow { padding: 10px 12px; }
.inst-body .mock .mb { padding: 9px 16px; border-radius: 999px; background: var(--ink); }
.inst-body .mock code { font-size: 12px; padding: 10px; }
.inst-body .what { width: min(520px, 100%); display: grid; gap: 10px; color: #333; font-size: 13px; }
.inst-body .what p b { font-weight: 400; color: var(--ink); }
.inst-body .what .path { color: #666; }
.inst-body .what .path b { background: #fff; border: 1px solid #DDD; color: var(--ink); }
.inst-body .what .btn { color: var(--ink); border-color: rgba(17,17,17,.3); background: #fff; justify-self: start; }
.inst-body .what .btn.primary { background: var(--accent); border-color: var(--accent); }
.inst-body .what .tag { color: #555; border-color: #BBB; justify-self: start; }
.inst-body .checkres { color: #333; }

/* results: one quiet highlight instead of a blue card */
.conv { background: linear-gradient(165deg, rgba(255,255,255,.12), rgba(255,255,255,.04) 60%); border-color: rgba(255,255,255,.3); }
.kpi .num { font-size: clamp(28px, 2.7vw, 48px); }
@media (max-height: 760px) { .kpi .num { font-size: 30px; } .kpi svg { min-height: 16px; } .dist .col { height: 30px; } .looksmeter { gap: 4px; } }
.kpi .delta { color: var(--white-2); }
.bar-row.a .track i, .funnel .step .track i, .dist .col i { background: var(--white); }
.months div:last-child .col i { background: var(--white); }
.months .col i { background: rgba(255,255,255,.26); }
.card { background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); border-color: rgba(255,255,255,.14); }

/* the plan cards follow the site's pricing chapter */
.plan[aria-pressed="true"] { border-color: var(--accent); background: linear-gradient(160deg, rgba(69,166,255,.12), rgba(255,255,255,.03)); }
.plan .num { font-size: clamp(30px, 2.8vw, 46px); }
.plan .meter.accent > i { background: var(--white); }

/* the log-in slider: a quick, crisp wipe (Tiago, 10 Nov: "a little slow in the transition") */
.entry .slide { transition: opacity 500ms cubic-bezier(.4, 0, .2, 1); }
.entry .slide .you { transition: clip-path 620ms cubic-bezier(.77, 0, .18, 1); }
.entry .seam { width: 2px; background: #fff; box-shadow: 0 0 18px rgba(255,255,255,.6); transition: left 620ms cubic-bezier(.77, 0, .18, 1), opacity 160ms linear; }
.entry .slide.flip .seam { opacity: 0; transition: left 620ms cubic-bezier(.77, 0, .18, 1), opacity 200ms linear 560ms; }
.entry .slide.flipping .seam { opacity: 1; }
/* the log in / register switch sits in the middle of the frame (Tiago, 10 Nov) */
.frame > .seg { justify-self: center; }

/* dialogs: a calmer title size, room for the close button, even gaps (Tiago, 10 Nov: "mind the spacing") */
.modal { position: relative; gap: 16px; }
.modal #mBody { display: grid; gap: 16px; }
.modal .title { font-size: clamp(22px, 1.9vw, 30px); padding-right: 44px; }
.modal .dots { margin-bottom: 2px; }
.mclose { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--white-2); font-size: 18px; line-height: 1; cursor: pointer; }
.mclose:hover { color: var(--white); border-color: rgba(255,255,255,.5); }
.reasons { gap: 8px; }
.reason input[type="checkbox"] { width: 16px; height: 16px; accent-color: #f3f3f1; }
.offers { display: grid; gap: 10px; }
.pk-tag { font-size: 10px; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); color: var(--white); margin-left: 8px; white-space: nowrap; }
/* analytics: the month's looks, compact, in the head */
.looksmeter { display: grid; gap: 6px; width: clamp(220px, 18vw, 300px); }
.looksmeter .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.looksmeter b { font-weight: 400; color: var(--white); }
.looksmeter .link { justify-self: start; font-size: 11px; }
.looksmeter.warn .meter > i { background: var(--warn); }
.looksmeter.warn .label::after { content: " · over 80%"; color: #EBC38A; }

/* analytics, round 3 (11 Nov): leads, spend, conversion, looks; then the daily chart, top products and countries */
.dash { grid-template-rows: minmax(0, .95fr) minmax(0, 1.45fr); }
.dash > .kpi { grid-column: span 3; grid-row: 1; }
.dash > .conv { grid-row: 1; }
.dash > .main-chart { grid-column: span 5; }
.dash > .top-card { grid-column: span 4; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.dash > .geo-card { grid-column: span 3; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.kpi { grid-template-rows: auto auto auto auto minmax(0, 1fr); gap: 6px; }
.kpi .small b { font-weight: 400; color: var(--white); }
.split-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.split-bar i { display: block; height: 100%; background: var(--white); border-radius: 3px; transform-origin: left; animation: grow 900ms var(--ease) both; }
.conv .xs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-self: center; }
.conv .x { font-size: clamp(34px, 3.4vw, 58px); }
.src { font-size: 10px; letter-spacing: .05em; padding: 1px 7px; border-radius: 999px; border: 1px dashed rgba(255,255,255,.3); color: var(--white-3); }
.src.live { border-style: solid; border-color: rgba(111,211,162,.6); color: #9FE3BF; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(10, minmax(0, 1fr)); min-height: 0; overflow: hidden; }
.rank.geo { grid-template-rows: repeat(6, minmax(0, 1fr)); }
.rank li { display: grid; grid-template-columns: 2.4ch minmax(0, 1fr) minmax(40px, 30%) 6ch; gap: 8px; align-items: center; font-size: 11.5px; min-height: 0; }
.rank li .n { color: var(--white-3); }
.rank li .nm { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rank li .bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.rank li .bar i { display: block; height: 100%; background: var(--white); border-radius: 3px; transform-origin: left; animation: grow 800ms var(--ease) both; }
.rank li .v { text-align: right; color: var(--white-2); font-variant-numeric: tabular-nums; }
.rank.geo li { grid-template-columns: minmax(0, 1fr) minmax(40px, 40%) 7ch; }
.data-live { border-style: solid !important; border-color: rgba(111,211,162,.6) !important; color: #9FE3BF !important; }
@media (max-height: 760px) { .rank li { font-size: 11px; } .kpi { gap: 4px; } }

@media (max-width: 900px), (max-height: 520px) {
  .split { grid-template-columns: 1fr; row-gap: 24px; }
  .nav .divider, .nav .brand .wm { display: none; }
  .win { min-height: 420px; }
}

/* offers and choices stay neutral: blue is for the main action only */
.offer { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.05); }
.reason input { accent-color: #f3f3f1; }

/* daylight slider photos (v6, 10 Nov): a gentle shade at the top for the logo and at the bottom-left for the words */
.entry .scrim { background: linear-gradient(180deg, rgba(8,8,8,.5) 0%, rgba(8,8,8,0) 18%), linear-gradient(90deg, rgba(8,8,8,.15) 0%, rgba(8,8,8,.05) 35%, rgba(8,8,8,.5) 68%, rgba(8,8,8,.78) 100%), linear-gradient(20deg, rgba(8,8,8,.82) 0%, rgba(8,8,8,.35) 30%, transparent 50%); }
@media (max-height: 760px) { .conv .x { font-size: 34px; } .conv .xs p { font-size: 11px; } }
