/* ============================================================
   Tokens
=============================================================== */
:root {
  --paper:      #F7F4EE;
  --paper-deep: #EFEAE0;
  --ink:        #1C1B19;
  --ink-soft:   #4A473F;
  --moss:       #2B5B52;
  --moss-deep:  #1E433C;
  --terracotta: #C8511B;
  --sand:       #8B8578;
  --line:       #DAD4C6;

  --font-display: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Zen Kaku Gothic New", sans-serif;
  --font-en: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius-sm: 4px;
  --radius-md: 10px;
  --shadow-paper: 0 2px 0 rgba(28,27,25,0.04), 0 12px 28px -16px rgba(28,27,25,0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3,
.hero-headline, .section-title,
.logo, .step-title, .compare-label,
.timeline-who, .problem-punchline {
  font-family: var(--font-display);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

.br-mobile { display: none; }
.br-pc { display: inline; }
@media (max-width: 720px) {
  .br-mobile { display: inline; }
  .br-pc { display: none; }
}

/* ============================================================
   Buttons
=============================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--moss);
  color: var(--paper);
}
.btn-primary:hover { background: var(--moss-deep); }

.btn-large { padding: 18px 40px; font-size: 1.05rem; }

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-small { padding: 10px 18px; font-size: 0.85rem; }

.btn-text {
  padding: 15px 8px;
  color: var(--ink-soft);
  font-weight: 500;
}
.btn-text:hover { color: var(--ink); }

/* ============================================================
   Header
=============================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,244,238,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--sand);
  margin-left: 4px;
}

/* ============================================================
   Section base
=============================================================== */
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--terracotta);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.section-eyebrow--light { color: #E8C9A8; }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 20px;
  letter-spacing: 0;
}
.section-title--light { color: var(--paper); }

.section-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 40px;
}

/* ============================================================
   Hero
=============================================================== */
.hero {
  padding: 25px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  padding-bottom: 56px;
  position: relative;
  z-index: 2;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--moss);
  letter-spacing: 0.03em;
  margin: 0 0 22px;
}
.hero-headline {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  margin: 0 0 24px;
  max-width: 16ch;
}
.hero-highlight {
  color: var(--moss);
  position: relative;
  white-space: nowrap;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 36px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-disclaimer {
  font-size: 0.82rem;
  color: var(--sand);
  margin: 0;
}

.hero-visual {
  position: relative;
  height: 340px;
  margin-top: -20px;
}
.paper-stack {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  height: 100%;
}
.paper-doc {
  position: absolute;
  left: 6%;
  top: 10px;
  width: 220px;
  height: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-paper);
  padding: 26px 22px;
  transform: rotate(-6deg);
  animation: doc-settle 1s ease both;
}
.doc-line {
  height: 8px;
  background: var(--line);
  border-radius: 2px;
  margin-bottom: 14px;
  width: 100%;
}
.doc-line--title { height: 12px; width: 70%; background: var(--sand); margin-bottom: 22px; }
.doc-line--short { width: 55%; }
.doc-fold {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 26px 26px;
  border-color: transparent transparent var(--paper-deep) transparent;
}

.chat-bubble {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 14px 18px;
  border-radius: 14px;
  max-width: 250px;
  box-shadow: var(--shadow-paper);
  animation: bubble-in 0.8s ease both;
}
.chat-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin-bottom: 4px;
}
.chat-bubble--q {
  right: 10%;
  top: 24px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-right-radius: 3px;
  animation-delay: 0.3s;
}
.chat-bubble--a {
  right: 16%;
  top: 172px;
  background: var(--moss);
  color: var(--paper);
  border-bottom-left-radius: 3px;
  animation-delay: 0.65s;
}

@keyframes doc-settle {
  from { opacity: 0; transform: rotate(-6deg) translateY(24px); }
  to   { opacity: 1; transform: rotate(-6deg) translateY(0); }
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 720px) {
  .hero-visual { height: 300px; }
  .paper-doc { left: 4%; width: 170px; height: 220px; padding: 18px 16px; }
  .chat-bubble { max-width: 190px; font-size: 0.75rem; right: 4%; }
  .chat-bubble--a { top: 150px; }
}

/* ============================================================
   Problem / Timeline
=============================================================== */
.problem { background: var(--paper-deep); }

.timeline {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.timeline-item {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-time {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--terracotta);
  width: 88px;
  flex-shrink: 0;
}
.timeline-msg { font-size: 1.02rem; }
.timeline-who {
  display: block;
  font-size: 0.78rem;
  color: var(--sand);
  margin-bottom: 3px;
}

.problem-punchline {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
  border-left: 4px solid var(--terracotta);
  padding-left: 18px;
  margin: 0 0 24px;
}
.problem-body {
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

/* ============================================================
   Solution / Chat demo
=============================================================== */
.demo-phone {
  max-width: 380px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-paper);
  padding: 18px 16px 24px;
  min-height: 460px;
}
.demo-phone-notch {
  width: 60px;
  height: 5px;
  background: var(--line);
  border-radius: 3px;
  margin: 0 auto 18px;
}
.demo-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 400px;
}
.demo-msg {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  padding: 12px 16px;
  border-radius: 14px;
  max-width: 84%;
  opacity: 0;
  animation: demo-in 0.5s ease forwards;
}
.demo-msg--guest {
  align-self: flex-end;
  background: var(--moss);
  color: var(--paper);
  border-bottom-right-radius: 3px;
}
.demo-msg--ai {
  align-self: flex-start;
  background: var(--paper-deep);
  color: var(--ink);
  border-bottom-left-radius: 3px;
}
.demo-msg-tag {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  opacity: 0.6;
  margin-bottom: 4px;
}
@keyframes demo-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   How it works / Steps
=============================================================== */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 8px;
  margin-top: 48px;
}
.step { text-align: left; }
.step-num {
  display: block;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--moss);
  margin: 18px 0 8px;
}
.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.step-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}
.step-arrow {
  color: var(--sand);
  font-size: 1.4rem;
  align-self: center;
  padding-top: 40px;
}

.step-visual {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-deep);
  border: 1px solid var(--line);
}
.mini-doc {
  width: 26px;
  height: 34px;
  background: #fff;
  border: 1.5px solid var(--sand);
  position: relative;
}
.mini-doc::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  right: 5px;
  height: 2px;
  background: var(--line);
  box-shadow:
    0 6px 0 var(--line),
    0 12px 0 var(--line);
}
.mini-doc::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 8px 8px;
  border-color: transparent transparent var(--paper-deep) transparent;
}
.mini-ai {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--paper);
  background: var(--moss);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-qr {
  width: 30px;
  height: 30px;
  background-color: #fff;
  background-image:
    linear-gradient(var(--ink) 0 100%),
    linear-gradient(var(--ink) 0 100%),
    linear-gradient(var(--ink) 0 100%),
    linear-gradient(90deg, var(--ink) 0 100%);
  background-repeat: no-repeat;
  background-size: 10px 10px, 10px 10px, 6px 6px, 6px 14px;
  background-position: 0 0, 100% 0, 0 100%, 100% 65%;
  border: 1.5px solid var(--sand);
}

@media (max-width: 800px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .step-arrow {
    display: none;
  }
  .step { padding-bottom: 8px; }
}

/* ============================================================
   Capabilities grid
=============================================================== */
.capabilities { background: var(--paper-deep); }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 32px;
}
.cap-item {
  background: var(--paper);
  padding: 20px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cap-icon { font-size: 1.15rem; }

.cap-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 60ch;
  border-left: 3px solid var(--sand);
  padding-left: 16px;
  margin: 0;
}

/* ============================================================
   Compare (before / after)
=============================================================== */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}
.compare-col {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
}
.compare-col--after {
  background: var(--moss);
  color: var(--paper);
  border-color: var(--moss);
}
.compare-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 20px;
  opacity: 0.7;
}
.compare-flow {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: flow;
}
.compare-flow li {
  counter-increment: flow;
  padding: 14px 0 14px 36px;
  position: relative;
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 1px dashed var(--line);
}
.compare-flow li:last-child { border-bottom: none; }
.compare-flow li::before {
  content: counter(flow);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--sand);
}
.compare-flow--after li::before { color: rgba(247,244,238,0.6); }
.compare-flow--after li { border-bottom-color: rgba(247,244,238,0.2); }

@media (max-width: 720px) {
  .compare-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Multilingual
=============================================================== */
.lang-demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}
.lang-demo-arrow {
  font-size: 1.4rem;
  color: var(--sand);
  text-align: center;
}
.lang-demo-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sand);
  margin-bottom: 8px;
}
.lang-demo-label--ai { margin-top: 14px; }
.lang-demo-box {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  border: 1px solid var(--line);
  background: #fff;
}
.lang-demo-box--source { color: var(--ink-soft); }
.lang-demo-box--q { background: var(--paper-deep); font-family: var(--font-mono); font-size: 0.85rem; }
.lang-demo-box--a { background: var(--moss); color: var(--paper); font-family: var(--font-mono); font-size: 0.85rem; border-color: var(--moss); }

.multilingual-note {
  font-size: 0.82rem;
  color: var(--sand);
  max-width: 60ch;
  margin: 0;
}

@media (max-width: 720px) {
  .lang-demo { grid-template-columns: 1fr; }
  .lang-demo-arrow { transform: rotate(90deg); }
}

/* ============================================================
   Target tags
=============================================================== */
.target { background: var(--paper-deep); }
.target-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.target-tag {
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
}

/* ============================================================
   Pricing
=============================================================== */
.pricing-note-box {
  border: 1px dashed var(--sand);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  max-width: 640px;
}
.pricing-note-box p {
  margin: 0;
  color: var(--ink-soft);
}

/* ============================================================
   Contact / final CTA
=============================================================== */
.contact {
  background: var(--ink);
  text-align: center;
}
.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-lead {
  color: #C9C6BC;
  max-width: 52ch;
  margin: 0 0 36px;
  font-size: 1.02rem;
}
.contact-disclaimer {
  color: #85826F;
  font-size: 0.8rem;
  margin: 22px 0 0;
  max-width: 50ch;
}

/* ============================================================
   Thanks page
=============================================================== */
.thanks {
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.thanks-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.thanks-lead {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin: 0 0 16px;
}
.thanks-lead--sub {
  font-size: 0.92rem;
  color: var(--sand);
  margin-bottom: 36px;
}

/* ============================================================
   Footer
=============================================================== */
.site-footer {
  background: var(--ink);
  border-top: 1px solid #3A382F;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  color: #85826F;
  font-size: 0.82rem;
}
.footer-inner a { text-decoration: underline; }
.footer-inner a:hover { color: var(--paper); }

@media (max-width: 480px) {
  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 420px) {
  .header-inner { gap: 10px; }
  .logo { font-size: 1rem; }
  .logo-sub { display: none; }
  .btn-small { padding: 9px 14px; font-size: 0.78rem; }
}

/* ============================================================
   Section title responsive tweaks
=============================================================== */
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .cap-grid { grid-template-columns: 1fr; }
}
