/* ==========================================================================
   ESTNOMARA — Design System & Base Styles
   ========================================================================== */

:root {
  /* Colour palette */
  --bg-primary: #05070d;
  --bg-secondary: #080b14;
  --bg-panel: #0d1220;
  --bg-panel-raised: #111827;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text-primary: #f5f7fb;
  --text-secondary: #aab2c0;
  --text-muted: #77808f;

  --accent: #4c86ff;
  --accent-bright: #6fa1ff;
  --accent-dim: #2f5fd0;
  --accent-glow: rgba(76, 134, 255, 0.35);
  --accent-glow-soft: rgba(76, 134, 255, 0.12);

  --success: #3ecf8e;

  /* Typography */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-elevated: 0 20px 60px -20px rgba(0, 0, 0, 0.6);

  --transition-fast: 160ms ease;
  --transition-base: 240ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-heading {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  line-height: 1.15;
  max-width: 40ch;
}

.section-lede {
  color: var(--text-secondary);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
  max-width: 60ch;
  line-height: 1.7;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.text-gradient {
  background: linear-gradient(120deg, #ffffff 0%, #cddcff 45%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 2rem;
  }
}

section {
  position: relative;
  padding-block: clamp(4rem, 3rem + 4vw, 7rem);
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.glow-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow-field::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow-soft) 0%, rgba(76, 134, 255, 0) 70%);
  filter: blur(10px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-dim));
  color: #ffffff;
  box-shadow: 0 8px 30px -8px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(76, 134, 255, 0.08);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
}

/* The frosted-glass background lives on a pseudo-element rather than
   directly on .site-header. Applying backdrop-filter to the header itself
   would make it establish a containing block for fixed descendants
   (e.g. the mobile nav-links panel), causing that panel to be sized
   relative to the header instead of the viewport. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-primary);
    padding: 1rem 1.5rem 2rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
    border-bottom: 1px solid var(--border-subtle);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.05rem;
  }

  .nav-actions .btn-secondary {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: clamp(4rem, 3rem + 5vw, 7rem);
  padding-bottom: clamp(4rem, 3rem + 5vw, 7rem);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 1.6rem + 3.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   Cards grid — What We Do
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.service-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  scroll-margin-top: 100px;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-elevated);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(76, 134, 255, 0.22), rgba(76, 134, 255, 0.05));
  border: 1px solid rgba(76, 134, 255, 0.25);
  color: var(--accent-bright);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
  letter-spacing: 0.02em;
}

.status-badge.is-live {
  background: rgba(62, 207, 142, 0.12);
  color: var(--success);
  border: 1px solid rgba(62, 207, 142, 0.3);
}

.status-badge.is-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.2);
}

.status-badge.is-development {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}

.status-badge.is-development::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.service-note {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Built for the Trades
   ========================================================================== */

.trades-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
  align-items: center;
}

@media (max-width: 980px) {
  .trades-section {
    grid-template-columns: 1fr;
  }
}

.trades-copy h2 {
  margin-bottom: 1.25rem;
}

.trades-copy > p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.trades-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.trade-chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.trades-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.trades-stat {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.trades-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trades-stat-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(76, 134, 255, 0.1);
  border: 1px solid rgba(76, 134, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
}

.trades-stat-icon svg {
  width: 18px;
  height: 18px;
}

.trades-stat h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.trades-stat p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   How It Works
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-bright);
  margin-bottom: 1.25rem;
  display: block;
  opacity: 0.85;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.step-connector {
  display: none;
}

@media (min-width: 901px) {
  .steps {
    position: relative;
  }
}

/* ==========================================================================
   Why Estnomara
   ========================================================================== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 780px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-card {
  display: flex;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
}

.why-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(76, 134, 255, 0.1);
  border: 1px solid rgba(76, 134, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
}

.why-icon svg {
  width: 20px;
  height: 20px;
}

.why-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   Upcoming Capabilities
   ========================================================================== */

.upcoming-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: linear-gradient(160deg, rgba(76, 134, 255, 0.08), rgba(13, 18, 32, 0.4));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 3rem);
}

.upcoming-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.upcoming-panel h2 {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  max-width: 32ch;
}

.upcoming-panel p {
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 68ch;
}

.upcoming-features {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 420px;
  gap: 1rem;
  margin-top: 0.5rem;
}

.upcoming-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
}

.upcoming-feature svg {
  width: 20px;
  height: 20px;
  color: var(--accent-bright);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.upcoming-feature h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.upcoming-feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.final-cta h2 {
  font-size: clamp(1.9rem, 1.5rem + 2vw, 3rem);
  line-height: 1.15;
}

.final-cta p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 56ch;
  line-height: 1.7;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
}

.contact-detail:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.contact-detail-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(76, 134, 255, 0.1);
  border: 1px solid rgba(76, 134, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
}

.contact-detail a,
.contact-detail span {
  font-weight: 500;
  font-size: 0.98rem;
}

.contact-detail .detail-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 0.15rem;
}

.contact-form {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: rgba(76, 134, 255, 0.05);
  outline: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: clamp(3rem, 2.5rem + 2vw, 4.5rem) 2.5rem;
  background: var(--bg-secondary);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 780px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 340px;
}

.footer-brand .nav-logo {
  font-size: 1.2rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */

/* By default (including when JavaScript is unavailable) reveal content
   is fully visible. The hidden starting state is only ever applied once
   an early inline script confirms JS is running, so content can never
   be stuck invisible for no-JS users, crawlers, or slow connections. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 700ms ease;
}

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Misc utilities
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.simple-page {
  padding-top: clamp(4rem, 3rem + 3vw, 6rem);
  padding-bottom: 5rem;
}

.simple-page .container {
  max-width: 820px;
}

.simple-page h1 {
  font-size: clamp(2rem, 1.7rem + 1.5vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.simple-page h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
}

.simple-page p,
.simple-page li {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.simple-page a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.simple-page ul {
  list-style: disc;
  padding-left: 1.4rem;
}

.simple-page ul li {
  margin-bottom: 0.5rem;
}
