/* Craftlio website. Same look as the app (docs/design): charcoal canvas, flat cards with fine borders, cream text,
   five pastel accents (mint, teal, amber, coral, lavender), Inter. No glows, no gradients beyond a faint tint. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* light only (the owner's choice), whatever the visitor's system theme; the app screenshots stay dark */
:root {
  color-scheme: light;
  --page: #f7f5ef; --band: #efede5; --card: #ffffff; --soft: #f1f0ea; --line: #e1e3df; --line-strong: #cdd1cd;
  --ink: #20262a; --ink-2: #49545b; --muted: #66747a;
  --mint: #2b8556; --teal: #17867c; --amber: #9a6a08; --coral: #c24f4b; --lavender: #7a5cc0; --sky: #2a7fc4;
  --mint-tint: #e0f0e4; --teal-tint: #e0f1ef; --amber-tint: #fff2dd; --coral-tint: #fbe8e7; --lavender-tint: #f0e8f9; --sky-tint: #e3eefa;
  --accent: #2b8556; --on-accent: #ffffff;
  --px-a: #bfe0c9; --px-b: #d6ebdc;
  --radius: 14px; --wrap: 1180px;
  --font: "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { letter-spacing: -.022em; line-height: 1.15; margin: 0; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill { fill: currentColor; stroke: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 650 16px/1 var(--font);
  text-decoration: none; border: 1px solid var(--line-strong); background: var(--soft); color: var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line-strong)); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn .ic { width: 19px; height: 19px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 780; font-size: 21px; letter-spacing: -.02em; }
.brand .brand-ic { width: 38px; height: 38px; }
.brand .brand-wm { height: 24px; width: auto; }
.hero-ic { width: 112px; height: 112px; margin-bottom: -6px; }
@media (max-width: 760px) { .hero-ic { width: 84px; height: 84px; } }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 560; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.top-r { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 860px) { .nav { display: none; } }
.brand, .top-r { flex: none; }
@media (max-width: 640px) { .top-r .gh-txt { display: none; } .top-r .btn.sm { padding: 0 12px; } }
/* phones: the logo and Download only (GitHub is the second button in the hero) */
@media (max-width: 520px) { .top .wrap { gap: 12px; } .top-r .gh-btn { display: none; } .brand .brand-ic { width: 32px; height: 32px; } .brand .brand-wm { height: 20px; } }

/* hero */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.hero-t { text-align: center; max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--mint-tint); color: var(--mint);
  border: 1px solid color-mix(in srgb, var(--mint) 40%, transparent); font-weight: 650; font-size: 14px; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); font-weight: 820; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 660px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.fine { font-size: 14px; color: var(--muted); display: flex; gap: 8px 18px; flex-wrap: wrap; justify-content: center; }
.fine span { display: inline-flex; align-items: center; gap: 6px; }
.fine .ic { width: 16px; height: 16px; color: var(--mint); }
.shot-hero { position: relative; margin: 0 auto; width: min(1120px, 100%); }
.frame { border-radius: 16px; border: 1px solid var(--line-strong); background: var(--card); padding: 8px; }
.frame img { border-radius: 10px; width: 100%; height: auto; }
.frame.win::before { content: ""; display: block; height: 22px; margin: 0 0 8px; border-radius: 6px;
  background: radial-gradient(circle at 12px 11px, var(--coral) 5px, transparent 6px), radial-gradient(circle at 30px 11px, var(--amber) 5px, transparent 6px), radial-gradient(circle at 48px 11px, var(--mint) 5px, transparent 6px); }
.phone-float { position: absolute; right: -2%; bottom: -6%; width: 17%; min-width: 150px; border-radius: 26px; padding: 7px; background: var(--card); border: 1px solid var(--line-strong); }
.phone-float img { border-radius: 20px; }
.px { position: absolute; width: 56px; height: 56px; background: var(--px-a); border-radius: 4px; }
.px.b { background: var(--px-b); }
@media (max-width: 760px) { .hero { padding: 44px 0 28px; } .phone-float { display: none; } .px { display: none; } }

/* sections */
section { padding: 80px 0; }
.band { background: var(--band); border-block: 1px solid var(--line); }
.sec-h { max-width: 720px; margin: 0 auto 44px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.sec-h .eyebrow { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--mint); }
.sec-h h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.sec-h p { font-size: 18px; color: var(--ink-2); }
@media (max-width: 760px) { section { padding: 56px 0; } .sec-h { margin-bottom: 30px; } }

/* software strip */
.soft { padding: 28px 0 8px; }
.soft p { text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; color: var(--ink-2); }

/* features */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.f-ic { --c: var(--mint); --t: var(--mint-tint); width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--t); color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.f-ic .ic { width: 24px; height: 24px; }
.t-teal { --c: var(--teal); --t: var(--teal-tint); } .t-amber { --c: var(--amber); --t: var(--amber-tint); } .t-coral { --c: var(--coral); --t: var(--coral-tint); }
.t-lav { --c: var(--lavender); --t: var(--lavender-tint); } .t-sky { --c: var(--sky); --t: var(--sky-tint); }
.card h3 { font-size: 20px; font-weight: 740; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card ul { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.card li { display: flex; gap: 9px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.card li .ic { width: 17px; height: 17px; margin-top: 2px; color: var(--c, var(--mint)); }

/* gallery */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.tab { height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--ink-2); font: 600 15px var(--font); cursor: pointer; }
.tab:hover { background: var(--card); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--mint-tint); color: var(--ink); border-color: color-mix(in srgb, var(--mint) 45%, transparent); }
.panel { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.panel[hidden] { display: none; }
.panel figcaption { text-align: center; color: var(--ink-2); font-size: 16px; max-width: 760px; margin: 0 auto; }
.phones { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.phones .frame { width: min(300px, 44%); border-radius: 28px; padding: 7px; }
.phones .frame img { border-radius: 22px; }

/* highlights */
.hl { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hl .card { flex-direction: row; gap: 16px; align-items: flex-start; }
.hl h3 { font-size: 18px; margin-bottom: 4px; }
@media (max-width: 960px) { .hl { grid-template-columns: minmax(0, 1fr); } }

/* install */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { position: relative; padding-top: 28px; }
.step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
code { font: 600 .92em var(--mono); background: var(--soft); border: 1px solid var(--line); border-radius: 7px; padding: 2px 7px; }
.req { margin-top: 26px; text-align: center; color: var(--ink-2); display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap; font-size: 15px; }
.req span { display: inline-flex; gap: 7px; align-items: center; }
.req .ic { width: 17px; height: 17px; color: var(--mint); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 680; font-size: 17px; display: flex; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary .ic { margin-left: auto; color: var(--muted); transition: rotate .15s; }
details[open] summary .ic { rotate: 180deg; }
details p { padding: 0 22px 20px; color: var(--ink-2); }

/* final call */
.final { text-align: center; }
.final .card { align-items: center; padding: 48px 24px; background: var(--mint-tint); border-color: color-mix(in srgb, var(--mint) 45%, transparent); gap: 18px; }
.final h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.final p { color: var(--ink-2); font-size: 18px; max-width: 560px; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .links { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .legal { flex-basis: 100%; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.panel figcaption a { color: var(--mint); font-weight: 650; }
.demo-link { display: inline-flex; align-items: center; gap: 8px; color: var(--mint); font-weight: 650; text-decoration: none; margin-top: -6px; }
.demo-link:hover { text-decoration: underline; }
.demo-link .ic { width: 16px; height: 16px; }

/* ---- the live demo in a window; Expand grows it to fill the browser window and back (the iframe never moves in
   the page, so the demo keeps running) ---- */
html { scrollbar-gutter: stable; }
html.demo-open { overflow: hidden; }
.demo-shell { position: relative; height: min(80vh, 820px); }
.demo-win { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-strong); border-radius: 16px; padding: 0 8px 8px; overflow: hidden; }
.demo-win.moving { transition: top .5s cubic-bezier(.22, .8, .24, 1), left .5s cubic-bezier(.22, .8, .24, 1), width .5s cubic-bezier(.22, .8, .24, 1), height .5s cubic-bezier(.22, .8, .24, 1), border-radius .5s ease, padding .5s ease, box-shadow .5s ease; }
.demo-win.full { border-radius: 0; border-width: 0; padding: 0; box-shadow: 0 0 0 100vmax rgb(20 24 28 / .35); }
.demo-bar { display: flex; align-items: center; gap: 10px; height: 44px; flex: none; padding: 0 0 0 6px; }
.demo-win.full .demo-bar { padding: 0 12px; border-bottom: 1px solid var(--line); }
.demo-bar .dots { display: inline-flex; gap: 6px; }
.demo-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.demo-bar .dots i + i { background: var(--amber); } .demo-bar .dots i + i + i { background: var(--mint); }
.demo-title { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-title span { color: var(--muted); font-weight: 600; }
.demo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; min-width: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: var(--soft); color: var(--ink); font: 650 13.5px var(--font); cursor: pointer; text-decoration: none; }
.demo-btn:hover { border-color: var(--mint); }
.demo-btn .ic { width: 16px; height: 16px; }
.demo-btn > span { display: inline-flex; align-items: center; gap: 6px; }
.demo-exp { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.demo-exp .if-open, .demo-win.full .demo-exp .if-closed { display: none; }
.demo-win.full .demo-exp .if-open { display: inline-flex; }
.demo-win iframe { flex: 1; min-height: 0; width: 100%; border: 0; border-radius: 10px; background: #15191f; display: block; }
.demo-win.full iframe { border-radius: 0; }
@media (max-width: 760px) { .demo-shell { height: 640px; } .demo-title span { display: none; } }
@media (prefers-reduced-motion: reduce) { .demo-win.moving { transition: none; } }
/* light / dark switch for the demo */
.demo-theme { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--soft); color: var(--muted); cursor: pointer; }
.demo-theme:hover { border-color: var(--mint); }
.demo-theme .ic { width: 15px; height: 15px; }
.demo-theme .track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: #cdd1cd; transition: background .2s ease; }
.demo-theme .knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .2s ease; }
.demo-theme[aria-checked="true"] .track { background: #20262a; }
.demo-theme[aria-checked="true"] .knob { transform: translateX(14px); }
.demo-theme[aria-checked="false"] .ico-sun { color: var(--amber); }
.demo-theme[aria-checked="true"] .ico-moon { color: var(--lavender); }
@media (prefers-reduced-motion: reduce) { .demo-theme .track, .demo-theme .knob { transition: none; } }
@media (max-width: 440px) { .demo-title { display: none; } .demo-bar .dots { margin-right: auto; } .demo-exp b { display: none; } .demo-exp { padding: 0 9px; } }
/* the demo's window goes dark with the demo (the page around it stays light) */
.demo-win, .demo-bar, .demo-btn, .demo-theme, .demo-title { transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
.demo-win.dark { --soft: #2b3139; --line: #353b45; --line-strong: #434a54; --ink: #f3f0e9; --ink-2: #b7bac3; --muted: #9198a2;
  --mint: #8ddcaf; --amber: #f5c16d; --coral: #ee8f91; --lavender: #c2a0f0; --accent: #8ddcaf; --on-accent: #13251b;
  background: #1d222a; border-color: #434a54; color: #f3f0e9; }
.demo-win.dark .demo-title { color: #f3f0e9; }
.demo-win.dark .demo-theme .track { background: #434a54; }
.demo-win.dark .demo-theme[aria-checked="true"] .track { background: #8ddcaf; }
.demo-win.dark .demo-theme[aria-checked="true"] .knob { background: #15191f; }
.demo-win.dark.full .demo-bar { border-bottom-color: #353b45; }

/* ---- "works with": Craftlio in the middle, the software it runs moving around it ---- */
.works { padding: 64px 0 40px; }
.net { position: relative; height: 620px; margin: 0 auto; max-width: 1100px; overflow: hidden; border-radius: 24px;
  background: radial-gradient(circle at 50% 50%, var(--mint-tint) 0, rgb(224 240 228 / 0) 62%); }
.net-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.net-lines .ln { stroke: #9fcfb0; stroke-width: 1.5; }
.net-lines .ln.pack { stroke: #cdd1cd; stroke-dasharray: 4 6; }
.net-lines .mesh { stroke: #dfe7e0; stroke-width: 1; }
.net-lines .pulse { fill: var(--mint); }
.net-core { position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 34px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 0 0 10px rgb(43 133 86 / .08), 0 0 0 22px rgb(43 133 86 / .05); z-index: 2; }
.net-core img { width: 96px; height: 96px; }
.net-node { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 1; will-change: transform; }
.net-logo { width: 64px; height: 64px; border-radius: 18px; background: #fff; border: 1px solid var(--line-strong); display: grid; place-items: center; box-shadow: 0 4px 14px -6px rgb(32 38 42 / .18); }
.net-logo img { width: 38px; height: 38px; object-fit: contain; }
.net-label { font-size: 13px; font-weight: 650; color: var(--ink-2); background: rgb(247 245 239 / .85); padding: 1px 6px; border-radius: 6px; }
.net-pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong);
  font-weight: 650; font-size: 14px; color: var(--ink); white-space: nowrap; box-shadow: 0 4px 14px -6px rgb(32 38 42 / .18); }
.net-pill .ic { width: 16px; height: 16px; color: var(--teal); }
@media (max-width: 760px) {
  .works { padding: 48px 0 24px; }
  .net { height: 470px; }
  .net-core { width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 24px; }
  .net-core img { width: 66px; height: 66px; }
  .net-logo { width: 46px; height: 46px; border-radius: 13px; }
  .net-logo img { width: 28px; height: 28px; }
  .net-label { font-size: 11.5px; }
  .net-pill { height: 30px; padding: 0 10px; font-size: 12px; gap: 5px; }
  .net-pill .ic { width: 13px; height: 13px; }
}
.net-packs { display: none; }
@media (max-width: 600px) { .net { height: 430px; } .net-node.pack { display: none; } .net-packs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; } }
.net-pill img { width: 20px; height: 20px; object-fit: contain; flex: none; }
@media (max-width: 760px) { .net-pill img { width: 16px; height: 16px; } }
