/* mm-apps.com · Kilkule's clay language on the web.
   Tokens mirror KilkuleDesign (cream 50/100/300, navy 900/700/500, 2.5 px outline, 5 px button base). Each app brings
   only its accent (`--acc`); the core surface never changes. Night cards use Kilkule's "night" for Kalkan and Forma.
   The only script is the theme switch (assets/js/theme.js); every motion is CSS. */

@font-face { font-family: "Baloo 2"; src: url("/assets/fonts/Baloo2-700-800.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito-500-800.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }

:root {
  --surface: #FFF8EC; --card: #FBEEDA; --track: #EADBC3;
  --navy: #1E2A4A; --navy-2: #34446E; --navy-3: #55618A;
  --life: #4FA85A; --coral: #E5674F; --gold: #F2B43C;
  --hi: rgba(255, 255, 255, .75); --night: #0E0A26; --night-card: #1B1740; --night-text: #C9D0E4;
  --display: "Baloo 2", "Avenir Next Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gx: max(16px, env(safe-area-inset-left, 0px)); --gxr: max(16px, env(safe-area-inset-right, 0px));
  --r: 28px; --line: 2.5px; --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --surface: #141A33; --card: #1E2644; --track: #2B355A; --navy: #F3EAD8; --navy-2: #D5CDBB; --navy-3: #A9A596; --hi: rgba(255, 255, 255, .08); color-scheme: dark; }
}
:root[data-theme="dark"] { --surface: #141A33; --card: #1E2644; --track: #2B355A; --navy: #F3EAD8; --navy-2: #D5CDBB; --navy-3: #A9A596; --hi: rgba(255, 255, 255, .08); color-scheme: dark; }

/* App accents (mirror apps.js). */
.app--zirve { --acc: #2E7D5B; } .app--kilkule { --acc: #C2562A; } .app--kalkan { --acc: #3EC5B8; } .app--forma { --acc: #C8FF2E; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--navy); font: 600 17px/1.5 var(--body); overflow-x: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.04; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 12px; }
.skip { position: absolute; left: var(--gx); top: -60px; z-index: 50; padding: 10px 16px; background: var(--navy); color: var(--surface); border-radius: 999px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
.sel { user-select: all; -webkit-user-select: all; }
.strong { font-weight: 800; }
.muted { color: var(--navy-3); }
.small { font-size: 14px; }
.k { font: 800 12px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--navy-3); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gx); padding-right: var(--gxr); }

/* Clay primitives */
.clay { background: var(--card); border: var(--line) solid var(--navy); border-radius: var(--r); box-shadow: 0 6px 0 var(--navy), inset 0 3px 0 var(--hi); }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: var(--line) solid var(--navy); border-radius: 999px; background: var(--card); color: var(--navy); font: 800 13px/1 var(--body); text-decoration: none; box-shadow: 0 3px 0 var(--navy), inset 0 2px 0 var(--hi); white-space: nowrap; }
a.pill { transition: transform .08s, box-shadow .08s; }
a.pill:hover { transform: translateY(-1px); }
a.pill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--navy), inset 0 2px 0 var(--hi); }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--navy); background: var(--gold); flex: none; }
.dot.acc { background: var(--acc, var(--gold)); } .dot.gold { background: var(--gold); } .dot.life { background: var(--life); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; border: 3px solid var(--navy); background: var(--coral); color: #fff; font: 800 19px/1 var(--display); text-decoration: none; box-shadow: 0 5px 0 var(--navy), inset 0 3px 0 rgba(255, 255, 255, .35); transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--navy), inset 0 3px 0 rgba(255, 255, 255, .35); }
.btn.ghost { background: var(--card); color: var(--navy); box-shadow: 0 5px 0 var(--navy), inset 0 3px 0 var(--hi); }
.btn.ghost:active { box-shadow: 0 1px 0 var(--navy), inset 0 3px 0 var(--hi); }

/* Header and footer */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 24px/1 var(--display); }
.brand svg { width: 40px; height: 40px; }
.top nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.theme { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: var(--line) solid var(--navy); background: var(--card); color: var(--navy); cursor: pointer; display: grid; place-items: center; box-shadow: 0 3px 0 var(--navy), inset 0 2px 0 var(--hi); transition: transform .08s, box-shadow .08s; }
.theme:hover { transform: translateY(-1px); }
.theme:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--navy), inset 0 2px 0 var(--hi); }
.theme svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; } :root[data-theme="dark"] .theme .sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .moon { display: block; } :root:not([data-theme="light"]) .theme .sun { display: none; } }
.foot { border-top: var(--line) solid var(--navy); margin-top: 24px; padding-block: 22px 44px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; color: var(--navy-2); font-size: 15px; }
.foot .sp { flex: 1; }
.foot .note { font-size: 14px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; padding-block: 28px 56px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 70px); }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--navy-2); max-width: 40ch; margin-top: 18px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* Clay plinth with the four objects */
.stage { position: relative; aspect-ratio: 560 / 515; max-width: 560px; width: 100%; justify-self: end; }
.stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stage .s { stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.stage .plinth-a { fill: var(--track); } .stage .plinth-b { fill: var(--card); }
.stage .plinth-ring { fill: none; stroke: var(--navy); stroke-width: 2; stroke-dasharray: 4 8; opacity: .5; }
.stage .sh { fill: rgba(30, 42, 74, .2); }
.stage .labels rect { fill: var(--card); stroke: var(--navy); stroke-width: 2.5; }
.stage .labels text { font: 800 14px var(--body); fill: var(--navy); }
.stage a { cursor: pointer; outline: none; }
.stage a:focus-visible .o { filter: drop-shadow(0 0 0 var(--gold)) drop-shadow(0 0 3px var(--gold)) drop-shadow(0 0 3px var(--gold)); }
.stage a .o { transform-box: fill-box; transform-origin: 50% 100%; animation: bob 5s ease-in-out infinite; }
.stage a:nth-of-type(2) .o { animation-delay: -1.4s; } .stage a:nth-of-type(3) .o { animation-delay: -2.6s; } .stage a:nth-of-type(4) .o { animation-delay: -3.9s; }
.stage a:hover .o, .stage a:focus-visible .o { animation: squish .5s cubic-bezier(.3, 1.6, .4, 1) both; }
@keyframes bob { 50% { transform: translateY(-7px); } }
@keyframes squish { 0% { transform: scale(1, 1); } 35% { transform: scale(1.12, .86); } 70% { transform: scale(.95, 1.06); } 100% { transform: scale(1, 1); } }

/* App cards */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-block: 8px 56px; }
.app { position: relative; display: grid; grid-template-columns: 1fr 150px; gap: 18px; padding: 26px 24px 24px 26px; min-height: 360px; overflow: hidden; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.app:hover { transform: translateY(-4px); }
.app h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 8px 0 10px; }
.app h2 a { text-decoration: none; }
.app h2 a::after { content: ""; position: absolute; inset: 0; }
.app .sum { color: var(--navy-2); font-size: 16px; max-width: 34ch; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; position: relative; z-index: 1; }
.app .phone { position: absolute; right: -14px; bottom: -110px; width: 168px; transform: rotate(-6deg); transition: transform .35s cubic-bezier(.2, .8, .2, 1); z-index: 1; }
.app:hover .phone { transform: rotate(-3deg) translateY(-14px); }
.phone { aspect-ratio: 603 / 1311; border: var(--line) solid var(--navy); border-radius: 30px; background: #000; overflow: hidden; box-shadow: 0 6px 0 var(--navy); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.glow { position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; background: var(--acc); opacity: .16; filter: blur(30px); pointer-events: none; }
.night { background: var(--night); color: #fff; }
.night .k, .night .sum, .night .intro, .night .tag, .night .muted { color: var(--night-text); }
.night .pill { background: var(--night-card); color: #fff; border-color: #fff; box-shadow: 0 3px 0 #fff, inset 0 2px 0 rgba(255, 255, 255, .08); }
.night .dot { border-color: #fff; }

/* Road: the segmented capsule bar */
.road { display: grid; gap: 6px; margin-top: 18px; max-width: 300px; }
.road .seg { display: flex; gap: 4px; height: 22px; padding: 3px; border: var(--line) solid var(--navy); border-radius: 999px; background: var(--track); }
.road .seg b { flex: 1; border-radius: 999px; background: var(--track); }
.road .seg b.on { background: var(--acc); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35); }
.road .seg b.now { background: repeating-linear-gradient(135deg, var(--acc) 0 5px, color-mix(in srgb, var(--acc) 55%, #fff) 5px 10px); }
.road small { font: 800 12px/1 var(--body); color: var(--navy-3); display: flex; justify-content: space-between; }
.night .road .seg { border-color: #fff; background: var(--night-card); } .night .road .seg b { background: var(--night-card); } .night .road .seg b.on, .night .road .seg b.now { background: var(--acc); } .night .road small { color: var(--night-text); }

/* Values */
.vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-block: 0 24px; }
.val { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 18px 20px; }
.val .ic { width: 56px; height: 56px; border-radius: 18px; border: var(--line) solid var(--navy); background: var(--surface); display: grid; place-items: center; box-shadow: 0 4px 0 var(--navy); }
.val .ic svg { width: 28px; height: 28px; stroke: var(--navy); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.val h2 { font-size: 19px; margin-bottom: 2px; }
.val p { color: var(--navy-2); font-size: 14.5px; line-height: 1.4; }

/* App page */
.crumb { padding-block: 10px 18px; font-size: 15px; }
.crumb a { text-decoration: none; font-weight: 800; }
.crumb a:hover { text-decoration: underline; }
.app-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; padding: 36px 32px; position: relative; overflow: hidden; }
.app-hero h1 { font-size: clamp(34px, 4.6vw, 56px); margin-top: 8px; }
.app-hero .tag { font: 800 clamp(20px, 2.2vw, 26px)/1.2 var(--display); color: var(--acc-text, var(--navy-2)); margin-top: 6px; }
.app--zirve .tag { --acc-text: #1F5A3A; } .app--kilkule .tag { --acc-text: #B0402C; }
.app-hero.night .tag { color: var(--acc); }
.app-hero.night .intro, .app-hero.night .k, .app-hero.night .small { color: var(--night-text); }
.app-hero .intro { margin-top: 14px; max-width: 54ch; color: var(--navy-2); }
.app-hero .road { margin-top: 22px; }
.app-hero .foot-row { margin-top: 22px; }
.app-hero .small { margin-top: 10px; }
.app-hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.app-hero-art .glow { right: 10%; bottom: 10%; width: 70%; height: 70%; opacity: .22; }
.phone.big { width: min(300px, 70%); transform: rotate(-3deg); position: relative; z-index: 1; }
.features { padding-block: 44px 8px; }
.features h2, .gallery h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 18px 20px 20px; box-shadow: 0 4px 0 var(--navy), inset 0 3px 0 var(--hi); border-radius: 22px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--navy-2); font-size: 15px; line-height: 1.45; }
.gallery { padding-block: 40px 8px; }
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shots .phone.sm { flex: none; width: 200px; margin: 0; scroll-snap-align: start; border-radius: 26px; box-shadow: 0 5px 0 var(--navy); }
.facts-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-block: 36px 24px; }
.facts { padding: 26px 28px; }
.facts h2 { font-size: 22px; margin-bottom: 12px; }
.facts h2.mt { margin-top: 20px; }
.facts p { color: var(--navy-2); font-size: 15.5px; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.facts dt { color: var(--navy-3); font-weight: 800; }
.facts dd { margin: 0; color: var(--navy-2); }

/* Prose (privacy) and 404 */
.prose { max-width: 68ch; padding-block: 24px 40px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); margin: 8px 0 18px; }
.prose h2 { font-size: 24px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--navy-2); font-size: 16.5px; line-height: 1.6; }
.prose p + p { margin-top: 10px; }
.prose ul { padding-left: 22px; margin: 0; display: grid; gap: 6px; }
.prose strong { color: var(--navy); }
.nf { max-width: 560px; margin: 40px auto; padding: 36px 32px; text-align: center; }
.nf h1 { font-size: clamp(34px, 5vw, 52px); margin: 8px 0 12px; }
.nf p { color: var(--navy-2); }
.nf .cta { justify-content: center; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 12px; }
  .stage { justify-self: center; max-width: 460px; }
  .apps { grid-template-columns: 1fr; }
  .vals { grid-template-columns: 1fr; }
  .app-hero { grid-template-columns: 1fr; padding: 28px 22px; }
  .app-hero-art { min-height: 0; order: -1; }
  .phone.big { width: min(220px, 60%); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .facts-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .app { grid-template-columns: 1fr; min-height: 0; padding-bottom: 200px; }
  .app .phone { right: 16px; bottom: -150px; width: 150px; }
  .top nav a:not(.lang) { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .shots .phone.sm { width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage a .o, .stage a:hover .o, .stage a:focus-visible .o { animation: none; }
  .app, .app .phone, .btn, a.pill { transition: none; }
  .app:hover { transform: none; } .app:hover .phone { transform: rotate(-6deg); }
}
@media print { .top nav, .foot .sp, .skip { display: none; } }
