/* 🌐 karmikos.com for visitors (templates/site/index.html). Photos: Unsplash licence. */
/* Layout: minimal, full-screen slides that snap one at a time; one idea per screen, big type, lots of air; a quiet corner
   bar (logo, Sign in, Book a demo) and dots on the right. The app's teal and soft washes, used sparingly. */
:root {
  --bg: #f4faf8; --panel: #ffffff; --text: #0f2b28; --muted: #55706c; --faint: #9db3af; --line: rgba(13, 148, 136, 0.16);
  --accent: #0d9488; --accent-soft: rgba(13, 148, 136, 0.09); --grad: linear-gradient(135deg, #2dd4bf, #0f766e);
  --wash-a: rgba(45, 212, 191, 0.30); --wash-b: rgba(196, 181, 253, 0.28); --wash-c: rgba(251, 191, 36, 0.20);
  --display: "Outfit", "Segoe UI", system-ui, sans-serif; --body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --wordmark: "Lexend", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b1719; --panel: #12262a; --text: #e8f6f3; --muted: #9ab8b3; --faint: #4f6e69; --line: rgba(94, 234, 212, 0.14);
  --accent: #2dd4bf; --accent-soft: rgba(45, 212, 191, 0.10); --grad: linear-gradient(135deg, #5eead4, #0d9488);
  --wash-a: rgba(45, 212, 191, 0.14); --wash-b: rgba(167, 139, 250, 0.12); --wash-c: rgba(245, 176, 65, 0.08); color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0b1719; --panel: #12262a; --text: #e8f6f3; --muted: #9ab8b3; --faint: #4f6e69; --line: rgba(94, 234, 212, 0.14);
  --accent: #2dd4bf; --accent-soft: rgba(45, 212, 191, 0.10); --grad: linear-gradient(135deg, #5eead4, #0d9488);
  --wash-a: rgba(45, 212, 191, 0.14); --wash-b: rgba(167, 139, 250, 0.12); --wash-c: rgba(245, 176, 65, 0.08); color-scheme: dark }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); overflow: hidden; }
h1, h2 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 7vw, 88px); line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(32px, 5.2vw, 64px); line-height: 1.05; font-weight: 700; }
p { margin: 0; }
.lede { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 32em; line-height: 1.55; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

/* corner bar */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) max(22px, env(safe-area-inset-right, 0px)) 16px max(22px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.bar > * { pointer-events: auto; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.leaf { width: 32px; height: 32px; border-radius: 13px 4px 13px 4px; background: var(--grad); color: #fff; display: grid; place-items: center; font: 800 17px var(--display); }
.word { font: 700 20px var(--wordmark); letter-spacing: -0.02em; }
.bar .sp { margin-left: auto; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 22px; font: 800 15px var(--body); text-decoration: none; cursor: pointer; border: 0; color: var(--text); background: transparent; }
.btn.pri { background: var(--grad); color: #fff; }
.btn.line { border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.bar .btn { padding: 8px 16px; font-size: 14px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 560px) { .bar .btn.pri { display: none; } }

/* the slides */
.deck { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scroll-behavior: smooth; }
.slide { min-height: 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; display: grid; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 84px) max(28px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 56px) max(28px, env(safe-area-inset-left, 0px)); overflow: hidden; }
.slide .in { max-width: 1080px; width: 100%; margin: 0 auto; display: grid; gap: 22px; position: relative; z-index: 1; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.w1::before { background: radial-gradient(700px 520px at 8% 12%, var(--wash-a), transparent 70%), radial-gradient(560px 460px at 92% 8%, var(--wash-b), transparent 70%); }
.w2::before { background: radial-gradient(700px 560px at 95% 90%, var(--wash-c), transparent 70%); }
.w3::before { background: radial-gradient(640px 520px at 0% 100%, var(--wash-a), transparent 70%); }
.w4::before { background: radial-gradient(620px 520px at 100% 0%, var(--wash-b), transparent 70%); }
/* gentle motion: content is visible at rest; arriving on a slide only lifts it a little */
.slide .rise { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.slide:not(.on) .rise { transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { .deck { scroll-behavior: auto; } .slide .rise { transition: none; transform: none !important; } }
.two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 28px; } }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero visual: one quiet card */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: grid; gap: 10px; box-shadow: 0 30px 60px rgba(15, 118, 110, 0.10); }
.card h4 { margin: 0; font: 700 15px var(--display); display: flex; justify-content: space-between; }
.r { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); }
.r span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 2px 9px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.chip.w { background: rgba(180, 83, 9, 0.12); color: #b45309; }

/* the big words: one problem per line, crossed into the answer */
.lines { display: grid; gap: 14px; }
.ln { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: baseline; font-size: clamp(17px, 1.9vw, 24px); }
.ln s { color: var(--faint); text-decoration-thickness: 1px; }
.ln i { font-style: normal; color: var(--accent); font-weight: 800; }
.ln b { font-weight: 700; }
@media (max-width: 700px) { .ln { grid-template-columns: 1fr; gap: 2px; } .ln i { display: none; } }

/* a module slide: name, one line, three words */
.mod { display: grid; gap: 18px; }
.mod .big { font-size: clamp(60px, 9vw, 120px); line-height: 1; }
.words { display: flex; gap: 10px; flex-wrap: wrap; }
.words span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 15px; background: color-mix(in srgb, var(--panel) 60%, transparent); }
.count { position: absolute; right: max(28px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); font: 300 14px var(--display); color: var(--faint); letter-spacing: .1em; z-index: 1; }

/* three short facts in a row */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; gap: 22px; } }
.trio div { display: grid; gap: 6px; } .trio .ic { font-size: 30px; } .trio b { font: 700 20px var(--display); } .trio p { color: var(--muted); }
/* numbers */
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 700px) { .nums { grid-template-columns: 1fr; } }
.nums b { display: block; font: 800 clamp(56px, 8vw, 104px) var(--display); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nums span { color: var(--muted); font-weight: 700; }
/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: st; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 16px; } }
.steps div { counter-increment: st; display: grid; gap: 6px; border-top: 2px solid var(--accent); padding-top: 14px; }
.steps div::before { content: "0" counter(st); font: 300 15px var(--display); color: var(--accent); letter-spacing: .1em; }
.steps b { font: 700 20px var(--display); } .steps p { color: var(--muted); }
/* demo */
form.f { display: grid; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.f .g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 520px) { .f .g2 { grid-template-columns: 1fr; } }
.f label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.f input, .f select { font: 15px var(--body); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; }
.f .ok { color: var(--accent); font-weight: 800; }
.foot { display: flex; gap: 10px 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.foot a { color: var(--accent); font-weight: 800; text-decoration: none; }

/* dots */
.dots { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); z-index: 10; display: grid; gap: 10px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--faint); opacity: .55; cursor: pointer; transition: transform .2s, opacity .2s; }
.dots button.on { background: var(--accent); opacity: 1; transform: scale(1.35); }
@media (max-width: 560px) { .dots { right: 8px; gap: 8px; } .dots button { width: 8px; height: 8px; } }
.hint { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); transform: translateX(-50%); z-index: 10; font-size: 13px; color: var(--faint); font-weight: 700; display: flex; gap: 6px; align-items: center; }
.hint b { font-size: 18px; color: var(--accent); }

/* background pictures (Unsplash licence): a soft overlay keeps the words readable */
.ph::before { background-size: cover, cover; background-repeat: no-repeat; }
.ph-hero::before { background-image: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 42%, color-mix(in srgb, var(--bg) 30%, transparent) 100%), url(/static/site/skyline.jpg);
  background-position: center, center 62%; }
.ph-dark { --text: #eef8f6; --muted: #c6dcd8; --faint: #93b3ae; --line: rgba(255, 255, 255, 0.24); color: var(--text); }
.ph-dark::before { background-image: linear-gradient(100deg, rgba(4, 22, 20, 0.90) 0%, rgba(4, 22, 20, 0.72) 50%, rgba(4, 22, 20, 0.45) 100%), var(--pic); }
.ph-mess { --pic: url(/static/site/papers.jpg); } .ph-mess::before { background-position: center, center 40%; }
.ph-work { --pic: url(/static/site/team.jpg); } .ph-work::before { background-position: center, center 30%; }
.ph-demo { --pic: url(/static/site/dusk.jpg); } .ph-demo::before { background-position: center, center 58%; }
.ph-dark .kicker { color: #5eead4; } .ph-dark .ln i { color: #5eead4; } .ph-dark .ln s { color: #a7c3be; }
.ph-dark .words span { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); }
.ph-dark .foot a { color: #5eead4; } .ph-dark .count { color: rgba(255, 255, 255, 0.6); }
.ph-dark form.f { --text: #0f2b28; --muted: #55706c; --line: rgba(13, 148, 136, 0.18); color: var(--text); background: rgba(255, 255, 255, 0.96); }

/* the sign-in card, as on karmikos.com/login today: 440 px, glass, 32 px padding, 28 px corners */
.auth-card { width: 100%; max-width: 440px; justify-self: end; display: grid; gap: 16px; padding: 32px; border-radius: 28px; color: #10302d;
  background: rgba(255, 255, 255, 0.84); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.75); box-shadow: 0 24px 60px rgba(4, 47, 43, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-card { color: #e6f6f3; background: rgba(14, 30, 34, 0.9); border-color: rgba(94, 234, 212, 0.16); } }
:root[data-theme="dark"] .auth-card { color: #e6f6f3; background: rgba(14, 30, 34, 0.9); border-color: rgba(94, 234, 212, 0.16); }
@media (max-width: 860px) { .auth-card { justify-self: stretch; max-width: none; padding: 24px; } }
.ac-h { margin: 0; font: 800 26px var(--display); }
.ac-f { display: grid; gap: 14px; }
.ac-field { display: grid; gap: 5px; }
.ac-field label { font-size: 12.5px; font-weight: 700; color: var(--muted); } .req { color: #b91c1c; font-weight: 800; }
.ac-field input { width: 100%; font: 15px var(--body); color: inherit; background: rgba(245, 250, 249, 0.9); border: 1px solid rgba(13, 148, 136, 0.36); border-radius: 12px; padding: 9px 12px; }
:root[data-theme="dark"] .ac-field input { background: #0f2023; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ac-field input { background: #0f2023; } }
.ac-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.ac-row a { color: var(--accent); font-weight: 700; text-decoration: none; }
.ac-check { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.ac-btn { width: 100%; border: 0; border-radius: 999px; padding: 11px 16px; font: 800 15px var(--body); background: var(--grad); color: #fff; cursor: pointer; }
.ac-note { font-size: 12.5px; color: var(--muted); text-align: center; }
/* slide 2: two cards, one tucked behind the other */
.two.flip > :first-child { order: 0; }
.stack { position: relative; min-height: 330px; }
.stack .card { position: absolute; width: min(420px, 92%); }
.stack .back { top: 0; left: 0; transform: rotate(-3deg); opacity: .92; }
.stack .front { top: 92px; left: 12%; transform: rotate(1.5deg); }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.minis div { background: var(--accent-soft); border-radius: 10px; padding: 6px 8px; } .minis b { display: block; font: 800 20px var(--display); } .minis small { color: var(--muted); font-size: 11px; }
@media (max-width: 860px) { .stack { min-height: 0; display: grid; gap: 12px; } .stack .card { position: static; width: 100%; transform: none; } .two.flip > :first-child { order: 2; } }

.host { font: 600 13px var(--body); color: var(--muted); margin-left: 8px; }
@media (max-width: 560px) { .host { display: none; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.f .err { color: #b91c1c; font-weight: 800; }
.ac-err { margin: 0; color: #b91c1c; font-weight: 800; font-size: 14px; background: rgba(185, 28, 28, 0.08); border-radius: 10px; padding: 8px 10px; }
