/* ==========================================================================
   Harbor AI — base + variables
   ========================================================================== */

:root {
  --bg-dark: #16232b;
  --bg-dark-alt: #1d2f38;
  --bg-light: #f7fafa;
  --bg-light-alt: #eaf1f1;
  --text-dark: #16232b;
  --text-muted: #5b6b70;
  --text-on-dark: #eef5f5;
  --text-on-dark-muted: #a9c0c4;
  --accent: #2f7d78;
  --accent-light: #6fb8ae;
  --accent-gradient: linear-gradient(135deg, #2f7d78 0%, #6fb8ae 60%, #a9d8c9 100%);
  --border-light: #d7e4e3;
  --border-dark: #2a3f47;
  --radius: 14px;
  --shadow-md: 0 12px 30px rgba(22, 35, 43, 0.1);
  --shadow-lg: 0 20px 50px rgba(22, 35, 43, 0.2);
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.25;
  margin: 0 0 16px;
}

p {
  margin: 0 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #16232b;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--border-dark);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
}


/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 35, 43, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--text-on-dark);
}

.logo-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent-gradient);
  display: inline-block;
}

.logo-footer {
  color: var(--text-on-dark);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.primary-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  transition: color 0.15s ease;
}

.primary-nav a:hover {
  color: var(--text-on-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-on-dark);
  border-radius: 2px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: radial-gradient(circle at 15% 10%, rgba(111, 184, 174, 0.28), transparent 55%),
              radial-gradient(circle at 85% 0%, rgba(169, 216, 201, 0.18), transparent 50%),
              var(--bg-dark);
  color: var(--text-on-dark);
  padding: 120px 0 100px;
  text-align: center;
}

.hero-inner {
  max-width: 800px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(111, 184, 174, 0.16);
  border: 1px solid rgba(111, 184, 174, 0.4);
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-on-dark-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  margin: 0;
}

.btn-wide {
  width: 100%;
}

/* ==========================================================================
   Section titles (shared)
   ========================================================================== */

.section-title {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 580px;
  margin: 0 auto 48px;
}

.section-kicker {
  text-align: center;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ==========================================================================
   Story
   ========================================================================== */

.story {
  padding: 90px 0;
}

.story-panels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.story-panel {
  background: var(--bg-light-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.story-time {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 10px;
}

.story-panel h3 {
  font-size: 16px;
  font-weight: 700;
}

.story-panel p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.story-disclaimer {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================================================
   How it works
   ========================================================================== */

.how {
  background: var(--bg-light-alt);
  padding: 90px 0;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}

.step-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
}

.step-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

/* ==========================================================================
   Features
   ========================================================================== */

.features {
  padding: 90px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-light-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

/* ==========================================================================
   Boundaries + crisis box
   ========================================================================== */

.boundaries {
  background: var(--bg-light-alt);
  padding: 90px 0;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.boundary-card {
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border-light);
}

.boundary-good {
  background: rgba(111, 184, 174, 0.1);
  border-color: rgba(111, 184, 174, 0.4);
}

.boundary-not {
  background: var(--bg-light);
}

.boundary-card h3 {
  font-size: 19px;
  font-weight: 700;
}

.boundary-card ul {
  padding-left: 20px;
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.boundary-card li {
  margin-bottom: 10px;
}

.crisis-box {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius);
  padding: 32px 36px;
  max-width: 720px;
  margin: 0 auto;
}

.crisis-box h3 {
  font-size: 19px;
  color: var(--text-on-dark);
}

.crisis-box p {
  color: var(--text-on-dark-muted);
  font-size: 15px;
}

.crisis-list {
  padding-left: 20px;
  margin: 0 0 16px;
  color: var(--text-on-dark);
  font-size: 15px;
}

.crisis-list li {
  margin-bottom: 8px;
}

.crisis-note {
  font-size: 13px;
  font-style: italic;
  margin: 0;
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing {
  padding: 90px 0;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 780px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-light-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
}

.price-card-featured {
  background: var(--bg-light);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 32px;
  background: var(--accent-gradient);
  color: #16232b;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin: 0;
}

.price-name {
  font-weight: 600;
  color: var(--text-muted);
  margin: 8px 0 4px;
}

.price-amount {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 20px;
}

.price-amount span {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--text-dark);
}

.price-features li {
  padding: 8px 0 8px 26px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.price-features li:last-child {
  border-bottom: none;
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pricing-fine {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 560px;
  margin: 32px auto 0;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  background: var(--bg-light-alt);
  padding: 90px 0;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 18px 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-size: 20px;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 12px 0 0;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  padding: 90px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-copy .section-title,
.contact-copy .section-sub {
  text-align: left;
  margin-left: 0;
}

.contact-form {
  background: var(--bg-light-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.form-row {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-row label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-light);
  color: var(--text-dark);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 125, 120, 0.15);
}

.form-row.has-error input,
.form-row.has-error textarea {
  border-color: #c0392b;
}

.form-error {
  color: #c0392b;
  font-size: 13px;
  margin-top: 4px;
  min-height: 16px;
}

.form-status {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 0;
}

.form-status.success {
  color: #1f7a4d;
}

.form-status.error {
  color: #c0392b;
}

.form-disclaimer {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
  margin: 12px 0 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  padding: 56px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-inner p {
  font-size: 14px;
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.footer-links a {
  font-size: 14px;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-on-dark);
}

.footer-copy {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 13px;
  text-align: center;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 24px 100px;
}

.legal-content h1 {
  font-size: 32px;
}

.legal-content h2 {
  font-size: 22px;
  margin-top: 40px;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 15px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
}

/* ==========================================================================
   Fade-in on scroll
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .story-panels {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-copy .section-title,
  .contact-copy .section-sub {
    text-align: center;
    margin: 0 auto 16px;
  }
}

@media (max-width: 720px) {
  .primary-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--border-dark);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .primary-nav a {
    padding: 12px 0;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .story-panels,
  .step-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 100px 0 72px;
  }

  .crisis-box {
    padding: 24px;
  }
}

