/* /extension: the Browsa Captcha Solver welcome page. Hero with a drawing of the extension's panel, three set-up
   steps, the measured results (5 attempts each, one pip per attempt), how it works, pricing and Phantom, FAQ. */

.ex-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ex-b { flex: none; display: block; }

/* Hero */
.ex-hero__grid { display: grid; gap: var(--ds-space-10) var(--ds-space-12); align-items: center; }
@media (min-width: 64rem) { .ex-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.ex-hero__copy { display: grid; gap: var(--ds-space-4); justify-items: start; min-width: 0; }
.ex-hero__copy .dv-hero__actions { margin-top: var(--ds-space-2); }
.ex-eyebrow { display: inline-flex; align-items: center; gap: var(--ds-space-2); margin: 0; font-size: var(--ds-text-sm); color: var(--ds-ink-3); }
.ex-note { margin: 0; font-size: var(--ds-text-sm); color: var(--ds-ink-3); }

/* The extension's panel, drawn (labels as in src/popup/popup.html) */
.ex-pop { display: grid; gap: 0.625rem; width: min(100%, 24rem); justify-self: center; padding: 1rem; border: 1px solid var(--lp-edge); border-radius: var(--lp-radius); background: var(--lp-surface); box-shadow: var(--lp-shadow), 0 0 0 6px color-mix(in oklab, var(--ds-green) 6%, transparent); font-size: var(--ds-text-sm); color: var(--ds-ink); user-select: none; }
.ex-pop i { font-style: normal; }
.ex-pop__top { display: flex; align-items: center; gap: 0.5rem; }
.ex-pop__top b { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; }
.ex-pop__switch { position: relative; flex: none; width: 2.125rem; height: 1.25rem; border-radius: 999px; background: var(--ds-green); }
.ex-pop__switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 0.875rem; height: 0.875rem; border-radius: 50%; background: var(--lp-surface); }
.ex-pop__key { display: flex; gap: 0.375rem; }
.ex-pop__key span { flex: 1; min-width: 0; height: 1.875rem; padding-inline: 0.5625rem; display: flex; align-items: center; border: 1px solid var(--lp-edge); border-radius: 6px; background: var(--ds-sunken); color: var(--ds-ink-3); font-family: var(--ds-font-code); font-size: var(--ds-text-xs); }
.ex-pop__key i, .ex-pop__solve { display: grid; place-items: center; height: 1.875rem; padding-inline: 0.75rem; border-radius: 6px; }
.ex-pop__key i { border: 1px solid var(--lp-edge); }
.ex-pop__row { display: flex; gap: 0.5rem; }
.ex-pop__seg { flex: 1; display: flex; padding: 2px; border: 1px solid var(--lp-edge); border-radius: 6px; background: var(--ds-sunken); }
.ex-pop__seg i { flex: 1; display: grid; place-items: center; height: 1.5rem; border-radius: 4px; color: var(--ds-ink-3); }
.ex-pop__seg i.is-on { background: var(--lp-surface-2); color: var(--ds-ink); }
.ex-pop__solve { background: var(--ds-green); color: oklch(0.17 0.035 158); font-weight: 700; }
.ex-pop__types { display: grid; grid-template-columns: 1fr 1fr; gap: 0.375rem; }
.ex-pop__types span { display: flex; align-items: center; gap: 0.4375rem; height: 1.875rem; padding-inline: 0.5rem; border: 1px solid color-mix(in oklab, var(--ds-green) 40%, var(--lp-edge)); border-radius: 6px; }
.ex-pop__types span::before { content: ""; flex: none; width: 0.75rem; height: 0.75rem; border-radius: 3px; background: var(--ds-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.9' fill='none' stroke='%23101b15' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.ex-pop__log { display: flex; gap: 0.75rem; padding-top: 0.625rem; border-top: 1px solid var(--lp-edge); color: var(--ds-ink-2); font-variant-numeric: tabular-nums; }
.ex-pop__log span:first-child { flex: 1; }
.ex-pop__log b { color: var(--ds-green-ink); font-weight: 600; }

/* Sections */
.ex-sec + .ex-sec { padding-top: 0; }
.ex-sec__title { margin-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.ex-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--ds-space-2) var(--ds-space-6); margin-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.ex-aside { max-width: 34rem; margin: 0; font-size: var(--ds-text-sm); color: var(--ds-ink-3); }

/* Steps */
.ex-steps { display: grid; gap: var(--ds-space-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .ex-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ex-steps > li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: var(--ds-space-2) var(--ds-space-3); padding: var(--ds-space-5); border: 1px solid var(--lp-edge); border-radius: var(--lp-radius); background: var(--lp-surface); box-shadow: inset 0 1px 0 var(--lp-shine); }
.ex-steps > li > :not(.ex-step__n, h3) { grid-column: 1 / -1; }
.ex-step__n { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--ds-green-wash); color: var(--ds-green-ink); font: 600 var(--ds-text-sm)/1 var(--ds-font-text); }
.ex-steps h3 { align-self: center; margin: 0; font: 600 var(--ds-text-h4)/1.3 var(--ds-font-text); color: var(--ds-ink); }
.ex-steps p { margin: 0; font-size: var(--ds-text-md); line-height: 1.5; color: var(--ds-ink-3); }
.ex-steps p b { color: var(--ds-ink); }
.ex-steps .ex-hint { font-size: var(--ds-text-sm); }
.ex-steps .ds-link { justify-self: start; }
.ex-vis { display: grid; place-items: center; height: clamp(4.25rem, 3rem + 3vw, 5.5rem); margin-bottom: var(--ds-space-2); border: 1px solid var(--lp-edge); border-radius: var(--ds-radius-md); background: var(--ds-sunken); background-image: radial-gradient(color-mix(in oklab, var(--ds-ink) 7%, transparent) 1px, transparent 1px); background-size: 14px 14px; overflow: hidden; }
.ex-chip, .ex-keyline { display: inline-flex; align-items: center; gap: 0.5rem; height: 2.25rem; padding-inline: 0.875rem; border: 1px solid var(--lp-edge); border-radius: 999px; background: var(--lp-surface); font-size: var(--ds-text-sm); color: var(--ds-ink); box-shadow: var(--lp-shadow); }
.ex-chip { border-color: color-mix(in oklab, var(--ds-green) 40%, var(--lp-edge)); color: var(--ds-green-ink); font-weight: 600; }
.ex-keyline { border-radius: 8px; }
.ex-keyline code { font-size: var(--ds-text-xs); color: var(--ds-ink-2); }
.ex-keyline .ds-icon:last-child { color: var(--ds-ink-3); }
.ex-bar { position: relative; display: flex; align-items: center; gap: 0.625rem; width: min(86%, 15rem); height: 2.25rem; padding-inline: 0.5rem; border: 1px solid var(--lp-edge); border-radius: 8px; background: var(--lp-surface); box-shadow: var(--lp-shadow); }
.ex-bar__url { flex: 1; height: 1.25rem; border-radius: 999px; background: var(--ds-sunken); }
.ex-bar .ex-b { border-radius: 5px; box-shadow: 0 0 0 3px color-mix(in oklab, var(--ds-green) 30%, transparent); }
.ex-bar__cursor { position: absolute; right: -0.125rem; bottom: -0.875rem; width: 1.125rem; height: 1.125rem; color: var(--ds-ink); }

/* Results: one row per type, one pip per attempt */
.ex-rows { margin: 0; padding: 0; list-style: none; border: 1px solid var(--lp-edge); border-radius: var(--lp-radius); background: var(--lp-surface); box-shadow: var(--lp-shadow); overflow: hidden; }
.ex-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name n time" "pips pips pips"; align-items: center; gap: var(--ds-space-2) var(--ds-space-4); padding: var(--ds-space-4) var(--ds-space-5); }
.ex-row.ex-row--note { grid-template-areas: "name n time" "pips pips pips" "note note note"; }
@media (min-width: 48rem) { .ex-row.ex-row--note { grid-template-areas: "name pips n time" "name . . note"; } }
.ex-row + .ex-row { border-top: 1px solid var(--lp-edge); }
@media (min-width: 48rem) { .ex-row { grid-template-columns: minmax(0, 1fr) 8rem 4rem 13rem; grid-template-areas: "name pips n time"; } }
.ex-row__name { grid-area: name; display: grid; gap: 0.125rem; font-weight: 600; font-size: var(--ds-text-base); color: var(--ds-ink); }
.ex-row__name small { font-weight: 400; font-size: var(--ds-text-sm); color: var(--ds-ink-3); }
.ex-pips { grid-area: pips; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.ex-pips i { height: 6px; border-radius: 3px; background: var(--ds-green); }
.ex-pips i.is-miss { background: var(--lp-edge); }
.ex-n { grid-area: n; font: 400 var(--ds-text-base)/1 var(--ds-font-code); color: var(--ds-ink-3); font-variant-numeric: tabular-nums; }
.ex-n b { font-weight: 600; color: var(--ds-green-ink); font-size: var(--ds-text-lg); }
.ex-time { grid-area: time; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.125rem 0.375rem; font-variant-numeric: tabular-nums; color: var(--ds-ink-2); text-align: end; }
.ex-time .ds-icon { color: var(--ds-ink-3); }
@media (min-width: 48rem) { .ex-time { justify-content: flex-start; text-align: start; } }
.ex-row__note { grid-area: note; font-size: var(--ds-text-xs); color: var(--ds-ink-3); }
.ex-foot { margin: var(--ds-space-4) 0 0; font-size: var(--ds-text-sm); color: var(--ds-ink-3); }

/* How it works */
.ex-cards { display: grid; gap: var(--ds-space-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .ex-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .ex-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ex-cards li { display: grid; align-content: start; gap: var(--ds-space-2); padding: var(--ds-space-5); border: 1px solid var(--lp-edge); border-radius: var(--lp-radius); background: var(--lp-surface); box-shadow: inset 0 1px 0 var(--lp-shine); }
.ex-cards .lp-icon { margin-bottom: var(--ds-space-2); }
.ex-cards h3 { margin: 0; font: 600 var(--ds-text-h4)/1.3 var(--ds-font-text); color: var(--ds-ink); }
.ex-cards p { margin: 0; font-size: var(--ds-text-md); line-height: 1.5; color: var(--ds-ink-3); }
.ex-cards code { font-size: 0.9em; color: var(--ds-ink-2); overflow-wrap: anywhere; }

/* Pricing and Phantom */
.ex-duo { display: grid; gap: var(--ds-space-3); }
@media (min-width: 48rem) { .ex-duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.ex-box { display: grid; align-content: start; justify-items: start; gap: var(--ds-space-2); padding: clamp(1.25rem, 0.9rem + 1.5vw, 2rem); border: 1px solid var(--lp-edge); border-radius: var(--lp-radius); background: var(--lp-surface); box-shadow: var(--lp-shadow); }
.ex-box .lp-icon { margin-bottom: var(--ds-space-2); }
.ex-box__title { margin: 0; font: 600 var(--ds-text-h3)/1.2 var(--ds-font-display); font-stretch: 108%; letter-spacing: -0.03em; color: var(--ds-ink); }
.ex-box p { margin: 0; max-width: 34rem; font-size: var(--ds-text-md); line-height: 1.5; color: var(--ds-ink-3); }
.ex-box .ds-link { margin-top: var(--ds-space-1); }
.ex-box--more { border-color: color-mix(in oklab, var(--ds-green) 30%, var(--lp-edge)); background: radial-gradient(28rem 14rem at 100% 0%, color-mix(in oklab, var(--ds-green) 9%, transparent), transparent 70%), var(--lp-surface); }
