/* ============================================================
   kitsune.opifex.software — the KITSUNE product page.
   Load order: washi.css (shared with opifex.software), then this.
   Pages are generated by tools/build_kitsune.py; edit copy there.
   ============================================================ */

/* ---- Header ---- */

.k-head .brand img { width: 32px; height: 32px; border-radius: 22.4%; box-shadow: inset 0 0 0 1px var(--edge); }
.k-head-end { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--paper-lo);
  box-shadow: inset 0 0 0 1.2px var(--edge);
}
.lang a {
  min-width: 40px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  color: var(--ink-2);
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--paper-hi); color: var(--kaki-text); box-shadow: var(--shadow-subtle); }

/* ---- Hero ---- */

.k-hero { position: relative; overflow: hidden; padding-block: var(--s-7) var(--s-8); }
.k-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--s-6) var(--s-7);
  align-items: center;
}
.k-hero-text { text-align: left; }
.k-title {
  margin: var(--s-2) 0 0;
  font-size: clamp(3.4rem, 2.2rem + 5vw, 5.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}
.k-title-brush { width: 120px; height: 16px; margin: var(--s-3) 0 0; }
.k-sub {
  margin: var(--s-4) 0 0;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: balance;
}
.k-lead { max-width: 28em; margin: var(--s-3) 0 0; font-size: 18px; color: var(--ink-2); text-wrap: pretty; }
.k-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-5); }
.k-cta .btn-wood { padding: 8px 26px 8px 12px; gap: 12px; }
.k-cta .btn-wood .btn-icon { box-shadow: 0 0 0 1.5px rgb(255 251 243 / 0.6); }
.k-cta-note { font-size: 14.5px; color: var(--ink-2); }

.k-hero-art {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1 / 1.06;
  margin-inline: auto;
}
.k-sun {
  position: absolute;
  top: 2%;
  right: 2%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--kaki-muted);
}
.k-hero-art .phone { position: absolute; top: 0; right: 9%; width: 52%; }
.k-hero-kitsu {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 47%;
  height: auto;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 6px 10px rgb(90 58 30 / 0.12));
}

.petal {
  position: absolute;
  top: 0;
  width: 11px;
  height: 15px;
  border-radius: 0 100% 0 100%;
  background: var(--petal);
  opacity: 0;
  pointer-events: none;
}
.petal:nth-child(1) { left: 12%; }
.petal:nth-child(2) { left: 38%; width: 9px; height: 12px; }
.petal:nth-child(3) { left: 61%; }
.petal:nth-child(4) { left: 83%; width: 8px; height: 11px; }
.petal:nth-child(5) { left: 94%; }

@media (prefers-reduced-motion: no-preference) {
  .k-hero-kitsu { animation: kitsu-breathe 4.2s ease-in-out infinite; }
  .petal { animation: petal-fall 14s linear infinite; }
  .petal:nth-child(1) { animation-delay: 0s; }
  .petal:nth-child(2) { animation-delay: 4.5s; animation-duration: 17s; }
  .petal:nth-child(3) { animation-delay: 8s; }
  .petal:nth-child(4) { animation-delay: 2.5s; animation-duration: 19s; }
  .petal:nth-child(5) { animation-delay: 11s; animation-duration: 16s; }
}

/* ---- Phone and watch ----
   The App Store captures are raw screens, so the device is drawn here.
   Radii are percentages of the element's own box; the island sits on the
   screen at the position of the real Dynamic Island. */

.phone {
  position: relative;
  padding: 7px;
  border-radius: 15% / 7%;
  background: linear-gradient(160deg, #4a4038, #1f1a16 40%, #2c2520);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.14), var(--shadow-lifted);
}
.phone .screen { position: relative; overflow: hidden; border-radius: 13% / 6%; background: var(--paper); }
.phone .screen img { display: block; width: 100%; height: auto; }
.phone .screen::after {
  content: "";
  position: absolute;
  top: 1.3%;
  left: 50%;
  width: 29%;
  height: 3.6%;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.watch {
  --case-w: 210px;
  position: relative;
  width: var(--case-w);
  padding: calc(var(--case-w) * 0.055);
  border-radius: 30% / 25%;
  background: linear-gradient(150deg, #8c8c91 0%, #55555a 22%, #2c2c2e 55%, #48484d 88%, #1d1d1f 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16), var(--shadow-lifted);
}
.watch img { display: block; width: 100%; height: auto; border-radius: 26% / 21%; background: #000; }
.watch::before,
.watch::after {
  content: "";
  position: absolute;
  left: 100%;
  margin-left: -1px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #9a9aa0, #5a5a5f 55%, #3a3a3d);
}
.watch::before { top: 27%; width: 5px; height: 13%; }
.watch::after  { top: 48%; width: 4px; height: 15%; opacity: 0.85; }

/* ---- Showcase: one screen, one line ---- */

.k-section { padding-block: var(--s-8); }
.k-section .display-2 { margin-bottom: var(--s-6); }

.k-shows { display: grid; gap: var(--s-5); }
.k-show {
  container-type: inline-size;
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-xl);
  background: var(--paper-hi);
  box-shadow: inset 0 0 0 1.2px var(--edge), var(--shadow-subtle);
}
.k-show-inner { display: grid; gap: var(--s-5) var(--s-7); align-items: center; }
@container (min-width: 42rem) {
  .k-show-inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .k-show:nth-child(even) .k-show-media { order: 2; }
}
.k-show-media { display: flex; justify-content: center; }
.k-show-media .phone { width: min(100%, 250px); }
.k-show h3 {
  max-width: 15em;
  margin: 0 0 var(--s-3);
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.95rem);
  font-weight: 800;
  line-height: 1.3;
  text-wrap: balance;
}
.k-show h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 7px;
  margin-top: 10px;
  background: var(--kaki);
  opacity: 0.75;
  -webkit-mask: var(--brush) center / 100% 100% no-repeat;
          mask: var(--brush) center / 100% 100% no-repeat;
}
.k-show p { max-width: 30em; margin: 0; color: var(--ink-2); }
.k-show p + p { margin-top: var(--s-2); }
.k-show .chip { margin-bottom: var(--s-3); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--paper-lo);
  box-shadow: inset 0 0 0 1.2px var(--edge);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.chips--kana li { font-family: var(--font-kana); }
.chips--matcha li { background: var(--matcha-soft); box-shadow: none; color: var(--matcha-text); }
.chips--matcha li::before { content: "✓\00A0"; font-weight: 800; }

/* Writing-check examples, set like the app's suggestion cards. */
.fixes { display: grid; gap: 8px; margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.fixes li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--paper-lo);
}
.fix-tag { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-2); min-width: 4.5em; }
.fix { font-family: var(--font-kana); font-size: 18px; }
.fix del { color: var(--beni); text-decoration-thickness: 1.5px; }
.fix ins { text-decoration: none; color: var(--matcha-text); font-weight: 700; }
.fix-arrow { margin-inline: 6px; color: var(--ink-3); }

/* Dictionary: one Chinese word, two Japanese ones. */
.nuance { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); max-width: 22rem; margin-top: var(--s-4); }
.nuance-card {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: var(--s-4) var(--s-3);
  border-radius: var(--r-lg);
  text-align: center;
}
.nuance-card--cold { background: var(--ai-soft); }
.nuance-card--hot { background: var(--beni-soft); }
.nuance-word { font-family: var(--font-kana); font-size: 34px; font-weight: 700; line-height: 1.2; }
.nuance-reading { font-family: var(--font-kana); font-size: 14px; color: var(--ink-2); }
.nuance-gloss { margin-top: 4px; font-size: 15px; font-weight: 700; }
.nuance-card--cold .nuance-gloss { color: var(--ai); }
.nuance-card--hot .nuance-gloss { color: var(--beni); }

.k-note { margin: var(--s-5) auto 0; max-width: 34em; font-size: 15.5px; text-align: center; color: var(--ink-2); }

/* ---- Kitsu ---- */

.k-kitsu-art { display: block; width: min(100%, 760px); height: auto; margin: 0 auto var(--s-6); }
.k-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.k-numbers li {
  padding: var(--s-5);
  border-radius: var(--r-xl);
  background: var(--paper-hi);
  box-shadow: inset 0 0 0 1.2px var(--edge), var(--shadow-subtle);
  text-align: center;
}
.k-num { display: block; font-size: 52px; font-weight: 800; line-height: 1.1; color: var(--kaki-text); font-variant-numeric: tabular-nums; }
.k-num-label { display: block; margin-top: var(--s-2); color: var(--ink-2); text-wrap: balance; }

/* ---- More ---- */

.k-more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.k-more > li {
  display: flex;
  flex-direction: column;
  padding: var(--s-5);
  border-radius: var(--r-xl);
  background: var(--paper-hi);
  box-shadow: inset 0 0 0 1.2px var(--edge), var(--shadow-subtle);
}
.k-more-art { display: grid; place-items: center; min-height: clamp(150px, 40vw, 230px); margin-bottom: var(--s-4); }
.k-more h3 { margin: 0 0 var(--s-2); font-size: 20px; font-weight: 800; }
.k-more p { margin: 0; color: var(--ink-2); }
.k-more .watch { --case-w: 170px; }
.k-more-kitsu { width: 128px; height: auto; }
.k-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.k-langs span {
  display: grid;
  place-items: center;
  min-width: 64px;
  height: 64px;
  padding: 0 12px;
  border-radius: var(--r-lg);
  background: var(--kaki-soft);
  color: var(--kaki-text);
  font-size: 20px;
  font-weight: 800;
}

/* ---- Privacy ---- */

.k-privacy { text-align: center; }
.k-privacy .chips { justify-content: center; margin-bottom: var(--s-4); }
.k-privacy .chips li { font-size: 16px; padding: 8px 16px; }
.k-privacy p { margin: 0 auto; max-width: 30em; color: var(--ink-2); }
.k-privacy a { color: var(--kaki-text); font-weight: 700; white-space: nowrap; }

/* ---- Closing ---- */

.k-end { text-align: center; }
.k-end-icon { display: block; width: 96px; height: 96px; margin: 0 auto var(--s-4); border-radius: 22.4%; box-shadow: inset 0 0 0 1px var(--edge), var(--shadow-lifted); }
.k-end h2 { margin: 0 0 var(--s-4); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); font-weight: 800; }
.k-end .k-cta { justify-content: center; }
.k-end p { margin: var(--s-4) 0 0; color: var(--ink-2); }
.k-end p a { color: var(--kaki-text); font-weight: 700; white-space: nowrap; }

/* ---- Footer ---- */

.k-credits { max-width: 44em; margin: var(--s-4) auto 0; font-size: 13.5px; line-height: 1.6; }

/* ---- 404 ---- */

.k-404 { padding-block: var(--s-7); text-align: center; }
.k-404 img { display: block; width: 160px; height: auto; margin: 0 auto var(--s-4); }
.k-404 .headline { color: var(--kaki-text); }
.k-404 p { margin: var(--s-3) auto var(--s-5); color: var(--ink-2); }

/* On a phone the brand and the language switch share one row; the section
   links go, since the page is one scroll. */
@media (max-width: 560px) {
  .k-head .site-nav { display: none; }
  .k-head .site-head-row { flex-wrap: nowrap; }
}
