/* Landing page (www.formalitic.com): palette tokens from start.mjs brand (the logo's forest on cream),
   then page CSS for what sits inside the drawn visuals. The kit itself is /assets (taste-skill 2.5.1). */
:root {
  --p-bg: #f6f3ea; --p-surface: #ece7d8; --p-ink: #141a15; --p-muted: #5b6259;
  --p-accent: #2b4a35; --p-accent-ink: #f6f3ea; --p-action: #2b4a35; --p-action-ink: #f6f3ea;
  --p-inv-bg: #141a15; --p-inv-surface: #212621; --p-inv-ink: #f6f3ea; --p-inv-muted: #979891;
  --p-inv-accent: #f6f3ea; --p-inv-accent-ink: #141a15; --p-inv-action: #f6f3ea; --p-inv-action-ink: #141a15;
  --font-display: var(--font-sans), system-ui, sans-serif;
  --font-text: var(--font-sans), system-ui, sans-serif;
  --font-mono: var(--font-mono), ui-monospace, Menlo, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.04em;
}

/* ---------- the shared drawn-window look (hero, app-frame, cards) ---------- */
.fw { --fw-ink: #161b17; --fw-2: #59605a; --fw-3: #8a8f88; --fw-line: rgb(20 26 21 / .08); --fw-bg: #fffdf8; --fw-sunk: #f7f4ec;
  background: var(--fw-bg); color: var(--fw-ink); font: 400 13px/1.4 var(--font-text); text-align: left; }
.fw .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; }
.fw-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 12px; font-weight: 500; background: #e4efe6; color: #1f5a34; white-space: nowrap; justify-self: end; }
.fw-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fw-chip--warn { background: #f8ecd6; color: #855200; }
.fw-chip--draft { background: #ecebe6; color: #555a55; }
.fw-chip--neg { background: #f8e4df; color: #9c2c1c; }
.fw-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.fw-dot--water { background: #5b83a6; } .fw-dot--oil { background: #c39445; } .fw-dot--cool { background: #2b4a35; }
.fw-bar { height: 4px; border-radius: 2px; background: #ebe7dc; overflow: hidden; }
.fw-bar > i { display: block; height: 100%; background: #2b4a35; border-radius: 2px; }

/* ---------- hero window ---------- */
.hero__art { background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--p-surface) 70%, white), transparent 70%),
    radial-gradient(60% 50% at 92% 100%, color-mix(in oklab, var(--p-surface) 70%, var(--p-accent) 14%), transparent 70%),
    var(--p-surface); }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.d-win { border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgb(20 26 21 / .08), 0 30px 70px -30px rgb(20 26 21 / .45); }
.d-win__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--fw-line); color: var(--fw-2); }
.d-win__dots { display: flex; gap: 6px; } .d-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dedad0; }
.d-win__body { display: grid; grid-template-columns: 150px 1fr; min-height: 640px; }
.d-side { padding: 14px 10px; border-right: 1px solid var(--fw-line); display: grid; align-content: start; gap: 2px; color: var(--fw-2); background: var(--fw-sunk); }
.d-side > span { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 7px; }
.d-side > span.is-on { background: #e4efe6; color: #1f5a34; font-weight: 500; }
.d-side > span i { width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: .28; flex: none; }
.d-side .d-side__label { color: var(--fw-3); height: 26px; margin-top: 8px; font-family: var(--font-mono); font-size: 12px; }
.d-main { padding: 18px 20px 0; padding-right: var(--ly-cut-room); min-width: 0; }
.d-main__meta { font-family: var(--font-mono); font-size: 12px; color: var(--fw-3); }
.d-main__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.d-main__head .d-title { margin: 0; font: 600 17px/1.2 var(--font-text); letter-spacing: -.01em; }
.d-btn { height: 28px; padding: 0 12px; border-radius: 7px; background: #2b4a35; color: #f6f3ea; display: inline-flex; align-items: center; font-weight: 500; white-space: nowrap; }
.d-phase { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-top: 10px; background: var(--fw-sunk); border: 1px solid var(--fw-line); border-radius: 8px 8px 0 0; font-weight: 600; }
.d-phase .num { margin-left: auto; font-weight: 400; color: var(--fw-2); }
.d-phase small { font-weight: 400; color: var(--fw-3); font-family: var(--font-mono); font-size: 12px; }
.d-rows { border: 1px solid var(--fw-line); border-top: 0; border-radius: 0 0 8px 8px; }
.d-row { display: grid; grid-template-columns: minmax(0, 1fr) 60px 84px; align-items: center; gap: 12px; padding: 8px 10px; border-top: 1px solid var(--fw-line); }
.d-row:first-child { border-top: 0; }
.d-row b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-row small { display: block; color: var(--fw-3); font-size: 12px; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-row .pct { justify-self: end; border: 1px solid #dcd8cd; border-radius: 6px; padding: 3px 8px; min-width: 52px; text-align: right; background: #fff; }
.d-row .pct.is-moved { border-color: #2b4a35; box-shadow: 0 0 0 2px #e4efe6; }
.d-row .cost { text-align: right; color: var(--fw-2); }
.d-card { background: #fffdf8; color: #161b17; border-radius: 12px; padding: 14px 16px; font: 400 13px/1.4 var(--font-text);
  box-shadow: 0 0 0 1px rgb(20 26 21 / .07), 0 18px 40px -18px rgb(20 26 21 / .45); }
.d-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.d-card h5 { margin: 0; font: 600 14px/1.3 var(--font-text); }
.d-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: #3f453f; border-top: 1px solid rgb(20 26 21 / .06); }
.d-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e4efe6; color: #1f5a34; font-style: normal; font-size: 12px; font-weight: 700; }
.d-note__line b { font-weight: 600; color: #161b17; }
.hero__proof { font-size: var(--t-small); color: var(--muted); }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }
@media (max-width: 639px) { .d-win__body { grid-template-columns: 1fr; } .d-side { display: none; } }

/* ---------- app-frame (the recipe's CSS, then the two panes) ---------- */
.app.ui { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); margin-top: var(--s-7); background: #fffdf8; border: 1px solid rgb(20 26 21 / .1); border-radius: 14px; box-shadow: 0 30px 70px -40px rgb(20 26 21 / .45); overflow: hidden; }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid rgb(20 26 21 / .08); }

@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid rgb(20 26 21 / .08); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}
.fl__head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--fw-line); }
.fl__head b { font-weight: 600; font-size: 14px; }
.fl__search { margin-left: auto; height: 28px; padding: 0 10px; border: 1px solid #dcd8cd; border-radius: 7px; display: flex; align-items: center; color: var(--fw-3); min-width: 120px; }
.fl__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 16px; border-bottom: 1px solid var(--fw-line); }
.fl__row.is-open { background: #eef4ee; box-shadow: inset 3px 0 0 #2b4a35; }
.fl__row b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl__row small { grid-column: 1; color: var(--fw-3); font-family: var(--font-mono); font-size: 12px; }
.fl__row .fw-chip { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.fo { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; padding: 18px 20px; }
.fo__sheet { min-width: 0; }
.fo__side { display: grid; align-content: start; gap: 12px; }
.fo__box { border: 1px solid var(--fw-line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.fo__label { font-family: var(--font-mono); font-size: 12px; color: var(--fw-3); }
.fo__big { font: 600 28px/1.1 var(--font-mono); letter-spacing: -.02em; margin: 4px 0 8px; }
.fo__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fo__pair div { border-top: 1px solid var(--fw-line); padding-top: 8px; }
.fo__pair b { display: block; font: 600 15px/1.2 var(--font-mono); }
.fo__inci { font-family: var(--font-mono); font-size: 12px; line-height: 1.55; color: var(--fw-2); margin: 6px 0 8px; }
.fo .d-row { grid-template-columns: minmax(0, 1fr) 120px 60px 84px; }
@media (max-width: 1279px) { .fo { grid-template-columns: minmax(0, 1fr); } .fo__side { display: none; } }
@media (max-width: 639px) { .fo .d-row { grid-template-columns: minmax(0, 1fr) 60px; } .fo .d-row .fw-bar, .fo .d-row .cost { display: none; } }

/* ---------- feature cards' panels ---------- */
#features .panel { --p-h: 260px; background:
    radial-gradient(80% 70% at 20% 0%, color-mix(in oklab, var(--p-surface) 70%, white), transparent 70%), var(--p-surface); }
.mini { position: absolute; left: 28px; right: 28px; top: 28px; border-radius: 10px; box-shadow: 0 0 0 1px rgb(20 26 21 / .07), 0 18px 40px -22px rgb(20 26 21 / .45); overflow: hidden; }
.mini__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--fw-line); font-weight: 600; }
.mini__head small { font-weight: 400; color: var(--fw-3); font-family: var(--font-mono); font-size: 12px; }
.mini__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--fw-line); }
.mini__row:first-of-type { border-top: 0; }
.mini__row b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__row .num { color: var(--fw-2); text-align: right; }
.mini__meter { padding: 12px 14px; display: grid; gap: 8px; }
.mini__meter .fw-bar { height: 8px; }
.mini__meter .fw-bar > i { background: linear-gradient(90deg, #2b4a35, #4f7a5c); }
.mini__meter p { margin: 0; display: flex; justify-content: space-between; color: var(--fw-2); }
@media (max-width: 639px) { #features .panel { --p-h: 168px; } .mini { left: 16px; right: 16px; top: 16px; } }

/* ---------- the label ---------- */
.lbl-stage { display: grid; place-items: center; min-height: 520px; border-radius: var(--r-lg, 16px); background:
    radial-gradient(60% 60% at 50% 30%, color-mix(in oklab, var(--p-bg) 80%, white), transparent 75%), var(--p-bg); }
.lbl { width: min(420px, 100%); background: #fffdf8; color: #161b17; border-radius: 6px; padding: 26px 28px 22px; font: 400 13px/1.5 var(--font-text);
  box-shadow: 0 0 0 1px rgb(20 26 21 / .1), 0 40px 80px -40px rgb(20 26 21 / .55); }
.lbl__brand { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: #59605a; }
.lbl__name { font: 600 24px/1.1 var(--font-display); letter-spacing: -.02em; margin: 6px 0 2px; }
.lbl__net { font-family: var(--font-mono); font-size: 12px; color: #59605a; }
.lbl__rule { height: 1px; background: rgb(20 26 21 / .12); margin: 14px 0; }
.lbl__inci { font-size: 12.5px; line-height: 1.55; margin: 0; }
.lbl__inci b { font-weight: 600; }
.lbl__inci mark { background: #f8ecd6; color: #6b4200; padding: 0 2px; border-radius: 3px; }
.lbl__foot { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: #59605a; }
.lbl__check { display: grid; gap: 6px; margin-top: 16px; }
.lbl__check span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.lbl__check i { width: 16px; height: 16px; border-radius: 50%; background: #e4efe6; color: #1f5a34; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; }
@media (max-width: 1023px) { .lbl-stage { min-height: 420px; padding: 24px; } }

/* ---------- prices ---------- */
.plan { border: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); border-radius: var(--r-lg, 16px); padding: var(--s-6); background: color-mix(in oklab, var(--p-bg) 60%, white); }
.plan__price { font: 500 48px/1 var(--font-display); letter-spacing: -.04em; margin: 8px 0 4px; }
.plan__price small { font-size: 18px; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.plan li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 10%, transparent); }
.plan li span:last-child { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
@media (max-width: 639px) { .plan__price { font-size: 34px; } }
@media (max-width: 379px) { .nav .nav__bar .nav__actions { display: none; } }
@media (max-width: 639px) { .hero__art .d-phase ~ .d-phase, .hero__art .d-phase ~ .d-phase + .d-rows { display: none; } .hero__art .d-row:nth-child(n+2) { display: none; } }
