/* ==========================================================
   isensei — Sensei Tech K.K.
   Global stylesheet
   ========================================================== */

:root {
  /* Matcha: sage paper + forest ink + gold */
  --bg: #f3f5f0;
  --bg-2: #e8ede4;
  --paper: #fbfcf9;
  --fg-rgb: 24,33,28;
  --accent-rgb: 47,107,79;
  --ink-rgb: 31,58,46;
  --green-rgb: 47,125,91;
  --surface: var(--paper);
  --surface-2: #edf1e9;
  --border: #dbe2d6;
  --border-2: #c6d0c0;
  --text: #18211c;
  --muted: #4c5851;
  --faint: #76827b;
  --accent: #2f6b4f;
  --accent-2: #22503a;
  --ink: #1f3a2e;
  --green: #2f7d5b;
  --grad: linear-gradient(var(--accent), var(--accent));
  --grad-soft: rgba(var(--accent-rgb),.08);
  --radius: 12px;
  --radius-lg: 16px;
  --pill: 10px;
  --shadow: 0 1px 2px rgba(24,33,28,.05), 0 18px 40px -18px rgba(24,33,28,.22);
  --max: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
  --jp: "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(var(--accent-rgb),.2); color: var(--text); }

/* ---------- Background ambience ---------- */

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: 110px 0; }
.section-sm { padding: 70px 0; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow .dot { width: 18px; height: 2px; background: var(--accent); }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.grad-text { color: var(--accent); }
.jp { font-family: var(--jp); }
.section-head { margin-bottom: 60px; }
.section-head h2 { margin: 18px 0 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--pill); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(var(--fg-rgb),.15);
}
.btn-primary:hover { background: var(--accent-2); }
.btn:focus-visible, .nav-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-ghost { background: var(--surface); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(243,245,240,.88);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; flex-shrink: 0; white-space: nowrap; }
.logo-img { height: 36px; width: auto; }
.footer-brand .logo-img { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 6px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); font-weight: 500; white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--accent-2); background: rgba(var(--accent-rgb),.08); }
.nav-cta { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border-2);
  background: var(--surface); color: var(--text); align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: .3s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 140px 0 90px; text-align: center; }
.hero h1 { margin: 26px auto 24px; max-width: 920px; }
.hero .lead { margin: 0 auto 38px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 13.5px; color: var(--faint); display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.hero-note svg { width: 16px; height: 16px; }

.page-hero { padding: 140px 0 60px; text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 22px auto 20px; max-width: 860px; }

/* ---------- Browser mockup ---------- */
.mockup-wrap { margin-top: 80px; position: relative; perspective: 2000px; }
.browser {
  max-width: 1080px; margin: 0 auto; text-align: left;
  border-radius: 20px; overflow: hidden;
  background: var(--paper); border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
  transform: rotateX(8deg); transform-origin: top center;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.browser.in { transform: rotateX(0); }
.browser-bar {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px 0;
  background: #e4eae0;
}
.dots { display: flex; gap: 7px; padding-bottom: 10px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #3a3a50; display: block; }
.dots i:nth-child(1) { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.tabs { display: flex; gap: 2px; overflow: hidden; flex: 1; min-width: 0; }
.tab {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 12.5px; color: var(--muted);
  border-radius: 10px 10px 0 0; white-space: nowrap; min-width: 0; max-width: 200px; position: relative;
}
.tab span { overflow: hidden; text-overflow: ellipsis; }
.tab.active { background: var(--paper); color: var(--text); }
.tab .fav { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.tab.read::after {
  content: ""; position: absolute; top: 7px; right: 6px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.browser-url {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--paper); border-bottom: 1px solid var(--border);
}
.url-field {
  flex: 1; background: var(--surface-2); border-radius: var(--pill); padding: 7px 14px; font-size: 12.5px; color: var(--muted);
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.url-field span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ext-icon { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; object-fit: contain; }
.browser-body { display: grid; grid-template-columns: 1fr 360px; min-height: 470px; }
.page-pane { padding: 34px 38px; background: #fbfbfd; color: #1d1d2b; }
.page-pane .job-co { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.page-pane .job-logo { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg,#111827,#374151); }
.page-pane h4 { font-family: var(--font); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.page-pane .job-sub { font-size: 13px; color: #6b7280; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 24px; }
.f-field { display: flex; flex-direction: column; gap: 6px; }
.f-field.full { grid-column: 1 / -1; }
.f-field label { font-size: 11.5px; font-weight: 600; color: #4b5563; }
.f-input {
  border: 1.5px solid #e5e7eb; border-radius: 9px; padding: 9px 11px; font-size: 13px; min-height: 38px; background: #fff;
  color: #111827; transition: border-color .3s, box-shadow .3s, background .3s;
}
.f-input.area { min-height: 84px; line-height: 1.5; }
.f-input.filling { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.14); background: #f6faf7; }
.f-input.done { border-color: rgba(var(--accent-rgb),.45); background: #f9fbf8; }
.caret { display: inline-block; width: 1.5px; height: 14px; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.side-pane { background: #f7f9f5; border-left: 1px solid var(--border); display: flex; flex-direction: column; font-size: 13px; }
.side-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.side-head b { font-family: var(--display); font-size: 14px; }
.side-head .pill { margin-left: auto; font-size: 11px; padding: 3px 9px; border-radius: var(--pill); background: rgba(var(--green-rgb),.12); color: var(--green); border: 1px solid rgba(var(--green-rgb),.25); }
.side-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ctx { display: flex; flex-wrap: wrap; gap: 6px; }
.ctx span { font-size: 11px; padding: 4px 9px; border-radius: 7px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); display: inline-flex; gap: 6px; align-items: center; }
.ctx span i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.msg { padding: 11px 13px; border-radius: 13px; line-height: 1.5; max-width: 92%; opacity: 0; transform: translateY(8px); transition: .5s; }
.msg.show { opacity: 1; transform: none; }
.msg.user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: var(--paper); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.msg.ai .mem { display: block; margin-top: 8px; font-size: 11.5px; color: var(--accent-2); }
.progress { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .4s ease; }
.side-input { margin: 0 16px 16px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-2); color: var(--faint); display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.side-input kbd { font-family: var(--font); font-size: 11px; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); }

/* ---------- Logo strip ---------- */
.trust { padding: 40px 0 20px; }
.trust p { text-align: center; color: var(--faint); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 26px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { font-family: var(--display); font-size: 21px; font-weight: 600; color: #9aa69e; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards / features ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; padding: 32px; border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(var(--fg-rgb),.04);
  transition: transform .35s ease, border-color .35s ease, background .35s;
  overflow: hidden;
}
.card:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 22px 0 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--accent-2);
}
.icon svg { width: 24px; height: 24px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.bento .card { display: flex; flex-direction: column; }
.b-4 { grid-column: span 4; } .b-2 { grid-column: span 2; } .b-3 { grid-column: span 3; } .b-6 { grid-column: span 6; }
.visual { margin-top: 26px; flex: 1; min-height: 160px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--border); padding: 18px; position: relative; overflow: hidden; }

/* tab reading visual */
.tabstack { display: flex; flex-direction: column; gap: 9px; }
.tabrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.tabrow i { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; }
.tabrow b { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--green); }
.tabrow .scan { position: relative; flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.tabrow .scan::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--grad); border-radius: 3px; animation: scan 2.4s ease-in-out infinite; }
.tabrow:nth-child(2) .scan::after { animation-delay: .4s; }
.tabrow:nth-child(3) .scan::after { animation-delay: .8s; }
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* memory visual */
.memlist { display: flex; flex-direction: column; gap: 8px; }
.memlist div { display: flex; justify-content: space-between; font-size: 13px; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.memlist span { color: var(--faint); }
.memlist em { font-style: normal; color: var(--text); }

/* voice visual */
.voice { font-size: 14px; line-height: 1.6; }
.voice .before { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(244,114,182,.5); }
.voice .after { margin-top: 10px; color: var(--text); }
.voice .tone { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.voice .tone span { font-size: 11px; padding: 4px 10px; border-radius: var(--pill); border: 1px solid var(--border-2); color: var(--muted); }
.voice .tone span.on { background: rgba(var(--accent-rgb),.18); border-color: rgba(var(--accent-rgb),.45); color: var(--accent-2); }

/* files visual */
.files { display: flex; gap: 12px; flex-wrap: wrap; }
.file { flex: 1; min-width: 90px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); text-align: center; font-size: 12px; color: var(--muted); }
.file b { display: block; font-family: var(--display); font-size: 15px; margin-bottom: 4px; }
.file.pdf b { color: #f87171; } .file.doc b { color: #60a5fa; } .file.csv b { color: var(--green); } .file.img b { color: #fbbf24; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 74px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 32px;
  font-family: var(--display); font-size: 44px; font-weight: 700; line-height: 1;
  color: var(--accent);
}
.step.card { padding-top: 100px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split h2 { margin: 18px 0 18px; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.checklist li strong { color: var(--text); font-weight: 600; }
.checklist svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--green); margin-top: 1px; }

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; gap: 24px; }
.quote p { color: var(--text); font-size: 16.5px; }
.who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; }
.who b { display: block; font-size: 15px; }
.who span { font-size: 13px; color: var(--faint); }
.stars { color: #fbbf24; letter-spacing: 2px; font-size: 15px; }

/* ---------- Pricing ---------- */
.billing-toggle { display: inline-flex; padding: 5px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--border-2); margin-top: 34px; }
.billing-toggle button { border: 0; background: none; color: var(--muted); padding: 9px 20px; border-radius: var(--pill); font-weight: 600; font-size: 14px; transition: .25s; }
.billing-toggle button.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.billing-toggle .save { font-size: 11px; color: var(--green); margin-left: 4px; }
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px 28px; }
.plan .plan-name { font-family: var(--display); font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.plan .plan-desc { color: var(--muted); font-size: 14.5px; margin-top: 8px; min-height: 46px; }
.price { margin: 26px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.price b { font-family: var(--display); font-size: 48px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price span { color: var(--faint); font-size: 14px; }
.price-note { font-size: 13px; color: var(--faint); min-height: 20px; margin-bottom: 24px; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; color: var(--muted); }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; }
.plan ul svg { width: 18px; height: 18px; color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }
.plan .btn { margin-top: auto; }
.plan .plan-cta { margin-top: 0; }
.plan.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}
.badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--pill); background: var(--grad); color: #fff; letter-spacing: .03em; }

/* comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.5px; }
.compare th, .compare td { padding: 16px 22px; text-align: center; border-bottom: 1px solid var(--border); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--muted); }
.compare thead th { font-family: var(--display); font-size: 15px; color: var(--text); background: rgba(var(--fg-rgb),.02); }
.compare tr.group td { text-align: left; font-weight: 700; color: var(--accent-2); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; background: rgba(var(--accent-rgb),.05); }
.compare tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--faint); }

/* credits */
.credits { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 44px; }
.credit-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pack { padding: 20px 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--border); text-align: center; }
.pack b { display: block; font-family: var(--display); font-size: 26px; }
.pack span { font-size: 13px; color: var(--muted); }
.pack em { display: block; font-style: normal; margin-top: 10px; font-weight: 600; color: var(--accent-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color .25s, background .25s; }
.faq details[open] { border-color: rgba(var(--accent-rgb),.3); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--accent-2); transition: transform .3s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding: 80px 40px; border-radius: 34px;
  background: var(--ink); color: #f3f5f0;
  border: 0;
}
.cta-band::after {
  content: "先生"; position: absolute; right: -20px; bottom: -70px; font-family: var(--jp); font-weight: 900;
  font-size: 260px; line-height: 1; color: rgba(255,255,255,.05); pointer-events: none;
}
.cta-band h2 { max-width: 760px; margin: 0 auto 18px; }
.cta-band .lead { margin: 0 auto 34px; color: #c5d3ca; }
.cta-band .grad-text { color: #e6c27a; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.cta-band .eyebrow { color: #e6c27a; }
.cta-band .btn-primary { background: #e6c27a; color: #1f3a2e; }
.cta-band .btn-primary:hover { background: #f0d394; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.founder-photo { position: relative; }
.founder-photo .frame {
  position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 896 / 1046;
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,7,13,.85));
}
.founder-photo::before {
  content: ""; position: absolute; inset: -2px; border-radius: 32px; z-index: -1;
  display: none;
}
.founder-tag {
  position: absolute; left: 22px; bottom: 22px; right: 22px; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
}
.founder-tag { color: #fff; }
.founder-tag b { font-family: var(--display); font-size: 22px; display: block; }
.founder-tag span { font-size: 13.5px; color: #cfcde0; }
.founder-tag .jp-badge { font-family: var(--jp); font-size: 12px; padding: 6px 12px; border-radius: var(--pill); background: rgba(255,255,255,.14); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.25); white-space: nowrap; }
.floating-chip {
  position: absolute; z-index: 3; padding: 12px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--border-2);
  font-size: 13px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.floating-chip b { font-family: var(--display); }
.floating-chip.c1 { top: 8%; right: -26px; }
.floating-chip.c2 { top: 42%; left: -30px; animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
blockquote.founder-quote {
  margin: 28px 0; padding: 0 0 0 24px; border-left: 3px solid var(--accent);
  font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.45; font-weight: 500; color: var(--text);
}
.signature { font-family: "Caveat", cursive; font-size: 34px; color: var(--accent-2); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--border-2); }
.t-item { position: relative; padding: 0 0 44px 64px; }
.t-item::before { content: ""; position: absolute; left: 11px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.t-item time { font-family: var(--display); font-weight: 700; color: var(--accent-2); font-size: 14px; letter-spacing: .05em; }
.t-item h3 { margin: 6px 0 8px; }
.t-item p { color: var(--muted); }

/* ---------- Security badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 14px; }
.sec-badge { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border-2); }
.sec-badge svg { width: 28px; height: 28px; color: var(--green); }
.sec-badge b { display: block; font-size: 14.5px; }
.sec-badge span { font-size: 12.5px; color: var(--faint); }

.arch { padding: 30px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--border); font-size: 13.5px; }
.arch-row { display: flex; align-items: center; gap: 12px; }
.arch-box { flex: 1; padding: 16px; border-radius: 14px; text-align: center; background: var(--surface); border: 1px solid var(--border-2); }
.arch-box b { display: block; font-family: var(--display); font-size: 14.5px; margin-bottom: 3px; }
.arch-box span { color: var(--faint); font-size: 12px; }
.arch-box.hl { border-color: rgba(var(--accent-rgb),.5); background: rgba(var(--accent-rgb),.1); }
.arch-arrow { color: var(--accent-2); font-size: 18px; flex-shrink: 0; }
.arch-zone { margin-top: 16px; padding: 18px; border-radius: 16px; border: 1.5px dashed rgba(var(--green-rgb),.4); position: relative; }
.arch-zone > small { position: absolute; top: -10px; left: 16px; background: var(--paper); padding: 0 8px; color: var(--green); font-weight: 600; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 13px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--paper); border: 1px solid var(--border-2); outline: none; transition: border-color .2s, box-shadow .2s;
}
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239a98b0' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.18); }
.form-success { display: none; padding: 16px 18px; border-radius: 14px; background: rgba(var(--green-rgb),.1); border: 1px solid rgba(var(--green-rgb),.3); color: var(--green); font-weight: 500; }
.form-success.show { display: block; }

.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 16px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; }
.info-item .icon svg { width: 20px; height: 20px; }
.info-item b { display: block; font-size: 15px; margin-bottom: 2px; }
.info-item span, .info-item a { color: var(--muted); font-size: 14.5px; }
.info-item a:hover { color: var(--accent-2); }
.map {
  margin-top: 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-2); height: 260px; position: relative;
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) sepia(.15); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 70px 0 34px; margin-top: 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) 1.4fr; gap: 40px; }
.footer-grid h4 { font-family: var(--font); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 18px; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-grid ul a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.footer-grid ul a:hover { color: var(--text); }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin: 18px 0 22px; max-width: 300px; }
.footer-addr { font-size: 14px; color: var(--muted); font-style: normal; line-height: 1.7; }
.footer-addr .jp { display: block; color: var(--faint); font-size: 13px; margin-top: 6px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: .2s; }
.socials a:hover { color: var(--text); border-color: var(--border-2); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--faint); font-size: 13.5px; }
.footer-bottom a:hover { color: var(--text); }
.footer-bottom .links { display: flex; gap: 22px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- Notice ---------- */
.notice { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 16px; background: rgba(251,191,36,.06); border: 1px solid rgba(251,191,36,.22); color: #6b4f0f; font-size: 14.5px; }
.notice svg { width: 22px; height: 22px; flex-shrink: 0; color: #b7791f; }

/* ---------- Legal ---------- */
.legal { max-width: 780px; margin: 0 auto; }
.legal h2 { font-size: 1.5rem; margin: 44px 0 14px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 20px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: span 3; }
}
@media (max-width: 980px) {
  section { padding: 84px 0; }
  .browser-body { grid-template-columns: 1fr; }
  .side-pane { border-left: 0; border-top: 1px solid var(--border); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .bento .b-4, .bento .b-2, .bento .b-3 { grid-column: span 6; }
  .split, .founder, .contact-grid, .credits { grid-template-columns: 1fr; gap: 44px; }
  .founder-photo { max-width: 460px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding-top: 110px; }
  .page-hero { padding-top: 110px; }
  .grid-2, .grid-3, .grid-4, .pricing { grid-template-columns: 1fr; }
  .page-pane { padding: 24px 20px; }
  .form-grid, .form { grid-template-columns: 1fr; }
  .tab:nth-child(n+3) { display: none; }
  .credit-packs { grid-template-columns: 1fr; }
  .credits { padding: 28px 20px; }
  .card { padding: 26px 22px; }
  .cta-band { padding: 56px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .floating-chip.c1 { right: 8px; } .floating-chip.c2 { left: 8px; }
  .arch-row { flex-direction: column; } .arch-arrow { transform: rotate(90deg); }
  }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Inline icon sizing ---------- */
.url-field svg { width: 13px; height: 13px; flex-shrink: 0; }
.eyebrow svg { width: 14px; height: 14px; }
.floating-chip svg { width: 18px; height: 18px; color: var(--accent-2); flex-shrink: 0; }

/* ---------- Japanese typography ---------- */
:root {
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
}
html[lang="ja"] body { line-height: 1.85; letter-spacing: .02em; line-break: strict; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4 {
  letter-spacing: .01em; line-height: 1.35; font-weight: 700; word-break: auto-phrase;
}
html[lang="ja"] h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
html[lang="ja"] .page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
html[lang="ja"] h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
html[lang="ja"] h3 { font-size: 1.18rem; }
html[lang="ja"] .lead, html[lang="ja"] blockquote, html[lang="ja"] .faq summary { word-break: auto-phrase; }
html[lang="ja"] .eyebrow { text-transform: none; letter-spacing: .1em; }
html[lang="ja"] .checklist li strong { display: block; margin-bottom: 2px; }
html[lang="ja"] .founder-quote { font-size: clamp(1.1rem, 1.9vw, 1.4rem); line-height: 1.8; }

html[lang="ja"] .price b { font-size: 42px; }

/* ---------- Supported browsers ---------- */
.browsers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.browser-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 20px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); text-align: center; position: relative;
}
.browser-card.live { border-color: rgba(var(--green-rgb),.4); background: var(--paper); }
.b-logo { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(var(--fg-rgb),.06); }
.b-logo img { width: 38px; height: 38px; }
/* coming soon: muted logo, recolors on hover */
.browser-card:not(.live) .b-logo img { filter: saturate(.45); opacity: .75; transition: filter .25s, opacity .25s; }
.browser-card:not(.live):hover .b-logo img { filter: none; opacity: 1; }
.browser-card:not(.live) b { color: var(--muted); }
.browser-card b { font-family: var(--display); font-size: 18px; }
.b-status { font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: var(--pill); background: var(--surface-2); border: 1px solid var(--border-2); color: var(--muted); }
.b-status.on { color: var(--green); background: rgba(var(--green-rgb),.1); border-color: rgba(var(--green-rgb),.3); }
@media (max-width: 760px) { .browsers { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Nav overflow (main.js adds these when items don't fit, e.g. after page translation) ---------- */
.nav.tight .nav-cta .btn-ghost { display: none; }
.nav.compact .nav-links { display: none; }
.nav.compact .nav-toggle { display: inline-flex; }
.nav.tiny .nav-cta .btn-primary { display: none; }
.nav.compact.open { background: var(--bg); border-bottom-color: var(--border); }
.nav.compact.open .nav-links {
  display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 60px; left: 0; right: 0;
  padding: 8px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
}
.nav.compact.open .nav-links a { padding: 12px 14px; font-size: 16px; }

/* ---------- Dark sections (forest) — add class="dark" to any section/footer ---------- */
.dark {
  --bg: #13241c; --bg-2: #0f1e17; --paper: #1a3027; --surface: #1a3027; --surface-2: #223a2f;
  --border: #2a4337; --border-2: #3a5748;
  --text: #edf2ec; --muted: #b2c1b7; --faint: #8a9c90;
  --accent: #e6c27a; --accent-2: #e6c27a; --accent-rgb: 230,194,122; --fg-rgb: 237,242,236;
  --green: #7cc29b; --green-rgb: 124,194,155;
  --grad: linear-gradient(#e6c27a, #e6c27a); --grad-soft: rgba(230,194,122,.12);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -18px rgba(0,0,0,.6);
  background: var(--bg); color: var(--text);
}
.dark .btn-primary { background: #e6c27a; color: #13241c; }
.dark .btn-primary:hover { background: #f0d394; }
.dark .btn-ghost { background: transparent; }
footer.dark { background: var(--bg-2); border-top: 0; }
.logo-light { display: none; }
.dark .logo-light { display: block; }
.dark .logo-img:not(.logo-light) { display: none; }
