/* Skylab portal — standalone styles for index, service and legal pages. */

:root {
  --p-bg: #0b1210;
  --p-bg-soft: #0f1915;
  --p-surface: rgba(18, 31, 25, 0.78);
  --p-surface-solid: #122019;
  --p-line: rgba(236, 245, 239, 0.10);
  --p-line-strong: rgba(236, 245, 239, 0.18);
  --p-text: #eef5ef;
  --p-muted: #a4b7ab;
  --p-muted-2: #7f958a;
  --p-accent: #74e3a3;
  --p-accent-2: #c8f26b;
  --p-accent-ink: #062015;
  --p-warm: #ffd18a;
  --p-maxw: 1160px;
  --p-radius-xl: 28px;
  --p-radius-lg: 22px;
  --p-radius-md: 16px;
  --p-font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --p-font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --p-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.p-body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(116, 227, 163, 0.14), transparent 60%),
    radial-gradient(900px 560px at 8% 14%, rgba(200, 242, 107, 0.07), transparent 55%),
    linear-gradient(180deg, #0b1210 0%, #0a100d 100%);
  color: var(--p-text);
  font-family: var(--p-font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.p-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(236, 245, 239, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 245, 239, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  z-index: 0;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.p-container {
  width: min(100% - 48px, var(--p-maxw));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.p-skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--p-accent);
  color: var(--p-accent-ink);
  font-weight: 700;
  transition: top .2s ease;
}

.p-skip:focus { top: 16px; }

.p-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Header */
.p-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--p-line);
  background: rgba(11, 18, 16, 0.82);
  backdrop-filter: blur(18px);
}

.p-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.p-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: none;
}

.p-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--p-accent), var(--p-accent-2));
  color: var(--p-accent-ink);
  font-family: var(--p-font-display);
  font-size: 23px;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(6, 32, 21, 0.15) inset;
}

.p-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.p-brand-text strong { font-size: 1.12rem; }
.p-brand-text span { color: var(--p-muted-2); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; }

.p-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.p-nav a {
  color: var(--p-muted);
  text-decoration: none;
  font-size: 0.94rem;
  white-space: nowrap;
  transition: color .2s ease;
}

.p-nav a:hover,
.p-nav a:focus-visible { color: var(--p-text); }

.p-nav-login { display: none; }

.p-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.p-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--p-line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--p-text);
  cursor: pointer;
}

.p-menu-bars,
.p-menu-bars::before,
.p-menu-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.p-menu-bars { position: relative; }
.p-menu-bars::before,
.p-menu-bars::after { content: ""; position: absolute; left: 0; }
.p-menu-bars::before { top: -6px; }
.p-menu-bars::after { top: 6px; }
.p-menu-btn[aria-expanded="true"] .p-menu-bars { background: transparent; }
.p-menu-btn[aria-expanded="true"] .p-menu-bars::before { transform: translateY(6px) rotate(45deg); }
.p-menu-btn[aria-expanded="true"] .p-menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.p-btn:hover { transform: translateY(-1px); }
.p-btn:active { transform: translateY(0); }
.p-btn:focus-visible { outline: 2px solid var(--p-accent-2); outline-offset: 3px; }

.p-btn--primary {
  background: linear-gradient(145deg, var(--p-accent), var(--p-accent-2));
  color: var(--p-accent-ink);
  box-shadow: 0 14px 34px rgba(116, 227, 163, 0.2);
}

.p-btn--primary:hover { box-shadow: 0 18px 40px rgba(116, 227, 163, 0.28); }

.p-btn--ghost {
  border-color: var(--p-line-strong);
  color: var(--p-text);
  background: transparent;
}

.p-btn--ghost:hover { border-color: rgba(116, 227, 163, 0.55); color: var(--p-accent); }

.p-btn--quiet {
  border-color: transparent;
  color: var(--p-muted);
  background: transparent;
}

.p-btn--quiet:hover { color: var(--p-text); }
.p-btn--lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }
.p-btn--wide { width: 100%; }
.p-arrow { font-size: 1.05em; line-height: 1; }

/* Hero */
.p-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 8vw, 100px) 0 clamp(48px, 7vw, 92px);
}

.p-hero-glow {
  position: absolute;
  right: -180px;
  top: -240px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 227, 163, 0.18), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
}

.p-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(34px, 6vw, 70px);
  align-items: center;
}

.p-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--p-accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.p-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.p-hero-title {
  margin-top: 20px;
  font-family: var(--p-font-display);
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.p-hero-title em {
  font-style: italic;
  color: var(--p-accent);
  background: linear-gradient(100deg, var(--p-accent), var(--p-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.p-lead {
  margin-top: 22px;
  max-width: 58ch;
  color: var(--p-muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}

.p-hero-actions,
.p-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.p-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  color: var(--p-muted-2);
  font-size: 0.9rem;
}

.p-points li { display: inline-flex; align-items: center; gap: 8px; }
.p-points li::before {
  content: "✓";
  color: var(--p-accent);
  font-weight: 700;
  font-size: 0.95em;
}

.p-hero-art {
  position: relative;
  margin: 0;
  border: 1px solid var(--p-line-strong);
  border-radius: var(--p-radius-xl);
  overflow: hidden;
  background: var(--p-surface-solid);
  box-shadow: var(--p-shadow);
}

.p-hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1216 / 832;
  object-fit: cover;
}

.p-hero-art figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(236, 245, 239, 0.12);
  border-radius: 12px;
  background: rgba(8, 15, 12, 0.62);
  color: var(--p-muted);
  font-size: 0.78rem;
  backdrop-filter: blur(10px);
}


.account-logout {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  opacity: 0.7;
  padding: 0 0 0 12px;
}
.account-logout:hover,
.account-logout:focus-visible {
  opacity: 1;
  text-decoration: underline;
}
