/* Presentation only: preserve the dashboard tracks, navigation and media. */
body { font-family: var(--rota-font); }
.app-shell {
  --finish-text: #f4f8fb;
  --finish-muted: #a7bbce;
  --finish-surface: var(--rota-surface);
  --finish-raised: var(--rota-surface-raised);
  --finish-line: var(--rota-line);
  --finish-accent: var(--rota-cyan);
}
body[data-theme="light"] .app-shell {
  --finish-text: #0b1526;
  --finish-muted: #526981;
  --finish-surface: #fff;
  --finish-raised: #f3f8ff;
  --finish-line: #d6e4f3;
  --finish-accent: #0762ca;
}
.app-shell :is(button, a, input, select, textarea):focus-visible,
.auth-form :is(button, a, input):focus-visible {
  outline: 2px solid #35d7ff;
  outline-offset: 3px;
}
.nav-item { font-weight: 650; }
.nav-item.active { border-color: var(--rota-line); box-shadow: inset 3px 0 0 var(--rota-cyan); }
.topbar h2, .section-heading h4 { font-weight: 700; }
.command-copy h3 { font-weight: 750; }
.command-copy > p, .hero-creative-copy > p { font-weight: 450; }
.app-shell .sidebar-panel { box-shadow: none; }
.app-shell .sidebar-panel small { font-weight: 450; }
.app-shell :is(.dashboard-section, .saved-ad, .chat-card, .agent-list, .settings-card, .library-toolbar) {
  border-color: var(--finish-line);
  border-radius: var(--rota-radius);
  box-shadow: 0 6px 20px #071a330a;
}
body[data-theme="dark"] .clean-hero.dashboard-showcase { border-color: var(--rota-line); box-shadow: 0 8px 24px #00000018; }
.app-shell :is(.primary-button, .secondary-button, .ghost-button, .hero-search button) {
  border-radius: var(--rota-control-radius);
  font-weight: 650;
  box-shadow: none;
}
.app-shell .primary-button:not(:disabled), .hero-search button:not(:disabled) {
  background: var(--rota-blue);
  border: 1px solid #68b5ff;
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff20;
}
.app-shell .primary-button:not(:disabled):hover { background: #066ce7; }
.app-shell .secondary-button { border-color: var(--finish-line); }
.app-shell .secondary-button:hover { border-color: var(--rota-active-line); }
.app-shell .mining-choice-card { border-color: var(--finish-line); box-shadow: none; }
.app-shell .mining-choice-card:hover { border-color: var(--rota-active-line); }
.app-shell .chat-agent.active { border-color: var(--rota-active-line); box-shadow: inset 2px 0 0 var(--rota-cyan); }
.app-shell .library-toolbar input, .app-shell .library-toolbar select { min-width: 0; }
.card-kicker, .mining-choice-card span { font-weight: 650; }
.auth-form .primary-button { border-radius: var(--rota-control-radius); box-shadow: inset 0 1px 0 #ffffff20; }
#authScreen .auth-form input, #authScreen .auth-submit { border-radius: var(--rota-control-radius); }
#authScreen .auth-form input { font-weight: 500; box-shadow: none; }
#authScreen .auth-submit { border: 1px solid #68b5ff; box-shadow: inset 0 1px 0 #ffffff20; font-weight: 650; }

/* Match the sales-page plans without touching selection or checkout logic. */
.landing-plan-grid { gap: 16px; }
.landing-plan-card, .landing-plan-card.featured {
  min-height: 0;
  padding: 28px;
  gap: 0;
  grid-template-rows: auto auto auto auto auto 1fr auto auto;
  justify-items: start;
  text-align: left;
  color: var(--finish-text);
  background: var(--finish-surface);
  border: 1px solid var(--finish-line);
  border-radius: var(--rota-radius);
  box-shadow: none;
  transform: none;
}
.landing-plan-card.featured { background: var(--finish-raised); border-color: var(--rota-active-line); box-shadow: inset 0 2px 0 var(--rota-cyan); }
.landing-plan-card.current { border-color: var(--finish-accent); }
.landing-plan-card > span { color: var(--finish-text); font-size: 16px; font-weight: 600; }
.landing-plan-card > em, .landing-plan-card.featured > em {
  min-height: 26px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--finish-muted);
  font-size: 11px;
  font-weight: 500;
  box-shadow: none;
}
.landing-plan-card.featured > em, .landing-plan-card.current > em { color: var(--finish-accent); }
.landing-plan-card h3 { margin: 20px 0; color: var(--finish-text); font-size: 38px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.landing-plan-card h3 small { color: var(--finish-muted); font-size: 13px; font-weight: 400; }
.landing-plan-card p { min-height: 100px; max-width: 100%; margin: 0 0 20px; color: var(--finish-muted); font-size: 14px; line-height: 1.65; font-weight: 400; }
.landing-plan-card .plan-anchor, .landing-plan-card.featured .plan-anchor {
  min-height: 75px;
  padding: 16px 0;
  margin: 0 0 22px;
  border: 0;
  border-block: 1px solid var(--finish-line);
  border-radius: 0;
  background: none;
  color: var(--finish-muted);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.6;
}
.landing-plan-card ul { gap: 12px; margin: 0 0 26px; }
.landing-plan-card li { padding-left: 25px; color: var(--finish-muted); font-size: 13px; font-weight: 400; line-height: 1.55; }
.landing-plan-card li::before, .landing-plan-card.featured li::before {
  top: 3px; width: 14px; height: 14px; color: var(--finish-accent); background: none; border: 0; border-radius: 0; box-shadow: none;
}
.landing-plan-card .plan-objection { min-height: 58px; color: var(--finish-muted); font-size: 12px; font-weight: 400; line-height: 1.6; }
.landing-plan-card .plan-choice-button, .landing-plan-card.featured .plan-choice-button:not(.is-current) {
  min-height: 48px;
  padding: 0 18px;
  color: var(--finish-text);
  background: var(--finish-raised);
  border: 1px solid var(--finish-line);
  border-radius: var(--rota-control-radius);
  font-size: 12px;
  font-weight: 650;
  box-shadow: inset 0 1px 0 #ffffff0a;
}
.landing-plan-card.featured .plan-choice-button:not(.is-current):not(:disabled) { color: #fff; background: var(--rota-blue); border-color: #68b5ff; }
.landing-plan-card .plan-choice-button:not(:disabled):hover { border-color: var(--finish-accent); }
.landing-plan-card .plan-choice-button.is-current, .landing-plan-card .plan-choice-button:disabled {
  color: var(--finish-muted); background: transparent; border-color: var(--finish-line); box-shadow: none; opacity: 1; cursor: default;
}
@media (max-width: 1400px) and (min-width: 1061px) {
  .app-shell .library-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1200px) and (min-width: 981px) {
  .landing-plan-card, .landing-plan-card.featured { padding: 20px; }
  .landing-plan-card h3 { font-size: 30px; }
}
@media (max-width: 980px) {
  .landing-plan-card p, .landing-plan-card .plan-anchor, .landing-plan-card .plan-objection { min-height: 0; }
}
@media (max-width: 760px) {
  .app-shell .topbar { position: relative; z-index: 5; }
  .landing-plan-card, .landing-plan-card.featured { padding: 26px; }
}
@media (max-width: 380px) {
  .landing-plan-card, .landing-plan-card.featured { padding: 20px; }
  .landing-plan-card h3 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell :is(button, a) { transition: none; }
}
#authScreen .auth-legal { margin: 16px 0 0; color: #a5b8cb; font-size: 12px; line-height: 1.6; text-align: center; }
#authScreen .auth-legal a { color: inherit; text-underline-offset: 3px; }
#authScreen .auth-legal a:hover, #authScreen .auth-legal a:focus-visible { color: #35d7ff; }
