/* ============ mimikatsu landing — 夜读暖灯 (dusk-lamp), ported from src/content/sidebar.css ============ */
:root {
  /* dusk base surfaces (same stops as the sidebar) */
  --mk-bg: linear-gradient(180deg, #4b423b 0%, #423a34 60%, #3c332e 100%);
  --mk-bg-elev: linear-gradient(180deg, #514740, #453c36);
  --mk-page: #3c332e;
  /* text */
  --mk-ink: #f2e8db;
  --mk-ink-soft: #efe5d7;
  /* mk-zh / mk-muted are lightened a notch past the sidebar's raw token values:
     on the extension panel these sit on card/inset surfaces with extra highlight,
     but here they run straight over the flat page background, so the sidebar's
     exact values read under 4.5:1 contrast at body-text sizes. */
  --mk-zh: #b3a08b;
  --mk-muted: #a89e93;
  --mk-faint: #8a8175;
  --mk-label: #cbb8a4;
  /* hairlines + dim surfaces */
  --mk-line: rgba(255, 240, 220, 0.1);
  --mk-line-2: rgba(255, 240, 220, 0.05);
  --mk-surface: rgba(255, 244, 230, 0.08);
  --mk-surface-card: rgba(255, 244, 230, 0.035);
  --mk-surface-2: rgba(255, 244, 230, 0.09);
  --mk-inset: inset 0 1px 1px rgba(255, 240, 220, 0.08), inset 0 -1px 2px rgba(0, 0, 0, 0.25);
  /* warm lamp (lit state) */
  --mk-lamp: radial-gradient(ellipse 140% 150% at 50% 30%, #fff6e2 0%, #ffdca8 46%, #f7b877 100%);
  --mk-lamp-circle: radial-gradient(circle at 50% 34%, #fff7e4 0%, #ffdca8 52%, #f7b877 100%);
  --mk-glow-sm: 0 0 8px rgba(255, 190, 110, 0.9), 0 0 18px rgba(255, 165, 90, 0.45);
  --mk-glow: 0 0 10px rgba(255, 190, 110, 0.85), 0 0 26px rgba(255, 165, 90, 0.5);
  --mk-lit-hi: #ffe8ad;
  --mk-lit-lo: #ffb659;
  --mk-lit-border: rgba(255, 205, 130, 0.55);
  /* coral accent */
  --mk-coral: #e8623f;
  --mk-coral-soft: rgba(232, 98, 63, 0.16);
  /* logo mark */
  --mk-mark-body: #f2e8db;
  --mk-mark-ear: #e8623f;
  --mk-mark-body-lit: #fff3e6;
  --mk-mark-ear-lit: #ff7a4d;
  /* fonts */
  --jp: "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --ja: "Zen Kaku Gothic New", "Noto Sans JP", "Noto Sans SC", system-ui, sans-serif;
  --cn: "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --quicksand: "Quicksand", var(--jp);
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--cn);
  color: var(--mk-ink);
  background: var(--mk-page);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: var(--mk-bg);
}

main,
.nav,
.foot {
  position: relative;
  z-index: 1;
}

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

em {
  font-style: normal;
  color: var(--mk-coral);
}

.mk-mark-ear {
  fill: var(--mk-mark-ear);
}
.mk-mark-body {
  stroke: var(--mk-mark-body);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.78rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.btn--primary {
  background: linear-gradient(145deg, var(--mk-bg-elev));
  background: linear-gradient(145deg, #56493f, #453c36);
  color: var(--mk-ink);
  border: 1px solid var(--mk-line);
  box-shadow: var(--mk-inset);
}
.btn--primary:hover {
  background: var(--mk-lamp-circle);
  border-color: var(--mk-lit-border);
  color: #5a2b10;
  box-shadow: var(--mk-glow);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--mk-label);
  border-color: var(--mk-line);
}
.btn--ghost:hover {
  border-color: var(--mk-lit-border);
  color: var(--mk-ink);
  transform: translateY(-2px);
}
.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__mark {
  width: 26px;
  height: 26px;
  display: block;
}
.nav__wordmark {
  font-family: var(--quicksand);
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--mk-ink);
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
  font-size: 0.95rem;
  color: var(--mk-label);
}
.nav__links a:hover {
  color: var(--mk-ink);
}
.nav__lang {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--mk-line);
  color: var(--mk-label);
}
.nav__lang:hover {
  border-color: var(--mk-lit-border);
  color: var(--mk-ink);
}
.nav__cta {
  padding: 0.55rem 1.05rem;
  font-size: 0.88rem;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}
.hero__title {
  font-family: var(--jp);
  font-weight: 900;
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  line-height: 1.22;
  letter-spacing: 0.01em;
  margin: 0 0 1.3rem;
  color: var(--mk-ink);
}
.hero__sub {
  font-size: 1.1rem;
  color: var(--mk-zh);
  max-width: 32rem;
  margin: 0 0 2rem;
}
.hero__cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ---------- hero visual: real product screenshot ---------- */
.hero__shot {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7), var(--mk-inset);
  border: 1px solid var(--mk-line);
}
.hero__shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- section scaffolding ---------- */
.eyebrow {
  font-family: var(--jp);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--mk-coral);
  margin: 0 0 0.6rem;
}
.accent {
  color: var(--mk-coral);
}
.nowrap {
  white-space: nowrap;
}
.section__title {
  font-family: var(--jp);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.6rem;
  line-height: 1.3;
  color: var(--mk-ink);
}
.section__sub {
  font-size: 0.98rem;
  color: var(--mk-muted);
  margin: 0 0 2rem;
}

/* ---------- features ---------- */
.features {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.cluster {
  margin-bottom: 2.6rem;
}
.cluster__title {
  font-family: var(--jp);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--mk-ink);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cluster__title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mk-coral);
  box-shadow: 0 0 8px rgba(232, 98, 63, 0.6);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--mk-surface-card);
  border: 1px solid var(--mk-line);
  border-radius: 16px;
  padding: 1.4rem 1.3rem;
  transition: transform 0.18s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--mk-lit-border);
  box-shadow: var(--mk-glow-sm);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: var(--mk-surface);
  box-shadow: var(--mk-inset);
  color: var(--mk-label);
}
.card__icon svg {
  width: 17px;
  height: 17px;
}
.card__icon--emoji {
  font-size: 1.05rem;
}
.card:hover .card__icon {
  background: var(--mk-lamp-circle);
  box-shadow: var(--mk-glow-sm);
  color: #6b3d14;
}
.card__title {
  font-family: var(--jp);
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 0.5rem;
  color: var(--mk-ink);
}
.card__body {
  margin: 0;
  color: var(--mk-zh);
  font-size: 0.92rem;
}

/* ---------- how ---------- */
.how {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}
.step {
  position: relative;
  padding: 1.4rem 1.3rem;
  border-top: 2px solid var(--mk-coral);
  background: transparent;
}
.step__no {
  font-family: var(--jp);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--mk-coral);
  display: block;
  margin-bottom: 0.5rem;
}
.step__title {
  font-family: var(--jp);
  font-size: 1.08rem;
  margin: 0 0 0.4rem;
  color: var(--mk-ink);
}
.step__body {
  margin: 0;
  color: var(--mk-zh);
  font-size: 0.92rem;
}

/* ---------- pricing ---------- */
.pricing {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.plan {
  position: relative;
  background: var(--mk-surface-card);
  border: 1px solid var(--mk-line);
  border-radius: 20px;
  padding: 2rem 1.8rem;
}
.plan--pro {
  border-color: var(--mk-lit-border);
  box-shadow: var(--mk-glow-sm);
}
.plan__badge {
  position: absolute;
  top: -0.7rem;
  right: 1.6rem;
  background: var(--mk-lamp-circle);
  color: #6b3d14;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.plan__name {
  font-family: var(--jp);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
  color: var(--mk-ink);
}
.plan__price {
  color: var(--mk-zh);
  margin: 0 0 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.plan__num {
  font-family: var(--jp);
  font-weight: 900;
  font-size: 2rem;
  color: var(--mk-ink);
}
.plan__per {
  font-size: 1rem;
  color: var(--mk-zh);
}
.plan__was {
  text-decoration: line-through;
  color: var(--mk-muted);
  font-size: 0.92rem;
}
.plan__sub {
  margin: 0 0 1.3rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--mk-coral);
}
.plan__list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.plan__list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--mk-zh);
  font-size: 0.96rem;
}
.plan__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mk-coral);
  font-weight: 700;
}
.plan__list b {
  color: var(--mk-ink);
}
.plan__cta {
  width: 100%;
}
.plan__note {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: var(--mk-muted);
}

/* ---------- closing ---------- */
.closing {
  max-width: 1040px;
  margin: 1rem auto 0;
  padding: 3.5rem 1.5rem 5rem;
  text-align: center;
}
.closing__title {
  font-family: var(--jp);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 2rem;
  line-height: 1.4;
  color: var(--mk-ink);
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--mk-line);
  background: rgba(0, 0, 0, 0.12);
}
.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.foot__brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.foot__logo {
  width: 30px;
  height: 30px;
  display: block;
}
.foot__tag {
  font-family: var(--cn);
  font-size: 0.9rem;
  color: var(--mk-zh);
  margin: 0;
}
.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  font-size: 0.92rem;
  color: var(--mk-label);
}
.foot__nav a:hover {
  color: var(--mk-coral);
}
.foot__legal {
  font-size: 0.8rem;
  color: var(--mk-muted);
  margin: 0;
  text-align: right;
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 2.5rem;
  }
  .hero__shot {
    order: -1;
  }
  .grid,
  .grid--3,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .nav__links {
    display: none;
  }
  .foot {
    grid-template-columns: 1fr;
  }
  .foot__legal {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .nav__cta {
    display: none;
  }
  .grid,
  .grid--3,
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- auth (login / register) ---------- */
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 960px;
  margin: 0 auto;
  min-height: 100vh;
  align-items: center;
  padding: 3rem 1.5rem;
}
.auth__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.auth__mark {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 18px rgba(255, 165, 90, 0.4));
}
.auth__brand h1 {
  font-family: var(--jp);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--mk-ink);
  margin: 0;
}
.auth__brand p {
  color: var(--mk-zh);
  margin: 0;
  font-size: 1rem;
}
.auth__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.auth__perks li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--mk-label);
  font-size: 0.95rem;
}
.auth__perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mk-coral);
  font-weight: 700;
}
.auth__card {
  background: var(--mk-surface-card);
  border: 1px solid var(--mk-line);
  border-radius: 20px;
  padding: 2rem;
}
.auth__google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--mk-line);
  background: var(--mk-surface);
  color: var(--mk-ink);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.auth__google:hover {
  background: var(--mk-lamp-circle);
  border-color: var(--mk-lit-border);
  box-shadow: var(--mk-glow-sm);
  color: #6b3d14;
}
.auth__divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.3rem 0;
  color: var(--mk-muted);
  font-size: 0.8rem;
}
.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--mk-line);
}
.auth__field {
  display: block;
  margin-bottom: 1rem;
}
.auth__field span {
  display: block;
  font-size: 0.82rem;
  color: var(--mk-label);
  margin-bottom: 0.4rem;
}
.auth__field input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--mk-line);
  background: var(--mk-surface-2);
  color: var(--mk-ink);
  font-size: 0.95rem;
  font-family: inherit;
}
.auth__field input:focus {
  outline: none;
  border-color: var(--mk-lit-border);
}
.auth__submit {
  width: 100%;
  border: none;
  margin-top: 0.4rem;
}
.auth__links {
  display: flex;
  justify-content: space-between;
  margin-top: 1.1rem;
  font-size: 0.86rem;
  color: var(--mk-label);
}
.auth__links a:hover {
  color: var(--mk-coral);
}
.auth__back {
  position: fixed;
  top: 1.3rem;
  left: 1.5rem;
  font-size: 0.88rem;
  color: var(--mk-label);
  display: flex;
  align-items: center;
  gap: 6px;
}
.auth__back:hover {
  color: var(--mk-ink);
}

@media (max-width: 780px) {
  .auth {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 4.5rem;
  }
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  translate: -50% 1rem;
  z-index: 50;
  background: var(--mk-bg-elev);
  color: var(--mk-ink);
  border: 1px solid var(--mk-line);
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-size: 0.92rem;
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, translate 0.2s ease;
}
.toast--show {
  opacity: 1;
  translate: -50% 0;
}

/* ---------- a11y ---------- */
:focus-visible {
  outline: 2px solid var(--mk-coral);
  outline-offset: 3px;
  border-radius: 4px;
}

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