/* Bekito 承認ゲート — landing page. Kit tokens only; hex values appear only inside the hero illustration. */

.l-demo-link { display: none; }
@media (min-width: 721px) { .l-demo-link { display: inline-flex; } }
.l-hero__grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .l-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); } }
.l-hero__text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; container-type: inline-size; min-width: 0; }
.l-hero__text h1 { font-size: clamp(1.75rem, 1rem + 3vw, 3rem); }
/* Japanese: each headline line is one phrase of at most 10 characters; size it so a line never breaks inside the phrase */
html[lang="ja"] .l-hero__text h1 { font-size: 1.75rem; font-size: clamp(1.5rem, 9.4cqi, 3rem); line-height: 1.32; }
.l-hero__art { margin: 0; width: 100%; max-width: 520px; justify-self: center; }
.l-hero__art svg { width: 100%; height: auto; aspect-ratio: 400 / 310; border-radius: 22px; box-shadow: 0 18px 48px rgba(0, 0, 0, .28); }

/* ---------- the hero illustration: one calm 10-second loop ----------
   The styles written on each part are the LAST frame of the story (stamp landed, row changed,
   forbidden request held at the gate). The animation only replaces them while it runs, so
   "reduced motion" and a browser without animation both show a complete picture. */
.ga text { font-family: var(--bk-font); }
/* dark pages: a dimmer paper, so the drawing is not the brightest thing on the screen */
:root[data-theme="dark"] .ga rect[fill="#FAF6F0"] { fill: #DCD4C6; }
:root[data-theme="dark"] .ga [fill="#FFFFFF"] { fill: #ECE6DB; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ga rect[fill="#FAF6F0"] { fill: #DCD4C6; }
  :root:not([data-theme="light"]) .ga [fill="#FFFFFF"] { fill: #ECE6DB; }
}
.ga .ga-latin, html[lang="en"] .ga text { font-family: var(--bk-font-latin); }
.ga-bar, .ga-ai, .ga-btn, .ga-stamp, .ga-wave path { transform-box: fill-box; }
.ga-bar { transform-origin: 50% 0; }
.ga-ai, .ga-btn, .ga-stamp, .ga-wave path { transform-origin: 50% 50%; }
.ga-token--a { opacity: 0; }
.ga-old { opacity: 0; }
/* the still picture (reduced motion, the social image) tells one story: approved, 520 → 480; the refused request appears only in the moving version */
.ga-token--b, .ga-stop { opacity: 0; }
.ga-stamp { transform: rotate(-12deg); }
.ga-hand { transform: translate(16px, 18px); }
.ga * { animation-duration: 10s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.2, .7, .2, 1); animation-fill-mode: both; }
.ga-wave path { animation-name: ga-talk; }
.ga-wave path:nth-child(2n) { animation-delay: -.09s; }
.ga-wave path:nth-child(3n) { animation-delay: -.17s; }
.ga-ai { animation-name: ga-think; }
.ga-token--a { animation-name: ga-request; }
.ga-token--b { animation-name: ga-forbidden; }
.ga-bar { animation-name: ga-open; }
.ga-card { animation-name: ga-card; }
.ga-btn { animation-name: ga-press; }
.ga-hand { animation-name: ga-hand; }
.ga-stamp { animation-name: ga-stamp; }
.ga-wash { animation-name: ga-wash; }
.ga-old { animation-name: ga-old; }
.ga-new { animation-name: ga-new; }
.ga-stop { animation-name: ga-stop; }
.ga.is-paused * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ga * { animation: none !important; } }

@keyframes ga-talk { 0%, 10%, 60%, 68%, 100% { transform: scaleY(1); } 2%, 62% { transform: scaleY(.45); } 4%, 64% { transform: scaleY(1.2); } 6%, 66% { transform: scaleY(.55); } 8% { transform: scaleY(1.1); } }
@keyframes ga-think { 0%, 14%, 19%, 73%, 78%, 100% { transform: scale(1); } 16.5%, 75.5% { transform: scale(1.07); } }
@keyframes ga-request {
  0%, 6% { opacity: 0; transform: translateX(-100px); }
  8% { opacity: 1; transform: translateX(-100px); }
  14% { opacity: 1; transform: translateX(-80px); }
  16% { opacity: 0; transform: translateX(-72px); }
  19% { opacity: 0; transform: translateX(-14px); }
  21% { opacity: 1; transform: translateX(-10px); }
  26%, 51% { opacity: 1; transform: translateX(0); }
  57% { opacity: 1; transform: translateX(74px); }
  59%, 100% { opacity: 0; transform: translateX(86px); }
}
@keyframes ga-forbidden {
  0%, 66% { opacity: 0; transform: translateX(-100px); }
  68% { opacity: 1; transform: translateX(-100px); }
  73% { opacity: 1; transform: translateX(-80px); }
  75% { opacity: 0; transform: translateX(-72px); }
  78% { opacity: 0; transform: translateX(-14px); }
  80% { opacity: 1; transform: translateX(-10px); }
  85%, 96% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(0); }
}
@keyframes ga-open { 0%, 46% { transform: scaleY(1); } 50%, 59% { transform: scaleY(.14); } 64%, 100% { transform: scaleY(1); } }
@keyframes ga-card { 0%, 24% { opacity: .22; transform: translateY(0); } 29%, 96% { opacity: 1; transform: translateY(0); } 100% { opacity: .22; transform: translateY(0); } }  /* a faint outline of the card is there from the start */
@keyframes ga-press { 0%, 38.5%, 42%, 100% { transform: scale(1); } 40% { transform: scale(.94); } }
@keyframes ga-hand {
  0%, 30% { opacity: 0; transform: translate(44px, 52px); }
  37%, 38.5% { opacity: 1; transform: translate(0, 0); }
  40% { opacity: 1; transform: translate(0, 3px); }
  42%, 46% { opacity: 1; transform: translate(0, 0); }
  52%, 96% { opacity: 1; transform: translate(16px, 18px); }
  100% { opacity: 0; transform: translate(16px, 18px); }
}
@keyframes ga-stamp { 0%, 42% { opacity: 0; transform: rotate(-12deg) scale(2.1); } 45% { opacity: 1; transform: rotate(-12deg) scale(.9); } 47%, 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes ga-wash { 0%, 58% { opacity: 0; } 62%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ga-old { 0%, 58% { opacity: 1; } 61%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ga-new { 0%, 59% { opacity: 0; } 62%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ga-stop { 0%, 86% { opacity: 0; transform: translateY(5px); } 89%, 96% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(0); } }

/* ---------- sections ---------- */
.l-section { padding-block: clamp(40px, 7vw, 84px); }
.l-section--tint { background: var(--bk-bg-sunken); }
.l-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: clamp(20px, 3vw, 32px); }
.l-rise { animation: bk-rise 360ms var(--bk-ease) both; }

/* three rules, each with a small picture in the hero's drawing style */
.l-step { padding: 0; overflow: hidden; gap: 0; }
.l-step::before { position: absolute; top: 14px; left: 16px; }
.l-step__art { background: var(--bk-surface-2); border-bottom: 1px solid var(--bk-line); padding: 26px 20px 10px; }
.l-step__art svg { width: 100%; max-width: 250px; height: auto; aspect-ratio: 200 / 130; margin-inline: auto; }
.l-step__text { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.gs text { font-family: var(--bk-font); }
.gs .gs-latin, html[lang="en"] .gs text { font-family: var(--bk-font-latin); }
.gs-line { fill: none; stroke: var(--bk-fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gs-thin { stroke-width: 1.8; }
.gs-dots { stroke-dasharray: 1 7; opacity: .5; }
.gs-faint { opacity: .3; }
.gs-box { fill: var(--bk-surface); stroke: var(--bk-fg); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.gs-copper { fill: var(--bk-accent); }
.gs-ink { fill: var(--bk-fg); }
.gs-text { fill: var(--bk-fg); }
.gs-on-ink { fill: var(--bk-bg); }
.gs-on-ink-line { stroke: var(--bk-bg); }
.gs-green { fill: none; stroke: var(--bk-ok); stroke-linecap: round; stroke-linejoin: round; }

/* the real screens: the demo's own components, with fixed sample content */
.l-real { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .l-real { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1fr); } }
.l-real__col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.l-real__label { font-size: var(--bk-text-xs); font-weight: 700; letter-spacing: .06em; color: var(--bk-fg-3); }
.l-real .g-msg, .l-real .g-gateline, .l-real .g-step { animation: none; }
.l-real .g-approval__actions .bk-btn { pointer-events: none; }
/* the strip is one link to the demo (it is a sample, not a working screen) */
.l-real__link { display: block; color: inherit; text-decoration: none; border-radius: var(--bk-r-lg); padding: 12px; margin: -12px; transition: background var(--bk-fast), box-shadow var(--bk-fast); }
.l-real__link:hover { color: inherit; background: color-mix(in srgb, var(--bk-surface) 55%, transparent); box-shadow: inset 0 0 0 1px var(--bk-line); }
.l-real__note { display: inline-flex; align-items: center; gap: 6px; font-size: var(--bk-text-xs); color: var(--bk-fg-2); margin-bottom: 12px; }
.l-try { display: flex; flex-direction: column; gap: 10px; margin-top: clamp(24px, 4vw, 40px); }
.l-try__list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.l-try .g-chip { text-decoration: none; }

/* what happens to the data: three plain lines */
.l-trust { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.l-trust__item { display: flex; gap: 14px; align-items: flex-start; font-size: var(--bk-text-md); line-height: 1.75; }
.l-trust__item p { min-width: 0; }

.l-close { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.l-close__lead { max-width: 44em; }
.l-family { display: flex; flex-direction: column; gap: 10px; margin-top: clamp(28px, 5vw, 48px); padding-top: 24px; border-top: 1px solid var(--bk-line); }
.l-family .bk-chip { min-height: 44px; }

/* 404 */
.l-404 { min-height: 60dvh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; }

/* touch screens: the product name in the top bar is a 44 px target (the kit's is text height) */
@media (pointer: coarse) { .bk-brand__product { display: inline-flex; align-items: center; min-height: 44px; } }
