/* Shared shell for the static piri.pro stopgap site.
   Deliberately dependency-free: no CDN, no font download, no build step. */

:root {
  --primary: #0891b2;
  --primary-soft: rgba(8, 145, 178, 0.1);
  --surface-0: #ffffff;
  --surface-50: #f8fafc;
  --surface-100: #f1f5f9;
  --surface-500: #64748b;
  --surface-600: #475569;
  --surface-950: #020617;
  --border: #e2e8f0;
  --shadow: 0 1px 2px rgba(44, 54, 87, 0.04), 0 4px 4px rgba(44, 54, 87, 0.03),
    0 10px 6px rgba(44, 54, 87, 0.02);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #22d3ee;
    --primary-soft: rgba(34, 211, 238, 0.12);
    --surface-0: #0f172a;
    --surface-50: #0b1222;
    --surface-100: #1e293b;
    --surface-500: #94a3b8;
    --surface-600: #cbd5e1;
    --surface-950: #f8fafc;
    --border: #1e293b;
    --shadow: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface-0);
  color: var(--surface-600);
  font-family:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  color: var(--surface-950);
  line-height: 1.25;
  font-weight: 600;
  margin: 0;
}

a {
  color: var(--primary);
  text-underline-offset: 2px;
}

.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--surface-950);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-header nav a {
  color: var(--surface-500);
  text-decoration: none;
  font-weight: 500;
}

.site-header nav a:hover {
  color: var(--surface-950);
}

/* Sections ---------------------------------------------------------------- */

section {
  padding: 4rem 0;
}

.hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--surface-100);
  color: var(--surface-600);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin: 1.5rem auto 0;
  max-width: 20ch;
}

.lede {
  font-size: 1.125rem;
  color: var(--surface-500);
  max-width: 46rem;
  margin: 1.5rem auto 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
}

.section-intro {
  color: var(--surface-500);
  text-align: center;
  max-width: 42rem;
  margin: 1rem auto 0;
}

/* Cards ------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  background: var(--surface-50);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--surface-500);
}

/* Pricing ----------------------------------------------------------------- */

.plans {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.plan {
  background: var(--surface-50);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan .name {
  font-weight: 600;
  color: var(--surface-950);
}

.plan .price {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--surface-950);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.plan .price small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--surface-500);
}

.plan .seats {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
}

.plan p {
  margin: 0;
  color: var(--surface-500);
  font-size: 0.9375rem;
}

.included {
  margin: 3rem auto 0;
  max-width: 42rem;
}

.included ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.included li::before {
  content: "\2713";
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.625rem;
}

.note {
  color: var(--surface-500);
  font-size: 0.9375rem;
  text-align: center;
  margin-top: 2rem;
}

/* Policy / prose blocks --------------------------------------------------- */

.panel {
  background: var(--surface-50);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 2rem;
}

.panel h3 {
  font-size: 1.0625rem;
  margin: 2rem 0 0.5rem;
}

.panel h3:first-child {
  margin-top: 0;
}

.panel p {
  margin: 0 0 1rem;
}

.panel p:last-child {
  margin-bottom: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.contact-list strong {
  display: block;
  color: var(--surface-950);
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
  color: var(--surface-500);
  font-size: 0.9375rem;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.site-footer nav a {
  color: var(--surface-500);
  text-decoration: none;
  font-weight: 500;
}

.site-footer nav a:hover {
  color: var(--surface-950);
}

/* Legal document pages ---------------------------------------------------- */

.legal-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.legal-main h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
}

.legal-meta {
  color: var(--surface-500);
  margin-top: 1rem;
}

.legal-prose {
  margin-top: 2.5rem;
}

.legal-prose h2 {
  scroll-margin-top: 2rem;
  margin: 3rem 0 1rem;
  font-size: 1.35rem;
}

.legal-prose h2:first-child {
  margin-top: 0;
}

.legal-prose h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.1rem;
}

.legal-prose p {
  margin: 0 0 1rem;
}

.legal-prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-prose li {
  margin-bottom: 0.5rem;
}

.legal-prose strong {
  color: var(--surface-950);
  font-weight: 600;
}

.legal-prose table {
  width: 100%;
  margin: 0 0 1.5rem;
  border-collapse: collapse;
  /* Narrow screens: the subprocessor tables must scroll, not push the page
     into a horizontal scroll. */
  display: block;
  overflow-x: auto;
}

.legal-prose th,
.legal-prose td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-prose th {
  font-weight: 600;
  color: var(--surface-950);
  background: var(--surface-100);
}

.legal-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.legal-nav a {
  color: var(--surface-500);
  text-decoration: none;
  font-weight: 500;
}

.legal-nav a:hover {
  color: var(--surface-950);
}
