/* Temia AI website — styles */

@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/noto-sans-jp-400.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/noto-sans-jp-500.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/noto-sans-jp-600.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/noto-sans-jp-700.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-700.woff2') format('woff2'); }

/* Layout concept: brochure "spreads" that alternate the product's own two surfaces —
   the navy brand panel (sidebar, landing, sign-in) and the light app canvas (#F3F5F8 with white cards) —
   on a 1200px grid. Every colour, radius and type style below comes from the Temia V2 design system in Figma. */
:root {
  color-scheme: light;
  /* Primary (Figma: Primary/Primary100 … 5) */
  --p100: #0B4CC5; --p80: #3C70D1; --p60: #6D94DC; --p40: #9DB7E8; --p20: #CEDBF3; --p10: #E7EDF9; --p5: #F3F6FC;
  /* Secondary / navy (Figma: Secondary/…) */
  --s100: #0D306F; --s80: #3D598C; --s60: #6E83A9; --s40: #9EACC5; --s20: #CFD6E2; --s10: #E7EAF1; --s5: #F3F5F8;
  /* Tertiary / amber (Figma: Tertiary/…) */
  --t100: #F4B000; --t80: #F6C033; --t20: #FDEFCC; --t10: #FEF7E5;
  /* Shade (Figma: Shade/…) */
  --sh100: #0F1419; --sh80: #3F4347; --sh60: #6F7275; --sh40: #9FA1A3; --sh20: #CFD0D1; --sh10: #E7E7E8; --sh5: #F3F3F3;
  /* Indicate (Figma: indicate/…) */
  --green: #008368; --green-10: rgba(0,131,104,.10);
  --cyan: #06B6D4; --cyan-10: rgba(6,182,212,.10);
  --red: #CB2B00; --red-10: rgba(203,43,0,.10);
  --purple: #5746AF; --purple-10: rgba(87,70,175,.10);
  --white: #FFFFFF;

  /* Roles, mapped onto the system */
  --navy: var(--s100);
  --blue: var(--p100);
  --amber: var(--t100);
  --ink: var(--sh100);
  --ink-2: var(--sh80);
  --ink-3: var(--sh80);
  --ink-4: var(--sh40);
  --line: var(--sh10);
  --line-2: var(--sh5);
  --paper: var(--s5);
  --btn: var(--s80);              /* product primary button */
  --on-navy: var(--s20);          /* body copy on the navy panel */
  --on-navy-2: var(--s40);        /* secondary copy on the navy panel */
  --navy-rule: var(--s80);        /* dividers inside the navy panel */

  /* Type: Poppins everywhere, as in the product */
  --font-sans: "Poppins", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans CJK JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: var(--font-sans);

  /* Rhythm (product radii: 4 for controls, 8 for cards) */
  --wrap: 1320px;
  --gutter: clamp(16px, 4.2vw, 60px);
  --section: clamp(84px, 10vw, 136px);
  --r-sm: 4px;
  --r: 8px;
  --shadow-frame: 0 32px 64px -28px rgba(7,26,61,.55), 0 10px 24px -14px rgba(7,26,61,.4);
  --shadow-soft: 0 24px 48px -28px rgba(13,48,111,.32), 0 4px 12px -6px rgba(13,48,111,.12);
  --ease: cubic-bezier(.2,.7,.2,1);
  /* The product's brand wash: navy with two blurred blue ellipses (Landing — Choose Your Role) */
  --navy-wash:
    radial-gradient(1150px 560px at 8% -4%, rgba(60,112,209,.35), transparent 70%),
    radial-gradient(980px 500px at 96% 104%, rgba(11,76,197,.28), transparent 70%),
    var(--s100);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--p80); outline-offset: 3px; border-radius: var(--r-sm); }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; color: var(--navy); }
p { margin: 0; }
.display { font-size: clamp(44px, 6.2vw, 84px); line-height: 1.04; letter-spacing: -0.025em; }
.hero .display { font-size: clamp(46px, 7.2vw, 104px); line-height: 1.0; letter-spacing: -0.03em; }
.h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.1; letter-spacing: -0.02em; }
.h3 { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.35; letter-spacing: -0.005em; }
.lead { font-size: clamp(16.5px, 1.4vw, 18px); line-height: 1.7; color: var(--ink-3); max-width: 60ch; text-wrap: pretty; }
/* Overline, as the product sets "FOR PARTNERS & BILLING": Poppins Medium 12, uppercase, 0.5px tracking */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
  color: var(--ink-3);
}
/* Marker = the amber bar that flags the active item in the product sidebar */
.notch { width: 3px; height: 16px; background: var(--amber); border-radius: 2px; flex: none; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .eyebrow { color: var(--on-navy-2); }
.on-dark .lead { color: var(--on-navy); }
.sec-head { display: grid; gap: 18px; max-width: 760px; }
.sec-head .lead { margin-top: 4px; }

/* Japanese typesetting */
:lang(ja) .display { letter-spacing: 0; line-height: 1.22; font-size: clamp(36px, 5.2vw, 68px); }
:lang(ja) .hero .display { font-size: clamp(38px, 5.6vw, 76px); line-height: 1.2; }
:lang(ja) .h2 { letter-spacing: 0; line-height: 1.32; font-size: clamp(27px, 3.4vw, 42px); }
:lang(ja) .h3 { letter-spacing: 0; }
:lang(ja) .eyebrow { letter-spacing: .04em; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .lead, :lang(ja) p { word-break: auto-phrase; line-break: strict; }
:lang(ja) .lead { line-height: 1.9; }

/* ---------- Buttons (product: radius 4, Poppins, primary = Secondary80) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--btn); color: var(--white); }
.btn-primary:hover { background: var(--navy); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--p10); }
.btn-ghost { border-color: rgba(255,255,255,.18); color: var(--white); background: rgba(255,255,255,.08); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }

/* ---------- Top bar: the product's white app header ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}
.topbar-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); flex: none; }
.brand svg { height: 28px; width: auto; }
.brand .by { display: grid; line-height: 1.25; padding-left: 14px; border-left: 1px solid var(--sh20); font-size: 10.5px; color: var(--ink-3); letter-spacing: .02em; }
.brand .by b { font-weight: 500; font-size: 11.5px; color: var(--navy); letter-spacing: 0; }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a {
  font-size: 14px; text-decoration: none; color: var(--ink-2); padding: 20px 11px; position: relative; white-space: nowrap;
  transition: color .2s;
}
.nav a:hover { color: var(--navy); }
.nav a.is-active { color: var(--navy); font-weight: 500; }
.nav a.is-active::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 12px; height: 2px; background: var(--amber); border-radius: 2px; }
.nav a .ai-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-left: 6px; vertical-align: 2px; }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
/* EN / 日本語 switch, as in the product header */
.lang { display: inline-flex; padding: 2px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--sh20); }
.lang button {
  white-space: nowrap; border: 0; background: transparent; color: var(--ink-3); font-size: 12.5px; font-weight: 500;
  height: 28px; padding: 0 11px; border-radius: 3px; transition: background-color .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: var(--btn); color: var(--white); }
.topbar .btn { height: 38px; padding: 0 16px; font-size: 13.5px; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Hero: the navy brand panel ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: var(--navy-wash);
  padding-top: calc(64px + clamp(52px, 7vw, 96px));
  padding-bottom: clamp(48px, 6vw, 72px);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head head" "copy visual"; gap: clamp(36px, 4vw, 56px) clamp(32px, 4vw, 64px); align-items: start; }
.hero-head { grid-area: head; display: grid; gap: 24px; position: relative; z-index: 2; }
.hero-visual { grid-area: visual; }
.hero-copy { grid-area: copy; display: grid; gap: 30px; align-content: start; position: relative; z-index: 2; padding-top: 8px; }
.hero .display span.hl { color: var(--p40); }
.hero .lead { color: var(--on-navy); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { list-style: none; margin: 6px 0 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 32px; border-top: 1px solid var(--navy-rule); }
.hero-facts li { display: grid; gap: 2px; font-size: 13px; color: var(--on-navy-2); line-height: 1.4; }
.hero-facts b { font-weight: 500; font-size: 14px; color: var(--white); }

/* "A product of Menlo Park Applied Intelligence" endorsement */
.endorse { display: inline-flex; align-items: center; gap: 12px; width: max-content; max-width: 100%; height: 36px; padding: 0 16px 0 6px; border-radius: 48px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-size: 13px; color: var(--on-navy); }
.endorse .k { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 48px; background: var(--white); color: var(--navy); font-size: 11.5px; font-weight: 500; }
.endorse .mpai, .mpai { font-weight: 500; color: var(--white); letter-spacing: .005em; }
.endorse img.mpai-logo { height: 18px; width: auto; }

.hero-visual { position: relative; min-width: 0; perspective: 1600px; margin-right: calc(var(--gutter) * -1 - 80px); margin-top: -12px; }
.tilt { position: relative; transform: rotateY(-9deg) rotateX(4deg) rotateZ(.4deg); transform-style: preserve-3d; transition: transform .6s var(--ease); will-change: transform; }
.frame {
  margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow-frame);
  border: 1px solid rgba(255,255,255,.16);
}
.frame-bar { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; background: #ECEEF2; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--sh20); }
.frame-bar i:nth-child(1) { background: #EE6A5F; } .frame-bar i:nth-child(2) { background: #F5BE4F; } .frame-bar i:nth-child(3) { background: #62C554; }
.frame-bar .url { margin-left: 14px; flex: 1; max-width: 340px; height: 22px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.frame-bar .url svg { width: 11px; height: 11px; stroke: var(--ink-4); }
.frame img { width: 100%; height: auto; }
.frame--hero .shot { aspect-ratio: 1920 / 1180; overflow: hidden; }
.frame--hero .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

.float {
  position: absolute; z-index: 3; background: var(--white); color: var(--ink); border-radius: var(--r);
  box-shadow: 0 24px 56px -20px rgba(7,26,61,.6), 0 2px 6px rgba(7,26,61,.12);
  border: 1px solid var(--line);
  transform: translateZ(60px);
}
.timer-card { left: -48px; bottom: -36px; width: 300px; padding: 18px 18px 16px; display: grid; gap: 10px; }
.tc-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(244,176,0,.6); animation: pulse 1.6s infinite; }
.is-paused .live-dot { animation: none; background: var(--ink-4); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244,176,0,.55); } 70% { box-shadow: 0 0 0 8px rgba(244,176,0,0); } 100% { box-shadow: 0 0 0 0 rgba(244,176,0,0); } }
.tc-head .tc-state { font-weight: 500; color: var(--ink-2); }
.tc-time { font-size: 38px; line-height: 1; font-weight: 600; letter-spacing: .01em; color: var(--navy); font-variant-numeric: tabular-nums; }
.tc-meta { display: grid; gap: 2px; font-size: 13px; line-height: 1.4; }
.tc-meta b { font-weight: 500; color: var(--ink); }
.tc-meta span { color: var(--ink-3); }
.tc-actions { display: flex; gap: 8px; margin-top: 4px; }
.tc-btn { width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--sh20); background: var(--white); display: grid; place-items: center; color: var(--ink-2); }
.tc-btn:hover { border-color: var(--p60); color: var(--navy); }
.tc-btn svg { width: 16px; height: 16px; }
.tc-log { flex: 1; height: 36px; border-radius: var(--r-sm); border: 0; background: var(--btn); color: var(--white); font-size: 13px; }
.tc-log:hover { background: var(--navy); }
.ai-card { right: 120px; top: -34px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px; max-width: 400px; }
/* Icon tile, as on the product's KPI cards */
.ai-spark { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; color: var(--blue); background: var(--p10); }
.ai-spark svg { width: 18px; height: 18px; }
.ai-card .txt { display: grid; line-height: 1.4; font-size: 12.5px; color: var(--ink-3); min-width: 0; }
.ai-card .txt b { font-size: 13.5px; font-weight: 500; color: var(--ink); }
/* Tonal button, as the product's "Filter" */
.ai-card .mini { height: 32px; padding: 0 12px; border-radius: var(--r-sm); border: 0; background: var(--p10); color: var(--blue); font-size: 13px; white-space: nowrap; }

/* Time ribbon */
.ribbon { position: relative; margin-top: clamp(72px, 9vw, 108px); display: grid; gap: 14px; }
.ribbon-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.ribbon-sum { font-size: 14px; color: var(--on-navy-2); }
.ribbon-sum b { color: var(--white); font-weight: 500; }
.ribbon-sum b.sig { color: var(--cyan); }
.ribbon-track { position: relative; height: 56px; border-radius: var(--r-sm); background: rgba(255,255,255,.05); border: 1px solid var(--navy-rule); }
.rb { position: absolute; top: 9px; bottom: 9px; border-radius: var(--r-sm); background: var(--p80); display: flex; align-items: center; padding: 0 10px; min-width: 0; overflow: hidden; font-size: 11.5px; color: var(--white); white-space: nowrap; transition: width .8s var(--ease); }
.rb span { overflow: hidden; text-overflow: ellipsis; }
.rb.b2 { background: var(--p60); }
.rb.nb { background: rgba(110,131,169,.35); color: var(--on-navy); }
.rb.ai { background: rgba(6,182,212,.14); border: 1px dashed var(--cyan); color: var(--white); }
.rb.run { background: var(--p100); box-shadow: 0 0 0 1px rgba(244,176,0,.55) inset; }
.ribbon-now { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--amber); border-radius: 2px; transition: left .8s var(--ease); }
.ribbon-now::before { content: ""; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.ribbon-scale { position: relative; height: 16px; font-size: 11px; color: var(--on-navy-2); font-variant-numeric: tabular-nums; }
.ribbon-scale span { position: absolute; transform: translateX(-50%); }
.ribbon-scale span:first-child { transform: none; }
.ribbon-scale span:last-child { transform: translateX(-100%); }

/* ---------- Generic sections: white and the app canvas ---------- */
.section { padding-block: var(--section); position: relative; }
.bg-paper { background: var(--paper); }
.bg-white { background: var(--white); }
/* Icon tile, as on the product's role cards */
.tile { width: 48px; height: 48px; border-radius: var(--r); background: var(--s10); color: var(--navy); display: grid; place-items: center; flex: none; }
.tile .ico { width: 24px; height: 24px; }

/* Why */
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.why-grid .sec-head { position: sticky; top: 112px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; }
.why-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px 24px; padding: 34px 0; border-top: 1px solid var(--line); }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-ico { grid-row: span 3; width: 48px; height: 48px; border-radius: var(--r); background: var(--s10); display: grid; place-items: center; color: var(--navy); }
.why-ico .ico { width: 24px; height: 24px; }
.why-before { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.why-before s { text-decoration-color: rgba(203,43,0,.5); text-decoration-thickness: 1.5px; }
.why-before .tag { font-size: 11px; font-weight: 500; color: var(--red); background: var(--red-10); height: 20px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: var(--r-sm); }
.why-item h3 { margin-top: 6px; }
.why-item p { color: var(--ink-3); max-width: 52ch; }

/* How it works */
.how-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(48px, 6vw, 72px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step { position: relative; }
.step button {
  width: 100%; text-align: left; background: transparent; border: 1px solid transparent; border-left: 3px solid transparent; border-radius: 0 var(--r) var(--r) 0;
  padding: 20px 22px 20px 66px; display: grid; gap: 6px; position: relative; transition: background-color .25s, border-color .25s;
}
.step button:hover { background: rgba(255,255,255,.7); }
.step .num { position: absolute; left: 20px; top: 19px; font-size: 13px; font-weight: 500; color: var(--ink-3); width: 32px; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--sh20); display: grid; place-items: center; background: var(--white); transition: all .25s; font-variant-numeric: tabular-nums; }
.step .t { font-size: 18px; font-weight: 600; color: var(--ink-2); }
.step .d { font-size: 14.5px; color: var(--ink-3); line-height: 1.65; display: none; }
.step .bar { position: absolute; left: 20px; right: 22px; bottom: 0; height: 2px; background: var(--line); overflow: hidden; opacity: 0; }
.step .bar i { display: block; height: 100%; width: 100%; background: var(--p80); transform-origin: 0 50%; transform: scaleX(0); }
.step.is-active button { background: var(--white); border-color: var(--line); border-left-color: var(--amber); }
.step.is-active .num { background: var(--navy); border-color: var(--navy); color: var(--white); }
.step.is-active .t { color: var(--navy); }
.step.is-active .d { display: block; }
.step.is-active .bar { opacity: 1; }
.step.is-running .bar i { animation: fill var(--dur, 6s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.how-stage { position: relative; min-width: 0; }
.how-panel { display: none; }
.how-panel.is-active { display: block; animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.frame--light { border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.frame .crop { overflow: hidden; }
.frame .crop img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.how-cap { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.how-cap .ico { width: 16px; height: 16px; color: var(--cyan); }

/* Timesheet mock (step 1), built from product table styles */
.sheet { background: var(--white); }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sheet-top .ttl { display: grid; line-height: 1.4; }
.sheet-top .ttl b { font-size: 15px; font-weight: 500; color: var(--navy); letter-spacing: .01em; }
.sheet-top .ttl span { font-size: 12.5px; color: var(--ink-3); }
.sheet-timer { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; border: 1px solid var(--p20); background: var(--p5); border-radius: var(--r-sm); }
.sheet-timer .tm { font-weight: 600; font-size: 17px; color: var(--navy); font-variant-numeric: tabular-nums; }
.sheet-timer .lbl { font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.sheet-timer .lbl b { display: block; color: var(--ink); font-weight: 500; }
.sheet-timer .stop { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--btn); border: 0; display: grid; place-items: center; }
.sheet-timer .stop i { width: 10px; height: 10px; border-radius: 2px; background: var(--white); }
.grid-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; color: var(--ink-2); }
table.grid th, table.grid td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.grid th:first-child, table.grid td:first-child { text-align: left; }
table.grid thead th { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; background: var(--paper); }
table.grid thead th.today { color: var(--blue); }
table.grid td.today { background: var(--p5); }
table.grid .proj { display: grid; line-height: 1.4; }
table.grid .proj b { font-weight: 500; color: var(--navy); }
table.grid .proj span { font-size: 11.5px; color: var(--ink-3); }
table.grid .proj .pill { justify-self: start; margin-top: 3px; }
table.grid td.ai-cell em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: var(--r-sm); border: 1px dashed var(--cyan); background: var(--cyan-10); color: var(--navy); }
table.grid td.ai-cell em .ico { color: var(--cyan); }
table.grid tfoot td { font-weight: 600; color: var(--navy); border-bottom: 0; background: var(--paper); }
/* Status pill, as in the product tables */
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-sm); font-size: 11.5px; font-weight: 500; }
.pill.nb { background: var(--sh10); color: var(--ink-2); }

/* Product tour */
.tour-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: clamp(36px, 5vw, 52px); padding: 4px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); max-width: 100%; }
.tour-tab {
  height: 40px; padding: 0 16px; border-radius: var(--r-sm); border: 0; background: var(--white);
  font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s, color .2s;
}
.tour-tab .ico { width: 18px; height: 18px; color: var(--ink-3); }
.tour-tab:hover { background: var(--paper); }
.tour-tab[aria-selected="true"] { background: var(--p10); color: var(--btn); font-weight: 500; }
.tour-tab[aria-selected="true"] .ico { color: var(--btn); }
.tour-panels { margin-top: 32px; }
.tour-panel { display: none; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.tour-panel.is-active { display: grid; animation: rise .5s var(--ease); }
.tour-copy { display: grid; gap: 16px; align-content: start; }
.tour-copy .kicker { font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: .05em; }
.tour-copy p { color: var(--ink-3); }
/* Green check list, as on the product's role cards */
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 12px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23008368' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center/18px no-repeat; }
.tour-frame { position: relative; min-width: 0; }
.tour-frame .crop { aspect-ratio: 1920 / 1000; }
.hs { position: absolute; z-index: 2; transform: translate(-50%, -50%); }
.hs-dot {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--white); padding: 0; background: var(--amber); color: var(--navy);
  font-size: 12px; font-weight: 600; display: grid; place-items: center; position: relative;
  box-shadow: 0 4px 12px -2px rgba(13,48,111,.45);
}
.hs-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(244,176,0,.6); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
/* Tooltip, as the product's Tool Tip component: navy, radius 4 */
.hs-tip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 6px); width: max-content; max-width: 240px;
  background: var(--navy); color: var(--white); font-size: 13px; line-height: 1.45; padding: 10px 12px; border-radius: var(--r-sm);
  box-shadow: 0 12px 28px -10px rgba(7,26,61,.55); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.hs-tip b { display: block; font-weight: 500; color: var(--t80); font-size: 12px; margin-bottom: 2px; letter-spacing: .04em; }
.hs-tip span { color: var(--s10); }
.hs.tip-below .hs-tip { bottom: auto; top: calc(100% + 12px); transform: translate(-50%, -6px); }
.hs.tip-left .hs-tip { left: auto; right: -14px; transform: translate(0, 6px); }
.hs.tip-left.tip-below .hs-tip { transform: translate(0, -6px); }
.hs:hover .hs-tip, .hs:focus-within .hs-tip, .hs.is-open .hs-tip { opacity: 1; transform: translate(-50%, 0); }
.hs.tip-left:hover .hs-tip, .hs.tip-left:focus-within .hs-tip, .hs.tip-left.is-open .hs-tip { transform: translate(0, 0); }
.tour-hint { margin-top: 16px; font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.tour-hint i { width: 12px; height: 12px; border-radius: 50%; background: var(--amber); }

/* Details */
.details-grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.detail { padding: 24px 22px 26px; border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 10px; align-content: start; background: var(--white); transition: border-color .25s; }
.detail:hover { border-color: var(--p20); }
.detail > .ico { width: 40px; height: 40px; padding: 9px; border-radius: var(--r); background: var(--s10); color: var(--navy); }
.detail h3 { font-size: 16px; line-height: 1.4; margin-top: 8px; font-weight: 500; }
.detail p { font-size: 13.5px; color: var(--ink-3); line-height: 1.65; }

/* ---------- AI: the navy brand panel again ---------- */
.ai { color: var(--white); overflow: hidden; background: var(--navy-wash); }
.ai .sec-head { max-width: 820px; }
.ai .h2 .grad { color: var(--p40); }
.badge-new { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px 0 4px; border-radius: 48px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); font-size: 13px; color: var(--on-navy); width: max-content; }
.badge-new b { font-weight: 500; font-size: 11px; letter-spacing: .06em; background: var(--amber); color: var(--navy); height: 24px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 48px; }
.ai-grid { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(44px, 6vw, 72px); align-items: start; }
.ai-left { display: grid; gap: 22px; align-content: start; }
/* Feature list styled as the product sidebar: amber bar + tinted row marks the active item */
.ai-tabs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ai-tab button {
  width: 100%; text-align: left; border: 0; border-left: 3px solid transparent; background: transparent; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 16px 18px 16px 64px; display: grid; gap: 4px; position: relative; overflow: hidden; color: var(--on-navy);
  transition: background-color .25s, border-color .25s, color .25s;
}
.ai-tab button:hover { background: rgba(110,131,169,.12); color: var(--white); }
.ai-tab .ai-ico { position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; background: rgba(255,255,255,.10); color: var(--white); }
.ai-tab .ai-ico .ico { width: 18px; height: 18px; }
.ai-tab .t { font-weight: 500; font-size: 16px; }
.ai-tab .d { font-size: 14px; color: var(--on-navy-2); line-height: 1.6; display: none; }
.ai-tab .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.ai-tab .bar i { display: block; height: 100%; background: var(--cyan); transform-origin: 0 50%; transform: scaleX(0); }
.ai-tab.is-active button { background: rgba(110,131,169,.20); border-left-color: var(--amber); color: var(--white); }
.ai-tab.is-active .ai-ico { background: var(--p80); }
.ai-tab.is-active .d { display: block; }
.ai-tab.is-running .bar i { animation: fill var(--dur, 9s) linear forwards; }
.ai-stage { position: relative; min-width: 0; border-radius: var(--r); padding: clamp(16px, 2.4vw, 28px); background: rgba(255,255,255,.06); border: 1px solid var(--navy-rule); min-height: 560px; }
.stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 12.5px; color: var(--on-navy-2); }
.stage-bar .eg { font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.replay { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: var(--white); font-size: 12.5px; }
.replay:hover { background: rgba(255,255,255,.14); }
.replay .ico { width: 14px; height: 14px; }
.ai-panel { display: none; }
.ai-panel.is-active { display: block; animation: rise .45s var(--ease); }
.ai-note { margin-top: 0; display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--navy-rule); background: rgba(255,255,255,.05); font-size: 14.5px; color: var(--on-navy); }
.ai-note .ico { width: 32px; height: 32px; padding: 7px; border-radius: var(--r-sm); background: rgba(255,255,255,.10); color: var(--amber); }
.ai-note b { color: var(--white); font-weight: 500; }

/* Shared demo card: a white product card */
.dcard { background: var(--white); color: var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 56px -28px rgba(7,26,61,.7); }
.dcard-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dcard-head .ttl { display: grid; line-height: 1.4; min-width: 0; }
.dcard-head .ttl b { font-size: 15px; font-weight: 500; color: var(--navy); letter-spacing: .01em; }
.dcard-head .ttl span { font-size: 12.5px; color: var(--ink-3); }
.dcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--paper); flex-wrap: wrap; }
.dcard-foot .sum { font-size: 13.5px; color: var(--ink-3); }
.dcard-foot .sum b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.dbtn { height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 0; background: var(--btn); color: var(--white); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s; }
.dbtn:hover { background: var(--navy); }
.dbtn .ico { width: 15px; height: 15px; }
.dbtn.is-done { background: var(--green); }
/* Project tag, as in the product tables */
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-sm); font-size: 12px; background: var(--paper); color: var(--navy); letter-spacing: .02em; white-space: nowrap; }
.src-ico { width: 26px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; }
.src-ico .ico { width: 14px; height: 14px; }
.src-cal { background: var(--p10); color: var(--blue); }
.src-mail { background: var(--t10); color: var(--amber); }
.src-doc { background: var(--green-10); color: var(--green); }
.src-call { background: var(--purple-10); color: var(--purple); }

/* Demo 1: capture */
.cap-legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--ink-3); flex-wrap: wrap; }
.cap-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cap-legend .src-ico { width: 20px; height: 20px; }
.cap-legend .src-ico .ico { width: 11px; height: 11px; }
.cap-tl { position: relative; padding: 18px 20px 10px; }
.cap-scale { position: relative; height: 14px; font-size: 10.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.cap-scale span { position: absolute; transform: translateX(-50%); }
.cap-rows { position: relative; margin-top: 8px; height: 76px; border-radius: var(--r-sm); background: repeating-linear-gradient(to right, var(--sh5) 0 1px, transparent 1px calc(100% / 9)); border: 1px solid var(--line); }
.cap-sig { position: absolute; top: 8px; transform: translateX(-50%) scale(.6); opacity: .25; transition: all .4s var(--ease); }
.cap-sig .src-ico { width: 24px; height: 24px; }
.cap-sig.on { transform: translateX(-50%) scale(1); opacity: 1; }
.cap-blk { position: absolute; bottom: 9px; height: 24px; border-radius: var(--r-sm); background: var(--cyan-10); border: 1px dashed var(--cyan); transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s var(--ease), background-color .4s, border-color .4s; }
.cap-blk.on { transform: scaleX(1); }
.cap-blk.ok { background: var(--p80); border: 1px solid var(--p80); }
.cap-sweep { position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: var(--cyan); box-shadow: 0 0 14px 3px rgba(6,182,212,.3); opacity: 0; }
.cap-list { list-style: none; margin: 0; padding: 4px 0; }
.cap-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line); opacity: .28; transform: translateY(4px); transition: opacity .4s, transform .4s var(--ease); }
.cap-row.on { opacity: 1; transform: none; }
.cap-row .what { display: grid; line-height: 1.4; min-width: 0; }
.cap-row .what b { font-size: 13.5px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-row .what span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-row .dur { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--navy); }
.cap-row .conf { font-size: 11.5px; font-weight: 500; color: var(--navy); background: var(--cyan-10); border-radius: var(--r-sm); height: 22px; display: inline-flex; align-items: center; justify-content: center; min-width: 46px; font-variant-numeric: tabular-nums; }
.cap-row.is-acc .conf { color: var(--green); background: var(--green-10); }

/* Demo 2: narrative */
.wr-body { padding: 20px; display: grid; gap: 16px; }
.wr-label { font-size: 11.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.wr-notes { display: grid; gap: 8px; }
/* Notes styled as the product's text input */
.wr-note { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; padding: 0 14px; height: 42px; border-radius: var(--r-sm); border: 1px solid var(--sh20); background: var(--white); font-size: 13.5px; color: var(--ink-2); transition: all .2s; }
.wr-note:hover { border-color: var(--p60); }
.wr-note[aria-pressed="true"] { border-color: var(--p80); background: var(--p5); color: var(--navy); }
.wr-note .kbd { margin-left: auto; font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.wr-flow { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--p80); font-weight: 500; }
.wr-flow .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--p40), transparent); }
.wr-flow .spark { width: 28px; height: 28px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--blue); background: var(--p10); }
.wr-flow .spark .ico { width: 15px; height: 15px; }
.wr-out { border-radius: var(--r-sm); border: 1px solid var(--p20); background: var(--p5); padding: 16px 18px; display: grid; gap: 12px; min-height: 168px; align-content: start; }
.wr-out-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wr-text { font-size: 15.5px; line-height: 1.7; color: var(--ink); min-height: 3.3em; }
.wr-text .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--p80); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.wr-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.wr-meta .chip { background: var(--white); }
.seg { display: inline-flex; padding: 2px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--sh20); }
.seg button { border: 0; background: transparent; font-size: 12px; font-weight: 500; color: var(--ink-3); height: 26px; padding: 0 10px; border-radius: 3px; }
.seg button[aria-pressed="true"] { background: var(--btn); color: var(--white); }

/* Demo 3: leakage */
.lk-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.lk-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,.18); }
.lk-status.done i { background: var(--green); box-shadow: 0 0 0 3px rgba(0,131,104,.16); }
.lk-wrap { position: relative; }
.lk-list { list-style: none; margin: 0; padding: 0; }
.lk-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 20px; border-top: 1px solid var(--line); position: relative; }
.lk-row:first-child { border-top: 0; }
.lk-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; transition: background-color .3s; }
.lk-row .id { font-size: 12.5px; font-weight: 500; color: var(--navy); }
.lk-row .what { display: grid; line-height: 1.4; min-width: 0; }
.lk-row .what b { font-size: 13.5px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-row .what span { font-size: 12px; color: var(--ink-3); }
.lk-row .flag { font-size: 12px; display: none; margin-top: 3px; white-space: normal; }
.lk-row .amt { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink-4); min-width: 74px; }
.lk-row.is-flag::before { background: var(--red); }
.lk-row.is-flag.sev-warn::before { background: var(--amber); }
.lk-row.is-flag .flag { display: flex; gap: 6px; align-items: center; color: var(--red); }
.lk-row.is-flag.sev-warn .flag { color: var(--ink-2); }
.lk-row.is-flag.sev-warn .flag .ico { color: var(--amber); }
.lk-row.is-flag .amt { color: var(--red); }
.lk-row.is-flag.sev-warn .amt { color: var(--ink-2); }
.lk-row.is-clean .amt { color: var(--green); }
.lk-row.is-fixed::before { background: var(--green); }
.lk-row.is-fixed .flag { display: flex; gap: 6px; align-items: center; color: var(--green); }
.lk-row.is-fixed .amt { color: var(--green); }
.lk-row .flag .ico { width: 13px; height: 13px; }
.lk-scan { position: absolute; left: 0; right: 0; height: 52px; top: 0; background: linear-gradient(180deg, transparent, rgba(6,182,212,.14), transparent); border-bottom: 1px solid rgba(6,182,212,.55); pointer-events: none; opacity: 0; transition: top .45s var(--ease), opacity .3s; }
.lk-total { font-size: 20px; font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; }
.lk-total.ok { color: var(--green); }

/* Demo 4: ask */
.ask-body { padding: 20px; display: grid; gap: 14px; min-height: 380px; align-content: start; }
.ask-q { justify-self: end; max-width: 80%; background: var(--btn); color: var(--white); font-size: 14px; padding: 10px 14px; border-radius: var(--r) var(--r) 2px var(--r); }
.ask-a { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.ask-a .spark { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--blue); background: var(--p10); }
.ask-a .spark .ico { width: 16px; height: 16px; }
.ask-bubble { border: 1px solid var(--line); border-radius: 2px var(--r) var(--r) var(--r); padding: 14px 16px; display: grid; gap: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.6; min-width: 0; }
.ask-bubble b { color: var(--navy); font-weight: 600; }
.ask-bubble .fine { font-size: 12px; color: var(--ink-3); }
.ask-typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.ask-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: bob 1s infinite; }
.ask-typing i:nth-child(2) { animation-delay: .15s; } .ask-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }
/* Utilisation bars, as on Team & Rates: green at or above 70%, amber below */
.ubar { display: grid; grid-template-columns: 116px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 12.5px; }
.ubar .nm { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ubar .tr { position: relative; height: 6px; background: var(--sh10); border-radius: 3px; }
.ubar .tr i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--amber); width: 0; transition: width .9s var(--ease); }
.ubar .tr i.good { background: var(--green); }
.ubar .tr .tgt { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--navy); left: 75%; }
.ubar .pc { text-align: right; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.ubars { display: grid; gap: 10px; }
.ubars .legend { font-size: 11.5px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.ubars .legend i { width: 2px; height: 12px; background: var(--navy); }
.fc svg { width: 100%; height: auto; display: block; }
.fc .ax { font-size: 10px; fill: var(--ink-3); font-family: var(--font-sans); }
.fc-head { display: flex; gap: 22px; flex-wrap: wrap; }
.fc-head div { display: grid; line-height: 1.35; }
.fc-head span { font-size: 11.5px; color: var(--ink-3); }
.fc-head b { font-weight: 600; font-size: 18px; color: var(--navy); }
.fc-head b.up { color: var(--green); }
.inv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--white); }
.inv-row .id { font-size: 13px; font-weight: 500; color: var(--navy); }
.inv-row .amt { font-weight: 600; color: var(--navy); text-align: right; }
.inv-row .cl { font-weight: 500; color: var(--ink); }
.st { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-sm); font-size: 12px; font-weight: 500; }
.st-bad { background: var(--red-10); color: var(--red); }
.st-ok { background: var(--green-10); color: var(--green); }
.ask-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px 4px; }
.ask-chip { height: 32px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--sh20); background: var(--white); font-size: 13px; color: var(--ink-2); transition: all .2s; }
.ask-chip:hover { border-color: var(--p60); }
.ask-chip[aria-pressed="true"] { border-color: var(--p10); background: var(--p10); color: var(--blue); }
.ask-input { margin: 12px 20px 20px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 5px 0 14px; border-radius: var(--r-sm); border: 1px solid var(--sh20); font-size: 13.5px; color: var(--ink-4); }
.ask-input .send { margin-left: auto; width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--btn); display: grid; place-items: center; color: var(--white); }
.ask-input .send .ico { width: 16px; height: 16px; }

/* ---------- Compare: a product data table ---------- */
.cmp-wrap { margin-top: clamp(40px, 5vw, 64px); overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; }
table.cmp th, table.cmp td { padding: 16px 22px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
table.cmp thead th { font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); background: var(--paper); padding-top: 18px; padding-bottom: 18px; }
table.cmp thead th:first-child { text-align: left; }
table.cmp thead th.us { background: var(--navy); color: var(--white); }
table.cmp thead th.us svg { height: 22px; width: auto; display: block; margin: 0 auto; }
table.cmp tbody th { text-align: left; font-weight: 400; font-size: 15px; color: var(--ink); }
table.cmp tbody th .ai-tag { font-size: 11px; font-weight: 500; color: var(--navy); background: var(--cyan-10); border-radius: var(--r-sm); padding: 2px 7px; margin-left: 8px; vertical-align: 1px; }
table.cmp td.us { background: var(--p5); }
table.cmp tbody tr:last-child td, table.cmp tbody tr:last-child th { border-bottom: 0; }
table.cmp tbody tr { transition: background-color .2s; }
table.cmp tbody tr:hover th, table.cmp tbody tr:hover td:not(.us) { background: #FAFBFC; }
.mk { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; }
.mk svg { width: 13px; height: 13px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mk.yes { background: var(--green); } .mk.yes svg { stroke: var(--white); }
table.cmp td:not(.us) .mk.yes { background: var(--sh40); }
.mk.part { background: var(--white); border: 1.5px solid var(--sh40); position: relative; overflow: hidden; }
.mk.part::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 50%; background: var(--sh40); }
.mk.no { background: transparent; border: 1.5px solid var(--sh10); }
.mk.no::after { content: ""; width: 8px; height: 1.5px; background: var(--sh40); }
.cmp-legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--ink-3); align-items: center; }
.cmp-legend span { display: inline-flex; gap: 8px; align-items: center; }
.cmp-legend .mk { width: 18px; height: 18px; }
.cmp-legend .mk svg { width: 10px; height: 10px; }
.cmp-legend .mk.no::after { width: 6px; }

/* ---------- Offer: the product's role cards ---------- */
.roles { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.role { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3vw, 32px); display: grid; gap: 18px; align-content: start; }
.role-top { display: flex; gap: 16px; align-items: center; }
.role-ico { width: 48px; height: 48px; border-radius: var(--r); display: grid; place-items: center; background: var(--s10); color: var(--navy); flex: none; }
.role-ico .ico { width: 24px; height: 24px; }
.role-top .who { font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.role-top h3 { color: var(--navy); font-size: 22px; }
.role p { color: var(--ink-3); }
.role .access { justify-self: start; font-size: 11.5px; font-weight: 500; height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: var(--r-sm); }
.muted-s { font-size: 12.5px; color: var(--ink-3); }
.role-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.access.full { background: var(--p10); color: var(--navy); }
.access.own { background: var(--green-10); color: var(--green); }
.incl { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r); background: var(--navy-wash); color: var(--white); }
.incl-item { display: grid; gap: 8px; align-content: start; }
.incl-item > .ico { width: 36px; height: 36px; padding: 8px; border-radius: var(--r-sm); background: rgba(255,255,255,.10); color: var(--white); }
.incl-item h3 { font-size: 16px; margin-top: 8px; font-weight: 500; color: var(--white); }
.incl-item p { font-size: 13.5px; color: var(--on-navy); line-height: 1.65; }

/* ---------- CTA + back cover ---------- */
.cta { color: var(--white); overflow: hidden; background: var(--navy-wash); }
.cta-mark { position: absolute; right: 3%; top: 46%; transform: translateY(-50%); width: min(500px, 44vw); height: auto; fill: rgba(255,255,255,.035); pointer-events: none; }
.cta-mark .am { fill: rgba(255,255,255,.035); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.cta .display { font-size: clamp(40px, 5vw, 68px); }
:lang(ja) .cta .display { font-size: clamp(32px, 4.2vw, 56px); }
.cta .lead { color: var(--on-navy); margin-top: 24px; }
.cta-side { display: grid; gap: 12px; justify-items: start; }
.cta-side .btn { width: 100%; max-width: 340px; }
.cta-contact { margin-top: 10px; display: grid; gap: 2px; font-size: 13px; color: var(--on-navy-2); }
.cta-contact b { font-weight: 500; color: var(--white); font-size: 15px; }
/* Endorsed-brand lockup: Temia, then the parent company */
.lockup { margin-top: clamp(56px, 7vw, 88px); display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 24px 28px; border-radius: var(--r); border: 1px solid var(--navy-rule); background: rgba(255,255,255,.05); }
.lockup .temia svg { height: 34px; width: auto; color: var(--white); display: block; }
.lockup .rule { width: 1px; align-self: stretch; background: var(--navy-rule); }
.lockup .parent { display: grid; gap: 2px; line-height: 1.35; }
.lockup .parent span { font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--on-navy-2); }
.lockup .parent .mpai { font-size: 19px; font-weight: 600; color: var(--white); letter-spacing: -0.005em; }
.lockup .parent img.mpai-logo { height: 34px; width: auto; }
.lockup p { margin-left: auto; max-width: 30em; font-size: 13.5px; color: var(--on-navy); line-height: 1.6; }
.foot { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--navy-rule); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--on-navy-2); align-items: center; }


/* ---------- Billing, built in ---------- */
.bill-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 56px); margin-top: clamp(40px, 5vw, 56px); align-items: start; }
.inv-wrap { margin: 0; display: grid; gap: 18px; min-width: 0; }
.inv-doc { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 28px 30px 20px; box-shadow: var(--shadow-soft); font-size: 12px; color: var(--ink-2); }
.inv-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 14px; border-bottom: 2px solid var(--navy); }
.inv-title { font-size: 22px; font-weight: 600; color: var(--navy); letter-spacing: .12em; line-height: 1.2; }
.inv-title span { font-size: 11px; letter-spacing: .14em; color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.inv-to { margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--ink-2); display: inline-block; padding-bottom: 2px; }
.inv-to span { font-size: 12px; margin-left: 6px; }
.inv-proj { font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.inv-meta { display: grid; gap: 2px; text-align: right; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-meta > span:first-child { color: var(--navy); font-weight: 500; }
.inv-from { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; }
.inv-firm { display: flex; gap: 10px; align-items: center; }
.inv-logo { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--navy); color: var(--white); font-size: 11px; font-weight: 600; display: grid; place-items: center; flex: none; }
.inv-firm b { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.inv-firm small { display: block; font-size: 10.5px; color: var(--ink-3); line-height: 1.45; }
.inv-firm small.tno { color: var(--navy); font-weight: 500; }
.hanko { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); display: grid; place-items: center; writing-mode: vertical-rl; font-size: 13px; font-weight: 600; letter-spacing: .08em; transform: rotate(-8deg); margin-right: 22px; flex: none; }
.inv-amount { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; background: var(--paper); border-radius: var(--r-sm); margin-bottom: 8px; }
.inv-amount span { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.inv-amount b { font-size: 20px; color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }
table.inv-lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.inv-lines th { font-size: 10.5px; font-weight: 500; color: var(--ink-3); text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--line); letter-spacing: .02em; }
table.inv-lines th:first-child, table.inv-lines td:first-child { text-align: left; }
table.inv-lines td { padding: 7px 4px; text-align: right; border-bottom: 1px solid var(--sh5); position: relative; color: var(--ink); }
.inv-tot { margin: 8px 0 0 auto; width: 74%; font-variant-numeric: tabular-nums; }
.inv-tot div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 4px; position: relative; }
.inv-tot dt { color: var(--ink-2); }
.inv-tot dt small { color: var(--ink-3); font-size: 10px; }
.inv-tot dd { margin: 0; color: var(--ink); }
.inv-tot dd.neg { color: var(--red); }
.inv-tot .grand { border-top: 1.5px solid var(--navy); margin-top: 4px; padding-top: 7px; }
.inv-tot .grand dt, .inv-tot .grand dd { font-weight: 600; color: var(--navy); font-size: 13px; }
.inv-note { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 10px; color: var(--ink-3); }
.callout { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: var(--navy); font-style: normal; font-size: 11px; font-weight: 600; display: grid; place-items: center; border: 2px solid var(--white); transform: translateY(-50%); line-height: 1; }
.inv-from .callout { transform: none; }
.inv-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.inv-key > span { display: flex; gap: 10px; align-items: flex-start; }
.inv-key .callout { position: static; transform: none; flex: none; margin-top: 0; }
.bill-side { display: grid; gap: 22px; min-width: 0; }
.lc-label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.lifecycle, .retainers { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.lc-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.lc-steps li { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--r-sm); background: var(--p10); color: var(--btn); font-size: 13px; font-weight: 500; position: relative; }
.lc-steps li + li::before { content: ""; position: absolute; left: -15px; top: 50%; width: 12px; height: 2px; background: var(--p40); }
.lc-steps li.paid { background: var(--green-10); color: var(--green); }
.lifecycle p { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.bill-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.bill-feats li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.bill-feats li > .ico { width: 40px; height: 40px; padding: 9px; border-radius: var(--r); background: var(--s10); color: var(--navy); }
.bill-feats h3 { font-size: 15.5px; font-weight: 500; line-height: 1.4; }
.bill-feats p { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; margin-top: 2px; }
.ret-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ret { display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: var(--r-sm); background: var(--paper); }
.ret .ico { width: 20px; height: 20px; color: var(--blue); margin-bottom: 4px; }
.ret b { font-size: 14px; font-weight: 500; color: var(--navy); }
.ret span { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }

/* ---------- People in the AI examples ---------- */
.persona { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 13.5px; color: var(--on-navy); line-height: 1.45; }
.persona b { color: var(--white); font-weight: 500; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--s80); color: var(--white); font-size: 12px; font-weight: 500; display: grid; place-items: center; flex: none; border: 2px solid rgba(255,255,255,.28); }
.av-team .ico { width: 16px; height: 16px; }
.av.sm { width: 28px; height: 28px; font-size: 11px; border: 0; }

/* ---------- AI quick entry ---------- */
.qe-device { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 48px; background: var(--s10); color: var(--navy); font-size: 12px; font-weight: 500; }
.qe-device .ico { width: 14px; height: 14px; }
.qe-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.qe-input { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--p80); background: var(--white); box-shadow: 0 0 0 3px var(--p10); font-size: 15px; color: var(--ink); }
.qe-input > .ico { width: 18px; height: 18px; color: var(--blue); }
.qe-text { min-height: 1.5em; }
.qe-text .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--p80); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
.qe-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-height: 120px; align-content: start; }
.qe-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); animation: rise .4s var(--ease); }
.qe-row .what { display: grid; line-height: 1.4; min-width: 0; }
.qe-row .what b { font-size: 13.5px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qe-row .what span { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qe-row .dur { font-size: 13px; font-weight: 500; color: var(--navy); font-variant-numeric: tabular-nums; }
.pill.ok { background: var(--green-10); color: var(--green); }
.fc-head b.down { color: var(--red); }
.ubar.cap { grid-template-columns: 136px minmax(0, 1fr) 76px; }

@media (max-width: 1024px) {
  .bill-grid { grid-template-columns: minmax(0, 1fr); }
  .inv-wrap { max-width: 600px; }
}
@media (max-width: 720px) {
  .bill-feats { grid-template-columns: minmax(0, 1fr); }
  .ret-grid { grid-template-columns: minmax(0, 1fr); }
  .inv-key { grid-template-columns: minmax(0, 1fr); }
  .inv-doc { padding: 20px 18px 16px; }
  .inv-doc .callout { display: none; }
  .inv-top { flex-direction: column; }
  .inv-meta { text-align: left; }
  .inv-tot { width: 100%; }
  .hanko { margin-right: 0; }
  .qe-row { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .qe-row .pill { display: none; }
  .ubar.cap { grid-template-columns: 96px minmax(0, 1fr) 64px; }
  .persona { align-items: flex-start; }
}

/* ---------- Reveal (starts visible; JS only nudges elements below the fold) ---------- */
.js-reveal .rv.is-pending { opacity: .001; transform: translateY(24px); }
.js-reveal .rv { transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1300px) {
  .nav { display: none; }
  .hero-visual { margin-right: calc(var(--gutter) * -1 - 40px); }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "copy" "visual"; }
  .hero-visual { margin: 24px 0 40px; perspective: none; }
  .tilt { transform: none !important; }
  .timer-card { left: 16px; bottom: -40px; }
  .ai-card { right: 16px; top: -24px; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why-grid .sec-head { position: static; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-panel { grid-template-columns: minmax(0, 1fr); }
  .tour-panel .tour-frame { order: -1; }
  .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-grid { grid-template-columns: minmax(0, 1fr); }
  .ai-left { display: contents; }
  .ai-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); order: 1; }
  .ai-stage { order: 2; min-height: 0; }
  .ai-note { order: 3; }
  .ai-tab.is-active .d { display: none; }
  .incl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .lockup p { margin-left: 0; }
}
@media (max-width: 720px) {
  .topbar .btn-demo { display: none; }
  .brand .by { display: none; }
  .topbar-in { height: 58px; }
  .hero { padding-top: calc(58px + 44px); }
  .endorse { height: auto; padding: 6px 14px 6px 6px; border-radius: 24px; flex-wrap: wrap; row-gap: 4px; }
  .hero-facts { grid-template-columns: repeat(2, auto); gap: 18px 28px; }
  .timer-card { position: relative; left: auto; bottom: auto; width: auto; margin: -28px 12px 0; transform: none; }
  .ai-card { position: relative; right: auto; top: auto; margin: 12px 12px 0; max-width: none; transform: none; }
  .tilt { display: flex; flex-direction: column; }
  .timer-card { order: 1; }
  .ai-card { order: 2; }
  .ribbon-track { height: 48px; }
  .rb span { display: none; }
  .ribbon-scale span:nth-child(even) { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step .d { display: none !important; }
  .step.is-active .d { display: block !important; }
  .tour-tabs { display: flex; }
  .tour-tab { flex: 1 1 auto; justify-content: center; padding: 0 12px; }
  .hs { display: none; }
  .tour-hint { display: none; }
  .details-grid { grid-template-columns: minmax(0, 1fr); }
  .ai-tabs { gap: 6px; }
  .ai-tab button { padding: 12px 10px 12px 50px; min-height: 60px; align-content: center; }
  .ai-tab .ai-ico { left: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; }
  .ai-tab .t { font-size: 14px; line-height: 1.3; }
  .ai-stage { padding: 12px; }
  .stage-bar .eg { font-size: 10px; }
  .cta-mark { display: none; }
  table.cmp { min-width: 0; table-layout: fixed; }
  table.cmp th, table.cmp td { padding: 12px 6px; }
  table.cmp th:first-child, table.cmp td:first-child { padding-left: 14px; }
  table.cmp thead th { font-size: 10px; line-height: 1.3; padding-top: 14px; padding-bottom: 14px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; letter-spacing: .02em; }
  table.cmp thead th:first-child { width: 46%; }
  table.cmp thead th.us svg { height: 15px; }
  table.cmp tbody th { font-size: 13px; line-height: 1.4; }
  table.cmp tbody th .ai-tag { margin-left: 4px; }
  .mk { width: 22px; height: 22px; }
  .mk svg { width: 12px; height: 12px; }
  .roles { grid-template-columns: minmax(0, 1fr); }
  .incl { grid-template-columns: minmax(0, 1fr); }
  .cap-row { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .cap-row .conf { display: none; }
  .cap-legend { display: none; }
  .lk-row { grid-template-columns: minmax(0, 1fr) auto; }
  .lk-row .id { display: none; }
  .ubar { grid-template-columns: 86px minmax(0, 1fr) 36px; }
  .ask-q { max-width: 92%; }
  .lockup { gap: 18px; padding: 20px; }
  .lockup .rule { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js-reveal .rv.is-pending { opacity: 1; transform: none; }
}


/* ---------- Header account buttons (visual only for now) ---------- */
.auth { display: inline-flex; align-items: center; gap: 8px; }
.topbar .btn-login { background: transparent; color: var(--navy); border-color: transparent; padding: 0 12px; }
.topbar .btn-login:hover { background: var(--p10); }
.topbar .btn-register { background: var(--white); color: var(--btn); border-color: var(--btn); }
.topbar .btn-register:hover { background: var(--p5); border-color: var(--navy); color: var(--navy); }
.topbar .btn-login:focus-visible, .topbar .btn-register:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.topbar-sep { width: 1px; height: 24px; background: var(--sh20); }
@media (max-width: 1100px) { .topbar-sep { display: none; } }
@media (max-width: 720px) {
  .topbar-end { gap: 8px; }
  .auth { gap: 4px; }
  .topbar .btn-login, .topbar .btn-register { height: 34px; padding: 0 10px; font-size: 13px; }
  .lang button { padding: 0 8px; }
}
@media (max-width: 400px) {
  .brand svg { height: 24px; }
  .topbar .btn-login { padding: 0 6px; }
  .lang button { padding: 0 6px; font-size: 12px; }
}
/* =========================================================
   Hero v3: calm two-column layout.
   One focal visual (the product), two compact satellites
   placed on opposite corners; quiet ambient light only.
   ========================================================= */
.hero { padding-top: calc(64px + clamp(56px, 6vw, 104px)); padding-bottom: clamp(56px, 5vw, 80px); isolation: isolate; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-fx .orb { position: absolute; border-radius: 50%; filter: blur(72px); will-change: transform; }
.hero-fx .o1 { width: min(46vw, 760px); aspect-ratio: 1; left: -16%; top: -34%; background: radial-gradient(circle, rgba(84,140,240,.42), transparent 66%); animation: heroOrbA 24s ease-in-out infinite alternate; }
.hero-fx .o2 { width: min(40vw, 660px); aspect-ratio: 1; right: -12%; top: 10%; background: radial-gradient(circle, rgba(64,190,245,.20), transparent 66%); animation: heroOrbB 28s ease-in-out infinite alternate; }
.hero-fx .o3 { display: none; }
@keyframes heroOrbA { to { transform: translate3d(5%, 7%, 0) scale(1.06); } }
@keyframes heroOrbB { to { transform: translate3d(-6%, 5%, 0) scale(.95); } }

/* Grid: text column and product column, centred on each other */
.hero-grid { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); grid-template-areas: "copy visual"; gap: 0 clamp(56px, 6vw, 104px); align-items: center; }
.hero-copy { grid-area: copy; container-type: inline-size; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding-top: 0; }
/* The top bar already carries the endorsement on desktop */
.hero-copy > .endorse { display: none; }
.hero-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 24px; font-size: 12.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--on-navy-2); line-height: 1.3; }
.ai-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 8px; border-radius: 48px;
  font-size: 12px; letter-spacing: .02em; text-transform: none; color: var(--white);
  border: 1px solid transparent;
  background: linear-gradient(var(--s100), var(--s100)) padding-box, linear-gradient(120deg, #9DBDF5, #7DD3FC 55%, var(--amber)) border-box;
}
.ai-chip .ico { width: 13px; height: 13px; color: var(--amber); }
.hero .display.hero-title { margin: 0; font-size: clamp(36px, 11cqi, 64px); line-height: 1.06; letter-spacing: -0.032em; text-wrap: balance; }
:lang(ja) .hero .display.hero-title { font-size: clamp(32px, 10.2cqi, 58px); line-height: 1.24; letter-spacing: 0; }
.hero .display .hl {
  color: #B9D3FA;
  background: linear-gradient(100deg, #A9C6F7 0%, #D6E8FF 45%, #8FD8FB 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-copy .lead { margin: 28px 0 0; max-width: 31em; font-size: clamp(16px, 1.1vw, 17.5px); }
.hero-copy .hero-ctas { margin-top: 40px; }
.hero-copy .hero-facts { margin: 48px 0 0; padding-top: 24px; width: 100%; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 20px clamp(24px, 3cqi, 40px); }
.btn-glow { transition: box-shadow .3s var(--ease), transform .3s var(--ease), background-color .2s; }
.btn-glow:hover { box-shadow: 0 12px 30px -12px rgba(125,211,252,.6); transform: translateY(-1px); }
.btn-glow .ico { transition: transform .3s var(--ease); }
.btn-glow:hover .ico { transform: translateX(3px); }

/* Product column: frame stays inside the grid, satellites hang off two corners */
.hero-visual { grid-area: visual; margin: 0; padding: 48px 32px 56px 0; perspective: 2000px; }
.tilt { transform: rotateY(-6deg) rotateX(3deg); }
.frame--hero { box-shadow: 0 40px 80px -36px rgba(4,16,42,.7), 0 12px 28px -18px rgba(4,16,42,.5); }
.frame--hero .shot { aspect-ratio: 1920 / 1200; }
.float { box-shadow: 0 22px 48px -22px rgba(4,16,42,.6), 0 2px 6px rgba(4,16,42,.10); }

/* Temia AI quick entry: compact, top-right corner */
.ai-card { right: -32px; top: -40px; left: auto; bottom: auto; transform: translateZ(50px); width: 300px; max-width: none; display: grid; gap: 8px; padding: 12px; align-items: stretch; }
.aic-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.aic-head .ai-spark { width: 24px; height: 24px; }
.aic-head .ai-spark .ico { width: 13px; height: 13px; }
.aic-dots { margin-left: auto; display: inline-flex; gap: 3px; opacity: 0; transition: opacity .2s; }
.aic-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--blue); animation: aicDot 1s infinite ease-in-out; }
.aic-dots i:nth-child(2) { animation-delay: .15s; } .aic-dots i:nth-child(3) { animation-delay: .3s; }
.is-thinking .aic-dots { opacity: 1; }
@keyframes aicDot { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-3px); opacity: 1; } }
.aic-input { min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--s5); font-size: 12.5px; line-height: 1.45; color: var(--ink); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.aic-input:hover { border-color: var(--p60); }
.is-thinking .aic-input { border-color: var(--p60); box-shadow: 0 0 0 3px var(--p10); }
.caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--blue); animation: aicCaret 1s steps(2, start) infinite; }
.is-done .caret { opacity: 0; animation: none; }
@keyframes aicCaret { to { visibility: hidden; } }
.aic-out { display: grid; gap: 4px; min-height: 68px; align-content: start; }
.aic-row { display: grid; grid-template-columns: 3px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 8px; border-radius: var(--r-sm); background: var(--p5); opacity: 0; transform: translateY(4px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.aic-row.in { opacity: 1; transform: none; }
.aic-row .bar { width: 3px; height: 16px; border-radius: 2px; background: var(--blue); }
.aic-row .t { display: grid; min-width: 0; line-height: 1.3; }
.aic-row b { font-size: 12px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aic-row small { display: none; }
.aic-row .h { font-size: 12px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.aic-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ink-3); }
.aic-foot #aicSum { font-weight: 500; color: var(--green); }
.ai-card .mini { height: 28px; font-size: 12px; padding: 0 10px; }

/* Live timer: compact, bottom-left corner */
.timer-card {
  left: -40px; bottom: 16px; right: auto; top: auto; transform: translateZ(70px);
  width: 292px; padding: 14px 14px 12px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head actions" "time time" "meta meta"; gap: 4px 12px; align-items: center;
}
.timer-card .tc-head { grid-area: head; font-size: 11.5px; white-space: nowrap; min-width: 0; }
.timer-card .live-dot { flex: none; }
.timer-card .tc-time { grid-area: time; font-size: 30px; margin-top: 2px; }
.timer-card .tc-meta { grid-area: meta; font-size: 11.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); }
.timer-card .tc-meta b { font-weight: 500; }
.timer-card .tc-meta b::after { content: " · "; font-weight: 400; color: var(--ink-4); }
.timer-card .tc-meta > span { display: inline; }
.timer-card .tc-actions { grid-area: actions; margin: 0; gap: 6px; }
.timer-card .tc-btn { width: 28px; height: 28px; }
.timer-card .tc-btn svg { width: 14px; height: 14px; }
.timer-card .tc-log { flex: none; height: 28px; padding: 0 10px; font-size: 11.5px; white-space: nowrap; }

/* Wide desktop (1600px and up) */
@media (min-width: 1600px) {
  .hero { padding-top: calc(64px + 112px); }
  .hero-grid { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 0 88px; }
  .ai-card { right: -48px; }
}
/* Laptops (1101–1366px): tighter gap, satellites tucked in */
@media (max-width: 1366px) {
  .hero-grid { grid-template-columns: minmax(0, 10fr) minmax(0, 12fr); gap: 0 clamp(48px, 5vw, 72px); }
  .hero-visual { padding: 44px 16px 52px 0; }
  .ai-card { right: -16px; top: -36px; width: 284px; }
  .timer-card { left: -28px; bottom: 12px; width: 284px; }
}
/* Tablet and below: stack */
@media (max-width: 1100px) {
  .hero-copy > .endorse { display: inline-flex; margin: 0 0 24px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "visual"; }
  .hero-copy { max-width: 720px; }
  .hero .display.hero-title { font-size: clamp(36px, 9cqi, 64px); }
  .hero-visual { margin: 48px 0 0; padding: 40px 0 24px; perspective: none; }
  .tilt { transform: none !important; }
  .ai-card { right: 16px; top: 0; transform: none; }
  .timer-card { left: 16px; bottom: 0; transform: none; }
}
@media (max-width: 720px) {
  .hero-copy > .endorse { margin-bottom: 22px; }
  .hero-tag { margin-bottom: 16px; }
  .hero .display.hero-title { font-size: clamp(34px, 9.6vw, 44px); line-height: 1.1; }
  :lang(ja) .hero .display.hero-title { font-size: clamp(30px, 8.6vw, 40px); line-height: 1.3; }
  .hero-copy .lead { margin-top: 20px; }
  .hero-copy .hero-ctas { margin-top: 28px; width: 100%; }
  .hero-copy .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .hero-copy .hero-facts { margin-top: 32px; grid-template-columns: repeat(2, minmax(0, auto)); gap: 18px 28px; }
  .hero-visual { padding: 0 0 8px; margin-top: 36px; }
  .ai-card { position: relative; right: auto; top: auto; width: auto; margin: 12px 0 0; transform: none; }
  .timer-card { position: relative; left: auto; bottom: auto; width: auto; margin: 12px 0 0; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-fx .orb, .aic-dots i, .caret { animation: none !important; }
}

/* Laptop top bar (1301–1480px): tighten so every item fits */
@media (min-width: 1301px) and (max-width: 1480px) {
  .topbar-in { gap: 12px; }
  .nav { margin-left: 0; }
  .nav a { padding: 20px 7px; font-size: 13.5px; }
  .nav a.is-active::after { left: 8px; right: 8px; }
  .topbar-sep { display: none; }
  .topbar .btn { padding: 0 13px; font-size: 13px; }
  .brand { gap: 12px; }
  .brand .by { padding-left: 12px; }
}
@media print { .auth, .topbar-sep { display: none !important; } }

/* Screen helpers for print-only grouping */
.tour-more, .ai-row { display: contents; }
.pcap { display: none; }

/* ---------- Print: one landscape spread per page (A4 proportion) ---------- */
@page { size: 1440px 1018px; margin: 0; }
@media print {
  html, body { width: 1440px; background: var(--white); }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html { scroll-padding-top: 0; }
  .topbar, .stage-bar, .tour-tabs, .hs, .replay, .tc-actions, .ask-chips, .ask-input, .cap-sweep, .lk-scan { display: none !important; }
  .rv, .rv.is-pending { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* PDF fidelity: blurred shadows and 3D transforms get rasterised by the PDF engine
     (grey JPEG blocks behind frames, low-res hero screenshot). Print uses flat, vector-only depth. */
  *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; filter: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .hero-visual { perspective: none !important; }
  .tilt, .float { transform: none !important; transform-style: flat !important; will-change: auto !important; }
  .frame { border: 1px solid rgba(255,255,255,.28); }
  .frame--light { border: 1px solid var(--sh20); }
  .float { border: 1px solid var(--sh20); }
  .dcard { border: 1px solid rgba(255,255,255,.28); }
  .hs-dot::after { display: none; }

  .page { break-after: page; break-inside: avoid; height: 1018px; overflow: hidden; padding-block: 76px !important; }
  .page.multi { height: auto; overflow: visible; padding-block: 0 !important; }
  .wrap { max-width: 1280px; padding-inline: 40px; }

  /* Hero */
  .hero { padding-top: 76px !important; padding-bottom: 48px !important; }
  .hero .display { font-size: 88px; }
  :lang(ja) .hero .display { font-size: 66px; }
  .hero-head { gap: 20px; }
  .hero-grid { row-gap: 40px; }
  .hero-visual { margin-right: -60px; margin-top: 0; }
  .frame--hero .shot { aspect-ratio: 1920 / 1060; }
  .ribbon { margin-top: 64px; }

  /* Why */
  .why-grid .sec-head { position: static; }
  .why-item { padding: 30px 0; }

  /* How */
  #how.page { padding-block: 64px !important; }
  #how .h2 { font-size: 48px; }
  #how .lead { font-size: 17px; }
  #how table.grid th, #how table.grid td { padding-top: 9px; padding-bottom: 9px; }
  .how-grid { display: block; margin-top: 32px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .step button { padding: 18px 18px 18px 60px; background: var(--white) !important; border-color: var(--line) !important; border-left-color: var(--amber) !important; }
  .step .num { left: 18px; top: 18px; background: var(--navy) !important; border-color: var(--navy) !important; color: var(--white) !important; }
  .step .t { color: var(--navy) !important; }
  .step .d { display: block !important; font-size: 13.5px; }
  .step .bar { display: none; }
  .how-stage { margin-top: 28px; }
  .how-panel { display: none !important; }
  .how-panel[data-panel="0"] { display: grid !important; grid-template-columns: minmax(0, 1fr); }
  .how-panel[data-panel="0"] .frame { max-width: 1000px; }
  .how-cap { display: none; }

  /* Tour: page A = intro + dashboard, page B = the other four views */
  .tour.page { padding-block: 0 !important; height: auto; overflow: visible; }
  .tour > .wrap { padding-top: 76px; }
  .tour .sec-head { max-width: 900px; }
  .tour-panels { margin-top: 40px; }
  .tour-panel { display: grid !important; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); animation: none; align-items: center; }
  .tour-panel#tp-0 { height: 560px; }
  .tour-panel#tp-0 .tour-frame .crop { aspect-ratio: 1920 / 1000; }
  .tour-more { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; break-before: page; padding-top: 76px; height: 1018px; align-content: start; }
  .tour-more .tour-panel { grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
  .tour-more .tour-frame { order: -1; }
  .tour-more .tour-frame .crop { aspect-ratio: 1920 / 820 !important; }
  .tour-more .tour-copy { gap: 8px; }
  .tour-more .tour-copy p { font-size: 14.5px; line-height: 1.55; }
  .tour-more .ticks { display: none; }
  .tour-more .h3 { font-size: 20px; }
  .tour-hint { display: none; }

  /* Billing */
  #billing.page { padding-block: 60px !important; }
  #billing .h2 { font-size: 44px; }
  :lang(ja) #billing .h2 { font-size: 38px; }
  #billing .lead { font-size: 16px; max-width: 70ch; }
  #billing .sec-head { gap: 12px; max-width: 980px; }
  .bill-grid { margin-top: 30px; gap: 44px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .inv-doc { padding: 22px 26px 16px; }
  .inv-key { font-size: 12.5px; gap: 8px 18px; }
  .bill-side { gap: 18px; }
  .bill-feats { gap: 16px 22px; }
  .bill-feats p { font-size: 13px; }
  .lifecycle, .retainers { padding: 14px 18px; }
  .lifecycle p { margin-top: 8px; font-size: 13px; }
  .ret { padding: 12px; }

  /* Details */
  .details-grid { margin-top: 48px; }

  /* AI: page A = intro + the four capabilities, then one page per pair of live examples */
  .ai.page { height: auto; overflow: visible; padding-block: 0 !important; background: var(--navy-wash); }
  .ai > .wrap { padding-top: 110px; }
  .ai .sec-head { gap: 22px; max-width: 1000px; }
  .ai .h2 { font-size: 72px; }
  :lang(ja) .ai .h2 { font-size: 58px; }
  .ai .lead { font-size: 20px; max-width: 46em; }
  .ai-grid { display: block; margin-top: 72px; }
  .ai-left { display: grid; gap: 28px; }
  .ai-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .ai-tab button { height: 100%; min-height: 240px; align-content: start; padding: 78px 24px 28px; border: 1px solid var(--navy-rule) !important; border-top: 3px solid var(--amber) !important; border-radius: var(--r) !important; background: rgba(255,255,255,.06) !important; color: var(--white) !important; }
  .ai-tab .ai-ico { left: 24px; top: 24px; width: 36px; height: 36px; background: var(--p80) !important; color: var(--white) !important; }
  .ai-tab .t { font-size: 18px; color: var(--white); }
  .ai-tab .d { display: block !important; font-size: 14px; margin-top: 4px; }
  .ai-tab .bar { display: none; }
  .ai-stage { padding: 0; border: 0; background: none; min-height: 0; }
  .ai-stage::before { display: none; }
  .ai-row { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; align-content: center; break-before: page; height: 1018px; }
  .persona { margin-bottom: 4px; }
  .ai-panel { display: grid !important; gap: 16px; animation: none; }
  .pcap { display: grid; gap: 6px; }
  .pcap h3 { font-size: 22px; color: var(--white); letter-spacing: -0.01em; }
  .pcap p { font-size: 14px; color: var(--on-navy); line-height: 1.55; min-height: 3.1em; }
  .dcard { box-shadow: none; }
  .cap-row, .cap-sig { opacity: 1 !important; transform: none !important; }
  .cap-blk { transform: scaleX(1) !important; }
  .ask-body { min-height: 0; }

  /* Compare / offer / CTA */
  .cmp-wrap { margin-top: 36px; box-shadow: none; overflow: visible; }
  table.cmp th, table.cmp td { padding: 13px 22px; }
  .roles { margin-top: 36px; }
  .role { box-shadow: none; padding: 26px 30px; gap: 14px; }
  .incl { margin-top: 20px; padding: 26px 30px; }
  .cta { display: flex; flex-direction: column; justify-content: center; }
  .cta .lockup { margin-top: 96px; }
}

.nw{white-space:nowrap}

/* ---------- Desktop scale: 1440px canvas, 60px side spacing, tighter type and rhythm ---------- */
@media screen and (min-width: 1101px) {
  :root { --section: clamp(64px, 6.6vw, 96px); }
  html { scroll-padding-top: 60px; }
  body { font-size: 14px; }

  /* Header */
  .topbar-in { height: 56px; gap: 16px; }
  .brand svg { height: 24px; }
  .brand { gap: 12px; }
  .brand .by { padding-left: 12px; font-size: 10px; }
  .brand .by b { font-size: 11px; }
  .nav { margin-left: 0; }
  .nav a { font-size: 13px; padding: 18px 9px; }
  .nav a.is-active::after { left: 9px; right: 9px; bottom: 10px; }
  .topbar-end { gap: 10px; }
  .lang button { height: 26px; padding: 0 10px; font-size: 12px; }
  .topbar .btn { height: 34px; padding: 0 13px; font-size: 13px; }

  /* Headings */
  .display { font-size: clamp(38px, 4.4vw, 64px); }
  .hero .display { font-size: clamp(38px, 4.8vw, 72px); }
  .hero .display.hero-title { font-size: clamp(34px, 9.4cqi, 52px); }
  .h2 { font-size: clamp(30px, 2.8vw, 40px); }
  .h3 { font-size: clamp(17px, 1.3vw, 19px); }
  .cta .display { font-size: clamp(36px, 3.8vw, 54px); }
  :lang(ja) .display { font-size: clamp(32px, 3.8vw, 54px); }
  :lang(ja) .hero .display { font-size: clamp(32px, 4.1vw, 60px); }
  :lang(ja) .hero .display.hero-title { font-size: clamp(30px, 8.6cqi, 46px); }
  :lang(ja) .h2 { font-size: clamp(26px, 2.4vw, 34px); }
  :lang(ja) .cta .display { font-size: clamp(30px, 3.1vw, 44px); }

  /* Body copy */
  .lead { font-size: clamp(15px, 1.1vw, 16px); line-height: 1.65; }
  .hero-copy .lead { font-size: clamp(15px, 1vw, 16px); }
  :lang(ja) .lead { line-height: 1.8; }
  .btn { font-size: 13.5px; }
  .ticks li { font-size: 13.5px; }
  .step .t { font-size: 16px; }
  .detail h3, .ai-tab .t, .incl-item h3 { font-size: 15px; }
  .bill-feats h3 { font-size: 14.5px; }
  .role-top h3 { font-size: 19px; }
  table.cmp tbody th { font-size: 13.5px; }

  /* Rhythm: less scrolling between and inside sections */
  .hero { padding-top: calc(56px + clamp(36px, 3.6vw, 56px)); padding-bottom: clamp(36px, 3.2vw, 48px); }
  .hero-tag { margin-bottom: 18px; }
  .hero-visual { padding: 32px 24px 40px 0; }
  .ribbon { margin-top: clamp(40px, 4vw, 56px); }
  .sec-head { gap: 14px; max-width: 840px; }
  .why-item { padding: 24px 0; }
  .how-grid { margin-top: clamp(32px, 3.4vw, 48px); }
  .tour-tabs { margin-top: clamp(28px, 2.8vw, 36px); }
  .tour-panels { margin-top: 24px; }
  .bill-grid, .details-grid, .cmp-wrap, .roles { margin-top: clamp(32px, 3.2vw, 44px); }
  .ai-grid { margin-top: clamp(32px, 3.4vw, 48px); }
  .lockup { margin-top: clamp(40px, 4vw, 56px); }
  table.cmp th, table.cmp td { padding-top: 11px; padding-bottom: 11px; }
}
@media screen and (min-width: 1600px) {
  .hero { padding-top: calc(56px + 64px); }
  .ai-card { right: -16px; }
}
@media screen and (min-width: 1101px) and (max-width: 1300px) {
  .nav { display: flex; }
  .nav a { padding-inline: 7px; font-size: 12.5px; }
  .nav a.is-active::after { left: 7px; right: 7px; }
  .topbar-in { gap: 10px; }
  .topbar-sep { display: none; }
  .topbar .btn { padding: 0 10px; font-size: 12.5px; }
}
@media screen and (min-width: 1101px) and (max-width: 1240px) {
  .brand .by { display: none; }
}
