/* Kotabit site, version 2: a shop-style theme page (colour ground, white product cards, pill buttons).
   Layout principle taken from toy-shop listing pages; colours, type and pictures are Kotabit's own. */
:root {
  --ground: #ffcf00; --card: #ffffff; --tint: #fff3b0; --ink: #17181a; --muted: #55585c;
  --blue: #0b5fd0; --blue-ink: #ffffff; --tag: #ffcf00;
  --fA: #fff1b8; --fB: #cfe0ff; --fC: #c8f0e4; --dark: #17181a;
  --m: clamp(16px, 2.4vw, 32px); --g: clamp(12px, 1.6vw, 22px); --r: 14px;
  --small: 0.9375rem; --body: 1.0625rem; --lead: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --head: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem); --fig: clamp(2.6rem, 1.6rem + 4vw, 4.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body { font-family: 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif; font-size: var(--body); line-height: 1.5; color: var(--ink); background: var(--ground); overflow-x: hidden }
img, video, svg { display: block; max-width: 100% }
a { color: inherit }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance }
h1 { font-size: var(--head) } h2 { font-size: var(--head) } h3 { font-size: var(--lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2 }
ul, ol { list-style: none }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px }
.wrap { padding-inline: var(--m) }
.sec { margin-top: clamp(56px, 7vw, 104px) }
.sec > h2 { margin-bottom: clamp(18px, 2.4vw, 30px) }
.muted { color: var(--muted) } .small { font-size: var(--small) } .lead { font-size: var(--lead); line-height: 1.35 }

/* buttons: pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 99px; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; background: var(--card); color: var(--blue); border: 2px solid var(--blue); transition: background-color .2s, color .2s, transform .2s var(--ease) }
.btn::after { content: '›'; font-size: 1.3em; line-height: 1; transform: translateY(-1px) }
.btn:hover { background: var(--blue); color: var(--blue-ink); transform: translateY(-2px) }
.btn:active { transform: scale(.97) }
.btn.solid { background: var(--blue); color: var(--blue-ink) } .btn.solid:hover { background: #0d3c99 }
.btn.plain::after { content: none }

/* bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--m) }
.mark { font-weight: 700; font-size: 1.6rem; letter-spacing: -0.04em; text-decoration: none; display: inline-flex; align-items: baseline; gap: 5px; background: var(--card); padding: 6px 14px 8px; border-radius: 10px }
.mark i { width: .6em; height: .3em; background: var(--blue); display: inline-block }
.bar nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 30px) }
.bar nav a { text-decoration: none; font-weight: 500 } .bar nav a:not(.pill):hover { text-decoration: underline; text-underline-offset: .25em }
.pill { background: var(--card); padding: 9px 18px; border-radius: 99px; transition: transform .2s var(--ease) } .pill:hover { transform: translateY(-2px) }
@media (max-width: 720px) { .bar nav a:not(.pill) { display: none } }
.crumb { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 6px var(--m) 16px; font-weight: 500; font-size: var(--small) }
.crumb a { text-decoration: none } .crumb a:hover { text-decoration: underline }
.crumb span.sep { margin: 0 10px }

/* the grid of cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--g); padding-inline: var(--m) }
.c { background: var(--card); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; position: relative }
.s2 { grid-column: span 2 } .s4 { grid-column: 1 / -1 }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, 1fr) } .s3m { grid-column: 1 / -1 } }
@media (max-width: 780px) { .grid { grid-template-columns: repeat(2, 1fr) } .s2 { grid-column: 1 / -1 } }
@media (max-width: 440px) { .grid { grid-template-columns: 1fr } }

/* intro card */
.intro { background: var(--tint); display: grid; grid-template-columns: 1.05fr 1fr; min-height: 380px }
.intro .txt { padding: clamp(20px, 2.6vw, 36px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px }
.intro .im { position: relative; min-height: 240px; overflow: hidden } .intro .im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
@media (max-width: 560px) { .intro { grid-template-columns: 1fr } .intro .im { order: -1; min-height: 56vw } }

/* product card */
.kit .im { aspect-ratio: 4 / 3; overflow: hidden; display: flex; align-items: center; justify-content: center }
.kit .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease) }
.kit:hover .im img { transform: scale(1.05) }
.kit .im svg { width: 100%; height: 100% }
.tA .im, .tA.im { background: var(--fA) } .tB .im, .tB.im { background: var(--fB) } .tC .im, .tC.im { background: var(--fC) }
.kit .bd { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1 }
.kit .bd::before { content: ''; height: 4px; border-radius: 4px; background: #e6e7e9; margin-bottom: 4px }
.meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--small); font-weight: 500 }
.meta span { display: inline-flex; align-items: center; gap: 6px }
.meta span::before { content: ''; width: 12px; height: 12px; border-radius: 3px; background: var(--ink) }
.meta span.mo::before { border-radius: 50% }
.kit h3 { font-size: var(--body); font-weight: 500 }
.kit .ds { font-size: var(--small); color: var(--muted); flex: 1 }
.kit .pr { font-weight: 700 }
.kit .btn { align-self: flex-start; margin-top: 4px }
.badge { position: absolute; top: 12px; right: 0; background: var(--tag); font-size: .8125rem; font-weight: 700; padding: 4px 12px; border-radius: 6px 0 0 6px; z-index: 1 }
.kit[hidden] { display: none }

/* program blocks: a fragment of the editor */
.prog { display: flex; flex-direction: column; gap: 5px; width: min(86%, 300px); font-weight: 500; font-size: var(--small) }
.prog li { display: flex; gap: 8px; align-items: center; padding: 9px 12px; background: var(--card); border-radius: 8px; line-height: 1.2 }
.prog b { font-weight: 700 }
.prog li:nth-child(n+2) { margin-left: 18px }
.prog .k-jika { background: var(--tag) } .prog .k-lain { background: #dff7f8 }
.prog.big { font-size: var(--body); width: min(92%, 360px) } .prog.big li { padding: 13px 16px }

/* text / media cards */
.pad { padding: clamp(18px, 2.4vw, 32px) }
.media { aspect-ratio: 4 / 3; overflow: hidden; display: flex; align-items: center; justify-content: center }
.media img, .media video { width: 100%; height: 100%; object-fit: cover }
.media.vid video { transform: scale(1.5); transform-origin: 62% 54% }
.wide { aspect-ratio: 2 / 1 }
.step .pad h3 { font-weight: 700 } .step .pad p { margin-top: 6px }
.plan { padding: clamp(22px, 3vw, 40px); gap: 28px; justify-content: space-between; min-height: 340px }
.plan.a { background: var(--fA) } .plan.b { background: var(--fB) }
.price { font-weight: 700; font-size: var(--fig); letter-spacing: -0.04em; line-height: .9 } .price small { font-size: var(--body); letter-spacing: 0; font-weight: 500; margin-left: 6px }
.plan .ft { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap }
.faq details { background: #f1f2f3; border-radius: 10px; margin-bottom: 8px; transition: background-color .25s }
.faq summary { min-height: 60px; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 500; font-size: var(--lead); line-height: 1.25; cursor: pointer; list-style: none }
.faq summary::-webkit-details-marker { display: none }
.pm { flex: none; position: relative; width: 16px; height: 16px }
.pm::before, .pm::after { content: ''; position: absolute; background: currentColor; transition: transform .3s var(--ease) }
.pm::before { left: 0; top: 6.5px; width: 16px; height: 3px } .pm::after { left: 6.5px; top: 0; width: 3px; height: 16px }
.faq details[open] { background: var(--fB) } .faq details[open] .pm::after { transform: rotate(90deg) }
.faq details p { padding: 0 20px 20px; max-width: 60ch }
.plain li { display: flex; gap: 12px; align-items: baseline; padding: 6px 0 }
.plain li::before { content: ''; flex: none; width: 14px; height: 7px; background: var(--blue); transform: translateY(-2px) }
.steps4 li { display: flex; gap: 14px; align-items: center; padding: 12px 0; font-weight: 500; font-size: var(--lead) }
.steps4 { counter-reset: s } .steps4 li::before { counter-increment: s; content: counter(s); flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--tag); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--body) }

/* filters */
.filters { background: var(--card); border-radius: var(--r); margin-inline: var(--m); padding: clamp(16px, 2vw, 26px); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px }
.filters h2 { font-size: var(--lead); margin-bottom: 10px }
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chips button { font: inherit; font-size: var(--small); font-weight: 500; min-height: 42px; padding: 0 15px; border-radius: 99px; background: #f1f2f3; color: var(--ink); border: 0; cursor: pointer; transition: transform .2s var(--ease), background-color .2s }
.chips button:hover { transform: translateY(-2px) }
.chips button[aria-pressed="true"] { background: var(--ink); color: #fff }
.filters .say { grid-column: 1 / -1; font-size: var(--lead); font-weight: 500; margin-top: 8px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center }
.filters mark { background: var(--tag); padding: 0 .3em; border-radius: 4px } .filters mark.m { background: var(--fC) }
@media (max-width: 780px) { .filters { grid-template-columns: 1fr } }
.thead { padding: 0 var(--m); margin: clamp(40px, 5vw, 72px) 0 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 14px }
.thead[hidden] { display: none }

/* footer */
.foot { background: var(--dark); color: #f4f5f6; margin-top: clamp(64px, 8vw, 120px); padding: 0 var(--m) 26px }
.blocks { display: flex; align-items: flex-end; gap: 4px; height: 26svh; min-height: 150px; padding-top: 40px }
.blocks span { flex: 1; display: flex; align-items: flex-end; justify-content: center; font-weight: 700; font-size: var(--fig); line-height: .8; letter-spacing: -0.04em; color: var(--ink); padding-bottom: .1em; border-radius: 10px 10px 0 0 }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr) 2fr; gap: 24px; margin-top: 44px }
.foot-cols a { display: block; text-decoration: none; padding: 3px 0 } .foot-cols a:hover { text-decoration: underline }
.foot-cols b { display: block; margin-bottom: 8px }
.foot-last { margin-top: 36px; font-size: var(--small) }
@media (max-width: 780px) { .foot-cols { grid-template-columns: 1fr 1fr } .blocks { height: 18svh } }

/* kit page */
.khero { min-height: 420px } .khero img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0 }
.khero.draw { align-items: center; justify-content: center } .khero.draw svg { width: 94%; height: auto }
.kinfo { padding: clamp(20px, 2.8vw, 40px); gap: 22px; justify-content: space-between }
.kinfo .acts { display: flex; gap: 10px; flex-wrap: wrap }

/* motion */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms) }
.js .rv.in { opacity: 1; transform: none }
.drift { animation: drift 20s ease-in-out infinite alternate }
@keyframes drift { from { transform: scale(1.02) } to { transform: scale(1.1) translate(-1.5%, -1%) } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto } .js .rv { opacity: 1; transform: none; transition: none } .drift { animation: none }
  .btn, .chips button, .kit .im img, .pill { transition: none }
}
