/* Kalpo · mobile-first, dark, warm-lit (matches the videos) */
:root { --bg: #0B0D1E; --bg2: #12142B; --card: #181A36; --line: rgba(255,255,255,.09); --ink: #F4F1FF; --muted: #9E9AC8; --accent: #FFB547; --accent2: #5CE1E6; --good: #4CD98A; --bad: #FF6B7A; --r: 18px;
  --font: 'Poppins', system-ui, sans-serif; --head: 'Montserrat', 'Poppins', system-ui, sans-serif; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.45 var(--font); }
body { min-height: 100dvh; background: radial-gradient(900px 600px at 80% -10%, rgba(122,106,255,.18), transparent 60%), radial-gradient(700px 500px at -10% 30%, rgba(255,181,71,.10), transparent 60%), var(--bg); }
a { color: inherit; } button { font: inherit; color: inherit; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: rgba(11,13,30,.78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 900 20px var(--head); text-decoration: none; letter-spacing: -.2px; }
.dot { width: 26px; height: 26px; border-radius: 50%; background: #07070D; box-shadow: 0 0 0 3px var(--accent), 0 0 18px rgba(255,181,71,.6); position: relative; }
.dot::before, .dot::after { content: ''; position: absolute; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: #fff; } .dot::before { left: 7px; } .dot::after { right: 7px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 22px; background: var(--accent); color: #1A1205; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 0 8px 30px rgba(255,181,71,.3); transition: transform .12s; }
.btn:active { transform: scale(.97); } .btn.small { padding: 9px 16px; font-size: 14px; box-shadow: none; } .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; } .btn.wide { width: 100%; } .btn:disabled { opacity: .5; }
.wrap { max-width: 760px; margin: 0 auto; padding: 18px 16px 120px; }
h1 { font: 900 clamp(30px, 8vw, 52px)/1.05 var(--head); letter-spacing: -1px; margin: 18px 0 10px; } h2 { font: 800 22px var(--head); margin: 28px 0 12px; }
.lead { color: var(--muted); font-size: 17px; margin: 0 0 22px; } .hl { color: var(--accent); }
.compose { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.compose textarea { width: 100%; min-height: 92px; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 19px/1.35 var(--font); padding: 6px 4px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 999px; padding: 8px 13px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip.on { background: rgba(255,181,71,.16); border-color: var(--accent); color: var(--accent); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; }
.langmore { margin-left: 8px; background: rgba(255,255,255,.05); color: inherit; border: 0; border-radius: 999px; padding: 9px 14px; font: inherit; } .langmore.on { background: #FFB547; color: #111; font-weight: 800; } .langmore option { color: #111; }
.seg { display: inline-flex; background: rgba(255,255,255,.05); border-radius: 999px; padding: 3px; } .seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--muted); } .seg button.on { background: var(--ink); color: #111; }
.styles { display: flex; gap: 10px; overflow-x: auto; padding: 6px 0; } .sw { flex: none; width: 54px; height: 54px; border-radius: 14px; border: 2px solid transparent; cursor: pointer; position: relative; } .sw.on { border-color: var(--accent); } .sw span { position: absolute; bottom: -18px; left: 0; right: 0; font-size: 10px; text-align: center; color: var(--muted); }
.stage { position: relative; margin: 6px auto 0; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.stage canvas { display: block; width: 100%; height: auto; } .stage.tall { max-width: min(420px, 100%); } .stage.wide { width: 100%; }
.stage .over { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.25); cursor: pointer; } .stage .over.hide { display: none; }
.play { width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; } .play::after { content: ''; border-left: 24px solid #111; border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 6px; }
.bar { display: flex; align-items: center; gap: 10px; padding: 10px 4px; } .bar input[type=range] { flex: 1; accent-color: var(--accent); } .bar .t { font: 600 13px monospace; color: var(--muted); }
.making { text-align: center; padding: 40px 10px; } .spinner { width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%; background: #07070D; box-shadow: 0 0 0 4px var(--accent), 0 0 40px rgba(255,181,71,.6); animation: pulse 1.4s ease-in-out infinite; } @keyframes pulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 4px var(--accent2), 0 0 60px rgba(92,225,230,.6); } }
.steps { list-style: none; padding: 0; margin: 18px auto; max-width: 320px; text-align: left; } .steps li { padding: 6px 0; color: var(--muted); } .steps li.done { color: var(--ink); } .steps li.done::before { content: '✓ '; color: var(--good); } .steps li.now::before { content: '● '; color: var(--accent); }
.chat { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 10px; } .chat form { display: flex; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px; } .chat input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 16px var(--font); min-width: 0; }
.msg { margin: 8px 0; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.05); font-size: 14px; } .msg.me { background: rgba(255,181,71,.12); text-align: right; }
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; } .sheet.hide { display: none; }
.sheet .panel { width: 100%; max-width: 520px; background: var(--bg2); border-radius: 26px 26px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); border: 1px solid var(--line); animation: up .25s ease; } @keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet h3 { font: 800 21px var(--head); margin: 0 0 8px; } .plan { border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin: 10px 0; } .plan.pro { border-color: var(--accent); background: rgba(255,181,71,.07); } .plan b { font-size: 18px; } .plan ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.progress { height: 10px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; margin: 14px 0; } .progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .3s; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #222445; border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; z-index: 60; font-size: 14px; max-width: 90%; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; } .card { display: block; text-decoration: none; background: var(--card); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); } .card img { width: 100%; aspect-ratio: 9/12; object-fit: cover; background: #000; display: block; } .card span { display: block; padding: 8px 10px 10px; font-size: 13px; font-weight: 600; }
.hero-demo { border-radius: 22px; overflow: hidden; margin: 10px 0 18px; border: 1px solid var(--line); } .hero-demo video { width: 100%; display: block; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .feat div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; font-size: 14px; color: var(--muted); } .feat b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 16px 60px; } .foot a { color: var(--muted); }
.watch { max-width: 900px; margin: 0 auto; padding: 16px; } .player video { width: 100%; border-radius: 18px; background: #000; display: block; } .player.tall { max-width: 420px; margin: 0 auto; } .meta { color: var(--muted); }
.cta-card { display: grid; gap: 6px; background: var(--card); border: 1px solid var(--accent); border-radius: 18px; padding: 16px; margin: 18px 0; } .cta-card span { color: var(--muted); } .cta-card .btn { justify-self: start; margin-top: 6px; }
.tx { color: var(--muted); } .legal { max-width: 760px; margin: 0 auto; padding: 20px 16px 80px; color: #d9d6f0; } .legal h1 { font-size: 32px; }
.hidden { display: none !important; } .muted { color: var(--muted); font-size: 14px; } .pill { display: inline-block; padding: 3px 10px; border-radius: 99px; background: rgba(255,181,71,.15); color: var(--accent); font-size: 12px; font-weight: 800; }

.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; } .thumbs img { width: 100%; border-radius: 10px; display: block; }
.kit { margin-top: 10px; } .kit textarea { width: 100%; box-sizing: border-box; background: rgba(255,255,255,.05); color: inherit; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 8px; font-family: inherit; font-size: 13px; line-height: 1.45; resize: vertical; }

.recipes { max-height: 300px; overflow-y: auto; display: flex !important; flex-wrap: wrap; gap: 6px; white-space: normal; } .recipes .rgroup { width: 100%; font-size: 12px; opacity: .6; margin: 8px 0 2px; text-transform: uppercase; letter-spacing: .08em; } .chip.on { background: #FFB547; color: #111; font-weight: 800; }
