:root {
  color-scheme: light;
  --page: #ffffff;
  --surface: #f4f6f8;
  --ink: #0b1220;
  --body: #2b3748;
  --muted: #4f5d70;
  --soft-heading: #8390a0;
  --accent: #256a9c;
  --system: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
}
/* LINE Seed JP (SIL OFL 1.1, assets/fonts/OFL.txt), subset to the characters these pages use. */
@font-face { font-family: "LINE Seed JP"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/line-seed-jp-700.woff2") format("woff2"); }
@font-face { font-family: "LINE Seed JP"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/line-seed-jp-800.woff2") format("woff2"); }
@property --glow {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--body); font: 17px/1.8 var(--system); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -.035em; word-break: keep-all; overflow-wrap: anywhere; }
h1 { font-size: clamp(46px, 7.2vw, 96px); line-height: 1.16; }
h2 { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.25; }
.container { width: min(100% - 64px, 1140px); margin-inline: auto; }
.wide-container { width: min(100% - 48px, 1320px); margin-inline: auto; }
.section { padding-block: clamp(104px, 12vw, 176px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 8px 16px; border-radius: 999px; background: var(--page); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 30px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 600 17px/1.3 var(--system); white-space: nowrap; transition: transform .35s cubic-bezier(.2,.8,.2,1), background-color .35s cubic-bezier(.2,.8,.2,1); }
.button:hover { transform: translateY(-2px); background: #26354a; }
/* Not downloadable yet: same shape, muted, not a link. */
.button.is-soon, .button.is-soon:hover { transform: none; background: #e9edf1; color: var(--muted); cursor: default; }
.button-small { min-height: 40px; padding: 8px 21px; font-size: 15px; }
.site-header { position: sticky; z-index: 50; top: 0; height: 64px; background: rgba(255,255,255,.97); transition: background-color .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s cubic-bezier(.2,.8,.2,1); }
.site-header.is-scrolled { background: rgba(245,248,250,.8); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); box-shadow: 0 6px 28px rgba(15,23,42,.07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.header-nav a:not(.button) { color: var(--ink); font-size: 15px; }
.header-nav { display: flex; align-items: center; gap: 18px; }
.header-nav a.lang-switch { color: var(--body); font-size: 14px; }
.header-nav a.lang-switch:hover { color: var(--ink); }
.header-nav a:not(.button):hover { color: var(--accent); }
.wordmark { display: inline-flex; align-items: center; gap: 8px; }
.wordmark img { display: block; }
.footer-brand { color: var(--ink); font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.04em; white-space: nowrap; }

/* Hero */
.hero { padding-block: clamp(72px, 8vw, 112px) 120px; }
.hero-copy { margin-bottom: 56px; text-align: center; }
.hero h1 { margin-bottom: 26px; }
.hero h1 span { display: block; }
.soft-heading { color: var(--soft-heading); }
.hero-copy > p:not(.system-note) { max-width: 640px; margin: 0 auto 30px; color: var(--body); font-size: 19px; line-height: 1.75; }
.system-note { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* A 1280×800 pt virtual screen (a real Mac resolution), scaled to the stage by site.js (--s). */
.desktop-stage { --view: 1280; position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1280 / 800; border-radius: 28px; background: #bad9ed url("wallpaper/sky-1672.webp") center 40% / cover no-repeat; }
.screen { --cx: 640px; position: absolute; top: 0; left: 50%; width: 1280px; height: 800px; margin-left: calc(var(--cx) * -1 * var(--s, .8)); transform: scale(var(--s, .8)); transform-origin: 0 0; }
.window { --win: 1; position: absolute; top: 48px; left: calc(640px - 440px * var(--win)); width: calc(880px * var(--win)); height: calc(592px * var(--win)); filter: drop-shadow(0 0 .5px rgba(15,23,42,.55)) drop-shadow(0 22px 42px rgba(15,23,42,.28)); }
.window-body { position: absolute; top: 0; left: 0; width: 880px; height: 592px; transform: scale(var(--win)); transform-origin: 0 0; }
.window-image { position: absolute; inset: 0; width: 880px; max-width: none; height: 592px; }
/* Pasting is instant in the app, so the window swaps without a fade. */
.window-filled, .window-email { visibility: visible; }
.window-empty, .window-selected { visibility: hidden; }
.desktop-stage:is([data-state="idle"], [data-state="recording"], [data-state="finalizing"]) .window-empty { visibility: visible; }
.desktop-stage:is([data-state="idle"], [data-state="recording"], [data-state="finalizing"]) .window-filled { visibility: hidden; }
.desktop-stage:is([data-state="idle"], [data-state="edit"], [data-state="thinking"]) .window-selected { visibility: visible; }
.desktop-stage:is([data-state="idle"], [data-state="edit"], [data-state="thinking"]) .window-email { visibility: hidden; }
/* NSTextInsertionIndicator: 2×29 pt, #007AFF, 1 s cycle (fade in 0.15 s, on, fade out at 0.65 s, off at 0.8 s). */
.caret { position: absolute; top: 101px; left: 218px; width: 2px; height: 29px; border-radius: 1px; background: #007aff; animation: caret 1s linear infinite; }
.desktop-stage:is([data-state="idle"], [data-state="recording"], [data-state="finalizing"]) .caret { top: 72px; left: 47px; }
/* The English hero types a shorter last line (measured from the rendered window: x 203 in the text view). */
html[lang="en"] .caret { left: 202px; }
@keyframes caret { 0% { opacity: 0; } 15% { opacity: 1; } 65% { opacity: 1; } 80% { opacity: 0; } 100% { opacity: 0; } }
.card-still { position: absolute; bottom: 68px; left: 50%; width: 476px; max-width: none; height: auto; transform: translateX(-50%); }
.js .card-still { display: none; }

/* HUD: Theme.HUD and HUDView. The panel sits 96 pt above the bottom of the screen. */
.hud-host { --zoom: 1; position: absolute; right: 0; bottom: 96px; left: 0; height: 0; transform: scale(var(--zoom)); transform-origin: 50% 100%; }
.hud { position: absolute; bottom: 0; left: 50%; width: var(--w, 104px); height: var(--h, 40px); transform: translateX(-50%); color: #fff; font-family: var(--system); }
.hud-shape { position: absolute; inset: 0; overflow: hidden; border-radius: 20px; background: rgba(0,0,0,.74); -webkit-backdrop-filter: blur(16px) saturate(1.8); backdrop-filter: blur(16px) saturate(1.8); box-shadow: 0 5px 24px rgba(0,0,0,.28), inset 0 0 0 .5px rgba(255,255,255,.16); }
.hud-row { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; }
.hud-icon { display: flex; flex: none; align-items: center; justify-content: center; width: 18px; height: 22px; }
.hud-icon svg { width: 15px; height: 15px; }
.hud-bars { display: flex; flex: none; align-items: center; gap: 3px; height: 18px; transition: opacity .3s; }
.hud-bars i { display: block; width: 3px; height: 3px; border-radius: 1.5px; background: #fff; }
.hud-progress { display: none; flex: none; align-items: center; gap: 7px; color: rgba(255,255,255,.75); font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; }
.hud-progress canvas { width: 17px; height: 17px; margin: -2px; }
.hud-agent { display: none; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.hud-transcript { color: #fff; font-size: 15px; font-weight: 500; line-height: 21px; transition: opacity .2s; }
.hud-card { position: absolute; bottom: -28px; left: -28px; }
.card-layer { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; }
.hud:is([data-status="finalizing"], [data-status="editFinalizing"]) .hud-icon { color: rgba(255,255,255,.45); }
.hud:is([data-status="finalizing"], [data-status="editFinalizing"], [data-status="agentFinalizing"]) .hud-bars { opacity: .35; }
.hud:is([data-status="thinking"], [data-status="done"], [data-status="sent"]) .hud-bars { display: none; }
.hud[data-status="thinking"] .hud-edit-progress { display: flex; }
.hud:is([data-status="agent"], [data-status="agentFinalizing"]) .hud-row { align-items: flex-start; justify-content: flex-start; gap: 12px; padding: 11px 16px; }
.hud:is([data-status="agent"], [data-status="agentFinalizing"]) .hud-icon svg { width: 16px; height: 16px; }
.hud:is([data-status="agent"], [data-status="agentFinalizing"]) .hud-agent { display: flex; }
.hud:is([data-status="agent"], [data-status="agentFinalizing"]) .hud-bars { height: 22px; }
.hud[data-status="agentFinalizing"] .hud-transcript { opacity: .6; }
.hud[data-status="agentFinalizing"] .hud-agent-progress { display: flex; }
.hud[data-status="card"] .hud-row { display: none; }
/* Edit mode lights the pill's edge (stroke 1.2 pt white .85, shadow radius 5 white .45). */
.hud-edge { position: absolute; inset: 0; border: 1.2px solid rgba(255,255,255,.85); border-radius: 20px; box-shadow: 0 0 10px rgba(255,255,255,.45); opacity: 0; pointer-events: none; transition: opacity .34s cubic-bezier(.2,.8,.2,1); }
.hud:is([data-status="edit"], [data-status="editFinalizing"], [data-status="thinking"]) .hud-edge { opacity: 1; }
/* GlowBorder: blue, purple, pink, orange; 1.6 pt stroke plus a 5 pt stroke blurred 7 pt at .55; one turn per 4 s. */
.hud-glow { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .44s cubic-bezier(.2,.8,.2,1); animation: glow-turn 4s linear infinite; }
.hud:is([data-status="agent"], [data-status="agentFinalizing"], [data-status="card"]) .hud-glow { opacity: 1; }
.ring { position: absolute; inset: 0; padding: 1.6px; border-radius: 20px; background: conic-gradient(from calc(90deg + var(--glow)), #5c9eff, #a873ff, #ff73b3, #ffa859, #5c9eff); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.ring-blur { position: absolute; inset: 0; opacity: .55; filter: blur(7px); }
.ring-wide { padding: 5px; }
@keyframes glow-turn { to { --glow: 360deg; } }

/* Requests */
.requests { background: var(--surface); }
.requests-copy { margin-bottom: 48px; }
.requests-copy p { max-width: 760px; margin-top: 22px; font-size: 19px; }

/* Facts */
.speed-band { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 10px 28px; margin-bottom: 80px; padding: 48px 32px; border-radius: 28px; background: var(--surface); text-align: center; }
.speed-number { color: var(--ink); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.speed-number strong { font-size: clamp(88px, 10vw, 140px); font-weight: 650; font-variant-numeric: tabular-nums; }
.speed-number span { margin-left: 8px; color: var(--soft-heading); font-size: clamp(32px, 3.4vw, 48px); }
.speed-band > p:last-child { color: var(--body); font-size: 18px; }
.facts-grid { display: grid; grid-template-columns: 1fr 1.3fr; align-items: start; gap: clamp(30px, 6vw, 96px); }
.fact-main { color: var(--ink); font-size: clamp(26px, 2.5vw, 34px); font-weight: 600; line-height: 1.35; letter-spacing: -.03em; }
.fact-main span { color: var(--accent); }
.fact > p:last-child { margin-top: 16px; color: var(--body); }
.text-link { display: inline-block; margin-top: 64px; color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }

/* Download */
/* The closing section sits on the same sky as the desktop pictures. The sky itself fades out at both ends (a mask, not a white overlay, so no blue line shows at the edge). */
.download-section { position: relative; isolation: isolate; padding-block: clamp(120px, 14vw, 220px); text-align: center; }
.download-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #c8e2f6 url("wallpaper/sky-1672.webp") center 62% / cover no-repeat; -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 80%, transparent); }
.download-section p, .download-inner .download-note { color: var(--ink); }
.download-section .button.is-soon { background: rgb(255 255 255 / .72); color: var(--ink); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.download-inner h2 { margin-bottom: 30px; }
.download-inner p { max-width: 640px; margin: 26px auto 0; }
.download-inner .download-note { margin-top: 8px; font-size: 15px; }
.site-footer { background: var(--page); }
.footer-inner { display: flex; align-items: center; gap: 30px; min-height: 108px; color: var(--muted); font-size: 15px; }
.footer-inner nav { display: flex; gap: 25px; margin-left: auto; }
.site-footer a:hover, .text-link:hover { color: var(--accent); }

/* The policy and 404 pages share this stylesheet. */
.narrow-container { max-width: 760px; }
.eyebrow { margin-bottom: 16px; color: var(--accent); font-size: 14px; font-weight: 650; letter-spacing: .08em; }
.document-page { padding-block: 80px 120px; }
.document-page h1 { margin-bottom: 18px; font-size: clamp(36px, 4vw, 52px); }
.policy-intro { margin-bottom: 54px; font-size: 18px; }
.document-page section { padding-block: 26px; }
.document-page section h2 { margin-bottom: 12px; font-size: 24px; }
.document-page section p { margin-bottom: 12px; }
.document-page section p:last-child { margin-bottom: 0; }
.document-page section a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.revision-date { margin-top: 30px; color: var(--muted); }
.not-found-body { min-height: 100vh; }
.not-found { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: min(100% - 48px, 720px); min-height: 100vh; margin-inline: auto; }
.not-found h1 { margin-bottom: 20px; font-size: clamp(36px, 5vw, 54px); }
.not-found > p:not(.eyebrow) { margin-bottom: 28px; font-size: 18px; }

/* E: cause and effect inside one picture */
/* The hero window is cropped below the text so the typed words read large. */
.hero-stage .window { --win: .92; top: 44px; height: calc(300px * var(--win)); overflow: hidden; border-radius: calc(12px * var(--win)); }
.hero-hud { --zoom: 2.2; }
.flow-arrow { position: absolute; inset: 0; width: 1280px; height: 800px; overflow: visible; color: #64748b; pointer-events: none; }
.flow-arrow path { fill: none; stroke: #64748b; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .7s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.desktop-stage:not([data-state="done"]) .flow-arrow path { stroke-dashoffset: 1; opacity: 0; }
.speech-bubble { position: absolute; bottom: 210px; left: 50%; width: max-content; max-width: 760px; margin: 0; padding: 20px 34px; border-radius: 30px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #3f4b5c; font: 500 27px/1.5 var(--system); letter-spacing: -.01em; box-shadow: 0 14px 40px rgba(15,23,42,.16); transform: translateX(-50%); transition: opacity .25s cubic-bezier(.2,.8,.2,1); }
.speech-bubble::after { content: ""; position: absolute; bottom: -10px; left: 50%; width: 22px; height: 22px; border-radius: 4px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.speech-bubble:empty { opacity: 0; }
.stage-note { margin-top: 18px; color: var(--muted); font-size: 15px; text-align: center; }

.compare-grid { display: grid; grid-template-columns: 1fr 72px 1fr; align-items: center; gap: 28px; margin-top: 56px; }
.compare-label { margin-bottom: 12px; color: var(--muted); font-size: 15px; font-weight: 600; }
.compare-said, .compare-typed { font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; line-height: 1.6; letter-spacing: -.02em; }
.compare-said { color: var(--soft-heading); }
.compare-said del { text-decoration: none; background: linear-gradient(#0b1220, #0b1220) 0 58% / 0 3px no-repeat; transition: background-size .6s cubic-bezier(.2,.8,.2,1); }
.compare-typed { color: var(--ink); transition: opacity .5s cubic-bezier(.2,.8,.2,1), transform .5s cubic-bezier(.2,.8,.2,1); }
.compare-arrow { width: 64px; fill: none; stroke: #64748b; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.compare-arrow path, .flow-down path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .6s cubic-bezier(.2,.8,.2,1); }
.compare-grid:is([data-state="struck"], [data-state="done"]) del { background-size: 100% 3px; }
.compare-grid:not([data-state="done"]) .compare-arrow path { stroke-dashoffset: 1; }
.compare-grid:not([data-state="done"]) .compare-typed { opacity: 0; transform: translateX(-12px); }
.compare-note { margin-top: 40px; color: var(--muted); }

.rewrite { background: var(--surface); }
.rewrite-flow { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 760px; margin: 56px auto 0; }
.flow-window { width: 100%; overflow: hidden; border-radius: 14px; filter: drop-shadow(0 0 .5px rgba(15,23,42,.5)) drop-shadow(0 18px 34px rgba(15,23,42,.18)); transition: opacity .5s cubic-bezier(.2,.8,.2,1), transform .5s cubic-bezier(.2,.8,.2,1); }
.flow-window img { width: 100%; height: auto; }
.flow-before { aspect-ratio: 880 / 150; }
.flow-after { aspect-ratio: 880 / 270; }
.flow-voice { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.speech-bubble.is-static { position: relative; bottom: auto; left: auto; padding: 14px 28px; font-size: 22px; transform: none; }
.flow-hud { --zoom: 1.6; position: relative; bottom: auto; width: 280px; height: 64px; }
.flow-down { width: 24px; height: 56px; fill: none; stroke: #64748b; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rewrite-flow:not([data-state="done"]) .flow-down path { stroke-dashoffset: 1; }
.rewrite-flow:not([data-state="done"]) .flow-after { opacity: 0; transform: translateY(-14px); }
.rewrite-flow[data-state="idle"] .speech-bubble { opacity: 0; }
.rewrite-other { margin-top: 36px; color: var(--muted); text-align: center; }
.requests-hud { --zoom: 1.35; }

@media (max-width: 800px) {
  .container { width: min(100% - 44px, 1140px); }
  .wide-container { width: min(100% - 28px, 1320px); }
  /* Narrow screens show a 920 pt wide part of the virtual screen, around the window. */
  .desktop-stage { --view: 920; aspect-ratio: 920 / 800; }
    .hero-stage .speech-bubble:not(.is-static) { max-width: 860px; font-size: 40px; }
  .compare-grid { grid-template-columns: 1fr; gap: 18px; }
  .compare-arrow { transform: rotate(90deg); justify-self: center; }
  .facts-grid { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: min(100% - 36px, 1140px); }
  .wide-container { width: min(100% - 24px, 1320px); }
  .hero { padding-block: 60px 84px; }
  .hero-copy { margin-bottom: 40px; }
  .hero h1 { font-size: clamp(40px, 11vw, 54px); line-height: 1.25; }
  .hero-copy > p:not(.system-note) { font-size: 17px; }
  .system-note { font-size: 14px; }
  .desktop-stage { border-radius: 20px; }
  .hero-stage .speech-bubble:not(.is-static) { bottom: 205px; padding: 18px 30px; font-size: 44px; line-height: 1.45; }
    .speech-bubble.is-static { font-size: 18px; }
  .rewrite-other { font-size: 15px; }
  .requests-copy p { font-size: 17px; }
  .speed-band { padding: 36px 20px; }
  .text-link { margin-top: 56px; }
  .footer-inner { flex-wrap: wrap; gap: 12px 20px; padding-block: 26px; }
  .footer-inner nav { order: 3; width: 100%; margin-left: 0; }
  .not-found { width: min(100% - 36px, 720px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .hud-glow { animation: none; }
}

/* E: section headings sit on the same centre line as the hero. */
.compare .container, .rewrite .container { text-align: center; }
.compare-grid { max-width: 980px; margin-inline: auto; text-align: left; }
.requests-copy { text-align: center; }
.requests-copy p { margin-inline: auto; }
.facts .container { text-align: left; }
@media (max-width: 800px) {
  .compare .compare-grid { text-align: left; }
}

/* Phones: zoom into the left part of the window, where the typed words are. */
@media (max-width: 560px) {
  .hero-stage { --view: 500; aspect-ratio: 500 / 760; }
  .hero-stage .screen { --cx: 520px; }
  .hero-stage .speech-bubble:not(.is-static) { left: 520px; bottom: 200px; max-width: 470px; padding: 16px 24px; font-size: 30px; }
  .hero-stage .hud-host { right: 120px; left: -120px; }
  .hero-stage .flow-arrow { display: none; }
  .hero-stage   .hero-stage   .hero-stage }


/* Headings: LINE Seed JP, kana set proportionally (palt), punctuation trimmed. */
h1, h2, .speed-number, .fact-main, .footer-brand { font-family: "LINE Seed JP", var(--system); font-feature-settings: "palt"; text-spacing-trim: trim-both; }
h1 { font-weight: 800; letter-spacing: -.02em; line-height: 1.18; }
h2 { font-weight: 800; letter-spacing: -.015em; }
.soft-heading { color: #9aa4b1; }

/* Use cases: Aqua-style large cards, one app at a time, scrolled sideways. */
.usecases-head { text-align: center; }
.usecases-head p { max-width: 640px; margin: 20px auto 0; color: var(--body); }
.uc-track { display: flex; gap: 28px; margin-top: 52px; padding: 8px max(32px, calc((100% - 1000px) / 2)) 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(32px, calc((100% - 1000px) / 2)); scrollbar-width: none; }
.uc-track::-webkit-scrollbar { display: none; }
.uc-card { flex: none; width: min(1000px, 86vw); scroll-snap-align: start; }
/* The card picture is a 1000×620 design canvas scaled to the card (site.js sets --s). */
.uc-stage { --view: 1000; position: relative; overflow: hidden; aspect-ratio: 1000 / 620; border-radius: 28px; background: #eef1f4; }
.uc-canvas { position: absolute; top: 0; left: 0; width: 1000px; height: 620px; transform: scale(var(--s, .9)); transform-origin: 0 0; font-family: var(--system); }
.mock { position: absolute; inset: 28px 28px 0; overflow: hidden; border-radius: 14px 14px 0 0; background: #fff; box-shadow: 0 0 0 1px rgba(15,23,42,.06), 0 18px 40px rgba(15,23,42,.10); }
.mock-chrome { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid #eef1f4; background: #f8fafc; }
.mock-chrome > i { width: 12px; height: 12px; border-radius: 50%; background: #dfe3e8; }
.sk { display: block; height: 12px; border-radius: 6px; background: #eceff3; }
.sk-title { width: 260px; height: 14px; margin-left: 150px; }
.mock-body { display: flex; height: calc(100% - 40px); }
.mock-side { flex: none; width: 210px; padding: 20px 16px; border-right: 1px solid #eef1f4; background: #fbfcfd; }
.mock-side-row { display: flex; align-items: center; gap: 10px; height: 34px; }
.sk-dot { width: 18px; height: 18px; border-radius: 5px; background: #eceff3; }
.mock-main { position: relative; flex: 1; padding: 24px 32px; color: #1f2937; font-size: 17px; line-height: 1.65; }
.mock-head { display: flex; gap: 10px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid #eef1f4; }
.msg { display: flex; gap: 14px; margin-bottom: 20px; }
.avatar { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #fff; font-size: 16px; font-weight: 600; }
.a1 { background: #7c8ea3; }
.a2 { background: #a39a7c; }
.msg-meta { color: #64748b; font-size: 14px; }
.msg-meta b { margin-right: 6px; color: #1f2937; }
.composer { position: absolute; right: 32px; bottom: 26px; left: 32px; min-height: 96px; padding: 16px 20px; border: 1.5px solid #256a9c; border-radius: 14px; background: #fff; }
.composer-placeholder { position: absolute; color: #94a3b8; transition: opacity .15s; }
.composer-text { position: relative; color: #111827; }
.uc-stage:is([data-state="idle"], [data-state="recording"], [data-state="finalizing"]) .composer-text { visibility: hidden; }
.uc-stage[data-state="done"] .composer-placeholder { opacity: 0; }
.mock-ai { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ai-hello { display: flex; align-items: center; gap: 14px; margin-bottom: 140px; color: #334155; font-size: 26px; font-weight: 600; }
.ai-mark { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #cbd5e1, #64748b); }
.composer-ai { padding-right: 64px; border-color: #d6dde5; border-radius: 22px; }
.send-dot { position: absolute; right: 16px; bottom: 16px; width: 34px; height: 34px; border-radius: 50%; background: #111827; }
.mail-field { display: flex; gap: 18px; padding: 10px 0; border-bottom: 1px solid #eef1f4; color: #111827; }
.mail-field span { flex: none; min-width: 40px; color: #64748b; white-space: nowrap; }
.mail-body { position: relative; padding-top: 22px; }
.mail-draft mark { background: #b3d7ff; color: #111827; }
.mail-polite { display: none; }
.uc-stage[data-state="done"] .mail-draft { display: none; }
.uc-stage[data-state="done"] .mail-polite { display: block; }
.note-title { margin-bottom: 14px; color: #111827; font-size: 26px; font-weight: 700; }
.mock-notes ul { margin: 0 0 6px; padding-left: 22px; }
.uc-bubble { bottom: 150px; max-width: 700px; font-size: 22px; padding: 14px 26px; }
.uc-bubble.is-command:empty { opacity: 1; }
.uc-stage:is([data-state="idle"], [data-state="done"]) .uc-bubble.is-command { opacity: 0; }
.uc-hud { --zoom: 1.6; bottom: 64px; }
.uc-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 22px 6px 0; }
.uc-caption h3 { font-family: "LINE Seed JP", var(--system); font-size: 24px; font-weight: 800; font-feature-settings: "palt"; }
.uc-caption p { color: var(--body); }
.uc-apps { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 4px; }
.uc-apps img { width: 22px; height: 22px; }
.uc-nav { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }
.uc-arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #eef1f4; color: var(--ink); cursor: pointer; }
.uc-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.uc-arrow:hover { background: #e2e7ec; }
@media (max-width: 820px) {
  .uc-track { gap: 14px; padding-inline: 18px; scroll-padding-inline: 18px; }
  .uc-card { width: min(88vw, 540px); }
  .uc-caption h3 { font-size: 20px; }
}
/* Keep the pill under the composer so the typed text stays readable. */
.composer { bottom: 118px; }
.uc-hud { bottom: 30px; }
.uc-bubble { bottom: 236px; }
.ai-hello { margin-bottom: 200px; }
/* The bubble sits right on the pill; the composer moves up to make room. */
.uc-bubble { bottom: 108px; }
.composer { bottom: 216px; }
.ai-hello { margin-bottom: 300px; }

/* Agent-mode cards: the desktop (sky) instead of an app, since requests work across apps. */
.agent-stage { background: #bad9ed url("wallpaper/sky-1672.webp") center 40% / cover no-repeat; }
.agent-hud { --zoom: 1.3; bottom: 44px; }
.agent-stage .card-still { position: absolute; bottom: 16px; left: 50%; width: 476px; max-width: none; transform: translateX(-50%) scale(1.3); transform-origin: 50% 100%; }
.js .agent-stage .card-still { display: none; }
.pop-window { position: absolute; top: 34px; left: 50%; width: 760px; height: 400px; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(15,23,42,.08), 0 24px 50px rgba(15,23,42,.28); opacity: 0; transform: translate(-50%, 18px) scale(.96); transition: opacity .35s cubic-bezier(.2,.8,.2,1), transform .45s cubic-bezier(.2,.8,.2,1); }
.agent-stage[data-state="done"] .pop-window { opacity: 1; transform: translate(-50%, 0) scale(1); }
.pop-title, .pop-tab { display: flex; align-items: center; gap: 8px; margin-left: 14px; color: #1f2937; font-size: 15px; }
.pop-tab { padding: 6px 14px; border-radius: 10px 10px 0 0; background: #fff; }
.pop-title img, .pop-tab img { width: 18px; height: 18px; }
.pop-url { margin: 10px 16px; padding: 8px 16px; border-radius: 999px; background: #f1f4f7; color: #475569; font-size: 15px; }
.pop-body { display: flex; height: 100%; }
.pop-side { display: flex; flex-direction: column; gap: 16px; width: 190px; padding: 20px 16px; background: #4a154b; }
.pop-side .sk { background: rgba(255,255,255,.22); }
.pop-main { flex: 1; padding: 22px 26px; }
.pop-row { display: flex; align-items: center; gap: 12px; height: 46px; border-bottom: 1px solid #f1f4f7; }
.pop-row .sk { flex: 1; max-width: 420px; }
.uc-apps:empty { display: none; }
.coming { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; margin-top: 40px; }
.coming-label { padding: 4px 12px; border-radius: 999px; background: #eef1f4; color: var(--muted); font-size: 14px; font-weight: 600; }
.coming-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.coming-item { display: inline-flex; align-items: center; gap: 8px; color: var(--body); font-size: 16px; }
.coming-item img { width: 20px; height: 20px; }
.coming-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.requests .uc-track { margin-top: 44px; }

/* Open apps one after another: each window comes forward on top of the last. */
.pop-app { opacity: 0; }
.agent-stage[data-state="done"] .pop-app { opacity: 0; transform: translate(-50%, 18px) scale(.96); }
.agent-stage[data-state] .pop-app.is-open { opacity: 1; transform: translate(calc(-50% + var(--dx, 0px)), var(--dy, 0px)) scale(1); animation: app-launch .6s cubic-bezier(.2,.85,.25,1) both; }
/* Launch like macOS: the window grows out of its Dock icon (site.js sets --ox/--oy, the icon centre relative to the window's resting centre). */
@keyframes app-launch {
  0% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px) + var(--ox, 0px)), calc(var(--dy, 0px) + var(--oy, 300px))) scale(.06); }
  25% { opacity: 1; }
  100% { opacity: 1; transform: translate(calc(-50% + var(--dx, 0px)), var(--dy, 0px)) scale(1); }
}
.dock { position: absolute; bottom: 12px; left: 50%; z-index: 4; display: flex; align-items: flex-end; gap: 10px; padding: 8px 10px 10px; border: 1px solid rgba(255,255,255,.55); border-radius: 22px; background: rgba(255,255,255,.32); box-shadow: 0 10px 30px rgba(15,23,42,.18); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); transform: translateX(-50%); }
.dock-icon { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.12), 0 4px 10px rgba(15,23,42,.10); }
.dock-icon img { width: 30px; height: 30px; }
.dock-icon::after { content: ""; position: absolute; bottom: -7px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(15,23,42,.7); opacity: 0; transition: opacity .3s; }
.dock-icon.is-running::after { opacity: 1; }
/* The launch bounce: up and down twice, the second lower; each hop rises easing out and falls easing in. */
.dock-icon.is-bouncing { animation: dock-bounce .9s both; }
@keyframes dock-bounce {
  0% { transform: none; animation-timing-function: cubic-bezier(.333,.667,.667,1); }
  28% { transform: translateY(-26px); animation-timing-function: cubic-bezier(.333,0,.667,.333); }
  56% { transform: none; animation-timing-function: cubic-bezier(.333,.667,.667,1); }
  76% { transform: translateY(-11px); animation-timing-function: cubic-bezier(.333,0,.667,.333); }
  96%, 100% { transform: none; }
}
.app-stage .agent-hud { bottom: 104px; }
.pop-app[data-app="0"] { --dx: -90px; --dy: 0px; z-index: 1; }
.pop-app[data-app="1"] { --dx: 0px; --dy: 22px; z-index: 2; }
.pop-app[data-app="2"] { --dx: 90px; --dy: 44px; z-index: 3; }
.app-notion .pop-side { background: #f7f6f3; }
.app-notion .pop-side .sk { background: #e7e5df; }
.app-linear .pop-side { background: #f4f5f8; }
.app-linear .pop-side .sk { background: #e3e5ec; }
.pop-app { height: 360px; }
.agent-hud { z-index: 5; }
html:not(.js) .pop-app { opacity: 1; transform: translate(calc(-50% + var(--dx, 0px)), var(--dy, 0px)); }

/* The site card is a browser: tabs, toolbar and omnibox, so it reads as "a site opened", not an app. */
.browser { position: absolute; top: 34px; left: 50%; width: 800px; height: 430px; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(15,23,42,.1), 0 24px 50px rgba(15,23,42,.28); transform: translateX(-50%); font-family: var(--system); }
.browser-tabs { display: flex; align-items: flex-end; gap: 4px; height: 46px; padding: 0 12px; background: #dee1e6; }
.browser-tabs .dots { display: flex; gap: 8px; align-self: center; margin-right: 14px; }
.browser-tabs .dots i { width: 12px; height: 12px; border-radius: 50%; background: #c4c8ce; }
.btab { display: flex; align-items: center; gap: 8px; width: 190px; height: 36px; padding: 0 14px; border-radius: 10px 10px 0 0; color: #3c4043; font-size: 14px; white-space: nowrap; overflow: hidden; }
.btab .sk-dot { width: 14px; height: 14px; border-radius: 4px; background: #9aa0a6; }
.btab img { width: 16px; height: 16px; }
.btab-other { color: #5f6368; }
.btab-new { background: #fff; }
.btab-gmail { display: none; background: #fff; }
.btab-plus { align-self: center; margin-left: 6px; color: #5f6368; font-size: 20px; }
.browser-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px; border-bottom: 1px solid #e8eaed; }
.browser-bar > svg, .omnibox svg { width: 18px; height: 18px; fill: none; stroke: #5f6368; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.omnibox { display: flex; flex: 1; align-items: center; gap: 10px; height: 32px; padding: 0 14px; border-radius: 999px; background: #f1f3f4; color: #202124; font-size: 15px; }
.url-new { color: #5f6368; }
.url-gmail { display: none; }
.browser-page { position: relative; height: calc(100% - 92px); }
.page-new { display: grid; place-items: center; height: 100%; }
.g-search { width: 420px; height: 44px; border-radius: 999px; box-shadow: 0 0 0 1px #dfe1e5; }
.page-gmail { display: none; height: 100%; }
.gm-side { display: flex; flex-direction: column; gap: 14px; width: 190px; padding: 18px 16px; }
.gm-compose { width: 120px; height: 44px; border-radius: 14px; background: #c2e7ff; }
.agent-stage[data-state="done"] .btab-new { display: none; }
.agent-stage[data-state="done"] .btab-gmail { display: flex; animation: tab-in .35s cubic-bezier(.2,.8,.2,1); }
.agent-stage[data-state="done"] .url-new, .agent-stage[data-state="done"] .page-new { display: none; }
.agent-stage[data-state="done"] .url-gmail { display: inline; }
.agent-stage[data-state="done"] .page-gmail { display: flex; }
@keyframes tab-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Three app windows: smaller and fanned out so each one stays recognisable. */
.pop-app { width: 520px; height: 300px; }
.pop-app .pop-side { width: 150px; }
.pop-app[data-app="0"] { --dx: -230px; --dy: 0px; }
.pop-app[data-app="1"] { --dx: 0px; --dy: 40px; }
.pop-app[data-app="2"] { --dx: 230px; --dy: 80px; }

/* The app behind the request, so the result can be seen landing there. */
.app-behind { position: absolute; top: 30px; left: 50%; width: 820px; height: 400px; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(15,23,42,.08), 0 24px 50px rgba(15,23,42,.24); transform: translateX(-50%); font-family: var(--system); }
.cal-body { display: flex; height: calc(100% - 40px); }
.cal-side { display: flex; flex-direction: column; gap: 14px; width: 170px; padding: 20px 16px; background: #f8fafc; border-right: 1px solid #eef1f4; }
.cal-day { flex: 1; padding: 16px 24px; }
.cal-date { margin-bottom: 8px; color: #111827; font-size: 18px; font-weight: 700; }
.cal-grid { position: relative; }
.cal-hour { height: 60px; border-top: 1px solid #eef1f4; }
.cal-hour span { display: inline-block; width: 56px; color: #94a3b8; font-size: 13px; transform: translateY(-9px); background: #fff; }
.cal-event { position: absolute; left: 64px; right: 8px; padding: 6px 12px; border-left: 4px solid #94a3b8; border-radius: 6px; background: #f1f5f9; color: #334155; font-size: 14px; font-weight: 600; line-height: 1.3; }
.cal-event small { display: block; color: #1e40af; font-size: 12px; font-weight: 500; }
.cal-new { border-left-color: #1a73e8; background: #e8f0fe; color: #174ea6; }
/* Calendar magic: the AI reads the day and marks the free hour, then a spark flies from the pill and the event opens there. */
.cal-day { position: relative; }
.cal-slot { position: absolute; left: 64px; right: 8px; border-radius: 6px; opacity: 0; pointer-events: none; }
.cal-slot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(168,115,255,.10), rgba(92,158,255,.10)); }
.cal-slot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.6px; background: conic-gradient(from calc(90deg + var(--glow)), #5c9eff, #a873ff, #ff73b3, #ffa859, #5c9eff); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: glow-turn 4s linear infinite; }
.agent-stage[data-state="reading"] .cal-slot { animation: found .45s .9s cubic-bezier(.2,.8,.2,1) forwards, slot-breathe 1.6s 1.35s ease-in-out infinite; }
@keyframes slot-breathe { 50% { opacity: .55; } }
.agent-stage[data-state="reading"] .cal-day .scan { animation: scan 1.1s cubic-bezier(.4,0,.2,1) forwards; }
.cal-new { opacity: 0; clip-path: inset(0 100% 0 0 round 6px); }
.cal-new-text { position: relative; z-index: 1; display: block; }
.cal-new::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 20%, rgba(168,115,255,.35) 40%, rgba(92,158,255,.35) 50%, rgba(255,115,179,.3) 60%, transparent 80%) 0 0 / 300% 100% no-repeat; opacity: 0; }
.cal-new::after { content: ""; position: absolute; inset: -2px -2px -2px -6px; border-radius: 8px; padding: 2px; background: conic-gradient(from calc(90deg + var(--glow)), #5c9eff, #a873ff, #ff73b3, #ffa859, #5c9eff); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); box-shadow: 0 0 14px rgba(168,115,255,.45); opacity: 0; }
.agent-stage[data-state="done"] .cal-new { animation: cal-open .6s .86s cubic-bezier(.2,.8,.2,1) forwards; }
.agent-stage[data-state="done"] .cal-new::before { animation: glint 1.1s 1.05s cubic-bezier(.3,.7,.2,1) both; }
.agent-stage[data-state="done"] .cal-new::after { animation: glow-turn 2.4s linear infinite, cal-ring 2.4s .86s ease-out both; }
.agent-stage[data-state="done"] .cal-slot { opacity: 0; transition: opacity .3s .86s; }
@keyframes cal-open { 0% { opacity: 1; clip-path: inset(0 100% 0 0 round 6px); } 100% { opacity: 1; clip-path: inset(-12px -12px -12px -12px round 6px); } }
@keyframes cal-ring { 0% { opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
/* The spark: leaves the pill, arcs up, lands on the new event (site.js sets --fx/--fy from the pill to the slot). */
.ai-orb { position: absolute; z-index: 3; width: 0; height: 0; pointer-events: none; }
.ai-orb .ox { position: absolute; top: 0; left: 0; opacity: 0; }
.ai-orb i { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: radial-gradient(circle, #fff 0 25%, #c8b4ff 45%, rgba(92,158,255,0) 70%); box-shadow: 0 0 18px 6px rgba(168,115,255,.55), 0 0 36px 10px rgba(92,158,255,.35); }
.ai-orb .t1 i { width: 12px; height: 12px; margin: -6px 0 0 -6px; opacity: .5; box-shadow: 0 0 12px 4px rgba(168,115,255,.4); }
.ai-orb .t2 i { width: 8px; height: 8px; margin: -4px 0 0 -4px; opacity: .3; box-shadow: 0 0 8px 3px rgba(255,115,179,.35); }
.ai-orb::after { content: ""; position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.9), rgba(168,115,255,.5) 40%, rgba(92,158,255,0) 70%); opacity: 0; }
/* A thrown arc: across at a constant speed, up and down like a ball (decelerates to a peak above the target, then falls onto it). */
.agent-stage[data-state="done"] .ai-orb .ox { animation: orb-x .9s linear both, orb-fade .9s linear both; }
.agent-stage[data-state="done"] .ai-orb .ox i { animation: orb-y .9s both; }
.agent-stage[data-state="done"] .ai-orb .t1, .agent-stage[data-state="done"] .ai-orb .t1 i { animation-delay: .05s; }
.agent-stage[data-state="done"] .ai-orb .t2, .agent-stage[data-state="done"] .ai-orb .t2 i { animation-delay: .1s; }
.agent-stage[data-state="done"] .ai-orb::after { animation: orb-land .55s .84s cubic-bezier(.2,.8,.2,1) both; }
@keyframes orb-x { from { transform: translateX(var(--fx, 0)); } to { transform: translateX(0); } }
@keyframes orb-y {
  0% { transform: translateY(var(--fy, 300px)) scale(.6); animation-timing-function: cubic-bezier(.333,.667,.667,1); }
  71% { transform: translateY(-70px) scale(1.1); animation-timing-function: cubic-bezier(.333,0,.667,.333); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes orb-fade { 0% { opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes orb-land { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(2.6); } }
.spark { position: absolute; z-index: 2; width: 14px; height: 14px; background: linear-gradient(135deg, #a873ff, #5c9eff); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: 0; }
.sp1 { top: -9px; right: 18%; }
.sp2 { bottom: -8px; right: 6%; width: 10px; height: 10px; background: linear-gradient(135deg, #ff73b3, #ffa859); }
.sp3 { top: 30%; right: -10px; width: 11px; height: 11px; }
.agent-stage[data-state="done"] .spark { animation: spark .9s cubic-bezier(.2,.8,.2,1) both; }
.agent-stage[data-state="done"] .sp1 { animation-delay: 1.3s; }
.agent-stage[data-state="done"] .sp2 { animation-delay: 1.5s; }
.agent-stage[data-state="done"] .sp3 { animation-delay: 1.65s; }
@keyframes spark { 0% { opacity: 0; transform: scale(0) rotate(0); } 40% { opacity: 1; transform: scale(1.2) rotate(45deg); } 100% { opacity: 0; transform: scale(.4) rotate(90deg); } }
.msg-list { width: 220px; padding: 14px 10px; border-right: 1px solid #eef1f4; background: #f8fafc; }
.msg-person { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 10px; border-radius: 10px; color: #111827; font-size: 15px; font-weight: 600; }
.msg-person .sk { flex: 1; }
.msg-person.is-active { background: #e8eef6; }
.msg-person .avatar { width: 32px; height: 32px; font-size: 14px; }
.msg-thread { position: relative; display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 24px; }
.bubble-in, .bubble-out { max-width: 70%; padding: 10px 16px; border-radius: 18px; font-size: 15px; line-height: 1.5; }
.bubble-in { align-self: flex-start; background: #e9e9eb; color: #111827; }
.bubble-out { align-self: flex-end; background: #0a84ff; color: #fff; }
.msg-new { position: relative; opacity: 0; transform-origin: 100% 100%; }
.msg-new > span { position: relative; z-index: 1; }
/* Message magic: the spark lands, the sent bubble pops out of it under a passing glow ring. */
.msg-new::after { content: ""; position: absolute; inset: -3px; border-radius: 21px; padding: 2px; background: conic-gradient(from calc(90deg + var(--glow)), #5c9eff, #a873ff, #ff73b3, #ffa859, #5c9eff); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); box-shadow: 0 0 14px rgba(168,115,255,.45); opacity: 0; }
.agent-stage[data-state="done"] .msg-new { animation: msg-pop .55s .84s cubic-bezier(.3,1.4,.4,1) both; }
.agent-stage[data-state="done"] .msg-new::after { animation: glow-turn 2.4s linear infinite, cal-ring 2.2s .86s ease-out both; }
.msg-new .sp1 { top: -10px; right: 12%; }
.msg-new .sp2 { bottom: -8px; left: -10px; right: auto; }
@keyframes msg-pop { 0% { opacity: 0; transform: scale(.4); filter: blur(4px); } 60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: none; } }

/* Reading mail: the inbox behind, scanned by the same glow as the card's edge. */
.mail-list { position: relative; flex: 1; overflow: hidden; padding: 10px 0; }
.mail-row { position: relative; display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 22px; border-bottom: 1px solid #f1f4f7; color: #374151; font-size: 15px; }
.mail-row .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #1a73e8; }
.mail-row .dot-read { background: transparent; }
.mail-row .from { width: 110px; color: #111827; }
.mail-row .subj { flex: 1; color: #111827; font-weight: 600; }
.mail-row .time { color: #374151; font-size: 13px; font-weight: 600; }
.subj-sk { flex: 1; max-width: 360px; }
.mail-row.unread::after { content: ""; position: absolute; inset: 4px 10px; border-radius: 10px; padding: 1.6px; background: conic-gradient(from calc(90deg + var(--glow)), #5c9eff, #a873ff, #ff73b3, #ffa859, #5c9eff); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; animation: glow-turn 4s linear infinite; }
.agent-stage[data-state="reading"] .mail-row.unread::after { animation: glow-turn 4s linear infinite, found .45s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: 0s, calc(.35s + var(--i) * .28s); }
.agent-stage[data-state="reading"] .mail-row.unread { background: linear-gradient(90deg, rgba(168,115,255,.07), rgba(92,158,255,.07)); transition: background .4s calc(.35s + var(--i) * .28s); }
.scan { position: absolute; right: 0; left: 0; top: -60px; height: 60px; background: linear-gradient(180deg, transparent, rgba(92,158,255,.16), rgba(168,115,255,.20), rgba(255,115,179,.14), transparent); opacity: 0; pointer-events: none; }
.agent-stage[data-state="reading"] .scan { animation: scan 1.3s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes scan { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(380px); } }
@keyframes found { to { opacity: 1; } }

/* Magic: spoken words float in, struck words fold away, inserted text writes itself in. */
@property --reveal { syntax: "<percentage>"; inherits: false; initial-value: 112%; }
.speech-bubble { --bubble-ink: #3f4b5c; }
.speech-bubble .ch { animation: ch-float .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ch-float {
  0% { opacity: 0; color: #9aa4b1; filter: blur(5px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; color: var(--bubble-ink); }
}
.speech-bubble del { text-decoration: none; transition: font-size .5s cubic-bezier(.2,.8,.2,1), opacity .5s cubic-bezier(.2,.8,.2,1); }
.speech-bubble:is([data-mode="struck"], [data-mode="clean"]) del { color: #8390a0; text-decoration: line-through; text-decoration-color: #0b1220; text-decoration-thickness: 3px; }
.speech-bubble:is([data-mode="struck"], [data-mode="clean"]) del .ch { animation: none; }
.speech-bubble[data-mode="clean"] del { font-size: 0; opacity: 0; }
.ch-write { animation: ch-write .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ch-write {
  0% { opacity: 0; color: #9aa4b1; filter: blur(4px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; color: inherit; }
}
/* Hero window: the typed text is real text over the empty window, written in like the use-case cards. */
.hero-stage .window-empty { visibility: visible !important; }
@keyframes glint { 0% { opacity: 0; background-position: 100% 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .speech-bubble .ch, .ch-write { animation: none; }
  .agent-stage .cal-new, .agent-stage .msg-new, .agent-stage .pop-app.is-open, .dock-icon.is-bouncing { animation: none !important; }
  .agent-stage .cal-new, .agent-stage .msg-new { opacity: 1; clip-path: none; }
  .cal-new::before, .cal-new::after, .msg-new::after, .ai-orb, .spark, .cal-slot { display: none; }
}

/* Site card v2: Google is open; asking for YouTube opens a new tab beside it. */
.btab-google { background: #fff; }
.btab-yt { display: flex; width: 0; padding: 0; opacity: 0; background: transparent; }
.agent-stage[data-state="done"] .btab-google { background: transparent; color: #5f6368; }
.agent-stage[data-state="done"] .btab-yt { width: 190px; padding: 0 14px; opacity: 1; background: #fff; transition: width .45s cubic-bezier(.2,.8,.2,1), padding .45s cubic-bezier(.2,.8,.2,1), opacity .25s .1s; }
.url-yt { display: none; }
.agent-stage[data-state="done"] .url-google { display: none; }
.agent-stage[data-state="done"] .url-yt { display: inline; }
.page-google { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; height: 100%; }
.page-yt { display: none; height: 100%; padding: 14px 22px; }
.agent-stage[data-state="done"] .page-google { display: none; }
.agent-stage[data-state="done"] .page-yt { display: block; animation: tab-in .4s cubic-bezier(.2,.8,.2,1); }
.yt-top { display: flex; align-items: center; gap: 120px; margin-bottom: 16px; }
.yt-search { width: 360px; height: 34px; border-radius: 999px; box-shadow: 0 0 0 1px #dfe1e5; }
.yt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 16px; }
.yt-thumb i { display: block; aspect-ratio: 16 / 9; margin-bottom: 8px; border-radius: 10px; background: #eceff3; }
.yt-thumb .sk { margin-bottom: 6px; }
.yt-thumb .sk-short { width: 60%; }

/* Rewrite cards (mail, translate, bullets) share one before/after pair. */
.edit-before mark { background: #b3d7ff; color: #111827; }
.edit-after { display: none; }
.uc-stage[data-state="done"] .edit-before { display: none; }
.uc-stage[data-state="done"] .edit-after { display: block; }
.mock-doc .doc-title { margin-bottom: 16px; color: #111827; font-size: 24px; font-weight: 700; }
.edit-after ul { margin: 0; padding-left: 22px; }
.mock-terminal { background: #15171c; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 40px rgba(15,23,42,.25); }
.mock-terminal .mock-chrome { background: #1f2229; border-bottom-color: #2a2e36; }
.mock-terminal .mock-chrome > i { background: #3a3f48; }
.term-title { margin-left: 330px; color: #8b93a1; font: 14px ui-monospace, "SF Mono", Menlo, monospace; }
.term-body { padding: 26px 30px; color: #d6dae1; font: 17px/1.7 ui-monospace, "SF Mono", Menlo, var(--system); }
.term-dim { color: #7c8594; }
.term-input { display: flex; gap: 12px; margin-top: 26px; padding: 16px 18px; border: 1px solid #3a3f48; border-radius: 10px; }
.term-prompt { color: #d97757; }
.mock-terminal .composer-text { color: #eef1f5; }
/* Apps open left, right, then centre (on top), so all three stay visible. */
.pop-app[data-app="0"] { --dx: -230px; --dy: 0px; }
.pop-app[data-app="1"] { --dx: 230px; --dy: 30px; }
.pop-app[data-app="2"] { --dx: 0px; --dy: 80px; }
/* Bubble: opaque, and the tail is a real triangle that does not overlap the body
   (a rotated square showed through the translucent fill as a diamond). */
.speech-bubble { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.speech-bubble::after { bottom: -11px; width: 26px; height: 12px; border-radius: 0; background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); transform: translateX(-50%); }

img.avatar { object-fit: cover; }
/* GitHub: the PR list behind is read, then the chosen PR opens in the same tab. */
.gh-browser { top: 24px; height: 440px; }
.gh-row .subj { font-weight: 600; }
.gh-pr-icon { flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px #1a7f37; }
.gh-tab-pr, .gh-url-pr, .gh-pr { display: none; }
.agent-stage:is([data-state="opened"], [data-state="merged"]) :is(.gh-tab-list, .gh-url-list, .gh-list) { display: none; }
.agent-stage:is([data-state="opened"], [data-state="merged"]) :is(.gh-tab-pr, .gh-url-pr) { display: inline; }
.agent-stage[data-state="opened"] .gh-pr { display: block; animation: tab-in .4s cubic-bezier(.2,.8,.2,1); }
.agent-stage[data-state="merged"] .gh-pr { display: block; }
/* After the merge: the badge turns from Open to Merged (GitHub purple) */
.gh-merged { display: none; padding: 4px 12px; border-radius: 999px; background: #8250df; color: #fff; font-size: 14px; font-weight: 600; }
.agent-stage[data-state="merged"] .gh-open { display: none; }
.agent-stage[data-state="merged"] .gh-merged { display: inline-block; animation: land .4s cubic-bezier(.2,.8,.2,1); }
/* After the reply is sent, the mail is marked as replied */
.mail-row .replied { display: none; padding: 2px 8px; border-radius: 6px; background: #e3eef7; color: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
.agent-stage[data-state="replied"] .mail-row:first-child .replied { display: inline-block; animation: land .4s cubic-bezier(.2,.8,.2,1); }
.btab-gh { background: #fff; width: 230px; }
.gh-pr { padding: 22px 28px; }
.gh-pr-title { color: #1f2328; font-size: 24px; font-weight: 600; }
.gh-pr-title span { color: #59636e; font-weight: 400; }
.gh-pr-meta { display: flex; align-items: center; gap: 12px; margin: 12px 0 18px; }
.gh-open { padding: 4px 12px; border-radius: 999px; background: #1f883d; color: #fff; font-size: 14px; font-weight: 600; }
.gh-tabs { display: flex; gap: 22px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid #d1d9e0; }
.gh-comment { display: flex; gap: 14px; }
.gh-comment > div { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px; border: 1px solid #d1d9e0; border-radius: 8px; }

/* Smooth bubble growth (sizes set by sizeBubble). */
.speech-bubble:not(.is-static):not(.is-command) { transition: width .28s cubic-bezier(.2,.8,.2,1), height .28s cubic-bezier(.2,.8,.2,1), opacity .25s cubic-bezier(.2,.8,.2,1); }
.speech-bubble .bt { display: block; }
.speech-bubble.is-measure { visibility: hidden; left: -9999px; width: max-content !important; height: auto !important; transition: none; pointer-events: none; }
.speech-bubble.is-measure .bt { width: auto; }
.speech-bubble.is-measure::after { display: none; }
.speech-bubble[data-empty="1"] { opacity: 0; }

/* Carousel arrows sit on either side of the picture. */
.uc-carousel { position: relative; }
.uc-carousel .uc-nav { position: absolute; top: calc(8px + min(1000px, 86vw) * .31); right: 0; left: 0; z-index: 3; width: auto; margin: 0; justify-content: space-between; padding-inline: max(8px, calc((100% - 1000px) / 2 - 70px)); pointer-events: none; transform: translateY(-50%); }
.uc-carousel .uc-arrow { width: 52px; height: 52px; background: rgba(255,255,255,.92); box-shadow: 0 6px 20px rgba(15,23,42,.16); pointer-events: auto; }
@media (max-width: 1160px) { .uc-carousel .uc-nav { padding-inline: 10px; } }
@media (max-width: 820px) { .uc-carousel .uc-nav { top: calc(8px + min(88vw, 540px) * 620 / 560 / 2); } .uc-carousel .uc-arrow { width: 40px; height: 40px; } }
/* Phones: a shorter hero stage; the pill and bubble move up with the visible bottom edge. */
@media (max-width: 560px) {
  .hero-stage { aspect-ratio: 500 / 600; }
  .hero-stage .hud-host { bottom: 270px; }
  .hero-stage .speech-bubble:not(.is-static) { bottom: 374px; }
}
/* Phones: zoom the rewrite windows into the left part, where the text is. */
@media (max-width: 560px) {
  .flow-window img { width: 165%; max-width: none; }
  .flow-before { aspect-ratio: 463 / 150; }
  .flow-after { aspect-ratio: 463 / 270; }
}
/* Phones: card pictures are laid out 560 pt wide (no sidebar), so the text inside stays readable. */
@media (max-width: 820px) {
  .uc-stage { --view: 560; aspect-ratio: 560 / 620; }
  .uc-canvas { width: 560px; }
  .mock { inset: 20px 16px 0; }
  .mock-side { display: none; }
  .mock-main { padding: 20px 22px; font-size: 19px; }
  .composer { right: 20px; left: 20px; }
  .uc-bubble { max-width: 500px; font-size: 24px; }
  .sk-title { margin-left: 60px; width: 180px; }
  .ai-hello { margin-bottom: 260px; font-size: 22px; }
  .term-title { margin-left: 140px; }
  .app-behind, .browser { width: 520px; }
  .pop-app { width: 360px; height: 260px; }
  .pop-app .pop-side { width: 90px; }
  .pop-app[data-app="0"] { --dx: -70px; --dy: 0px; }
  .pop-app[data-app="1"] { --dx: 70px; --dy: 30px; }
  .pop-app[data-app="2"] { --dx: 0px; --dy: 70px; }
  .cal-side, .gm-side { display: none; }
  .msg-list { width: 150px; }
  .agent-hud { --zoom: 1.2; }
  .dock { gap: 8px; padding: 7px 8px 9px; }
  .dock-icon { width: 46px; height: 46px; }
  .dock-icon img { width: 28px; height: 28px; }
  .yt-top { gap: 30px; }
  .yt-search { width: 260px; }
  .yt-grid { grid-template-columns: repeat(2, 1fr); }
  .btab { width: 150px; }
  .agent-stage[data-state="done"] .btab-yt { width: 150px; }
}
/* The rewrite pill's host is scaled 1.6×, so keep its own box narrow (175 × 1.6 = 280). */
.flow-hud { width: 175px; height: 64px; }

/* Phones: taller cards with a reserved strip at the bottom for the bubble and the pill, so they never cover the app;
   larger text inside the pictures (the 560-wide canvas is shown at about 0.59x on a 375 px phone). */
@media (max-width: 820px) {
  .uc-stage { aspect-ratio: 560 / 860; }
  .uc-canvas { height: 860px; }
  .mock-main { font-size: 22px; }
  .msg-meta { font-size: 17px; }
  .composer { bottom: 392px; min-height: 100px; }
  .uc-bubble { bottom: 112px; max-width: 520px; font-size: 22px; }
  .ai-hello { margin-bottom: 440px; font-size: 24px; }
  .term-body { font-size: 20px; }
  .app-behind { height: 460px; }
  .cal-date { font-size: 22px; }
  .cal-hour { height: 72px; }
  .cal-hour span { width: 64px; font-size: 16px; }
  .cal-event { left: 72px; font-size: 19px; }
  .cal-event small { font-size: 16px; }
  .cal-event[style*="top:60px"] { top: 72px !important; height: 54px !important; }
  .cal-new, .cal-slot { top: 144px !important; height: 72px !important; }
  .cal-event[style*="top:210px"] { top: 252px !important; height: 54px !important; }
  .msg-person { font-size: 18px; }
  .bubble-in, .bubble-out { max-width: 85%; font-size: 19px; }
  .mail-row { height: 58px; padding: 0 16px; font-size: 18px; }
  .mail-row .from { width: 92px; }
  .mail-row .time { font-size: 16px; }
  .mail-row .subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gh-pr-title { font-size: 26px; }
  .agent-hud { --zoom: 1.3; }
  /* Arrows stay on the picture, centred on the taller phone card. */
  .uc-carousel .uc-nav { top: calc(8px + min(88vw, 540px) * 860 / 560 / 2); }
}
@media (max-width: 820px) {
  /* Request cards have no speech bubble, so they need less height than the dictation cards. */
  .agent-stage { aspect-ratio: 560 / 740; }
  .agent-stage .uc-canvas { height: 740px; }
  .requests .uc-carousel .uc-nav { top: calc(8px + min(88vw, 540px) * 740 / 560 / 2); }
}
@media (max-width: 560px) {
  /* Hero on phones: the visible slice starts just left of the window, so its title bar (traffic lights) is not cut. */
  .hero-stage .screen { --cx: 462px; }
  .hero-stage .speech-bubble:not(.is-static) { left: 462px; }
  .hero-stage .hud-host { right: 178px; left: -178px; }
}

/* Features: a bento of tiles in the brand's own materials (sky, the dark pill, LINE Seed numerals). Demos play once in view. */
.features .container { width: min(100% - 48px, 1160px); }
.features-title { max-width: 760px; margin-bottom: 48px; color: var(--ink); font-size: clamp(34px, 4.4vw, 56px); line-height: 1.2; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(300px, auto); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 30px 30px 26px; border-radius: 28px; background: var(--surface); }
.tile-copy { position: relative; z-index: 1; max-width: 420px; }
.tile h3 { color: var(--ink); font-family: "LINE Seed JP", var(--system); font-size: 23px; font-weight: 800; line-height: 1.35; font-feature-settings: "palt"; }
.tile-copy p { margin-top: 8px; color: var(--body); font-size: 15px; line-height: 1.75; }
.tile-local { grid-column: span 2; min-height: 360px; background: #bad9ed url("wallpaper/sky-960.webp") center 35% / cover no-repeat; }
.tile-speed { background: var(--ink); }
.tile-speed h3 { color: #fff; }
.tile-speed .tile-copy p { color: #b8c2cd; }
.tile-history { grid-row: span 2; background: #fff; box-shadow: inset 0 0 0 1px #e6eaee; }
.tile-model { grid-column: span 2; background: linear-gradient(135deg, #eef5fb, #f7f9fb); }
.tile-hf { background: #cfe4f2 url("wallpaper/sky-960.webp") center 70% / cover no-repeat; }
/* On-device */
.local-art { position: relative; flex: 1; display: grid; place-items: center; min-height: 170px; margin-top: 18px; }
.local-mac { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 16px; min-width: 300px; padding: 28px 24px 20px; border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 18px 40px rgba(15,23,42,.16); }
.local-label { position: absolute; top: 10px; left: 24px; color: var(--muted); font-size: 12px; font-weight: 600; }
.local-mic, .hf-mic { display: grid; place-items: center; }
.local-mic { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); }
.local-mic svg, .hf-mic svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.local-wave, .hf-bars { display: flex; align-items: center; gap: 4px; height: 28px; }
.local-wave i { width: 4px; height: 8px; border-radius: 2px; background: var(--accent); }
.local-text { grid-column: 1 / -1; min-height: 1.6em; color: var(--ink); font-size: 16px; }
.local-cloud { position: absolute; right: 12%; top: 8%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.7); color: var(--muted); font-size: 12px; font-weight: 600; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.local-cloud svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature :is(.local-wave, .hf-bars) i:nth-child(2) { animation-delay: .1s; }
.feature :is(.local-wave, .hf-bars) i:nth-child(3) { animation-delay: .2s; }
.feature :is(.local-wave, .hf-bars) i:nth-child(4) { animation-delay: .05s; }
.feature :is(.local-wave, .hf-bars) i:nth-child(5) { animation-delay: .15s; }
@keyframes bar { to { height: 26px; } }
@keyframes rise { to { opacity: 1; transform: none; } }
/* Speed: a big numeral and a bar that fills in a tenth of a second */
.speed-big { margin-top: auto; color: #fff; font-family: "LINE Seed JP", var(--system); line-height: 1; }
.speed-big b { font-size: 112px; font-weight: 800; letter-spacing: -.04em; }
.speed-big span { margin-left: 6px; color: #b8c2cd; font-size: 30px; font-weight: 700; }
.speed-track { position: relative; height: 6px; margin-top: 18px; border-radius: 3px; background: rgba(255,255,255,.14); }
.speed-fill { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 3px; background: #7cc4f0; }
@keyframes fill { to { width: 100%; } }
/* Dictionary */
.dict-list, .history-list, .model-list { display: grid; gap: 8px; margin: auto 0 0; padding: 0; list-style: none; }
.dict-list { margin-top: 22px; }
.dict-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: #fff; font-size: 14px; }
.dict-list span { color: var(--muted); }
.dict-list b { color: var(--ink); font-weight: 600; }
/* Hands-free: the real pill over the sky */
.hf-art { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 10px; margin-top: auto; padding-top: 22px; }
.hf-key { padding: 9px 16px; border: 1px solid rgba(15,23,42,.12); border-bottom-width: 3px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }
.hf-times { color: var(--ink); font-size: 17px; font-weight: 700; }
.hf-pill { display: flex; align-items: center; gap: 14px; margin-left: 10px; padding: 12px 20px; border-radius: 999px; background: rgba(0,0,0,.74); box-shadow: 0 10px 24px rgba(15,23,42,.22); }
.hf-bars i { width: 4px; height: 8px; border-radius: 2px; background: #fff; }
@keyframes tap { 50% { border-bottom-width: 1px; transform: translateY(2px); } }
/* History */
.history-list { margin-top: 26px; }
.history-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 14px; }
.history-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.history-text { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.history-tag { padding: 2px 8px; border-radius: 6px; background: #e3eef7; color: var(--accent); font-size: 12px; font-weight: 600; }
.history-tag.is-fail, .history-tag.is-undo { background: #e9edf1; color: var(--muted); }
/* Model */
.tile-model { display: grid; grid-template-columns: 1fr minmax(260px, 340px); align-items: center; gap: 28px; }
.model-list { margin: 0; }
.model-list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e3e8ee; color: var(--ink); font-size: 15px; }
.model-list small { margin-left: auto; color: var(--muted); font-size: 13px; }
.model-dot { width: 16px; height: 16px; border: 1.5px solid #b8c2cd; border-radius: 50%; }
.model-list .is-on { box-shadow: 0 0 0 1.5px var(--accent); }
.model-list .is-on .model-dot { border: 5px solid var(--accent); }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-local, .tile-model { grid-column: span 2; }
  .tile-history { grid-row: auto; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile-local, .tile-model { grid-column: auto; }
  .tile { padding: 24px 22px 22px; }
  .tile-model { grid-template-columns: 1fr; }
  .local-mac { min-width: 0; width: 100%; }
  .local-cloud { display: none; }
  .speed-big b { font-size: 88px; }
  .hf-art { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .tile *, .tile[data-step] * { animation: none !important; transition: none !important; }
}

.window-text { position: absolute; top: 72px; left: 48px; right: 48px; margin: 0; color: rgba(0,0,0,.85); font: 400 17px/29px -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif; letter-spacing: 0; white-space: nowrap; }

/* Feature tiles: short demos that replay while the tile is in view (site.js sets data-step). Without JS or with
   reduced motion each tile shows its finished state. */
.tile[data-step] { --t: cubic-bezier(.2,.8,.2,1); }
/* On-device: listening, a packet heads for the cloud and stops at the slash, then the text writes in */
.local-mic { position: relative; }
.local-mic::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.tile-local[data-step="listen"] .local-mic::after { animation: ring 1.2s ease-out infinite; }
@keyframes ring { from { opacity: .6; transform: scale(.8); } to { opacity: 0; transform: scale(1.5); } }
.tile-local[data-step="listen"] .local-wave i, .tile-hf[data-step="listen"] .hf-bars i { animation: bar .45s ease-in-out infinite alternate; }
.tile:is(.tile-local, .tile-hf) :is(.local-wave, .hf-bars) i:nth-child(2) { animation-delay: .12s; }
.tile:is(.tile-local, .tile-hf) :is(.local-wave, .hf-bars) i:nth-child(3) { animation-delay: .24s; }
.tile:is(.tile-local, .tile-hf) :is(.local-wave, .hf-bars) i:nth-child(4) { animation-delay: .06s; }
.tile:is(.tile-local, .tile-hf) :is(.local-wave, .hf-bars) i:nth-child(5) { animation-delay: .18s; }
.tile-local:is([data-step="listen"], [data-step="blocked"]) .local-text { visibility: hidden; }
.local-packet { position: absolute; top: 30%; left: 52%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(37,106,156,.18); opacity: 0; }
.tile-local[data-step="blocked"] .local-packet { animation: packet 1s var(--t) forwards; }
@keyframes packet { 0% { opacity: 0; transform: none; } 15% { opacity: 1; } 70% { opacity: 1; transform: translate(min(18vw, 190px), -36px); } 100% { opacity: 0; transform: translate(min(17vw, 176px), -30px) scale(.4); } }
.tile-local[data-step="blocked"] .local-cloud { animation: deny .5s .65s ease-in-out; }
@keyframes deny { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
/* Speed: the key is held, then released; the bar fills in 0.1 s and the numeral lands */
.tile-speed[data-step="hold"] .speed-fill { width: 0; }
.tile-speed[data-step="release"] .speed-fill { width: 100%; transition: width .1s linear; }
.speed-big b { display: inline-block; }
.tile-speed[data-step="hold"] .speed-big b { opacity: .25; }
.tile-speed[data-step="release"] .speed-big b { animation: land .45s var(--t); }
@keyframes land { from { opacity: .25; transform: scale(.92); } to { opacity: 1; transform: none; } }
.speed-key { position: absolute; right: 30px; bottom: 66px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.25); border-bottom-width: 3px; border-radius: 9px; color: #fff; font-size: 13px; font-weight: 600; }
.tile-speed[data-step="hold"] .speed-key { border-bottom-width: 1px; transform: translateY(2px); background: rgba(255,255,255,.12); }
/* Dictionary: the reading is typed, then the right spelling writes in */
.dict-list li { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.dict-list b { text-align: right; }
.dict-arrow { color: #94a3b8; font-style: normal; }
.dict-list li { transition: opacity .3s var(--t), transform .3s var(--t); }
.tile-dict[data-step] .dict-list li:not(.is-shown) { opacity: 0; transform: translateY(6px); }
.tile-dict[data-step] .dict-list li:not(.is-fixed) b { visibility: hidden; }
.dict-list li.is-fixed b { animation: flash 1.2s var(--t); }
@keyframes flash { 0% { background: rgba(37,106,156,.16); } 100% { background: transparent; } }
.dict-list b { padding: 0 4px; border-radius: 4px; }
/* Hands-free: two taps, the pill listens on its own, one more tap and it is typed */
.hf-pill { transition: opacity .3s var(--t), transform .3s var(--t); }
.tile-hf:is([data-step="idle"], [data-step="tap"]) .hf-pill { opacity: 0; transform: scale(.85); }
.hf-key.is-tap { animation: tap .22s ease-in-out; }
.hf-times { transition: opacity .2s; }
.tile-hf[data-step="idle"] .hf-times { opacity: .25; }
.hf-check { display: none; width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tile-hf[data-step="done"] .hf-check { display: block; animation: land .35s var(--t); }
.tile-hf[data-step="done"] :is(.hf-bars, .hf-mic) { display: none; }
/* History: a new entry arrives on top */
.history-list li { transition: opacity .35s var(--t), transform .35s var(--t), max-height .35s var(--t), margin .35s var(--t), padding .35s var(--t); max-height: 60px; }
.history-list li.is-entering { opacity: 0; transform: translateY(-8px); max-height: 0; padding-block: 0; }
.history-list li.is-leaving { opacity: 0; }
/* Model: the choice moves to OpenAI and a key is typed */
.model-list li { transition: box-shadow .25s var(--t); }
.model-dot { transition: border-width .25s var(--t), border-color .25s var(--t); }
.model-key { font-variant-numeric: tabular-nums; }

/* Phones: the language switch shortens to EN / JA so the wordmark, switch and download button fit one row. */
@media (max-width: 420px) {
  .header-nav { gap: 12px; }
  .header-nav a.lang-switch[data-short] { font-size: 0; }
  .header-nav a.lang-switch[data-short]::after { content: attr(data-short); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
}

/* Japanese line breaks: wrap at phrase boundaries and avoid a lone last character (Chrome; others fall back to normal). */
:lang(ja) :is(p, li, h1, h2, h3) { word-break: auto-phrase; }
:is(p, li) { text-wrap: pretty; }
:is(h1, h2, h3) { text-wrap: balance; }
@media (max-width: 560px) {
  .section { padding-block: 76px; }
  .hero { padding-bottom: 56px; }
  /* long paragraphs read better left-aligned on a phone */
  .requests-copy, .requests-copy p, .usecases-head, .usecases-head p { text-align: left; }
  .requests-copy p, .usecases-head p { margin-inline: 0; }
}
