/* Kumo home (also the base for Studio and My works). A light anime studio: near-white page, lavender for what you
   press, pink and gold only as small accents, one colour per tool for its marker. Hierarchy comes from size, space
   and a few surfaces, not from gradients or floating shadows. 8px spacing. */
:root {
  --ink: #1f2135; --ink-2: #4a4e66; --ink-3: #676c86; --line: rgba(60, 64, 110, .13);
  --bg: #fbfaff; --card: #ffffff; --sunk: #f3f1fb;
  --accent: #6b4fd8; --accent-hover: #5a3fc6; --accent-soft: #efebfd; --accent-ink: #4b33b0;
  --pink: #e0517f; --gold: #b8831a; --wave-off: #dcd6f5;
  --brand: var(--accent); /* solid: main actions and step numbers */
  --image: #e0517f; --cutout: #1b9488; --voice: #7a5ce0; --subtitles: #c98714; --chat: #3576e8; --studio: #5b6fd8;
  --sh-1: 0 1px 2px rgba(40, 44, 90, .06), 0 1px 6px rgba(40, 44, 90, .04);
  --sh-2: 0 2px 6px rgba(40, 44, 90, .07), 0 8px 20px rgba(40, 44, 90, .06);
  --sh-3: 0 6px 24px rgba(40, 44, 90, .12);
  --r: 16px; --r-s: 12px; --t1: 200ms; --t2: 320ms; --ease: cubic-bezier(.2, .7, .2, 1);
  --sec: 72px; --pad: 32px;
  --round: "M PLUS Rounded 1c", system-ui, -apple-system, "PingFang SC", "Hiragino Sans", sans-serif;
  --body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans", "Segoe UI", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 400 16px/1.65 var(--body); background: var(--bg); overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--round); line-height: 1.25; margin: 0; letter-spacing: .01em; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* buttons: solid for the main action, a light tint for the second one, text links for the rest */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  font: 700 16px/1 var(--round); cursor: pointer; text-decoration: none; transition: background-color var(--t1) var(--ease), color var(--t1) var(--ease); }
.btn.primary { color: #fff; background: var(--accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.soft { color: var(--accent-ink); background: var(--accent-soft); }
.btn.soft:hover { background: #e4ddfb; }
.btn.ghost { height: 40px; padding: 0 16px; font-size: 14px; color: var(--ink-2); background: transparent; }
.btn.ghost:hover { color: var(--ink); background: var(--sunk); }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* 1. hero: the promise on the left, three things Kumo made on the right */
.hero { padding: 48px 0 var(--sec); }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.eyebrow { color: var(--accent-ink); font: 700 14px/1 var(--round); letter-spacing: .04em; }
.hero h1 { margin-top: 16px; font-size: clamp(30px, 3.3vw, 44px); font-weight: 800; line-height: 1.22; }
.hero h1 span { display: block; }
.lead { margin-top: 16px; max-width: 34em; color: var(--ink-2); font-size: 18px; }
.hero .acts { margin-top: 32px; }
.strip { margin: 0; }
.strip-row { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr); align-items: start; gap: 8px; }
.arrow { align-self: center; margin-top: -36px; color: var(--ink-3); font: 700 18px/1 var(--round); text-align: center; }
.step-tile p { margin-top: 10px; display: grid; gap: 2px; }
.step-tile b { font: 700 15px/1.3 var(--round); }
.step-tile span { color: var(--ink-3); font-size: 13px; }
.strip figcaption { margin-top: 16px; color: var(--ink-3); font-size: 13.5px; line-height: 1.6; }
/* one tile shape for every real result: a picture, a video or a voice line */
.tile-media { position: relative; aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; background: var(--sunk); }
.tile-media img, .tile-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-media.tall img { object-position: 50% 20%; }
.tile-media.voice { display: grid; align-content: center; justify-items: center; gap: 12px; padding: 16px; background: var(--accent-soft); }
.tile-media.voice q { color: var(--accent-ink); font: 700 13.5px/1.45 var(--round); text-align: center; quotes: "“" "”"; }
.tile-media .wave { width: 100%; height: auto; }
.tile-media.voice.small { gap: 8px; }
.play { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; }
.play svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }
.play.on svg { margin-left: 0; }
.pp { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(20, 20, 40, .45); color: #fff; font-size: 11px; cursor: pointer; }

/* sections */
.sec { padding: var(--sec) 0 0; }
.sec-h { max-width: 640px; margin-bottom: 24px; }
.sec-h h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; }
.sec-h p { margin-top: 8px; color: var(--ink-2); }

/* 2. scenes: four big doors in the visitor's words */
.scenes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.scene { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: border-color var(--t1) var(--ease); }
.scene:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
.scene .tile-media { border-radius: 0; aspect-ratio: 4 / 3; }
.scene-b { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.scene-b h3 { font-size: 18px; font-weight: 800; }
.scene-b p { color: var(--ink-2); font-size: 14.5px; }
.scene .go { margin-top: auto; padding-top: 8px; color: var(--c); font: 700 14px/1 var(--round); }

/* 3. tools: compact rows, each with something it made */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: border-color var(--t1) var(--ease); }
.tool:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
.tool .tile-media { aspect-ratio: 1; }
.tool .tile-media.voice { padding: 10px; gap: 6px; }
.tool .tile-media.voice q { font-size: 12px; }
.tool h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; }
.tool h3 i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.tool p { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; }

/* 4. flow: the four real steps, numbered because the order matters */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.flow li { display: grid; gap: 12px; align-content: start; }
.flow li b { display: flex; align-items: center; gap: 10px; font: 800 17px/1 var(--round); }
.flow li b span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--c); font-size: 14px; }
.flow li p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }

/* 5. free, limits and privacy: free + limits side by side (1 : 2), privacy full width below; heights follow content */
.panel { padding: 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.panel h3 { font-size: 19px; font-weight: 800; }
.quota-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.panel.free { background: var(--sunk); border-color: transparent; }
.panel.free p { margin-top: 8px; max-width: 36em; color: var(--ink-2); }
.q-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 16px; }
.q-item { display: grid; align-content: start; gap: 4px; padding: 16px; border-radius: var(--r-s); background: var(--sunk); }
.q-name { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.q-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.q-num b { font: 800 34px/1.1 var(--round); color: var(--c); }
.q-num b.q-text { font-size: 20px; line-height: 1.3; }
.q-num small { font-size: 15px; font-weight: 600; color: var(--ink); }
.q-item p { margin-top: 4px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.q-notes { display: grid; gap: 6px; margin: 20px 0 0; padding: 16px 0 0 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; }
.q-notes li.muted { color: var(--ink-3); }
.panel.privacy { margin-top: 20px; }
.privacy-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.privacy-h .more { color: var(--accent-ink); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.privacy-h .more:hover { text-decoration: underline; }
.p-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; margin-top: 16px; }
.p-item h4 { margin: 0; font: 700 15.5px/1.4 var(--round); }
.p-item p { margin-top: 4px; max-width: 62ch; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

/* 6. one place to begin */
.sec.end { padding-bottom: 8px; }
.end-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 32px; border-radius: var(--r); background: var(--accent-soft); }
.end-in h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; color: var(--accent-ink); }
.end-in .btn.soft { background: #fff; }

.foot { margin-top: var(--sec); padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot-logo { font: 800 18px/1 var(--round); text-decoration: none; color: var(--ink); }
.foot-link { color: var(--ink-2); text-decoration: none; }
.foot-link:hover { color: var(--ink); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .scene, .tool { transition: none; } }
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quota-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --sec: 48px; --pad: 16px; }
  .hero { padding-top: 32px; }
  .lead { font-size: 16px; }
  .strip-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .arrow { display: none; }
  .step-tile span { display: none; }
  .tile-media.voice { padding: 8px; gap: 6px; }
  .tile-media.voice q { display: none; }
  .play { width: 36px; height: 36px; }
  .scenes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .scene { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: none; }
  .scene .tile-media { aspect-ratio: 1; height: 100%; }
  .scene-b { padding: 12px; gap: 4px; }
  .scene-b h3 { font-size: 16px; }
  .scene-b p { font-size: 13.5px; }
  .tools { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tool { grid-template-columns: 88px minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .panel { padding: 20px; }
  .p-items { grid-template-columns: minmax(0, 1fr); }
  .end-in { padding: 24px; }
}
