/* Manga Tint landing page
   Theme: a quiet café on a rainy day — monochrome manga, with a soft tint. */

:root {
  --ivory: #f7f3ea;
  --paper: #fffdf7;
  --ink: #1d1a17;
  --charcoal: #3a3631;
  --brown: #5c4a3a;
  --line: #d9d1c2;
  --accent: #b45313;
  --accent-soft: #fbeadb;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.3; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

img, video { max-width: 100%; height: auto; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 720px; }

.sr-only-svg { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* ---------- panels (manga-frame look) ---------- */
.panel {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 5px 5px 0 rgba(29, 26, 23, 0.10);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.65rem 1.3rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  transition: background-color 0.15s, color 0.15s, transform 0.1s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-small { padding: 0.35rem 0.85rem; font-size: 0.85rem; }
.btn:active { transform: translateY(1px); }

.text-link { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 234, 0.94);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(4px);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 3.25rem;
}
.wordmark {
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); text-decoration: none; margin-right: 0.5rem;
}
.site-nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--charcoal); text-decoration: none; font-size: 0.9rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }

.lang-switch { border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; display: flex; }
.lang-switch button {
  font: inherit; font-size: 0.8rem; font-weight: 600;
  border: 0; padding: 0.3rem 0.6rem; cursor: pointer;
  background: var(--paper); color: var(--charcoal);
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .header-actions .btn { white-space: nowrap; }
}

/* ---------- hero ---------- */
.hero { padding: 3rem 0 3.5rem; }
.hero-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 5fr 6fr; }
  .hero-copy { position: sticky; top: 5rem; }
}

.kicker {
  font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brown); margin-bottom: 1.2rem;
}
.kicker-sub { text-transform: none; letter-spacing: 0; color: var(--charcoal); opacity: 0.75; margin-left: 0.4rem; }
.lead { font-size: 1.05rem; color: var(--charcoal); max-width: 34em; }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.4rem 0 0.8rem; }
.hero-note { color: var(--brown); font-size: 0.9rem; font-style: italic; font-family: var(--serif); }
.store-links { list-style: none; padding: 0; margin: 0.25rem 0 0; display: flex; gap: 1rem; font-size: 0.85rem; }
.store-links a { color: var(--charcoal); }

/* ---------- comparison demo ---------- */
.demo-title { margin-bottom: 0.2em; }
.demo-hint { color: var(--charcoal); font-size: 0.92rem; margin-bottom: 1rem; }

.compare {
  position: relative;
  overflow: hidden;
  --pos: 50%;
}
.compare-base { width: 100%; height: auto; }
.compare-top {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}
.compare-top img { width: 100%; height: 100%; }
.compare-top img.is-tinted { filter: url(#mt-map); }

.compare-divider {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos);
  width: 3px;
  transform: translateX(-50%);
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(29, 26, 23, 0.55);
  pointer-events: none;
}
.compare-handle {
  position: absolute; top: 50%; left: var(--pos);
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 rgba(29, 26, 23, 0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; letter-spacing: 0.1em; color: var(--ink);
  pointer-events: none;
}
.compare-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
/* draw focus on the visible handle when the invisible range has keyboard focus */
.compare:has(.compare-range:focus-visible) .compare-handle {
  outline: 3px solid var(--accent); outline-offset: 3px;
}

.compare-tag {
  position: absolute; top: 0.6rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  padding: 0.15rem 0.55rem; border-radius: 3px;
  pointer-events: none;
}
.tag-original { left: 0.6rem; }
.tag-tinted { right: 0.6rem; background: var(--accent); }

/* ---------- chips ---------- */
.chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.1rem;
  align-items: center;
}
.chip {
  width: 52px; height: 44px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  position: relative;
  background-color: var(--paper);
}
.chip:hover { transform: translateY(-2px); transition: transform 0.1s; }
.chip[aria-pressed="true"] {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.chip[aria-pressed="true"]::after {
  content: "\2713";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem; font-weight: 700;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
}
.chip-original {
  width: auto; padding: 0 0.9rem;
  font: inherit; font-size: 0.85rem; font-weight: 600;
  color: var(--ink); background: var(--paper);
}
.chip-original[aria-pressed="true"]::after { content: none; }
.demo-footnote { font-size: 0.8rem; color: var(--brown); margin-top: 0.8rem; }

/* ---------- sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--paper); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section-lead { color: var(--charcoal); font-size: 1.02rem; max-width: 40em; }

/* ---------- how it works ---------- */
.steps {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 1.4rem 1.4rem 1rem; }
.step-num {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
  color: var(--accent);
  display: inline-block; margin-bottom: 0.3rem;
}
.step p { color: var(--charcoal); font-size: 0.95rem; margin: 0; }

/* ---------- video ---------- */
.video-wrap { position: relative; margin-top: 1.5rem; overflow: hidden; }
.video-wrap video { width: 100%; aspect-ratio: 16 / 9; background: var(--charcoal); }
.video-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink);
  font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 3px 3px 0 rgba(29, 26, 23, 0.25);
}
.video-play:hover { background: var(--accent-soft); }

/* ---------- about ---------- */
.about-list { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--charcoal); }
.about-list li { margin-bottom: 0.5rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.8rem; margin-top: 1.5rem; }
.faq-list details { padding: 0; }
.faq-list summary {
  cursor: pointer; font-weight: 600;
  padding: 0.9rem 1.1rem;
  list-style-position: inside;
}
.faq-list summary:hover { background: var(--accent-soft); }
.faq-list details p { padding: 0 1.1rem 1rem; margin: 0; color: var(--charcoal); }
.faq-more { margin-top: 1.5rem; }

/* ---------- final CTA ---------- */
.final-cta { padding-bottom: 4.5rem; }
.final-grid {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .final-grid { grid-template-columns: 3fr 1fr; } }
.final-character {
  width: 200px; justify-self: center;
  border: 2px solid var(--ink); border-radius: 50%;
  box-shadow: 5px 5px 0 rgba(29, 26, 23, 0.10);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--paper);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; margin: 0; }
.footer-sub { color: var(--brown); margin: 0.15rem 0 0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a { color: var(--charcoal); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.copyright { color: var(--brown); margin: 2rem 0 0; font-size: 0.8rem; }
