/* Narvo website styles. One file, no framework. */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --cream: #F7F2E8;
  --cream-dark: #EFE8D8;
  --line: #E8DFCB;
  --field-line: #D9CFB6;
  --ink: #0A3D31;
  --body: #2F4A41;
  --muted: #5C6B63;
  --green: #0F6E56;
  --green-dark: #0A3D31;
  --hero: #14614E;
  --hero-text: #E3F3EC;
  --hero-soft: #CDEADD;
  --gold: #F2B24C;
  --gold-ink: #04342C;
  --white: #FFFFFF;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --wrap: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--hero); }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}
p { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .trust :focus-visible { outline-color: var(--gold); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  background: var(--white);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Buttons and the waitlist form ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #F5C064; color: var(--gold-ink); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--hero); color: var(--white); }

.waitlist { width: 100%; max-width: 500px; margin: 0 auto; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.waitlist input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--field-line);
  border-radius: 12px;
}
.waitlist input[type="email"]::placeholder { color: #6B7A73; }
.waitlist input[type="email"]:focus-visible { outline-offset: 2px; }
.hero .waitlist input[type="email"] { border-color: transparent; }
.waitlist .btn { flex: 0 0 auto; }
.form-note { font-size: 14px; margin-top: 12px; min-height: 22px; }
.form-note.is-error { font-weight: 600; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin-top: 12px; display: flex; justify-content: center; }

/* ---------- Hero ---------- */
.hero { background: var(--hero); color: var(--hero-text); padding-bottom: 170px; }
.site-top { display: flex; justify-content: flex-end; padding-top: 22px; }
.signin-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  padding: 9px 16px;
}
.signin-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.1); }
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 4px;
}
.hero-logo { width: 140px; height: 140px; }
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 84px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
}
.hero h1 { color: var(--white); font-size: 46px; margin-top: 26px; }
.hero-lede { max-width: 600px; margin: 16px 0 28px; font-size: 20px; }
.hero .form-note { color: var(--hero-soft); }

/* ---------- Product screenshots ---------- */
.shot {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(10, 61, 49, 0.16);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--cream-dark);
  border-bottom: 1px solid var(--line);
}
.shot-bar span[aria-hidden] { width: 10px; height: 10px; border-radius: 50%; background: #D8CFB8; }
.shot-bar .shot-label { margin-left: 10px; font-size: 13px; color: var(--muted); }
.shot img { width: 100%; height: auto; }
.shot-fade { position: relative; }
.shot-fade::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(247, 242, 232, 0), rgba(247, 242, 232, 1));
  pointer-events: none;
}

.hero-shot { max-width: 860px; margin: -120px auto 0; padding: 0 24px; }
.hero-shot .shot { box-shadow: 0 30px 70px rgba(4, 52, 44, 0.35); }

.features { padding-top: 88px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto; }
.section-head h2 { font-size: 44px; margin: 8px 0 12px; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
  padding: 44px 0;
}
.feature:nth-of-type(even) .feature-text { order: 2; }
.feature h3 { font-size: 36px; margin: 8px 0 12px; }
.feature p { max-width: 440px; }

.more { padding: 40px 0 8px; }
.more-title { font-size: 30px; margin-bottom: 20px; }
.more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.more-grid li { border-top: 2px solid var(--green); padding-top: 14px; }
.more-grid strong { display: block; color: var(--ink); font-size: 18px; }
.more-grid span { display: block; font-size: 16px; margin-top: 6px; }

/* ---------- Trust ---------- */
.trust { background: var(--green-dark); color: var(--hero-soft); margin-top: 56px; padding: 64px 0 68px; }
.trust h2 { color: var(--white); font-size: 38px; margin-bottom: 8px; }
.trust-intro { margin-bottom: 32px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.trust-grid li { border-top: 2px solid var(--gold); padding-top: 14px; }
.trust-grid strong { display: block; color: var(--white); font-size: 18px; }
.trust-grid span { display: block; font-size: 16px; margin-top: 6px; }
.trust a { color: var(--white); }

/* ---------- About ---------- */
.about { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; padding: 72px 0 24px; }
.about-photo {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: #EAF3EE;
  border: 1px solid #CFE3D8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 48px;
  color: var(--ink);
}
.about-text { flex: 1 1 420px; max-width: 700px; }
.about h2 { font-size: 30px; margin-bottom: 8px; }

/* ---------- Closing call to action ---------- */
.closing { text-align: center; padding: 56px 0 24px; }
.closing h2 { font-size: 34px; margin-bottom: 10px; }
.closing-text { margin-bottom: 20px; }
.closing .form-note { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding: 24px 0 40px;
  font-size: 15px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Text pages (privacy, terms, 404) ---------- */
.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.brand img { width: 40px; height: 40px; }
.brand:hover { color: var(--ink); }
.page-top .signin-link { color: var(--ink); border-color: var(--field-line); }
.page-top .signin-link:hover { background: var(--white); color: var(--ink); }

.doc { max-width: 760px; margin: 0 auto; padding: 48px 24px 24px; }
.doc h1 { font-size: 44px; margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: 16px; margin-bottom: 28px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc p, .doc li { font-size: 17px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc .table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; color: var(--ink); background: #FBF8F1; }
.doc tr:last-child td { border-bottom: 0; }
.doc .summary { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }

.notfound { text-align: center; padding: 96px 24px 48px; max-width: 620px; margin: 0 auto; }
.notfound h1 { font-size: 48px; margin-bottom: 12px; }
.notfound p { margin-bottom: 28px; }

/* ---------- Smaller screens ---------- */
@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .feature:nth-of-type(even) .feature-text { order: 0; }
  .feature p { max-width: none; }
  .trust-grid, .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { padding-bottom: 110px; }
  .hero-logo { width: 96px; height: 96px; }
  .wordmark { font-size: 60px; }
  .hero h1 { font-size: 34px; margin-top: 18px; }
  .hero-lede { font-size: 18px; }
  .hero-shot { margin-top: -80px; padding: 0 16px; }
  .wrap { padding: 0 16px; }
  .features { padding-top: 64px; }
  .section-head h2 { font-size: 34px; }
  .feature h3 { font-size: 28px; }
  .trust h2 { font-size: 30px; }
  .trust-grid, .more-grid { grid-template-columns: 1fr; gap: 20px; }
  .waitlist .btn { flex: 1 1 100%; }
  .doc { padding: 32px 16px 16px; }
  .doc h1 { font-size: 34px; }
  .brand { font-size: 26px; }
}
