/* Neslet website. Colours and type follow the Neslet app design system. */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/assets/fonts/Inter_400Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/assets/fonts/Inter_600SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/assets/fonts/Inter_700Bold.woff2') format('woff2'); }
@font-face { font-family: 'Unbounded'; font-weight: 600; font-display: swap; src: url('/assets/fonts/Unbounded_600SemiBold.woff2') format('woff2'); }

:root {
  --green: #9FE870;
  --green-pressed: #8BD45B;
  --green-tint: #DDF7CD;
  --forest: #163300;
  --yellow: #FFEB69;
  --yellow-tint: #FFF8CB;
  --orange-tint: #FFE9DA;
  --blue-tint: #DEF5F5;
  --pink-tint: #FFEFF9;
  --ink: #0E0F0C;
  --ink-2: #454745;
  --ink-3: #6A6C6A;
  --line: #E2E2E1;
  --surface: #ECEFEB;
  --white: #FFFFFF;
  --red: #CB272F;

  --radius: 24px;
  --radius-sm: 16px;
  --max: 1120px;
  --gutter: 24px;
  --display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--forest); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 6px; }
/* On dark backgrounds the forest ring would be invisible: use bright green there. */
.site-footer :focus-visible, .privacy-band :focus-visible { outline-color: var(--green); }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--forest); color: var(--white); padding: 8px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 16px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.site-header.on-green { background: rgba(159, 232, 112, 0.94); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.on-green .brand img { box-shadow: 0 0 0 1.5px rgba(22, 51, 0, 0.18); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--forest); font-weight: 600; font-size: 15px; }
.nav-links a:hover { background: rgba(22, 51, 0, 0.08); }
.nav-links a[aria-current='page'] { background: var(--forest); color: var(--green); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(22, 51, 0, 0.08); color: var(--forest); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: background 0.15s ease, transform 0.15s ease; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--forest); color: var(--green); }
.btn-primary:hover { background: #0f2400; }
.btn-secondary { background: rgba(22, 51, 0, 0.08); color: var(--forest); }
.btn-secondary:hover { background: rgba(22, 51, 0, 0.14); }
.btn-green { background: var(--green); color: var(--forest); }
.btn-green:hover { background: var(--green-pressed); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[aria-disabled='true'] { cursor: default; }

/* ---------- Home: hero ---------- */
.hero { background: var(--green); color: var(--forest); padding: 56px 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-copy { padding: 24px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(22, 51, 0, 0.1); font-weight: 600; font-size: 14px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--forest); }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.03em; margin: 24px 0 20px; text-wrap: balance; }
.hero p.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: 34em; margin: 0 0 32px; color: #1f4207; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin: 16px 0 0; font-size: 14px; color: #2d5212; }

/* Phone frame holding a real screenshot of the app */
.phone-wrap { display: flex; justify-content: center; }
.phone { width: 320px; max-width: 100%; background: var(--ink); border-radius: 44px; padding: 12px; box-shadow: 0 30px 60px rgba(22, 51, 0, 0.25); }
.screen { background: var(--white); border-radius: 34px; overflow: hidden; }
/* Real screenshot of the Neslet Home screen (captured at 3x from the app), shown whole inside the frame. */
.screen-shot img { display: block; width: 100%; height: auto; aspect-ratio: 888 / 1922; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 16px; color: var(--forest); }
.section-head p { margin: 0; color: var(--ink-2); font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.feature .ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px; color: var(--forest); }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--ink-2); font-size: 16px; }
.bg-green { background: var(--green-tint); }
.bg-yellow { background: var(--yellow-tint); }
.bg-orange { background: var(--orange-tint); }
.bg-blue { background: var(--blue-tint); }
.bg-pink { background: var(--pink-tint); }
.bg-white { background: var(--white); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--forest); font-family: var(--display); font-weight: 600; margin-bottom: 20px; }
.step h3 { margin: 0 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }

.privacy-band { background: var(--forest); color: var(--white); border-radius: 32px; padding: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.privacy-band h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 16px; color: var(--green); }
.privacy-band p { margin: 0 0 28px; color: #d6e5cc; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, 0.06); border-radius: var(--radius-sm); padding: 16px 18px; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 2px; }
.checks b { display: block; }
.checks span { color: #c3d6b6; font-size: 15px; }

.cta { text-align: center; background: var(--green); border-radius: 32px; padding: 72px 32px; color: var(--forest); }
.cta img { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 18px; box-shadow: 0 0 0 2px rgba(22, 51, 0, 0.15); }
.cta h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 12px; }
.cta p { margin: 0 auto 28px; max-width: 34em; color: #1f4207; }

/* ---------- Legal pages ---------- */
.page-hero { background: var(--green-tint); padding: 64px 0 48px; }
.page-hero .crumb { font-size: 14px; font-weight: 600; color: var(--forest); margin: 0 0 12px; }
.page-hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 16px; color: var(--forest); }
.page-hero p { margin: 0; max-width: 42em; color: var(--ink-2); font-size: 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 600; color: var(--forest); }

.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding: 56px 0 96px; }
.toc { position: sticky; top: 96px; align-self: start; }
.toc p { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 1.4; }
.toc a:hover { color: var(--forest); border-left-color: var(--green); }
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; line-height: 1.25; letter-spacing: -0.015em; margin: 56px 0 16px; color: var(--forest); scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 32px 0 8px; }
.prose p, .prose li { color: #2a2c29; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--forest); }
.prose strong { color: var(--ink); }

.summary { background: var(--surface); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 48px; }
.summary h2 { margin-top: 0 !important; font-size: 20px !important; }
.summary ul { margin: 12px 0 0; }

.callout { display: flex; gap: 16px; border-radius: var(--radius-sm); padding: 20px 22px; margin: 24px 0; }
.callout svg { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.callout p { margin: 0; }
.callout.warn { background: var(--yellow-tint); }
.callout.warn svg { color: #7a6400; }
.callout.danger { background: #FCE6E7; }
.callout.danger svg { color: var(--red); }
.callout.ok { background: var(--green-tint); }
.callout.ok svg { color: var(--forest); }

.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--surface); font-weight: 600; color: var(--ink); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--ink); min-width: 150px; }

.how { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.how-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.how-card .tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.how-card h3 { margin: 0 0 12px !important; font-size: 21px !important; }
.how-card ol { margin: 0; padding-left: 22px; }
.how-card .btn { margin-top: 16px; }

.ph { background: var(--yellow); color: var(--ink); border-radius: 4px; padding: 0 4px; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - 72px - 260px); display: grid; place-items: center; text-align: center; padding: 80px 0; background: var(--green); color: var(--forest); }
.notfound .code { font-family: var(--display); font-weight: 600; font-size: clamp(96px, 20vw, 180px); line-height: 0.9; letter-spacing: -0.05em; margin: 0; }
.notfound h1 { font-size: clamp(24px, 3vw, 32px); margin: 16px 0 12px; }
.notfound p { margin: 0 auto 32px; max-width: 30em; color: #1f4207; }
.notfound .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #c3d6b6; padding: 64px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer p { margin: 0; max-width: 26em; }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); margin: 0 0 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a, .site-footer a { color: var(--white); text-decoration: none; }
.footer-links a:hover, .site-footer a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 40px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .privacy-band { grid-template-columns: 1fr; padding: 48px 32px; gap: 32px; }
  .legal { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 40px; }
  .toc { position: static; margin-bottom: 40px; background: var(--surface); border-radius: var(--radius-sm); padding: 20px; }
  .toc ol { border-left: 0; columns: 2; column-gap: 24px; }
  .toc a { padding-left: 0; border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .section.section-tight { padding-top: 0; }
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav { height: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(14, 15, 12, 0.08); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 16px; }
  .hero { padding: 40px 0 48px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .features, .steps, .how { grid-template-columns: 1fr; }
  .feature, .step, .how-card { padding: 24px; }
  .privacy-band { padding: 40px 20px; border-radius: 24px; }
  .cta { padding: 56px 20px; border-radius: 24px; }
  .page-hero { padding: 40px 0 32px; }
  .summary { padding: 22px 20px; }
  .toc ol { columns: 1; }
  table { font-size: 14px; }
  th, td { padding: 12px; }
  td:first-child { min-width: 110px; }
  .prose h2 { font-size: 22px; margin-top: 44px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .phone { width: 290px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

@media print {
  .site-header, .site-footer, .toc, .skip { display: none !important; }
  .legal { display: block; padding: 0; }
  .page-hero { background: none; padding: 0 0 16px; }
}
.section-tight { padding-top: 0; }
