/* Purchase Classificator — sign-in screen. Copied from the login handoff's reference/login.css;
   changes: the AA contrast fix from docs/06 (.lg-go and .lg-link colours). Reference CSS:
   Light scheme only. Tokens match docs/handoff design/tokens.css (pc-* names in the app). */
:root {
  --ground: #f0eee6; --ivory: #faf9f5; --card: #ffffff;
  --ink: #141413; --ink-2: #3d3d3a; --muted: #6c6b65; --line: rgba(31, 30, 29, 0.14); --line-strong: rgba(31, 30, 29, 0.3);
  --clay: #c4623f; --clay-soft: #f6e3da; --olive: #4f7b3d;
  --serif: "Anthropic Serif", Georgia, "Times New Roman", Times, serif;
  --sans: "Anthropic Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Anthropic Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.lg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lg-ph-link { color: var(--muted); }
/* ---------- Layout: phones and tablets stack chart → headline → form; 1024 px and up puts the form left and the chart right. */
.lg { position: relative; min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; overflow: hidden; background: var(--ground); }
.lg-top { display: flex; align-items: center; gap: 10px; padding: max(18px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); position: relative; z-index: 2; }
.lg-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--ground); display: grid; place-items: center; font: 400 17px var(--serif); box-shadow: 0 8px 18px -10px rgba(20,20,19,.6); }
.lg-name { font: 400 17px var(--serif); }
.lg-lang { margin-left: auto; display: flex; gap: 2px; }
.lg-lang button { min-height: 36px; padding: 0 8px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.lg-lang button:hover { color: var(--ink); }
.lg-lang button.is-on { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lg-lang .s { display: none; }
@media (max-width: 479px) { .lg-lang .l { display: none; } .lg-lang .s { display: inline; } }
.lg-main { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 26px; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 28px max(20px, env(safe-area-inset-left, 0px)); max-width: 440px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.lg-h1 { margin: 0; font: 400 clamp(30px, 8vw, 44px)/1.08 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.lg-h1 span { color: var(--clay); }
.lg-h1.is-long { font-size: clamp(28px, 7vw, 36px); }
.lg-sub { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 38ch; }
.lg-form { display: flex; flex-direction: column; gap: 12px; }
.lg.is-enter .lg-form > * { animation: lgRise .55s cubic-bezier(.2,0,0,1) both; }
.lg.is-enter .lg-form > :nth-child(2) { animation-delay: .06s } .lg.is-enter .lg-form > :nth-child(3) { animation-delay: .12s } .lg.is-enter .lg-form > :nth-child(4) { animation-delay: .18s } .lg.is-enter .lg-form > :nth-child(n+5) { animation-delay: .24s }
.lg.is-enter .lg-main > div:first-child { animation: lgRise .6s cubic-bezier(.2,0,0,1) both; }
.lg-h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.lg-h2 + p { margin: 2px 0 4px; color: var(--muted); font-size: 13.5px; }
.lg-sso { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: 999px; border: .5px solid var(--line-strong); background: var(--ivory); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; transition: transform .14s cubic-bezier(.2,0,0,1), border-color .2s, box-shadow .2s; }
.lg-sso:hover { transform: translateY(-1px); border-color: var(--ink-2); box-shadow: 0 8px 20px -14px rgba(20,20,19,.45); }
.lg-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.lg-or i { flex: 1; height: 2px; background: linear-gradient(90deg, rgba(240,238,230,0), var(--line) 22%, #e6c3b2 50%, var(--line) 78%, rgba(240,238,230,0)); clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%); }
.lg-fld { width: 100%; box-sizing: border-box; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 18px; background: var(--card); color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border-color .18s, box-shadow .18s; }
.lg-fld::placeholder { color: var(--muted); }
.lg-fld:focus { border-color: var(--clay); box-shadow: 0 0 0 4px var(--clay-soft); }
.lg-pw { position: relative; }
.lg-pw .lg-fld { padding-right: 76px; }
.lg-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--ground); color: var(--ink-2); font: inherit; font-size: 12px; cursor: pointer; }
.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.lg-row label { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; }
.lg-row input { width: 16px; height: 16px; accent-color: var(--clay); }
.lg-link { border: 0; background: none; padding: 6px 0; font: inherit; font-size: 13px; color: var(--clay); cursor: pointer; text-decoration: none; }
.lg-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.lg-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border: 0; border-radius: 999px; background: var(--clay); color: #fff; font: inherit; font-size: 15.5px; font-weight: 500; cursor: pointer; transition: transform .14s cubic-bezier(.2,0,0,1), filter .14s, box-shadow .2s, background .3s; }
.lg-go:hover { transform: translateY(-1px); filter: brightness(.96); box-shadow: 0 10px 22px -12px rgba(196,98,63,.8); }
.lg-go:active { transform: translateY(1px); }
.lg-go[aria-busy="true"] { opacity: .92; cursor: progress; }
.lg-go.is-done { background: var(--olive); }
.lg-spin { animation: lgSpin .8s linear infinite; }
.lg-alert { display: flex; gap: 8px; align-items: flex-start; border-radius: 14px; padding: 10px 14px; font-size: 13px; animation: lgFade .3s ease-out both; }
.lg-alert.err { background: #f8e8e8; color: #7a2730; }
.lg-alert.err b { color: #8a2a33; font-weight: 600; }
.lg-alert.ok { background: #eef2e6; color: #3e5a2c; }
.lg-note { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.lg-foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px max(20px, env(safe-area-inset-right, 0px)) max(18px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); font-size: 12px; color: var(--muted); }
.lg-foot a { color: var(--muted); text-decoration: none; }
.lg-badge { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--ground); }
.lg-tick .t b { font-weight: 600; }
.lg-tick:empty { visibility: hidden; }
/* Hero chart: three area charts that draw in, a cursor that walks the months, a classification ticker under them. */
.lg-vis { position: relative; z-index: 1; width: 100%; max-width: 440px; margin: 10px auto 22px; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); box-sizing: border-box; pointer-events: none; }
.lg-vis svg { display: block; width: 100%; height: auto; overflow: visible; }
.lg-eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.lg-tick { margin-top: 14px; display: flex; align-items: center; gap: 8px; max-width: 100%; width: fit-content; min-height: 36px; box-sizing: border-box; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; overflow: hidden; box-shadow: 0 10px 24px -18px rgba(20,20,19,.4); }
.lg-tick .t { overflow: hidden; text-overflow: ellipsis; min-width: 0; color: var(--ink); }
.lg-tick .a { color: var(--muted); }
.lg-tick .m { font-weight: 600; flex: none; }
.lg-tick .c { font-family: var(--mono); font-size: 12px; color: var(--muted); flex: none; }
.lg-tick .c.low { color: #8a6a12; background: #f4ecd2; border-radius: 6px; padding: 1px 6px; }
@keyframes lgRise { from { opacity: 0; transform: translateY(10px) } }
@keyframes lgFade { from { opacity: 0 } }
@keyframes lgSpin { to { transform: rotate(360deg) } }
@media (min-width: 1024px) {
  .lg { grid-template-columns: minmax(440px, 520px) minmax(0, 1fr); grid-template-rows: minmax(100vh, 1fr); }
  .lg-top { position: absolute; left: 0; right: 0; top: 0; padding: 40px 56px 0; }
  .lg-main { grid-column: 1; grid-row: 1; align-self: center; margin: 0 0 0 120px; padding: 110px 0 120px; max-width: 380px; gap: 32px; }
  .lg-h1 { font-size: 44px; }
  .lg-h1.is-long { font-size: 36px; }
  .lg-vis { grid-column: 2; grid-row: 1; align-self: center; justify-self: center; max-width: 720px; margin: 0; padding: 110px 64px 110px 24px; }
  .lg-eyebrow { font-size: 11px; margin-bottom: 18px; }
  .lg-tick { margin-top: 22px; font-size: 14px; }
  .lg.is-enter .lg-vis { animation: lgRise .8s .15s cubic-bezier(.2,0,0,1) both; }
  .lg-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 56px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .lg *, .lg { animation: none !important; transition: none !important; }
}
.ch-dot { transform-box: fill-box; transform-origin: center; }

/* gen-ui: AA contrast fix from handoff docs/06-acceptance.md. */
.lg-go { background: #b5562f; }
.lg-go.is-done { background: var(--olive); }
.lg-link { color: #a4512f; }
