/* minilog landing page: dark only, like the app (zinc neutrals, blue primary, status colors as the motif).
   No external requests: system fonts, inline SVG icons, images from /img. */

:root {
  color-scheme: dark;
  --bg: oklch(14.1% 0.005 285.823); /* zinc-950 */
  --surface: oklch(21% 0.006 285.885); /* zinc-900 */
  --surface-2: oklch(27.4% 0.006 286.033); /* zinc-800 */
  --border: oklch(30% 0.008 286);
  --text: oklch(96.7% 0.001 286.375); /* zinc-100 */
  --muted: oklch(70.5% 0.015 286.067); /* zinc-400 */
  --primary: oklch(54.6% 0.245 262.881); /* blue-600, white text 4.5:1+ */
  --primary-hover: oklch(48.8% 0.243 264.376); /* blue-700 */
  --primary-soft: oklch(70.7% 0.165 254.624); /* blue-400, links and focus */

  /* Miniature statuses, as in the app (dark mode shades) */
  --s-new: oklch(70.5% 0.015 286.067); /* zinc-400 */
  --s-assembled: oklch(74.6% 0.16 232.661); /* sky-400 */
  --s-undercoated: oklch(70.2% 0.183 293.541); /* violet-400 */
  --s-wip: oklch(82.8% 0.189 84.429); /* amber-400 */
  --s-painted: oklch(75% 0.183 55.934); /* orange-400 */
  --s-based: oklch(84.1% 0.238 128.85); /* lime-400 */
  --s-done: oklch(79.2% 0.209 151.711); /* green-400 */
  --s-gradient: linear-gradient(
    90deg,
    var(--s-new),
    var(--s-assembled),
    var(--s-undercoated),
    var(--s-wip),
    var(--s-painted),
    var(--s-based),
    var(--s-done)
  );

  --radius: 20px;
  --gutter: 20px;
  --max: 1120px;
  font-family:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  overflow-x: hidden;
}

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

a {
  color: var(--primary-soft);
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--primary-soft);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

/* Japanese: break headings between phrases, not inside words */
:lang(ja) :is(h1, h2, h3, h4, .section-intro, .about p, .plan-note, .plan-same) {
  word-break: auto-phrase;
}

p {
  margin: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Status gradient as a thin accent at the very top */
.accent {
  height: 4px;
  background: var(--s-gradient);
}

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
}

.langs {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.langs a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

.langs a:hover {
  color: var(--text);
  background: var(--surface);
}

.langs a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--primary-hover);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Hero */
.hero .wrap {
  display: grid;
  gap: 40px;
  padding-top: 24px;
  padding-bottom: 32px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 8vw, 3.6rem);
  letter-spacing: -0.025em;
  font-weight: 800;
}

.hero .lead {
  margin-top: 16px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
}

.hero .cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

/* Phones: both hero buttons fill the row they land on */
.hero .cta .btn {
  flex: 1 1 auto;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.cta-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--s-done);
  flex: none;
}

/* Phone frame: keeps the 390×844 screenshot ratio even before the image loads */
.phone {
  position: relative;
  width: min(100%, 270px);
  margin: 0 auto;
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(160deg, oklch(37% 0.013 285.805), oklch(21% 0.006 285.885));
  box-shadow:
    0 0 0 1px oklch(44.2% 0.017 285.786 / 0.6),
    0 30px 60px -20px rgb(0 0 0 / 0.7);
}

.phone img {
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  border-radius: 35px;
  background: var(--surface);
}

.hero .phone {
  width: min(100%, 290px);
}

/* Glow behind the hero phone, in status colors */
.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  background: var(--s-gradient);
  filter: blur(70px);
  opacity: 0.22;
  border-radius: 50%;
}

/* Sections */
section {
  padding: 56px 0;
}

.section-title {
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-intro {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40em;
}

/* Status progression */
.steps-card {
  margin-top: 28px;
  padding: 20px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--s-gradient);
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 8px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid color-mix(in oklch, var(--c) 35%, transparent);
  font-weight: 600;
  font-size: 0.875rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c);
  color: oklch(14.1% 0.005 285.823);
  font-size: 0.8rem;
  font-weight: 800;
}

.steps li:last-child {
  grid-column: 1 / -1;
}

.steps .new {
  --c: var(--s-new);
}
.steps .assembled {
  --c: var(--s-assembled);
}
.steps .undercoated {
  --c: var(--s-undercoated);
}
.steps .wip {
  --c: var(--s-wip);
}
.steps .painted {
  --c: var(--s-painted);
}
.steps .based {
  --c: var(--s-based);
}
.steps .done {
  --c: var(--s-done);
}

/* Features: text and screenshot, alternating on wide screens */
.features {
  padding-top: 24px;
}

.feature {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
}

.feature + .feature {
  border-top: 1px solid var(--border);
}

.feature .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--k);
}

.feature .kicker::before {
  content: "";
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: var(--k);
}

.feature h2 {
  margin-top: 10px;
  font-size: clamp(1.5rem, 4.6vw, 2.1rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.feature p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 30em;
}

.feature:nth-of-type(1) {
  --k: var(--s-assembled);
}
.feature:nth-of-type(2) {
  --k: var(--s-undercoated);
}
.feature:nth-of-type(3) {
  --k: var(--s-wip);
}
.feature:nth-of-type(4) {
  --k: var(--s-painted);
}
.feature:nth-of-type(5) {
  --k: var(--s-based);
}

/* Extras grid */
.extras {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.extras li {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.extras svg {
  width: 28px;
  height: 28px;
  color: var(--primary-soft);
}

.extras h3 {
  margin-top: 14px;
  font-size: 1.1rem;
}

.extras p {
  margin-top: 6px;
  color: var(--muted);
}

/* Pricing */
.plans {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.plan-free {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--s-gradient) border-box;
  border: 2px solid transparent;
}

.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.plan h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--s-wip) 14%, transparent);
  color: var(--s-wip);
  font-size: 0.8rem;
  font-weight: 700;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: 14px;
}

.price .amount {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price .per,
.price-alt {
  color: var(--muted);
}

.price-alt {
  margin-top: 2px;
  font-size: 0.95rem;
}

.limits {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.limits li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.limits li:first-child {
  border-top: 1px solid var(--border);
}

.limits span {
  color: var(--muted);
}

.limits strong {
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plan h4 {
  margin: 22px 0 0;
  font-size: 0.95rem;
}

.included {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.included li {
  display: flex;
  gap: 10px;
}

.included svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.15em;
  color: var(--s-done);
}

.plan .btn {
  margin-top: 26px;
  align-self: flex-start;
}

.plan-same {
  margin: 20px 0 14px;
}

.plan-note {
  text-wrap: pretty;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.95rem;
}

/* Closing block */
.about {
  padding: 36px 24px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.about p {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34em;
}

.about .btn {
  margin-top: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Wider screens */
@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .steps li:last-child {
    grid-column: auto;
  }

  .extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero .cta .btn {
    flex: none;
  }

  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .plan {
    padding: 32px 28px;
  }
}

@media (min-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    padding-top: 48px;
    padding-bottom: 80px;
  }

  .hero .phone {
    width: 310px;
  }

  section {
    padding: 72px 0;
  }

  .steps-card {
    padding: 32px;
  }

  .steps {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
  }

  .steps li {
    flex-direction: column;
    text-align: center;
    padding: 14px 6px;
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 56px 0;
  }

  .feature:nth-of-type(even) .feature-text {
    order: 2;
  }

  .feature .phone {
    width: 280px;
  }

  .extras {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .plans {
    gap: 24px;
  }

  .plan {
    padding: 40px 36px;
  }

  .about {
    padding: 56px 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}

/* Legal pages (privacy, legal notice, terms): one readable column */
.legal-page {
  padding-top: 32px;
}

.legal {
  max-width: 44em;
}

.legal h1 {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.legal h2 {
  margin-top: 36px;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.legal p,
.legal ul {
  margin: 12px 0 0;
  text-wrap: pretty;
}

.legal ul {
  padding-left: 1.25em;
}

.legal li + li {
  margin-top: 8px;
}

.legal li::marker {
  color: var(--muted);
}

.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal .legal-lead {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1.05rem;
}

.legal-note {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

:lang(ja) .legal-note {
  font-style: normal;
}

/* Placeholders the operator must complete before going live: loud on purpose */
.todo {
  background: var(--s-wip);
  color: var(--bg);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 700;
}

.todo-block {
  margin-top: 12px;
  padding: 4px 14px 12px;
  border: 2px dashed var(--s-wip);
  border-radius: 12px;
}

.footer-links a[aria-current="page"] {
  color: var(--primary-soft);
}
