/* Smart Fellow · shared editorial system */

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

:root {
  --paper: #FAFAF7;
  --paper-strong: #f2efe6;
  --surface: #FFFDFB;
  --surface-muted: #F5F3EE;
  --ink: #161712;
  --ink-soft: #5b5a55;
  --ink-faint: #87847d;
  --line: #ddd8cd;
  --line-strong: #cfc7b8;
  --accent: #1b4d3e;
  --accent-soft: #e8f0eb;
  --accent-deep: #12372d;
  --accent-contrast: #f7f5ef;
  --shadow: 0 18px 40px rgba(19, 27, 22, 0.06);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1180px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }

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

button, input, textarea, select {
  font: inherit;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 2.5rem;
  background: rgba(250, 248, 242, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}

nav.nav-hidden { transform: translateY(-100%); }

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 0.01em;
}

.nav-logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta,
.btn-dark,
.btn-light,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.nav-cta,
.btn-dark,
.btn-light {
  background: var(--accent);
  color: var(--accent-contrast);
  border: 1px solid var(--accent);
  font-weight: 600;
}

.nav-cta:hover,
.btn-dark:hover,
.btn-light:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.btn-outline {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: transparent;
  font-weight: 500;
}

.btn-outline:hover {
  border-color: var(--ink-soft);
}

/* Nav dropdown (hover/focus on desktop) */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0.55;
  transition: opacity 0.18s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after {
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 320px;
  margin-top: 0.5rem;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(19, 27, 22, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* Invisible bridge across the visual gap between trigger and menu, so the
   mouse path from trigger to menu stays inside the hovered subtree. */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -0.6rem;
  left: 0;
  right: 0;
  height: 0.6rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.12s ease;
}

.nav-dropdown-item:hover {
  background: var(--surface-muted);
}

.nav-dropdown-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.nav-dropdown-desc {
  font-size: 0.8rem;
  color: var(--ink-faint);
  line-height: 1.35;
}

.nav-dropdown-empty {
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-style: italic;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 61px 0 0;
  z-index: 90;
  padding: 2rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.nav-mobile.open { display: block; }

.nav-mobile ul {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.nav-mobile ul a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.15;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.lang-option:hover {
  color: var(--ink);
}

.lang-option.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.nav-mobile > .nav-cta {
  display: flex;
  width: 100%;
  margin-bottom: 1rem;
}

.lang-switcher-mobile {
  flex-direction: column;
  align-items: stretch;
}

.lang-switcher-mobile .lang-option {
  min-height: 42px;
}

.page-shell,
.section-inner,
.footer-inner {
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
}

.section--soft { background: var(--surface-muted); }

.section--green {
  background: var(--accent);
  color: var(--accent-contrast);
}

.eyebrow,
.eyebrow-light {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.eyebrow { color: var(--accent); }
.eyebrow-light { color: rgba(247, 245, 239, 0.66); }

.section-title,
.hero-title,
.display-number,
.quote-mark,
footer .footer-logo {
  font-family: Georgia, "Times New Roman", serif;
}

.section-title,
.hero-title {
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(2.9rem, 6vw, 5.3rem);
  max-width: 14ch;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 18ch;
  margin-bottom: 1rem;
}

.section-title em,
.hero-title em {
  color: var(--accent);
  font-style: italic;
}

.lede,
.section-copy,
.body-copy {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.lede { max-width: 44rem; }

.section-copy + .section-copy { margin-top: 1rem; }

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

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.panel,
.table-shell,
.step-card,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.panel,
.step-card,
.stat-card {
  padding: 1.4rem;
}

.card h3,
.step-card h3,
.stat-card h3,
.table-shell h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.card p,
.step-card p,
.stat-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.muted {
  color: var(--ink-faint);
}

.key-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.key-line:last-child { border-bottom: 0; }

.key-line strong {
  color: var(--ink);
  font-weight: 600;
}

.key-line span:last-child {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: right;
}

.spec-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.spec-list li {
  display: flex;
  gap: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.spec-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

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

.comparison-table thead th {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 0.6rem;
}

.comparison-table thead th:nth-child(2) {
  color: var(--accent);
}

.comparison-table tbody th {
  width: 30%;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 500;
}

.comparison-table td {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.comparison-table tbody td:first-of-type {
  color: var(--ink);
  font-weight: 500;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.display-number {
  color: var(--line-strong);
  font-style: italic;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.quote-block {
  padding: 2rem 0;
}

.quote-block blockquote {
  max-width: 18ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-style: italic;
  line-height: 1.15;
  color: var(--ink);
}

.quote-block p {
  margin-top: 0.9rem;
  color: var(--ink-faint);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cta-panel {
  padding: 3rem;
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: var(--radius-lg);
}

.cta-panel .section-title,
.cta-panel .lede,
.cta-panel .body-copy {
  color: inherit;
}

.cta-panel .section-title em {
  color: rgba(247, 245, 239, 0.84);
}

.cta-panel .btn-outline {
  color: var(--accent-contrast);
  border-color: rgba(247, 245, 239, 0.34);
}

.cta-panel .btn-outline:hover {
  border-color: rgba(247, 245, 239, 0.7);
}

.cta-panel .btn-dark {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--accent);
}

.cta-panel .btn-dark:hover {
  background: var(--paper-strong);
  border-color: var(--paper-strong);
}

/* Fix italic em inside green sections (would be invisible otherwise) */
.section--green .section-title em,
.section--green .hero-title em {
  color: rgba(247, 245, 239, 0.78);
}

/* Buttons inside any green section (not just cta-panel) */
.section--green .btn-dark {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--accent);
}

.section--green .btn-dark:hover {
  background: var(--paper-strong);
  border-color: var(--paper-strong);
}

.section--green .btn-outline {
  color: rgba(247, 245, 239, 0.9);
  border-color: rgba(247, 245, 239, 0.34);
  background: transparent;
}

.section--green .btn-outline:hover {
  border-color: rgba(247, 245, 239, 0.7);
}

/* Role grid · v3 editorial style */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2rem;
}

a.role-item {
  text-decoration: none;
  color: inherit;
}

.role-item {
  background: var(--paper);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.role-item:hover { background: var(--paper-strong); }

.role-item.is-featured {
  background: var(--surface);
  border-bottom: 2px solid var(--accent);
}

.role-item-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.role-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.role-item-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.role-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.role-item-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.role-item-price span {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-faint);
}

.role-item-price.is-custom {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-faint);
}

.role-hire-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.role-hire-link:hover { color: var(--accent-deep); }

/* Shared CTA layout (used on all pages) */
.page-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.page-cta-inner .section-title {
  max-width: none;
  margin-bottom: 0.75rem;
}

.page-cta-inner .lede {
  max-width: none;
  color: rgba(247, 245, 239, 0.72);
}

.page-cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

.page-cta-note {
  margin-top: 1rem;
  color: rgba(247, 245, 239, 0.45);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0 2rem;
}

.footer-logo {
  color: var(--ink);
  font-size: 1rem;
  font-style: italic;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.footer-copy {
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  nav {
    padding: 0.95rem 1.5rem;
  }

  .nav-links,
  .nav-right {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .page-shell,
  .section-inner,
  .footer-inner {
    width: min(var(--container), calc(100% - 2rem));
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .hero-title {
    max-width: 11ch;
  }

  .cta-panel {
    padding: 2rem 1.25rem;
  }

  .comparison-table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
    width: 100%;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tr {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }

  .comparison-table tbody th,
  .comparison-table td {
    padding: 0.25rem 0 0.25rem 1rem;
    border: 0;
  }
}
