/* The Talent Poll public pages (landing.html, seeker_landing.html) on the DO Suite kit v2. Loaded after do-ui.css,
   only when "New design" is ON (html.do-ui). Rules: ~/.claude/skills/do-suite-design + references/landing.md.
   Neutrals + one green accent, ink primary buttons, no gradients or glow, weights up to 600, sentence case.
   The hero keeps the talent-field animation (owner, 29 Oct), drawn flat by tp-ai.js. */

/* landing's own variable names read the kit's tokens, in both themes */
html.do-ui {
  --ink: var(--do-ink); --ink-2: var(--do-ink-2); --muted: var(--do-muted); --paper: var(--do-sunken); --white: var(--do-surface);
  --line: var(--do-line); --brand: var(--do-btn); --brand-deep: var(--do-btn-hover); --brand-wash: var(--do-sunken);
  --coral: var(--do-muted); --green: var(--do-ok); --green-wash: var(--do-accent-tint);
  --shadow-sm: none; --shadow: var(--do-shadow-frame);
  --ai-a: var(--do-accent); --ai-b: var(--do-ink-2);
}
html.do-ui body { font-family: var(--do-font); background: var(--do-page); color: var(--do-ink); line-height: 1.55; }
html.do-ui body :not(code, pre, kbd, svg, svg *) { font-family: inherit; }
html.do-ui [style*="Plus Jakarta"] { font-family: var(--do-font) !important; }
html.do-ui .mono { font-family: var(--do-font); font-variant-numeric: tabular-nums; }
html.do-ui a { color: inherit; }

/* type: one display size in the hero, nothing between it and 36 */
html.do-ui h1 { font-size: clamp(40px, 5.6vw, 60px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; margin-bottom: 20px; text-wrap: balance; }
html.do-ui h1 .u { background: none; }
html.do-ui h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.12; letter-spacing: -.028em; font-weight: 600; text-wrap: balance; }
html.do-ui h3 { font-weight: 600; letter-spacing: -.01em; }
html.do-ui .final h2 { font-size: clamp(28px, 3.4vw, 36px); }
html.do-ui .lede { font-size: 17px; color: var(--do-ink-2); }
html.do-ui .sec-head p, html.do-ui .step p, html.do-ui .prob p, html.do-ui .feat p, html.do-ui details p, html.do-ui .checks li { color: var(--do-ink-2); }
html.do-ui .kicker { font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--do-muted); margin-bottom: 10px; }
html.do-ui .eyebrow { background: none; border: 1px solid var(--do-line-2); color: var(--do-ink-2); font-weight: 400; font-size: 14px; border-radius: var(--do-r-chip); padding: 2px 8px; }
html.do-ui .eyebrow b { font-weight: 500; color: var(--do-ink); }
html.do-ui .stage-label, html.do-ui .score .t, html.do-ui .tag, html.do-ui .divider-tag, html.do-ui .prob .q { text-transform: none; letter-spacing: 0; }

/* nav and strips */
html.do-ui .audience { background: var(--do-sunken); color: var(--do-ink-2); border-bottom: 1px solid var(--do-line); }
html.do-ui .audience a { color: var(--do-ink); font-weight: 500; }
html.do-ui nav { background: var(--do-page); border-bottom: 1px solid var(--do-line); backdrop-filter: none; -webkit-backdrop-filter: none; }
html.do-ui .navin { height: 60px; }
html.do-ui .logo { font-weight: 600; font-size: 16px; letter-spacing: -.01em; color: var(--do-ink); }
html.do-ui .logo i { background: var(--do-sunken); border: 1px solid var(--do-line-2); color: var(--do-ink-2); border-radius: var(--do-r-input); font-size: 13px; font-weight: 600; }
html.do-ui .navlinks { color: var(--do-ink-2); font-size: 14px; }
@media (hover: hover) { html.do-ui .navlinks a:hover { color: var(--do-ink); } }
.tp-navr { display: flex; align-items: center; gap: 8px; }
.tp-theme { width: 36px; height: 36px; border-radius: var(--do-r-btn); border: 1px solid var(--do-line-2); background: var(--do-surface); color: var(--do-ink-2); display: grid; place-items: center; cursor: pointer; padding: 0; }
/* v165: icons swap with a 200 ms rotate + fade (transform/opacity only); the theme spills from the button (tp-theme.js) */
.tp-theme { position: relative; }
.tp-theme svg { width: 16px; height: 16px; position: absolute; transition: transform .2s ease, opacity .2s ease; }
.tp-theme:focus-visible { outline: 2px solid var(--do-ink); outline-offset: 2px; }
.tp-theme .sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
html[data-theme="dark"] .tp-theme .sun { opacity: 1; transform: none; } html[data-theme="dark"] .tp-theme .moon { opacity: 0; transform: rotate(90deg) scale(.6); }
@media (prefers-color-scheme: dark) { html.do-ui:not([data-theme="light"]) .tp-theme .sun { opacity: 1; transform: none; } html.do-ui:not([data-theme="light"]) .tp-theme .moon { opacity: 0; transform: rotate(90deg) scale(.6); } }
@media (prefers-reduced-motion: reduce) { .tp-theme svg { transition: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* buttons: one ink primary, neutral outline */
html.do-ui .btn { font-weight: 500; font-size: 14px; border-radius: var(--do-r-btn); padding: 10px 16px; border-width: 1px; transition: background-color var(--do-t-fast) var(--do-ease), border-color var(--do-t-fast) var(--do-ease); }
html.do-ui .btn-lg { font-size: 16px; padding: 13px 20px; border-radius: var(--do-r-btn); }
html.do-ui .btn-primary { background: var(--do-btn); color: var(--do-on-btn); }
html.do-ui .btn-ghost { background: var(--do-surface); border-color: var(--do-line-2); color: var(--do-ink); }
@media (hover: hover) {
  html.do-ui .btn-primary:hover { background: var(--do-btn-hover); color: var(--do-on-btn); }
  html.do-ui .btn-ghost:hover { border-color: var(--do-control); color: var(--do-ink); }
}

/* hero: flat page, no glow */
html.do-ui .hero { background: none; padding: 72px 0 80px; }
html.do-ui .cta-note { color: var(--do-muted); }
html.do-ui .cta-note b { color: var(--do-ink); font-weight: 500; }

/* the kept hero: talent field on its own panel, flat, with live counters */
.tp-fieldp { position: relative; border-radius: var(--do-r-frame); overflow: hidden; min-width: 0; background: var(--do-surface); box-shadow: var(--do-shadow-frame), var(--do-ring); }
.tp-fieldp canvas { display: block; width: 100%; height: 420px; }
.tp-fieldp-tag { position: absolute; top: 14px; left: 16px; font-size: 14px; color: var(--do-muted); display: flex; align-items: center; gap: 8px; z-index: 1; }
.tp-fieldp-tag .live { width: 7px; height: 7px; border-radius: 50%; background: var(--do-ok); }
.tp-legend { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--do-line); font-size: 14.5px; color: var(--do-muted); }
.tp-legend span { display: inline-flex; align-items: center; gap: 7px; }
.tp-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--do-faint); }
.tp-legend i.top { background: var(--do-ok); } .tp-legend i.maybe { background: var(--do-warn); }
.tp-legend b { color: var(--do-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 940px) { .tp-fieldp canvas { height: 320px; } }

/* the seeker hero panel and the screening panel: the kit's frame */
html.do-ui .panel { background: var(--do-surface); border: 0; box-shadow: var(--do-shadow-frame), var(--do-ring); border-radius: var(--do-r-frame); }
html.do-ui .panel-top { border-color: var(--do-line); color: var(--do-muted); font-weight: 400; }
html.do-ui .dot { background: var(--do-line-2); }
html.do-ui .cand { border-color: var(--do-line); }
html.do-ui .cand .av, html.do-ui .card .av { background: var(--do-sunken); color: var(--do-ink-2); font-weight: 600; }
html.do-ui .cand .av[style] { background: var(--do-sunken) !important; color: var(--do-muted) !important; }
html.do-ui .cand .nm { font-weight: 500; }
html.do-ui .cand .who, html.do-ui .card .who { display: flex; flex-direction: column; line-height: 1.35; }
html.do-ui .tag { background: none; padding: 0; font-size: 14px; font-weight: 400; color: var(--do-ink-2); display: inline-flex; align-items: center; gap: 7px; border-radius: 0; }
html.do-ui .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--do-faint); }
html.do-ui .tag.top::before { background: var(--do-ok); }
html.do-ui .tag.top { color: var(--do-ink-2); background: none; }
html.do-ui .sc { font-family: var(--do-font); font-weight: 500; color: var(--do-ink); }
html.do-ui .pc { border-radius: var(--do-r-input) !important; }
html.do-ui .tp-hero-wrap { position: relative; isolation: isolate; }
.tp-hero-field { position: absolute; inset: -60px -40px; width: calc(100% + 80px); height: calc(100% + 120px); z-index: -1; pointer-events: none; }

/* sections */
html.do-ui section { padding: 96px 0; }
html.do-ui .paper { background: var(--do-sunken); }
html.do-ui .prob, html.do-ui .feat, html.do-ui .plan { background: var(--do-surface); border: 0; box-shadow: var(--do-ring); border-radius: var(--do-r-card); }
html.do-ui .prob .q { font-family: var(--do-font); font-size: 14px; font-weight: 500; color: var(--do-muted); }
html.do-ui .steps { background: var(--do-line); border: 0; box-shadow: var(--do-ring); border-radius: var(--do-r-card); }
html.do-ui .step { background: var(--do-surface); }
html.do-ui .step .num { font-family: var(--do-font); font-weight: 500; background: var(--do-sunken); border: 1px solid var(--do-line-2); color: var(--do-ink-2); border-radius: var(--do-r-input); }
html.do-ui .step .detail { border-left-color: var(--do-line-2); color: var(--do-muted); }
html.do-ui .feat .ic { background: var(--do-sunken); border: 1px solid var(--do-line); border-radius: var(--do-r-input); }
html.do-ui .feat svg { stroke: var(--do-ink-2); }
html.do-ui .checks .tick { background: none; color: var(--do-ok); border: 1px solid var(--do-line-2); }
html.do-ui .checks b { font-weight: 500; }
html.do-ui .plan.pop { box-shadow: 0 0 0 1px var(--do-ink); }
html.do-ui .ribbon { background: var(--do-btn); color: var(--do-on-btn); font-weight: 500; font-size: 13px; letter-spacing: 0; border-radius: var(--do-r-chip); }
html.do-ui .plan .pn { font-weight: 600; }
html.do-ui .plan .pp { font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
html.do-ui .plan li:before { color: var(--do-ink-2); font-weight: 500; }
html.do-ui summary { font-weight: 500; font-size: 17px; }
html.do-ui summary:after { color: var(--do-muted); font-weight: 400; }
html.do-ui details { border-color: var(--do-line); }
html.do-ui footer { border-color: var(--do-line); color: var(--do-muted); }

/* closing call to action: the kit's inverse surface, flat */
html.do-ui .final { background: var(--do-inverse); background-image: none; color: var(--do-on-inverse); border-radius: var(--do-r-frame); }
html.do-ui .final h2 { color: var(--do-on-inverse); }
html.do-ui .final p { color: var(--do-on-inverse-2); }
html.do-ui .final .btn-primary, html.do-ui .final .btn-primary[style] { background: var(--do-on-inverse) !important; color: var(--do-inverse) !important; }

/* the old v105 card stack hero (only shown when the field panel is not) */
html.do-ui .card { background: var(--do-surface); border: 0; box-shadow: var(--do-ring); }
html.do-ui .hi .n, html.do-ui .hi .t { color: var(--do-ok); }
html.do-ui .divider-tag { background: var(--do-page); color: var(--do-muted); font-weight: 500; }

@media (max-width: 940px) { html.do-ui section { padding: 64px 0; } }

/* the kit resets paragraph margins; landing paragraphs get their rhythm back */
html.do-ui .hero .lede { margin: 0 0 28px; }
html.do-ui .cta-note { margin-top: 14px; }
html.do-ui .sec-head p { margin-top: 4px; }
html.do-ui .step p, html.do-ui .prob p, html.do-ui .feat p { margin-top: 2px; }
html.do-ui details p { margin-top: 10px; }
html.do-ui .final p { margin: 0 auto 28px; }
html.do-ui .pricing-note { margin-top: 24px; }
html.do-ui .logo i { font-size: 13px; }
@media (max-width: 940px) { .tp-hero-field { inset: -30px 0; width: 100%; height: calc(100% + 60px); } html.do-ui .herogrid { overflow-x: clip; } }
/* v129 audit */
html.do-ui .pc { font-size: 13px; }
html.do-ui .tp-navr .btn { white-space: nowrap; }
@media (max-width: 400px) { html.do-ui .tp-navr .btn { padding-inline: 12px; } }
html.do-ui .rl { font-size: 13.5px; }
/* v166 (owner 1 Nov): phones - 16px inputs (no iOS zoom), 44px touch targets, nothing wider than the screen.
   v168 (owner 2 Nov): tablets too (<1024px). */
@media (max-width: 1023px) {
  html.do-ui input:not([type=checkbox]):not([type=radio]):not([type=range]), html.do-ui select, html.do-ui textarea { font-size: 16px !important; }
  html.do-ui .do-btn, html.do-ui .do-btn.sm, html.do-ui .btn, html.do-ui .tp-theme, html.do-ui .navlinks a { min-height: 44px; }
  html.do-ui .do-btn.sm { height: auto; }
  html.do-ui .tp-theme { min-width: 44px; }
  html.do-ui .navlinks a { display: inline-flex; align-items: center; }
}
