/* Tutelary marketing site — calm, safety-focused palette.
   Soft teal + sage green convey trust/calm; off-white background avoids
   harsh contrast; no alarming reds (this is a protection product, not a
   threat-dashboard). */

:root {
  --color-bg: #f4f9f7;
  --color-bg-alt: #e9f2ee;
  --color-surface: #ffffff;
  --color-text: #142523;
  --color-text-muted: #47605c;
  --color-primary: #1a7a6d;
  --color-primary-dark: #145f56;
  --color-primary-soft: #e3f2ee;
  --color-accent: #d98f4f;
  --color-accent-dark: #a34a1a;
  --color-accent-soft: #fbeada;
  --color-border: #d7e6e1;
  --shadow-soft: 0 8px 24px rgba(20, 37, 35, 0.08);
  --shadow-lift: 0 16px 40px rgba(20, 37, 35, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--color-primary-dark);
}

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 100;
  background: var(--color-primary-dark);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Focus visibility (keyboard navigation) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-primary-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .price-card-featured {
    transform: none;
  }

  .feature-card:hover {
    transform: none;
  }
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--color-primary-dark);
}

.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
}

.site-nav {
  display: flex;
  gap: 24px;
}

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

.site-nav a:hover {
  color: var(--color-primary-dark);
}

/* Hero */
.hero {
  padding: 96px 0 88px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-illustration {
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(var(--shadow-lift));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin: 0 0 20px;
  color: var(--color-text);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border: 1.5px solid var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

/* Sections */
.section {
  padding: 72px 0;
}

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

.section h2 {
  text-align: center;
  font-size: 1.9rem;
  margin: 0 0 12px;
}

.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 48px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

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

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Product preview */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.preview-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

.preview-tag {
  text-transform: none;
  font-weight: 500;
  letter-spacing: normal;
}

.mock-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.mock-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mock-timestamp {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.mock-panel-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.mock-panel-sub {
  margin: 0 0 14px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.mock-reasons {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.mock-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mock-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

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

.preview-footnote {
  margin-top: 32px;
}

/* Risk badge (mirrors tutelary-dashboard-web's RiskLevelBadge component) */
.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.risk-badge__icon {
  width: 16px;
  height: 16px;
}

.risk-badge--critical {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.price-card-featured {
  border: 2px solid var(--color-primary);
  transform: translateY(-8px);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
}

.price-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.price {
  margin: 0;
}

.price .amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.price .period {
  color: var(--color-text-muted);
}

.price-annual {
  margin: 4px 0 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.price-for {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  min-height: 66px;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.price-card li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 0.95rem;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent-dark);
  font-weight: 700;
}

.pricing-footnote {
  text-align: center;
  color: var(--color-text-muted);
  margin-top: 32px;
  font-size: 0.9rem;
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 8px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--color-primary);
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: "–";
}

.faq-item p {
  margin: 12px 0 4px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item code {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.85em;
}

.faq-footnote {
  margin-top: 32px !important;
}

/* Signup */
.signup-section {
  background: var(--color-primary-dark);
  color: #ffffff;
}

.signup-section h2 {
  color: #ffffff;
}

.signup-section .section-sub {
  color: rgba(255, 255, 255, 0.85);
}

.signup-inner {
  max-width: 560px;
  text-align: center;
}

.signup-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.signup-form input[type="email"] {
  flex: 1 1 280px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 1rem;
}

.signup-status {
  min-height: 1.2em;
  margin-top: 16px;
  font-weight: 600;
}

.signup-status-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* About */
.about-inner {
  max-width: 640px;
  text-align: center;
  margin: 0 auto;
}

.about-inner p {
  color: var(--color-text-muted);
}

.kansas-wireframe {
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 24px auto 0;
  display: block;
}

.kansas-wireframe path {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 3;
  stroke-dasharray: 6 5;
  stroke-linejoin: round;
}

.kansas-wireframe-textbox {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  overflow: hidden;
}

.kansas-wireframe-text {
  margin: 0;
  font-family: inherit;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  text-align: center;
  overflow-wrap: break-word;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-inner p {
  margin: 4px 0;
}

.footer-links a {
  color: var(--color-primary-dark);
  font-weight: 600;
}

.footer-disabled-link {
  color: var(--color-text-muted);
  cursor: not-allowed;
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    order: 1;
  }

  .hero-art {
    order: 0;
  }

  .hero-illustration {
    max-width: 220px;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .price-card-featured {
    transform: none;
  }
}
