/*
 * Shared, minimal overrides on top of Pico (classless).
 * Brand-specific tweaks live in app/assets/stylesheets/brands/*.
 */

/*
 * TC Pro "moonshot" theme
 * - Still Pico-friendly + no-build
 * - Uses semantic HTML with a few classes
 */

:root {
  --tcpro-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tcpro-font-display: "Manrope", var(--tcpro-font-body);

  --tcpro-logo-max-height: 3.25rem;
  --tcpro-footer-logo-max-height: 3.25rem;

  --tcpro-shadow: 0 16px 60px rgba(0, 0, 0, 0.10);
  --tcpro-shadow-soft: 0 10px 35px rgba(0, 0, 0, 0.08);
  --tcpro-ring: 0 0 0 4px rgba(0, 0, 0, 0.06);

  /* Brand CSS overrides these */
  --tcpro-accent: var(--pico-primary);
  --tcpro-accent-ink: #ffffff;
  --tcpro-hero-from: rgba(0, 0, 0, 0.65);
  --tcpro-hero-to: rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--tcpro-font-body);
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(0, 0, 0, 0.06), transparent 55%),
    radial-gradient(1000px 600px at 95% -10%, rgba(0, 0, 0, 0.05), transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), transparent 25%),
    var(--pico-background-color);
}

.site {
  max-width: 72rem;
  margin-inline: auto;
}

/* Flash */
aside[data-flash-type] {
  max-width: 72rem;
  margin: 1rem auto 0;
  padding: 0 1rem;
}

aside[data-flash-type] > aside,
aside[data-flash-type] {
  border-radius: calc(var(--pico-border-radius) * 1.5);
}

/* Sticky header */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.75rem 1rem 0;
}

.sticky-header .sticky-cta {
  display: flex;
  justify-content: flex-end;
}

.nav-shelf {
  display: flex;
  margin: 0.5rem 1rem 0;
  padding: 0.55rem 0.75rem;
  border-radius: calc(var(--pico-border-radius) * 1.5);
  background: rgba(10, 12, 16, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--tcpro-shadow-soft);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-shelf a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.95rem;
}

.nav-shelf a:hover {
  background: rgba(255, 255, 255, 0.10);
}

.header-cta .cta-short {
  display: none;
}

@media (max-width: 520px) {
  .header-cta {
    padding: 0.7rem 0.8rem;
  }

  .header-cta .cta-long {
    display: none;
  }

  .header-cta .cta-short {
    display: inline;
  }
}

/* Hero */
.hero {
  margin: 0.75rem 1rem 0;
  border-radius: calc(var(--pico-border-radius) * 2);
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 10% 0%, var(--tcpro-hero-from), transparent 60%),
    radial-gradient(900px 550px at 90% 0%, var(--tcpro-hero-to), transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--tcpro-shadow);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 260px at 70% 40%, rgba(255, 255, 255, 0.10), transparent 60%),
    radial-gradient(600px 240px at 30% 65%, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 2.25rem 1.25rem 2.5rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-header {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-logo {
  display: block;
  max-height: clamp(7.5rem, 16vw, 11.25rem);
  width: auto;
  margin: 0;
}

.hero-text {
  min-width: 0;
  max-width: 46rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0;
  position: relative;
  z-index: 2;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.hero h1 {
  font-family: var(--tcpro-font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
}

.hero .subtitle {
  font-size: 1.1rem;
  max-width: 52rem;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 720px) {
  .hero-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

a.button,
button.button,
input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: calc(var(--pico-border-radius) * 1.25);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--tcpro-shadow-soft);
}

a.button.primary,
button.button.primary,
input.button.primary {
  background: var(--tcpro-accent);
  color: var(--tcpro-accent-ink);
  border-color: rgba(255, 255, 255, 0.0);
}

  .button:hover {
    transform: none;
  }


.brand-logo {
  display: block;
  max-height: var(--tcpro-logo-max-height);
  width: auto;
}

/* Main content */
.content {
  padding: 2.5rem 1rem 3.5rem;
}

section {
  margin-block: 3rem;
}

section > h2 {
  font-family: var(--tcpro-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0;
}

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 1.25rem 1.25rem;
  border-radius: calc(var(--pico-border-radius) * 1.75);
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.card h3 {
  font-family: var(--tcpro-font-display);
  letter-spacing: -0.02em;
  margin-top: 0;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--pico-muted-color);
  margin-bottom: 0.5rem;
}

.split {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* Contact section */
section.contact {
  margin-top: 3.75rem;
}

section.contact form {
  margin-top: 1rem;
}

section.contact .card {
  padding: 1.5rem;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--pico-muted-border-color);
  text-align: center;
}

.footer-logo {
  display: block;
  max-height: var(--tcpro-footer-logo-max-height);
  width: auto;
  margin: 0 auto 1rem;
}

footer small {
  display: block;
  color: var(--pico-muted-color);
}

.mt-1 {
  margin-top: 1rem;
}

.license-code {
  font-family: var(--tcpro-font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

.button:hover {

    transform: none;
  }
}

/* TC Pro Wallpaper tweaks */
:root {
  --pico-primary: #0b5cab;
  --pico-primary-background: #0b5cab;
  --pico-primary-hover: #084a89;
  --pico-primary-underline: rgba(11, 92, 171, 0.35);
  --pico-primary-inverse: #ffffff;

  --tcpro-accent: #2f6fed;
  --tcpro-accent-ink: #0a1020;
  --tcpro-hero-from: rgba(47, 111, 237, 0.55);
  --tcpro-hero-to: rgba(5, 16, 32, 0.85);
}
