/* Nesvo marketing site — vanilla CSS, no dependencies. Fraunces is self-hosted
   from /assets/fonts (SIL OFL 1.1, license alongside the font files) — no
   Google Fonts, no CDN, no third-party request. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-700.woff2") format("woff2"),
       url("/assets/fonts/fraunces-700.woff") format("woff");
}

:root {
  --ink: #16181D;
  --ink-soft: #4B5058;
  --muted: #6B7178;
  --paper: #FBFAF7;
  --paper-raised: #FFFFFF;
  --border: #E4E1DA;
  --accent: #1F6F54;
  --accent-dark: #16523F;
  --accent-tint: #E9F3EE;
  --amber: #B4750E;
  --amber-tint: #FBF1E0;
  --radius: 10px;
  --max: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 20px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--accent-dark); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.96rem;
}
.site-nav a:hover { color: var(--ink); }

.nav-cta {
  display: inline-block;
  background: var(--ink);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-dark); }

/* Nav toggle (mobile) — pure CSS via checkbox, no JS */
.nav-toggle-input { display: none; }
.nav-toggle-label {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 72px 0 64px;
}
.hero-copy {
  max-width: 640px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.12;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 46ch;
}
/* Primary hero CTA: a status banner, not a button — there is no install
   link yet, so it must never read as one. */
.cta-block {
  margin-top: 8px;
}
.cta-status {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--ink);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin: 0 0 22px;
}
.status-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.notify-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.notify-email {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}
.notify-email:hover { color: var(--accent-dark); text-decoration-color: var(--accent); }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper-raised);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
}
.copy-btn[hidden] { display: none; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.copy-btn.is-copied { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-tint); }
.cta-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 14px 0 0;
}
/* Screenshots are real, landscape, laptop-captured product UI — they run
   below the copy, at full natural aspect ratio, capped so they don't blow
   out on very large monitors but stay large enough to actually read. */
.hero-shot {
  margin-top: 48px;
  max-width: 960px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(22, 24, 29, 0.25);
  background: #fff;
}
.hero-shot img { display: block; width: 100%; height: auto; }

/* Section rhythm */
.section {
  padding: 76px 0;
  border-top: 1px solid var(--border);
}
.section-head {
  max-width: 62ch;
  margin: 0 0 40px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 12px;
}
.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.section .dek {
  font-size: 1.06rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Split / problem section */
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.split-card {
  background: var(--paper-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.split-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.split-card .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.tag-free { background: var(--accent-tint); color: var(--accent-dark); }
.tag-paid { background: var(--amber-tint); color: var(--amber); }
.split-card p { color: var(--ink-soft); margin: 0; }

/* Feature sections with screenshot */
.feature-copy {
  max-width: 680px;
}
.feature-shot {
  margin-top: 40px;
  max-width: 960px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 40px -28px rgba(22, 24, 29, 0.3);
}
.feature-shot img { display: block; width: 100%; height: auto; }
.feature-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
}
.feature-list li:first-child { border-top: none; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.feature-list li strong { color: var(--ink); }

.honest-note {
  margin-top: 28px;
  background: var(--accent-tint);
  border: 1px solid #CFE6DA;
  border-radius: var(--radius);
  padding: 20px 22px;
}
.honest-note p {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 0.95rem;
}
.honest-note p:last-child { margin-bottom: 0; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
  margin-top: 44px;
}
.step {
  counter-increment: step;
  position: relative;
  padding-top: 8px;
}
.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* Pricing */
.pricing-table-wrap {
  margin-top: 44px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper-raised);
}
table.pricing {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
table.pricing th, table.pricing td {
  padding: 20px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.pricing thead th {
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.pricing tbody tr:last-child td { border-bottom: none; }
table.pricing th:not(:first-child), table.pricing td:not(:first-child) {
  text-align: center;
}
.plan-name {
  font-weight: 700;
  font-size: 1.02rem;
}
.plan-price {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-top: 4px;
}
.plan-price .per { font-size: 0.85rem; font-family: var(--sans); color: var(--muted); font-weight: 400; }
.plan-free-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-tint);
  padding: 3px 9px;
  border-radius: 999px;
}
.check { color: var(--accent-dark); font-weight: 700; }
.dash { color: var(--muted); }
.pricing-footnote {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 4px;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  position: relative;
  padding-right: 34px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 18px;
  font-size: 1.3rem;
  color: var(--accent-dark);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  margin: 0 0 22px;
  padding: 0 4px;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  margin-top: 20px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-links a:hover { color: var(--ink); }
.footer-meta {
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-meta a { color: var(--muted); }

/* Legal pages */
.legal-shell {
  padding: 56px 0 90px;
}
.legal-doc {
  max-width: 76ch;
  margin: 0 auto;
  background: var(--paper-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px clamp(24px, 5vw, 64px);
}
.legal-doc h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  margin: 0 0 8px;
}
.legal-doc h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 40px 0 14px;
}
.legal-doc h3 {
  font-size: 1.12rem;
  margin: 28px 0 10px;
}
.legal-doc p, .legal-doc li {
  color: var(--ink-soft);
  font-size: 1rem;
}
.legal-doc p { margin: 0 0 16px; }
.legal-doc ul, .legal-doc ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.legal-doc li { margin-bottom: 8px; }
.legal-doc hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
.legal-doc strong { color: var(--ink); }
.legal-doc a { word-break: break-word; }
.legal-doc table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 0.94rem;
}
.legal-doc th, .legal-doc td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal-doc th {
  background: var(--accent-tint);
  color: var(--accent-dark);
}
.legal-doc code {
  background: var(--accent-tint);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}
.legal-updated {
  color: var(--muted);
  margin-bottom: 32px;
}
.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink-soft);
}
.legal-back:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 48px 0 40px; }
  .split-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
}

@media (max-width: 620px) {
  .nav-toggle-label { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
  }
  .nav-toggle-input:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 10px 0; width: 100%; }
  .nav-cta { margin-top: 8px; align-self: flex-start; }
  .steps { grid-template-columns: 1fr; }
  table.pricing { min-width: 560px; }
  .site-header .container { position: relative; }
}
