/* Lectulo landing. Palette = docs/brand tokens (brand.cream, tealDeep, coral, illustration.ink); a jest guard compares the hexes. */
@font-face { font-family: "Baloo 2"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/baloo2-800.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/nunito-400.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/nunito-700.woff2") format("woff2"); }

:root {
  --cream: #F4EBDB;
  --teal: #147370;
  --coral: #E8633F;
  --ink: #1A1714;
  --ink-soft: #4A443D;
  --paper: #FBF6EC;
  --radius: 18px;
  --shadow: 5px 5px 0 var(--teal);
  --font-head: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .09 0 0 0 0 .08 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0 0 1em; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; }
.badge { display: inline-block; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 700; font-size: .9rem; white-space: nowrap; }

/* hero */
.hero { display: grid; gap: 32px; padding: 24px 0 56px; align-items: center; }
.hero-art { display: none; }
.lead { font-size: 1.2rem; max-width: 34em; color: var(--ink-soft); }
.hl { background: linear-gradient(transparent 62%, rgba(232, 99, 63, .35) 62%); padding: 0 .1em; }

.card { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.signup label.field { display: block; font-weight: 700; margin-bottom: 6px; }
.signup input[type="email"] {
  width: 100%; min-height: 52px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 12px;
}
.signup input[type="email"]::placeholder { color: #7a7268; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; font-size: .95rem; line-height: 1.45; }
.consent input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--teal); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  display: inline-block; min-height: 52px; padding: 12px 26px; font: inherit; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  color: var(--ink); background: var(--coral); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.signup .btn { width: 100%; }
.fine { font-size: .85rem; color: var(--ink-soft); line-height: 1.45; margin: 14px 0 0; }
.status { min-height: 1.5em; margin: 12px 0 0; font-weight: 700; }
.status.err { color: #9a2d12; }
.status.ok { color: var(--teal); }
.thanks h2 { color: var(--teal); }

/* sections */
section { padding: 48px 0; }
.alt { background: var(--paper); border-block: 2px solid var(--ink); }
.steps { display: grid; gap: 20px; padding: 0; margin: 28px 0 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 22px 22px 22px 22px; background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--coral); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 50%; background: var(--teal); color: var(--cream); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }
.steps p { margin: 0; }
.points { display: grid; gap: 20px; margin-top: 28px; }
.point { padding: 6px 0 6px 18px; border-left: 6px solid var(--teal); }
.point h3 { margin-bottom: .2em; }
.point p { margin: 0; }

.faq details { border-top: 2px solid var(--ink); padding: 14px 0; }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; min-height: 44px; display: flex; align-items: center; }
.faq details p { margin: 8px 0 0; color: var(--ink-soft); }

.site-foot { padding: 32px 0 48px; font-size: .9rem; color: var(--ink-soft); }
.site-foot p { margin: 0 0 .6em; }

/* server-rendered result pages and the notice */
body.plain { min-height: 100vh; display: grid; place-items: start center; padding: 24px 16px; }
.plain-card { width: min(560px, 100%); background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-top: 4vh; }
.plain-card .brand { margin-bottom: 18px; }
.doc { width: min(760px, 100% - 32px); margin: 0 auto; padding: 8px 0 56px; }
.doc h2 { font-size: 1.5rem; margin-top: 1.6em; }
.doc ul { padding-left: 1.2em; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.1fr .9fr; gap: 56px; padding: 40px 0 72px; }
  .hero-art { display: block; justify-self: center; }
  .hero-art img { width: min(380px, 100%); filter: drop-shadow(10px 10px 0 rgba(20, 115, 112, .25)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .points { grid-template-columns: repeat(3, 1fr); }
  section { padding: 72px 0; }
}
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
