/* Kublaikan · site styles */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/inter-latin-800-normal.woff2") format("woff2"); }

:root {
  --plum: #391040;
  --plum-deep: #2A0B30;
  --magenta: #C90079;
  --cyan: #00DCE5;
  --orange: #FF7900;
  --white: #FFFFFF;
  --mist: #F7F3F8;
  --muted: #5E4A63;
  --lilac: #EBDDF0;
  --lilac-dim: #CDB8D3;
  --orange-text: #B34F00;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.45; }
img, svg { display: block; }
a { color: inherit; }
a:hover { opacity: 0.85; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 4px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.c-plum { color: var(--plum); }
.c-magenta { color: var(--magenta); }
.c-cyan { color: var(--cyan); }
.c-orange { color: var(--orange); }
.c-teal { color: #0FA3B1; }
.c-orange-text { color: var(--orange-text); }
.c-white { color: var(--white); }

/* ---------- Carousel (home) ---------- */

.home {
  --bg: var(--magenta); --fg: var(--white); --cta-bg: var(--white); --cta-fg: var(--magenta);
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg);
  transition: background-color 0.5s ease, color 0.5s ease;
}
.home[data-theme="magenta"] { --bg: var(--magenta); --fg: var(--white); --cta-bg: var(--white); --cta-fg: var(--magenta); }
.home[data-theme="white"]   { --bg: var(--white);   --fg: var(--plum);  --cta-bg: var(--magenta); --cta-fg: var(--white); }
.home[data-theme="cyan"]    { --bg: var(--cyan);    --fg: var(--plum);  --cta-bg: var(--plum); --cta-fg: var(--white); }
.home[data-theme="plum"]    { --bg: var(--plum);    --fg: var(--white); --cta-bg: var(--cyan); --cta-fg: var(--plum); }
.home[data-theme="orange"]  { --bg: var(--orange);  --fg: var(--plum);  --cta-bg: var(--plum); --cta-fg: var(--white); }

.logo { height: 28px; width: auto; }
.home .logo--color { display: none; }
.home[data-theme="white"] .logo--white,
.home[data-theme="cyan"] .logo--white,
.home[data-theme="orange"] .logo--white { display: none; }
.home[data-theme="white"] .logo--color,
.home[data-theme="cyan"] .logo--color,
.home[data-theme="orange"] .logo--color { display: block; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 40px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; }
.topbar a { display: block; }

.stage { flex: 1 1 auto; display: flex; align-items: center; padding: 24px 40px; }

.slide { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 56px; }
.slide[hidden] { display: none; }
.slide.is-active { animation: kin 0.6s ease both; }
@keyframes kin { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.slide--left { flex-direction: row; }
.slide--right { flex-direction: row-reverse; }
.slide--center { flex-direction: column-reverse; text-align: center; }

.slide__text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.slide--right .slide__text { text-align: right; align-items: flex-end; }
.slide--center .slide__text { flex: 0 0 auto; width: 100%; align-items: center; }

.slide__icon { flex: 1 1 200px; display: flex; justify-content: center; }
.slide--center .slide__icon { flex: 0 0 auto; }
.slide__icon svg { width: 220px; height: 220px; }
.slide--center .slide__icon svg { width: 88px; height: 88px; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.lines { margin: 0; display: flex; flex-direction: column; gap: 4px; font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
.slide--right .lines { align-items: flex-end; }
.slide--center .lines { align-items: center; }
.lines span { display: block; }
.xl { font-size: clamp(56px, 9vw, 136px); }
.l  { font-size: clamp(44px, 6.6vw, 100px); }
.m  { font-size: clamp(36px, 5vw, 76px); }
.s  { font-size: clamp(22px, 2.4vw, 34px); }

.sub { margin: 0; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.45; max-width: 680px; }

.cta { text-decoration: none; font-weight: 700; font-size: 17px; padding: 16px 28px; border-radius: 999px; background: var(--cta-bg); color: var(--cta-fg); }

.stats { width: 100%; display: flex; gap: 48px; flex-wrap: wrap; justify-content: center; }
.stat { flex: 1 1 260px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stat__n { font-size: clamp(60px, 8.4vw, 120px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.stat__l { font-size: 19px; max-width: 320px; }
.source { margin: 0; font-size: 14px; }

.steps { width: 100%; display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; }
.step { flex: 1 1 240px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.step svg { width: 84px; height: 84px; }
.step__num { font-size: 14px; font-weight: 700; }
.step__title { margin: 0; font-size: clamp(32px, 3.6vw, 50px); font-weight: 800; letter-spacing: -0.02em; }
.step__tag { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; }
.step__text { margin: 0; font-size: 19px; max-width: 260px; }

.points { width: 100%; display: flex; gap: 32px; flex-wrap: wrap; text-align: left; margin: 0; padding: 0; list-style: none; }
.points li { flex: 1 1 180px; display: flex; flex-direction: column; gap: 8px; }
.points__num { font-size: 15px; font-weight: 700; color: var(--cyan); }
.points__t { font-size: 24px; font-weight: 700; }

.controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 40px 32px; }
.controls[hidden] { display: none; }
.controls__group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.round { width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid var(--fg); color: var(--fg); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.round--bare { border-color: transparent; }
.round svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dots { display: flex; align-items: center; flex-wrap: wrap; }
.dot { width: 44px; height: 44px; background: transparent; border: 0; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dot span { display: block; width: 10px; height: 10px; border-radius: 999px; background: var(--fg); opacity: 0.4; transition: width 0.3s ease; }
.dot[aria-current="true"] span { width: 28px; opacity: 1; }
.explore { font-weight: 700; font-size: 16px; text-underline-offset: 5px; }
.legal-link { font-size: 13px; opacity: 0.8; margin-right: 16px; text-underline-offset: 4px; }
.home-noscript { padding: 0 40px 32px; font-weight: 700; }

/* ---------- Depth page ---------- */

.page { background: var(--plum); color: var(--plum); }
.wrap { max-width: 1200px; margin: 0 auto; }

.hero { background: var(--plum); color: var(--white); }
.hero__bar { padding: 28px 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hero__bar .logo { height: 30px; }
.hero__nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.hero__nav a { text-decoration: none; opacity: 0.85; }
.hero__body { padding: 140px 24px 160px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { margin: 0; font-size: clamp(56px, 10vw, 148px); line-height: 0.98; font-weight: 800; letter-spacing: -0.035em; }
.hero p { margin: 0; font-size: 22px; color: var(--lilac); }

.band { padding: 128px 24px; }
.band .wrap { display: flex; flex-direction: column; gap: 24px; }
.band--white { background: var(--white); color: var(--plum); }
.band--cyan { background: var(--cyan); color: var(--plum); }
.band--plum { background: var(--plum); color: var(--white); }
.band--orange { background: var(--orange); color: var(--plum); }
.band--magenta { background: var(--magenta); color: var(--white); }

.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.2em; }
.claim { margin: 0; font-size: clamp(48px, 8vw, 116px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.claim span { display: block; }
.lede { margin: 0; font-size: 22px; max-width: 760px; }
.band--plum .lede { color: var(--lilac); }

details { margin-top: 8px; }
summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
summary::-webkit-details-marker { display: none; }
details[open] .when-closed { display: none; }
details:not([open]) .when-open { display: none; }
.more { margin-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.more p { margin: 0; }
.more__text { font-size: 18px; max-width: 820px; }
.more__promise { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }

.cards { display: flex; gap: 16px; flex-wrap: wrap; }
.card { flex: 1 1 300px; border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card--narrow { flex-basis: 240px; }
.band--white .card { background: var(--mist); }
.band--cyan .card, .band--orange .card { background: rgba(57, 16, 64, 0.09); }
.band--plum .card { background: rgba(255, 255, 255, 0.10); }
.band--magenta .card { background: rgba(255, 255, 255, 0.14); }
.card__tag { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; }
.band--plum .card__tag { color: var(--cyan); }
.card__title { font-size: 20px; font-weight: 700; }
.card__body { font-size: 16px; }
.card__n { font-size: 40px; font-weight: 800; line-height: 1; }
.card__src { font-size: 13px; color: var(--muted); margin-top: auto; }

.contact-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; text-underline-offset: 5px; margin-top: 8px; }

.footer { background: var(--plum-deep); color: var(--lilac-dim); padding: 32px 24px 40px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; font-size: 13px; }
.footer .logo { height: 20px; }
.footer p { margin: 0; }

/* ---------- Legal page ---------- */

.legal { background: var(--white); color: var(--plum); }
.legal__bar { background: var(--plum); padding: 24px; }
.legal__bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal__bar a { color: var(--white); font-size: 14px; font-weight: 600; text-decoration: none; }
.legal main { padding: 64px 24px 96px; }
.legal main .wrap { max-width: 760px; }
.legal h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 24px; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  .slide.is-active { animation: none; }
  .home, .dot span { transition: none; }
}

@media (max-width: 640px) {
  .topbar, .stage, .controls { padding-left: 20px; padding-right: 20px; }
  .slide { gap: 32px; }
  .slide__icon { display: none; }
  .sub br { display: none; }
  #eyebrow { display: none; }
  .dots { display: none; }
  .legal-link { margin-right: 10px; }
  .band { padding: 88px 20px; }
  .hero__body { padding: 96px 20px 112px; }
}
