/* Round2 site-wide art direction: ink, paper, signal yellow, cut edges and restrained motion. */
:root {
  --r2-ink: #111113;
  --r2-paper: #fff;
  --r2-yellow: #f0d34e;
  --r2-green: #a9c66d;
  --r2-orange: #df795a;
  --r2-grid: color-mix(in srgb, var(--r2-ink) 8%, transparent);
  --r2-shadow: 0 16px 36px rgb(17 17 19 / .10);
  --r2-cut: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

html { scroll-behavior: smooth; }
::selection { color: var(--r2-ink); background: var(--r2-yellow); }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--r2-yellow); outline-offset: 3px; }

/* Staff and member workspace: a strong top line, more breathing room, clear active states. */
.app-shell .main-area { min-width: 0; }
.app-shell .topbar { border-bottom: 1px solid var(--line); }
.app-shell .market-site-nav { border-bottom: 1px solid var(--line); }
.app-shell .page-wrap { position: relative; isolation: isolate; }
.app-shell .page-wrap::before {
  position: absolute; z-index: -1; top: 0; right: 0; width: 100%; height: 190px;
  content: ""; pointer-events: none; opacity: .46;
  background: radial-gradient(ellipse at 96% 0, color-mix(in srgb, var(--street-accent, var(--r2-yellow)) 17%, transparent), transparent 58%);
}
.app-shell .page-title-row { align-items: end; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.app-shell .page-title { font-size: clamp(30px, 4vw, 48px); line-height: .98; letter-spacing: -.075em; }
.app-shell .page-subtitle { max-width: 58ch; line-height: 1.55; }
.app-shell .nav-link { position: relative; transition: color .18s ease, background .18s ease, transform .18s ease; }
.app-shell .nav-link.active { font-weight: 750; }
.app-shell .nav-link.active::after { position: absolute; right: 12px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; transform: translateY(-50%); }
.app-shell .stat-card, .app-shell .panel, .app-shell .card, .app-shell .workspace-switch {
  border-radius: 2px; box-shadow: 0 3px 0 color-mix(in srgb, var(--ink) 7%, transparent);
}
.app-shell .stat-card { position: relative; overflow: hidden; border-top: 3px solid var(--street-accent, var(--r2-yellow)); }
.app-shell .stat-card::after { position: absolute; right: -23px; bottom: -34px; width: 92px; height: 92px; border: 1px solid color-mix(in srgb, var(--street-accent, var(--r2-yellow)) 55%, transparent); border-radius: 50%; content: ""; }
.app-shell .stat-value { font-size: clamp(25px, 3vw, 38px); font-weight: 800; letter-spacing: -.065em; }
.app-shell .panel > h2, .app-shell .panel-heading h2, .app-shell .section-heading h2 { letter-spacing: -.045em; }
.app-shell :is(.button, .button-primary, .button-lime, .button-danger) { min-height: 42px; border-radius: 2px; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.app-shell .button-primary, .app-shell .button-lime { background: var(--street-accent, var(--r2-yellow)); border-color: var(--street-accent, var(--r2-yellow)); color: var(--r2-ink); }
.app-shell .data-table th { font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.app-shell .data-table tbody tr { transition: background-color .16s ease; }
.app-shell .data-table tbody tr:hover { background: color-mix(in srgb, var(--street-accent, var(--r2-yellow)) 9%, var(--paper)); }
.app-shell .workspace-view-tabs { border-bottom: 1px solid var(--line); }
.app-shell .workspace-view-tabs button[aria-selected="true"] { border-bottom-color: var(--r2-yellow); color: var(--ink); }

/* Public home and marketplace: bolder editorial type, little print-room details. */
.site-header, .site-footer, .plan-footer { border-color: var(--r2-grid); }
.wordmark, .brand, .public-brand { font-weight: 900; letter-spacing: -.07em; }
.campaign { isolation: isolate; }
.campaign::after { z-index: -1; opacity: .44; background-size: 34px 34px; }
.campaign-note { box-shadow: 10px 10px 0 var(--r2-yellow); }
.campaign-note p { letter-spacing: -.055em; }
.campaign-stamp { box-shadow: 0 0 0 6px rgb(255 255 255 / .18), 0 18px 36px rgb(17 17 19 / .2); }
.campaign h1 { text-shadow: 0 2px 0 rgb(255 255 255 / .35); }
.section-heading { border-bottom: 1px solid var(--r2-grid); }
.area { position: relative; }
.area-art { overflow: hidden; box-shadow: 0 7px 0 var(--r2-ink); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, filter .3s ease; }
.area-art::after { position: absolute; inset: 0; border: 1px solid rgb(255 255 255 / .26); content: ""; pointer-events: none; }
.area-copy h3 { font-size: clamp(21px, 2vw, 28px); letter-spacing: -.06em; }
.area-index, .campaign-label, .eyebrow { font-family: "DM Mono", monospace; letter-spacing: .13em; }
.site-nav a, .site-footer nav a, .plan-footer nav a { transition: color .16s ease, border-color .16s ease; }
.marketplace-shell { position: relative; }
.marketplace-heading { border-bottom: 1px solid var(--r2-grid); }
.marketplace-heading h1 { letter-spacing: -.075em; }
.marketplace-stamp { box-shadow: 5px 5px 0 var(--r2-ink); }
.marketplace-card { box-shadow: 0 3px 0 color-mix(in srgb, var(--mp-ink) 8%, transparent); }
.marketplace-card-image img { transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.marketplace-submit-panel { box-shadow: 8px 8px 0 color-mix(in srgb, var(--mp-accent) 68%, var(--mp-paper)); }
.marketplace-submit-panel h2 { letter-spacing: -.07em; }
.marketplace-form :is(input, select), .marketplace-review-info textarea { transition: border-color .16s ease, box-shadow .16s ease; }
.marketplace-form :is(input, select):focus, .marketplace-review-info textarea:focus { border-color: var(--mp-accent); box-shadow: 4px 4px 0 color-mix(in srgb, var(--mp-accent) 42%, transparent); outline: 0; }

/* Research: compact labels, confident result panel and evidence cards that feel tangible. */
.member-research, .research-workspace, .soldgraph-research, .research-page { --research-accent: var(--r2-yellow); }
.member-pick, .member-research-result, .soldgraph-result, .research-result, .member-market-evidence, .market-evidence-card {
  border-radius: 2px !important; box-shadow: 0 5px 0 color-mix(in srgb, var(--ink, #111113) 9%, transparent);
}
.member-pick, .research-result, .soldgraph-result { border-top: 4px solid var(--r2-yellow) !important; }
.member-pick h2, .member-research h1, .research-workspace h1 { letter-spacing: -.07em; }
.member-research :is(.metric, .metric-card, .research-metric) strong { font-size: clamp(21px, 2.5vw, 32px); letter-spacing: -.06em; }
.member-research :is(button, .button) { min-height: 42px; }
.research-confidence, .evidence-confidence { font-weight: 750; }

/* Pricing, policy, sign-in and account surfaces. */
.plan-grid article { position: relative; overflow: hidden; border-top: 4px solid var(--r2-yellow); box-shadow: 6px 6px 0 var(--r2-grid); }
.plan-grid article.featured { background: var(--r2-yellow); color: var(--r2-ink); box-shadow: 8px 8px 0 var(--r2-ink); }
.plan-grid article h2 { letter-spacing: -.07em; }
.plan-grid .price { font-variant-numeric: tabular-nums; letter-spacing: -.08em; }
.plan-grid .access-action { min-height: 46px; }
.trial-application, .trial-application-status, .auth-card, .legal-main { border-radius: 2px !important; }
.legal-main { border-top: 4px solid var(--r2-yellow); }
.legal-main h1, .legal-main h2 { letter-spacing: -.06em; }

/* R² Connect: console-like system panel, retaining all controls and consent states. */
.companion-body { background-color: var(--canvas); background-image: linear-gradient(var(--r2-grid) 1px, transparent 1px), linear-gradient(90deg, var(--r2-grid) 1px, transparent 1px); background-size: 32px 32px; }
.companion-shell { max-width: 1040px; }
.companion-top { border-bottom: 1px solid var(--line); }
.companion-card { position: relative; border-top: 5px solid var(--r2-yellow); border-radius: 2px; box-shadow: 10px 10px 0 var(--r2-ink); }
.companion-card h1 { font-size: clamp(42px, 8vw, 82px); letter-spacing: -.08em; }
.agent-status { border-left: 4px solid var(--r2-green); }
.request-box { border-left: 4px solid var(--r2-orange); }
.pairing-result { background: var(--r2-ink); color: #fff; }

@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .area:hover .area-art { transform: translateY(-5px) rotate(-.5deg); box-shadow: 0 12px 0 var(--r2-ink); filter: saturate(1.08); }
  .marketplace-card:hover .marketplace-card-image img { transform: scale(1.045); }
  .app-shell .stat-card:hover { transform: translateY(-3px); box-shadow: var(--r2-shadow); }
  .app-shell .nav-link:hover { transform: translateX(2px); }
  .plan-grid article:hover { transform: translateY(-4px); box-shadow: 10px 12px 0 var(--r2-grid); }
  .companion-card:hover { box-shadow: 13px 13px 0 var(--r2-ink); }
  .app-shell .button:hover, .plan-grid .access-action:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--r2-ink); }
}
@media (prefers-reduced-motion:no-preference) {
  .campaign-note, .campaign-stamp, .marketplace-stamp { animation: r2-arrive .65s cubic-bezier(.2,.75,.25,1) both; }
  .area { animation: r2-arrive .55s cubic-bezier(.2,.75,.25,1) both; }
  .area:nth-child(2) { animation-delay: .06s; }
  .area:nth-child(3) { animation-delay: .12s; }
  .area:nth-child(4) { animation-delay: .18s; }
  @keyframes r2-arrive { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
}
@media (max-width: 760px) {
  .app-shell .page-title-row { align-items: flex-start; flex-direction: column; }
  .app-shell .page-title { font-size: clamp(29px, 9vw, 40px); }
  .companion-card { box-shadow: 5px 5px 0 var(--r2-ink); }
}
@media (max-width: 520px) {
  .campaign-note { box-shadow: 5px 5px 0 var(--r2-yellow); }
  .campaign-stamp { box-shadow: 0 0 0 3px rgb(255 255 255 / .2), 0 10px 22px rgb(17 17 19 / .17); }
  .marketplace-submit-panel { box-shadow: 4px 4px 0 color-mix(in srgb, var(--mp-accent) 68%, var(--mp-paper)); }
  .plan-grid article.featured { box-shadow: 4px 4px 0 var(--r2-ink); }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
