/* Mol IT · one stylesheet, mobile first. Fonts are self-hosted (OFL, see assets/fonts/). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f6f3ec;
  --paper-2: #ede8dd;
  --card: #fffdf8;
  --ink: #15201c;
  --muted: #56605b;
  --line: #dcd5c6;
  --green: #0f3d33;
  --green-2: #17513f;
  --green-3: #1f6a54;
  --on-green: #e8f0eb;
  --on-green-muted: #a9c2b7;
  --sun: #ffc94a;
  --sun-2: #ffb514;
  --coral: #d9472b;
  --radius: 18px;
  --radius-s: 12px;
  --wrap: 72rem;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgb(15 61 51 / .06), 0 12px 32px -12px rgb(15 61 51 / .22);
  color-scheme: light;
}

*, *::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(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.sprite { display: none; }
.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 1rem; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2.7rem, 10vw, 5.4rem); letter-spacing: -.035em; line-height: .98; }
h2 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -.03em; }
h3 { font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.2; margin-bottom: .5rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }

a { color: var(--green-3); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--sun-2); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--sun); color: var(--ink); padding: .5rem .8rem; border-radius: 8px; z-index: 20; font-weight: 600; }
.skip:focus { top: 1rem; }

/* Highlighter stroke behind key words */
.hl {
  background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 92%, transparent 92%);
  padding: 0 .08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sun); margin-bottom: 1.1rem;
}
.eyebrow-dark { color: var(--green-3); }
.eyebrow-dark::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-2px); }
.button:hover .ico { transform: translateX(3px); }
.button .ico { transition: transform .15s ease; }
.button-sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 20px -6px rgb(255 181 20 / .55); }
.button-sun:hover { background: var(--sun-2); color: var(--ink); }
.button-small { min-height: 44px; padding: .55rem 1.05rem; font-size: .95rem; box-shadow: none; }
.button-ghost { color: var(--on-green); border: 1.5px solid rgb(232 240 235 / .35); }
.button-ghost:hover { border-color: var(--on-green); color: #fff; }
@media (prefers-reduced-motion: reduce) { .button, .button .ico { transition: none; } .button:hover { transform: none; } }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; }
.cta-note { font-size: .95rem; }

/* ---------- Top: header + hero (dark) ---------- */
.top {
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgb(255 201 74 / .10), transparent 60%),
    radial-gradient(40rem 30rem at 0% 100%, rgb(31 106 84 / .55), transparent 70%),
    var(--green);
  color: var(--on-green);
  position: relative;
  overflow: hidden;
}
.top::before { /* fine grid texture */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / .04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.site-header { position: relative; padding: 1.1rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; }
.logo img { border-radius: 10px; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .18); }
.nav { display: none; gap: 2rem; }
.nav a { color: var(--on-green-muted); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { color: #fff; }
@media (min-width: 56rem) { .nav { display: flex; } }

.hero { position: relative; padding: 2.5rem 0 4rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 62rem) { .hero { padding: 4.5rem 0 6rem; } .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; } }

.hero h1 { color: #fff; }
.hero .hl, .closing .hl {
  color: var(--sun); background: none; padding: 0;
  text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .14em; text-decoration-color: rgb(255 201 74 / .45);
}
.lead { font-family: var(--display); font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 600; color: var(--sun); letter-spacing: -.01em; line-height: 1.3; margin-bottom: 1.25rem; }
.hero-text { color: var(--on-green-muted); max-width: 36rem; font-size: 1.08rem; margin-bottom: 2rem; }
.hero .cta-note { color: var(--on-green-muted); }
@media (max-width: 30rem) { .hero .button-sun { width: 100%; } }

.promises { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.promises li {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .85rem; border-radius: 999px; font-size: .92rem; font-weight: 500;
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .12);
}
.promises .ico { color: var(--sun); }

/* Hero visual: illustrative cards (decorative) */
.hero-visual { position: relative; margin: 0; padding: 1.5rem 0 3rem; max-width: 34rem; justify-self: center; width: 100%; }
.card { background: var(--card); color: var(--ink); border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .45), 0 0 0 1px rgb(0 0 0 / .04); }
.week { padding: 1.4rem 1.4rem 1.1rem; transform: rotate(-1.5deg); }
.card-head { margin-bottom: 1rem; color: var(--muted); }
.pill { font-size: .72rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.gantt { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem .35rem; }
.gantt .d { font-family: var(--mono); font-size: .72rem; color: var(--muted); text-align: center; padding-bottom: .35rem; border-bottom: 1px dashed var(--line); }
.bar { font-size: .74rem; font-weight: 600; padding: .55rem .4rem; border-radius: 8px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.b-build { text-align: left; padding-left: .7rem; }
.b-meet { grid-column: 1 / 2; background: #dcebe5; color: var(--green); }
.b-build { grid-column: 2 / 5; background: var(--green); color: #fff; }
.b-look { grid-column: 3 / 4; background: var(--sun); color: var(--ink); font-size: .7rem; text-align: center; padding: .5rem .2rem; }
.b-ship { grid-column: 5 / 6; background: var(--green-3); color: #fff; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .45rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--paper-2); color: var(--green-3); }

.note { position: absolute; left: -.5rem; bottom: -.25rem; display: flex; gap: .8rem; align-items: center; padding: .85rem 1.1rem .85rem .85rem; transform: rotate(1.5deg); max-width: 19rem; }
.note-icon { width: 2.5rem; height: 2.5rem; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); color: var(--green); font-size: 1.1rem; }
.note-title { font-weight: 650; font-size: .92rem; margin: 0; line-height: 1.3; }
.note-sub { display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--green-3); margin: .1rem 0 0; font-weight: 550; }

.stamp { position: absolute; right: -.5rem; top: -.5rem; padding: .7rem 1rem; background: var(--sun); transform: rotate(4deg); text-align: center; line-height: 1.2; }
.stamp .mono { display: block; font-size: .68rem; color: rgb(21 32 28 / .7); }
.stamp strong { font-family: var(--display); font-size: 1.1rem; }
@media (min-width: 62rem) { .note { left: -2.5rem; } .stamp { right: -1.5rem; top: -1.5rem; } }

/* Ticker */
.ticker { position: relative; border-top: 1px solid rgb(255 255 255 / .1); background: rgb(0 0 0 / .12); overflow: hidden; padding: .95rem 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--on-green-muted); padding: 0 1.4rem; white-space: nowrap; }
.ticker span::after { content: "✕"; margin-left: 2.8rem; color: var(--sun); font-size: .8em; position: relative; top: -.1em; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
@media (min-width: 62rem) { .section { padding: 7rem 0; } }
.section-paper2 { background: var(--paper-2); }

.split { display: grid; gap: 2rem; }
@media (min-width: 62rem) { .split { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; } .split-head { position: sticky; top: 2rem; } }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* Pains */
.pains { display: grid; gap: .85rem; }
.pains li {
  display: flex; gap: 1rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 1.05rem 1.2rem; font-size: 1.08rem; font-weight: 500; box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.pains li:hover { transform: translateX(6px); }
.pain-icon { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 12px; display: grid; place-items: center; background: #fde9b5; color: #8a5a00; font-size: 1.2rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1rem; margin-top: 2.5rem; position: relative; }
@media (min-width: 62rem) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
  .steps::before { content: ""; position: absolute; top: 2.6rem; left: 2.5rem; right: 2.5rem; border-top: 2px dashed var(--line); z-index: 0; }
}
.steps li { position: relative; z-index: 1; background: var(--card); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); }
.step-num {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--green); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin-bottom: 1.1rem;
  box-shadow: 0 0 0 6px var(--card);
}
.steps li:nth-child(3) .step-num { background: var(--sun); color: var(--ink); }
.step-when { display: block; color: var(--green-3); margin-bottom: .4rem; }
.steps p { color: var(--muted); font-size: 1rem; }

/* Examples */
.examples { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 40rem) { .examples { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .examples { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.examples li {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.examples li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.ex-icon { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; background: var(--green); color: var(--sun); font-size: 1.3rem; margin-bottom: 1.2rem; }
.examples p { color: var(--muted); font-size: 1rem; }
.measure {
  margin-top: auto !important; padding-top: 1rem; border-top: 1px dashed var(--line);
  display: flex; gap: .5rem; align-items: center; font-size: .9rem !important; font-weight: 550; color: var(--green-3) !important;
}
.examples li > p:nth-last-child(2) { margin-bottom: 1.2rem; }
@media (prefers-reduced-motion: reduce) { .pains li, .examples li { transition: none; } }

/* Price */
.price-panel {
  display: grid; gap: 2rem; border-radius: 28px; padding: 2.25rem 1.5rem;
  background: radial-gradient(40rem 20rem at 100% 0%, rgb(255 201 74 / .14), transparent 60%), var(--green);
  color: var(--on-green); position: relative; overflow: hidden;
}
@media (min-width: 62rem) { .price-panel { grid-template-columns: 1fr 1fr; gap: 4rem; padding: 4rem; align-items: center; } }
.price-panel h2 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.price { font-family: var(--display); font-weight: 800; font-size: clamp(2.8rem, 9vw, 4.4rem); letter-spacing: -.04em; line-height: 1; color: var(--sun); margin: 1.5rem 0 .4rem; white-space: nowrap; }
.price-sub { color: var(--on-green-muted); }
.price-detail > p { color: var(--on-green); font-size: 1.08rem; }
.ticks { display: grid; gap: .7rem; margin-top: 1.5rem; }
.ticks li { display: flex; gap: .7rem; align-items: center; font-weight: 500; }
.ticks .ico { width: 1.6rem; height: 1.6rem; padding: .3rem; border-radius: 50%; background: var(--sun); color: var(--ink); stroke-width: 3; }

/* Nots */
.nots { display: grid; gap: 0; border-top: 1px solid var(--line); }
.nots li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 0; border-bottom: 1px solid var(--line); font-size: 1.12rem; font-weight: 500; }
.x { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: #f8d9d1; color: var(--coral); margin-top: .05rem; }
.x .ico { stroke-width: 2.6; width: 1rem; height: 1rem; }

/* About */
.about { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .about { grid-template-columns: .8fr 1.2fr; gap: 5rem; } }
.portrait-wrap { position: relative; max-width: 24rem; width: 100%; justify-self: center; }
.portrait-wrap::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border-radius: 28px; background: var(--sun); z-index: 0; }
.portrait { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 480 / 560; object-fit: cover; border-radius: 28px; }
.portrait-tag { position: absolute; z-index: 2; left: -.75rem; bottom: 1.75rem; display: inline-flex; gap: .4rem; align-items: center; background: var(--card); padding: .5rem .9rem; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); }
.portrait-tag .ico { color: var(--green-3); }
.about-lead { font-size: clamp(1.15rem, 2.4vw, 1.35rem); line-height: 1.6; }
.signature { font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--green); margin-top: 1.5rem; letter-spacing: -.02em; }
.signature::before { content: "— "; color: var(--sun-2); }

/* Closing */
.closing {
  background:
    radial-gradient(50rem 25rem at 50% 120%, rgb(255 201 74 / .18), transparent 60%),
    var(--green);
  color: var(--on-green); padding: 5.5rem 0; text-align: center;
}
@media (min-width: 62rem) { .closing { padding: 8rem 0; } }
.closing h2 { color: #fff; max-width: 48rem; margin: 0 auto 2.25rem; font-size: clamp(2.2rem, 7vw, 4rem); }
.cta-center { justify-content: center; }

/* Footer */
.site-footer { background: #0a2a23; color: var(--on-green-muted); padding: 3.5rem 0 3rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.logo-footer { color: #fff; font-size: 1.2rem; }
.footer-tag { margin-top: .75rem; }
.footer-list { display: grid; gap: .55rem; }
.footer-list li { display: flex; gap: .6rem; align-items: center; }
.footer-list .ico { color: var(--sun); }
.site-footer a { color: var(--on-green); }
.site-footer a:hover { color: #fff; }

/* ---------- Privacy / 404 (prose pages) ---------- */
.top-slim .site-header { padding: 1.1rem 0; }
.page-hero { position: relative; padding: 2.5rem 0 3.5rem; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 8vw, 4rem); margin-bottom: .5rem; }
.page-hero p { color: var(--on-green-muted); margin: 0; }
.prose { padding: 3.5rem 0 5rem; }
.prose .wrap { max-width: 46rem; }
.prose h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); margin-top: 2.75rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .5rem; }
.back { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; margin-top: 2.5rem; }
