@import url('/fonts/fonts.css');

:root {
  --paper: #f3ead8;
  --paper-deep: #e8dcc1;
  --paper-edge: #d6c8aa;
  --ink: #3a2e22;
  --ink-soft: #6b5d4d;
  --ink-faint: #a89a86;
  --margin-line: #b54e3e;
  --accent-1: #8a3a4a;
  --accent-1-deep: #722f3d;
  --accent-6: #889b6e;
  --accent-7: #4a7a76;

  --content: 48rem;

  --font-body-jp: 'Klee One', 'Shippori Mincho', serif;
  --font-body-en: 'Fraunces', serif;
  --font-display-jp: 'Zen Old Mincho', 'Shippori Mincho', serif;
  --font-display-en: 'Fraunces', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body-jp);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

:lang(en) {
  font-family: var(--font-body-en);
}

a {
  color: var(--accent-1);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

strong {
  font-weight: 600;
}

.nowrap {
  white-space: nowrap;
}

h1,
h2.section-title,
.hero .subhead,
.hero .hero-model,
.cyc-card h3,
.step h3 {
  text-wrap: balance;
  word-break: auto-phrase;
}

.section-lead,
.concept-origin,
.concept-relief,
.marquee-lead,
.trust-strip,
.feature-note,
.pro-frame,
.cyc-card p,
.step p,
.fc-desc,
.pro-fine,
.cta-note {
  text-wrap: pretty;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-edge);
}

.masthead-inner {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display-jp);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.005em;
}

.masthead-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.05rem;
  justify-content: flex-end;
  font-size: 0.92rem;
}

.masthead-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.masthead-nav a:hover {
  color: var(--accent-1);
}

.masthead-nav .nav-lang {
  padding-left: 1.05rem;
  border-left: 1px solid var(--paper-edge);
}

main {
  display: block;
}

section {
  padding: 3.5rem 1.5rem;
}

.wrap,
.wrap-narrow {
  max-width: var(--content);
  margin: 0 auto;
}

h2.section-title {
  font-family: var(--font-display-jp);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 0 0 0.4rem;
}

h2.section-title:lang(en) {
  font-family: var(--font-display-jp);
}

.section-lead {
  color: var(--ink-soft);
  margin: 0 0 2rem;
  max-width: 40rem;
}

.hero {
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display-jp);
  font-weight: 600;
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  line-height: 1.3;
  letter-spacing: 0.005em;
  margin: 0 auto 0.75rem;
  max-width: none;
}

.hero h1:lang(en) {
  font-family: var(--font-display-jp);
}

.hero .subhead {
  font-family: var(--font-display-jp);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink);
  margin: 0 auto 1.25rem;
}

.hero .subhead:lang(en) {
  font-family: var(--font-display-jp);
}

.hero .hero-model {
  font-family: var(--font-display-jp);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

.hero .hero-model strong {
  color: var(--accent-1);
  font-weight: 600;
}

.trust-strip {
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 40rem;
  margin: 1rem auto 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body-jp);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.8rem 1.5rem;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    border-color 120ms ease;
}

.btn:lang(en) {
  font-family: var(--font-body-en);
}

.btn-primary {
  background: var(--accent-1);
  color: var(--paper);
  border: 1px solid var(--accent-1-deep);
}

.btn-primary:hover {
  background: var(--accent-1-deep);
  text-decoration: none;
}

.cta-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 1.1rem auto 0;
  max-width: 34rem;
}

.cta-note.faint {
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.shot {
  margin: 2.5rem auto 0;
  max-width: var(--content);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--paper-edge);
  border-radius: 4px;
  background: var(--paper-deep);
}

.shot-caption {
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 0.85rem 0 0;
  line-height: 1.4;
}

.cycle-cards {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}

.cyc-card {
  flex: 1 1 0;
  border: 1px solid var(--paper-edge);
  border-radius: 5px;
  background: color-mix(in srgb, var(--paper-deep) 30%, var(--paper));
  padding: 0.9rem 1rem;
}

.cyc-card h3 {
  font-family: var(--font-display-jp);
  font-weight: 600;
  font-size: 1.12rem;
  margin: 0 0 0.35rem;
}

.cyc-card h3:lang(en) {
  font-family: var(--font-display-jp);
}

.cyc-card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.95rem;
}

.cyc-sep {
  flex: 0 0 auto;
  align-self: center;
  color: var(--margin-line);
  font-size: 1.25rem;
  line-height: 1;
}

.cyc-return {
  position: relative;
  height: 15px;
  margin: 0.3rem 14% 0;
  border: 1.6px solid var(--margin-line);
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.cyc-return::before {
  content: '';
  position: absolute;
  left: -5px;
  top: -5px;
  width: 9px;
  height: 9px;
  border-top: 1.6px solid var(--margin-line);
  border-left: 1.6px solid var(--margin-line);
  transform: rotate(45deg);
}

.cyc-caption {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

.cyc-caption strong {
  color: var(--margin-line);
  font-weight: 600;
}

.concept-origin {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 1.25rem 0 0;
  padding: 0.15rem 0 0.15rem 0.95rem;
  border-left: 3px solid var(--paper-edge);
}

.concept-relief {
  color: var(--ink-soft);
  margin: 0.75rem 0 0;
}

.who-for {
  text-align: center;
}

.who-for .section-lead {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.marquee-lead {
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0 0 1.75rem;
}

.pro-tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--ink);
  border: 1px solid var(--ink-faint);
  border-radius: 3px;
  padding: 0.02rem 0.4rem;
  margin-left: 0.15rem;
  white-space: nowrap;
}

.step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin: 0 0 2.5rem;
}

.step .num {
  font-family: var(--font-display-en);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--margin-line);
  line-height: 1;
}

.step h3 {
  font-family: var(--font-display-jp);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.2rem;
}

.step h3:lang(en) {
  font-family: var(--font-display-jp);
}

.step p {
  color: var(--ink-soft);
  margin: 0;
}

.step .shot {
  grid-column: 2;
  margin: 1rem 0 0;
  max-width: 38rem;
}

.section-tinted {
  background: color-mix(in srgb, var(--paper-deep) 45%, var(--paper));
}

.feature-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.8rem;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border: 1px solid var(--paper-edge);
  border-radius: 5px;
  background: color-mix(in srgb, var(--paper-deep) 30%, var(--paper));
  padding: 0.85rem 0.95rem;
}

.fc-icon {
  flex: 0 0 auto;
  color: var(--margin-line);
  margin-top: 0.1rem;
}

.fc-icon svg {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
}

.fc-term {
  font-family: var(--font-display-jp);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin: 0 0 0.15rem;
}

.fc-term:lang(en) {
  font-family: var(--font-display-jp);
}

.fc-desc {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.feature-note {
  margin: 1.75rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--margin-line);
  background: color-mix(in srgb, var(--paper-deep) 55%, transparent);
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.pro-card {
  border: 1px solid var(--paper-edge);
  border-radius: 6px;
  background: color-mix(in srgb, var(--paper-deep) 40%, var(--paper));
  padding: 1.75rem;
}

.pro-price {
  font-family: var(--font-display-jp);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.25rem;
}

.pro-founder {
  font-family: var(--font-display-jp);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--margin-line);
  margin: 0 0 0.75rem;
}

.pro-frame {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.pro-features-lead {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 1.5rem 0 0.25rem;
}

.pro-features {
  margin: 0;
  border-top: 1px solid var(--paper-edge);
}

.pro-feature {
  border-bottom: 1px solid var(--paper-edge);
}

.pro-feature > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem 0.15rem;
  color: var(--ink);
}

.pro-feature > summary::-webkit-details-marker {
  display: none;
}

.pro-feature > summary:hover {
  color: var(--accent-1);
}

.pro-check {
  flex: none;
  margin-top: 0.2em;
  display: inline-flex;
  color: var(--margin-line);
}

.pro-check svg {
  width: 1rem;
  height: 1rem;
}

.pro-feature-name {
  flex: 1;
}

.pro-feature > summary::after {
  content: '';
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.35em;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform 120ms ease;
}

.pro-feature[open] > summary::after {
  transform: rotate(-135deg);
}

@media (prefers-reduced-motion: reduce) {
  .pro-feature > summary::after {
    transition: none;
  }
}

.pro-feature-body {
  padding: 0 0.15rem 1.1rem 1.6rem;
  color: var(--ink-soft);
}

.pro-feature-body p {
  margin: 0 0 0.85rem;
}

.pro-feature-body .shot {
  margin: 0;
  max-width: 32rem;
}

.pro-feature-body .shot-tall {
  max-height: 26rem;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
}

.pro-feature-body .shot-tall::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3.5rem;
  background: linear-gradient(to bottom, rgba(239, 228, 207, 0), rgba(239, 228, 207, 1));
  pointer-events: none;
}

.pro-fine {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 1.25rem 0 0;
}

footer {
  margin-top: 2rem;
  padding: 2.5rem 1.5rem 3.5rem;
  border-top: 1px solid var(--paper-edge);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

footer .footer-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent-1);
}

.terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0 0 2.25rem;
}

.term {
  border: 1px solid var(--paper-edge);
  border-radius: 5px;
  background: color-mix(in srgb, var(--paper-deep) 30%, var(--paper));
  padding: 0.9rem 1rem;
}

.term dt {
  font-family: var(--font-display-jp);
  font-weight: 600;
  font-size: 1.12rem;
  margin: 0 0 0.35rem;
}

.term dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  text-wrap: pretty;
  word-break: auto-phrase;
}

.tl-figure {
  margin: 0;
}

.tl {
  display: grid;
  grid-template-columns: minmax(6.5rem, 9.5rem) repeat(3, minmax(0, 1fr)) minmax(4.75rem, 7rem);
  grid-template-rows: auto repeat(4, 2.75rem) auto;
  column-gap: 0.6rem;
  align-items: center;
  font-size: 0.92rem;
}

.tl-head {
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
  text-align: center;
  padding-bottom: 0.65rem;
}

.tl-head-goal {
  text-align: left;
}

.tl-head-next {
  color: var(--ink-faint);
  text-align: left;
}

.tl-frame {
  grid-row: 2 / 6;
  align-self: stretch;
  margin: -0.4rem 0;
  border: 1.5px solid color-mix(in srgb, var(--ink-soft) 55%, var(--paper));
  border-radius: 6px;
  background: var(--paper);
}

.tl-label {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.3;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  color: var(--ink);
  position: relative;
  z-index: 2;
}

.tl-label::before {
  content: '';
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--g);
}

.tl-band {
  grid-column: 2 / 5;
  height: 4px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--g) 32%, transparent);
  position: relative;
  z-index: 1;
}

.tl-cell,
.tl-tail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  position: relative;
  z-index: 2;
}

.tl-tail {
  grid-column: 5;
  justify-content: flex-start;
  color: var(--g);
  font-size: 0.85rem;
}

.tl i,
.tl-legend i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 3px;
  background: var(--g, var(--ink-soft));
  border: 1.5px solid var(--g, var(--ink-soft));
}

.tl i::after,
.tl-legend i::after {
  content: '';
  width: 70%;
  height: 70%;
  background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5 L5.8 10.4 L11.5 4.2' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5 L5.8 10.4 L11.5 4.2' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tl i.is-open,
.tl-legend i.is-open {
  background: transparent;
  border-color: var(--ink-soft);
}

.tl i.is-open::after,
.tl-legend i.is-open::after {
  content: none;
}

.tl-tail b {
  font-weight: 400;
  margin-left: 0.15rem;
}

.tl-done {
  font-family: var(--font-display-jp);
  font-weight: 600;
  color: var(--margin-line);
}

.tl-ongoing {
  white-space: nowrap;
}

.tl-foot {
  grid-row: 6;
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--margin-line);
  text-align: center;
  padding-top: 0.75rem;
}

.tl-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  margin: 1.1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.tl-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.tl-caption-text {
  flex-basis: 100%;
  text-wrap: pretty;
  word-break: auto-phrase;
}

.cyc-intro {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
  text-wrap: pretty;
}

.step-first {
  margin-top: 2.5rem;
}

.step .step-caption {
  grid-column: 2;
}

.marquee-pro {
  margin-top: 3rem;
}

@media (max-width: 640px) {
  .terms {
    grid-template-columns: 1fr;
  }
  .tl {
    grid-template-columns: 5rem repeat(3, minmax(0, 1fr)) 4.6rem;
    column-gap: 0.35rem;
    font-size: 0.8rem;
  }
  .tl-head,
  .tl-foot {
    font-size: 0.64rem;
  }
  .tl i {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 2px;
  }
  .tl-cell {
    gap: 0.2rem;
  }
  .tl-tail {
    font-size: 0.74rem;
    gap: 0.2rem;
  }
  .tl-ongoing b {
    display: none;
  }
  .tl-foot {
    grid-column: 2 / 5;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .cycle-cards {
    flex-direction: column;
  }
  .cyc-sep {
    transform: rotate(90deg);
  }
  .cyc-return {
    display: none;
  }
  .step {
    grid-template-columns: 2rem 1fr;
  }
  section {
    padding: 2.75rem 1.25rem;
  }
  .hero {
    padding: 3rem 1.25rem 2.5rem;
  }
}

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

.skin-shots {
  display: grid;
  gap: 1.5rem;
}

.pro-feature-body .skin-shots .shot {
  max-width: none;
}

.shot-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.shot-zoom:focus-visible,
.lightbox-close:focus-visible {
  outline: 2px solid var(--margin-line);
  outline-offset: 3px;
  border-radius: 4px;
}

.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  max-width: none;
  max-height: none;
}

.lightbox::backdrop {
  background: rgba(58, 46, 34, 0.82);
}

.lightbox-close {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-out;
}

.lightbox-close img {
  display: block;
  width: auto;
  height: auto;
  max-width: 96vw;
  max-height: 92vh;
  border: 1px solid var(--paper-edge);
  border-radius: 4px;
  background: var(--paper-deep);
}

.lightbox-label {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.15rem 0.7rem;
  border: 1px solid var(--paper-edge);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1.6;
}
