/* RKOSPL — light whitish theme, mobile first */

:root {
  --bg: #fafafa;
  --bg-tint: #f0f2f5;
  --bg-elevated: #ffffff;
  --text: #111111;
  --muted: #5c6570;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --btn: #111111;
  --btn-hover: #2b2b2b;
  --border: #e2e5ea;
  --error: #b91c1c;
  --success: #047857;
  --radius: 8px;
  --max-width: 1100px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  height: 30px;
  width: 30px;
  flex-shrink: 0;
  border-radius: 6px;
}

.logo-wordmark {
  height: 22px;
  width: auto;
  max-width: min(168px, 40vw);
}

.logo-text {
  display: none;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-desktop a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

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

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0 1.25rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.75rem 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-tint);
}

.header-cta {
  display: none;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-tint {
  background: var(--bg-tint);
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 42rem;
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.125rem;
}

.card .card-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.card ul {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.card-icon {
  color: var(--accent);
}

/* Table — engagement */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

table.engagement-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.engagement-table th,
.engagement-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.engagement-table th {
  background: var(--bg-tint);
  font-weight: 600;
}

.engagement-table tr:last-child td,
.engagement-table tr:last-child th {
  border-bottom: none;
}

.engagement-table th[scope="row"] {
  background: var(--bg-elevated);
  font-weight: 600;
  width: 28%;
}

/* Process */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.process-list li {
  position: relative;
  padding: 0 0 1.5rem 3rem;
  counter-increment: step;
}

.process-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius);
}

.process-list li:last-child {
  padding-bottom: 0;
}

/* Why list */
.why-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--muted);
}

.why-list li svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--accent);
}

.why-list li.is-hidden {
  display: none;
}

.is-hidden {
  display: none !important;
}

/* FAQ */
.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: none;
  background: var(--bg-elevated);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.faq-trigger:hover {
  background: var(--bg-tint);
}

.faq-trigger svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-panel {
  padding: 0 1.25rem 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.faq-panel[hidden] {
  display: none;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-details {
  font-size: 0.9375rem;
  color: var(--muted);
}

.contact-details p {
  margin: 0 0 0.75rem;
}

.contact-details a {
  font-weight: 500;
}

.form-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.form-message.is-success {
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid #a7f3d0;
}

.form-message.is-error {
  background: #fef2f2;
  color: var(--error);
  border: 1px solid #fecaca;
}

.form-message[hidden] {
  display: none;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

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

.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--error);
  min-height: 1.2em;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--error);
}

.consent-field label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 400;
  cursor: pointer;
}

.consent-field input {
  width: auto;
  margin-top: 0.25rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  background: var(--bg-tint);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-grid strong {
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Legal page */
.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.legal-page .legal-updated {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
}

.legal-page p,
.legal-page ul {
  color: var(--muted);
  max-width: 42rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

/* Desktop */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

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

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

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

@media (min-width: 768px) {
  .logo-icon {
    height: 34px;
    width: 34px;
  }

  .logo-wordmark {
    height: 26px;
  }
}

@media (min-width: 1280px) {
  .section {
    padding: 4.5rem 0;
  }

  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}