/* TutorPay public UI contract.
   This file is loaded after site.css and owns only public Razor pages.
   Values are translated from tutor-connect-pro-main PublicShell + index.tsx. */

:root {
  --tp-public-max: 1200px;
  --tp-public-gutter: 16px;
}

.tp-public-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--tp-background);
  color: var(--tp-foreground);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.tp-public-body *,
.tp-public-body *::before,
.tp-public-body *::after {
  box-sizing: border-box;
}

.tp-public-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--tp-border);
  background: color-mix(in oklch, var(--tp-card) 95%, transparent);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.tp-public-header__inner,
.tp-public-container,
.tp-landing-container {
  width: min(var(--tp-public-max), 100%);
  max-width: var(--tp-public-max);
  margin-inline: auto;
  padding-inline: var(--tp-public-gutter);
}

.tp-public-header__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 61px;
  gap: 12px;
  padding-block: 12px;
}

.tp-brand,
.tp-brand:hover {
  color: var(--tp-primary);
  text-decoration: none;
}

.tp-brand--public {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.tp-brand--public .tp-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 12px;
  background: var(--tp-primary);
  color: var(--tp-primary-foreground);
}

.tp-brand--public .tp-brand__mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-brand--public .tp-brand__name {
  display: block;
  color: var(--tp-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.tp-brand--public .tp-brand__tagline {
  display: block;
  margin-top: 1px;
  color: var(--tp-muted-foreground);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
}

.tp-public-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.tp-public-nav a {
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--tp-foreground);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
}

.tp-public-nav a[href="/#how-it-works"] {
  color: #0086d9;
}

.tp-public-nav a:hover {
  background: var(--tp-accent);
  color: var(--tp-primary);
}

.tp-public-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 36px;
  padding: 0 16px;
  color: var(--tp-foreground);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.tp-public-actions .tp-button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.tp-button--primary {
  background: var(--tp-primary);
  color: var(--tp-primary-foreground);
  box-shadow: 0 1px 2px oklch(0.25 0.06 260 / 0.1);
}

.tp-button--primary:hover {
  background: var(--tp-primary-hover);
  color: var(--tp-primary-foreground);
}

.tp-button--outline {
  border-color: var(--tp-input);
  background: var(--tp-background);
  color: var(--tp-foreground);
  box-shadow: 0 1px 2px oklch(0.25 0.06 260 / 0.08);
}

.tp-button--outline:hover {
  background: var(--tp-accent);
  color: var(--tp-accent-foreground);
}

.tp-button--landing {
  min-height: 40px;
  padding: 0 32px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.tp-landing {
  background: var(--tp-background);
  color: var(--tp-foreground);
}

.tp-landing-hero {
  border-bottom: 1px solid var(--tp-border);
  background: var(--tp-sky);
  padding: 0;
}

.tp-landing-hero__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 32px;
  padding-block: 80px;
}

.tp-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin: 0 0 16px;
  border-radius: 999px;
  background: var(--tp-card);
  color: var(--tp-primary);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  box-shadow: var(--tp-shadow-card);
}

.tp-trust-pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-landing h1 {
  max-width: 720px;
  margin: 0;
  color: var(--tp-primary);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.tp-landing-lead {
  max-width: 576px;
  margin: 16px 0 0;
  color: var(--tp-muted-foreground);
  font-size: 18px;
  line-height: 28px;
}

.tp-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tp-login-prompt {
  margin: 16px 0 0;
  color: var(--tp-muted-foreground);
  font-size: 14px;
}

.tp-login-prompt a {
  color: var(--tp-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tp-payment-example {
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  background: var(--tp-card);
  color: var(--tp-card-foreground);
  padding: 24px;
  box-shadow: var(--tp-shadow-lift);
}

.tp-payment-example h2 {
  margin: 0;
  color: var(--tp-muted-foreground);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.tp-payment-example dl {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 14px;
}

.tp-payment-example dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tp-payment-example dt {
  color: var(--tp-muted-foreground);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.tp-payment-example dd {
  margin: 0;
  color: var(--tp-foreground);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: right;
}

.tp-payment-example__total {
  margin-top: 4px;
  border-top: 1px solid var(--tp-border);
  padding-top: 4px;
}

.tp-payment-example__total dd {
  color: var(--tp-primary);
  font-weight: 700;
}

.tp-payment-callout {
  display: block;
  margin-top: 20px;
  border-radius: 12px;
  background: var(--tp-mint);
  padding: 16px;
  font-size: 14px;
  line-height: 20px;
}

.tp-payment-callout strong {
  display: block;
  color: var(--tp-primary);
  font-size: 14px;
  font-weight: 600;
}

.tp-payment-callout span {
  display: block;
  margin-top: 4px;
  color: var(--tp-muted-foreground);
  font-size: 14px;
}

.tp-landing-section {
  padding-block: 56px;
}

.tp-section-heading {
  margin-bottom: 32px;
}

.tp-section-heading h2,
.tp-demo-section h2 {
  margin: 0;
  color: var(--tp-primary);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.tp-section-heading p,
.tp-demo-section p {
  margin: 8px 0 0;
  color: var(--tp-muted-foreground);
  font-size: 16px;
  line-height: 1.5;
}

.tp-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tp-info-card {
  border: 1px solid color-mix(in oklch, var(--tp-border) 70%, transparent);
  border-radius: 12px;
  background: var(--tp-card);
  padding: 20px;
  box-shadow: var(--tp-shadow-card);
}

.tp-icon-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tp-accent);
  color: var(--tp-primary);
}

.tp-icon-bubble svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-info-card h3 {
  margin: 12px 0 0;
  color: var(--tp-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.tp-info-card p {
  margin: 6px 0 0;
  color: var(--tp-muted-foreground);
  font-size: 14px;
  line-height: 1.5;
}

.tp-feature-band {
  border-block: 1px solid var(--tp-border);
  background: var(--tp-lilac);
}

.tp-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-block: 56px;
}

.tp-info-card--feature {
  border-color: transparent;
  border-radius: 16px;
  padding: 24px;
}

.tp-demo-section {
  padding-block: 56px;
  text-align: center;
}

.tp-demo-section p {
  max-width: 672px;
  margin-inline: auto;
}

.tp-demo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.tp-public-footer {
  margin-top: 64px;
  border-top: 1px solid var(--tp-border);
  background: var(--tp-sidebar);
  color: var(--tp-muted-foreground);
  padding: 0;
}

.tp-public-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-block: 40px;
}

.tp-public-footer h2 {
  margin: 0 0 8px;
  color: var(--tp-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.tp-public-footer p,
.tp-public-footer a {
  color: var(--tp-muted-foreground);
  font-size: 14px;
  line-height: 1.5;
}

.tp-public-footer p {
  max-width: 360px;
  margin: 0;
}

.tp-public-footer a {
  display: block;
  margin-top: 6px;
  text-decoration: none;
}

.tp-public-footer a:hover {
  color: var(--tp-primary);
}

.tp-public-footer__note {
  max-width: none;
  margin: 0;
  border-top: 1px solid var(--tp-border);
  padding-block: 16px;
  text-align: center;
  font-size: 12px;
}

.tp-auth-main {
  display: grid;
  justify-items: center;
  min-height: calc(100vh - 61px);
  padding: 0 16px 48px;
}

.tp-auth-main--login {
  align-items: start;
}

.tp-auth-panel {
  width: min(512px, 100%);
  padding-top: 48px;
}

.tp-auth-panel--wide {
  width: min(760px, 100%);
}

.tp-auth-panel--login {
  padding-top: 48px;
}

.tp-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  border-radius: 999px;
  background: var(--tp-accent);
  color: var(--tp-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
}

.tp-auth-kicker svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.tp-auth-panel h1 {
  margin: 0;
  color: var(--tp-primary);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.tp-auth-panel p {
  margin: 4px 0 0;
  color: var(--tp-muted-foreground);
  font-size: 16px;
  line-height: 1.35;
}

.tp-auth-card {
  margin-top: 24px;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-card);
  background: var(--tp-card);
  box-shadow: var(--tp-shadow-card);
  padding: 24px;
}

.tp-auth-form {
  display: grid;
  gap: 16px;
}

.tp-form-stack-spaced {
  margin-top: 16px;
}

.tp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tp-field--wide {
  grid-column: 1 / -1;
}

.tp-field {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--tp-foreground);
  font-size: 14px;
  font-weight: 600;
}

.tp-field strong {
  color: var(--tp-danger);
}

.tp-field input,
.tp-field select,
.tp-field textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--tp-input);
  border-radius: 6px;
  background: transparent;
  color: var(--tp-foreground);
  box-shadow: var(--tp-shadow-control);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  padding: 7px 12px;
}

.tp-field input:focus,
.tp-field select:focus,
.tp-field textarea:focus {
  border-color: var(--tp-ring);
  box-shadow: 0 0 0 1px var(--tp-ring), var(--tp-shadow-control);
}

.tp-check-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--tp-foreground);
  font-size: 14px;
  font-weight: 500;
}

.tp-check-field input {
  margin-top: 3px;
}

.tp-alert {
  margin-bottom: 13px;
  border-radius: 9px;
  font-weight: 700;
  padding: 8px 9px;
}

.tp-alert--danger {
  border: 1px solid rgba(220, 38, 38, 0.22);
  background: var(--tp-danger-soft);
  color: #991b1b;
}

.tp-alert--success {
  border: 1px solid color-mix(in oklch, var(--tp-success) 30%, transparent);
  background: var(--tp-success-soft);
  color: var(--tp-success);
}

.tp-field-error {
  color: var(--tp-danger);
  font-size: 12px;
  font-weight: 600;
}

.tp-auth-links {
  display: flex;
  justify-content: space-between;
  gap: 11px;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.3;
}

.tp-auth-links a,
.tp-auth-admin-link a {
  color: var(--tp-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tp-auth-admin-link {
  margin-top: 16px;
  color: var(--tp-foreground);
  font-size: 15px;
}

.page-band {
  margin: 0;
  padding: 24px 0;
}

.page-band + .page-band {
  margin-top: 24px;
}

.compact-band {
  border-bottom: 1px solid var(--tp-border);
  background: var(--tp-card);
}

.band-inner {
  width: min(1120px, calc(100vw - 32px));
  margin-inline: auto;
}

.compact-band .band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.section-kicker {
  margin: 0 0 4px;
  color: var(--tp-muted-foreground);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  .tp-public-nav {
    display: none;
  }

  .tp-public-actions {
    margin-left: auto;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .tp-public-actions {
    margin-left: 0;
  }
}

@media (max-width: 1023.98px) {
  .tp-landing-hero__grid {
    grid-template-columns: 1fr;
    padding-block: 56px;
  }
}

@media (max-width: 639.98px) {
  :root {
    --tp-public-gutter: 16px;
  }

  .tp-public-header__inner {
    min-height: 61px;
  }

  .tp-brand--public .tp-brand__name {
    font-size: 16px;
  }

  .tp-brand--public .tp-brand__tagline {
    font-size: 11px;
  }

  .tp-public-actions {
    gap: 6px;
  }

  .tp-public-actions .tp-button {
    min-height: 32px;
    padding-inline: 10px;
  }

  .tp-auth-panel {
    padding-top: 40px;
  }

  .tp-auth-card {
    padding: 24px;
  }

  .tp-form-grid {
    grid-template-columns: 1fr;
  }

  .tp-landing h1 {
    font-size: 36px;
  }

  .tp-landing-lead {
    font-size: 16px;
  }

  .tp-landing-actions,
  .tp-demo-actions {
    display: grid;
  }

  .tp-button--landing {
    width: 100%;
  }

  .tp-payment-example dl div {
    align-items: flex-start;
  }

  .tp-step-grid,
  .tp-feature-grid,
  .tp-public-footer__grid {
    grid-template-columns: 1fr;
  }

  .compact-band .band-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
