/* Inter variable 400–800 and Noto Serif variable 600–800 (SIL OFL 1.1), self-hosted. Paths are relative to dist/theme.css. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/*
 * Lịch Việt — the product site of a Vietnamese lunar calendar app.
 *
 * The palette is the app's (LichViet docs/SPEC.md): red #A8191E, deep red
 * #7E1014, gold #D9A441, soft gold #F3E3BF, cream #FBF4E8, card #FFF9EF, ink
 * #24160F. Dark mode is the app's too: #1C1411 ground, #2A1F1A cards, #F6EBDD
 * text, red and gold kept. The red bands (hero, steps, CTA) stay red in both.
 */

/* -------------------------------------------------------------------------
 * Colour modes: light base, OS dark unless light was chosen, explicit dark.
 * The two dark blocks must match — build.mjs refuses to build when they drift.
 * ---------------------------------------------------------------------- */

:root {
  --ky-accent: #a8191e;
  --ky-on-accent: #fff9ef;
  --ky-red: #a8191e;
  --ky-red-deep: #7e1014;
  --ky-gold: #d9a441;
  --ky-gold-bright: #f3cf7a;
  --ky-cream-on-red: #fbecd0;

  --ky-sans: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ky-serif: "Hiragino Mincho ProN", "Noto Serif JP", "Yu Mincho", YuMincho, "Noto Serif CJK JP", "Source Han Serif JP", Georgia, "Times New Roman", serif;

  --ky-radius-sm: 10px;
  --ky-radius: 18px;
  --ky-radius-lg: 28px;
  --ky-pill: 999px;
  --ky-band: clamp(56px, 7vw, 104px);
  --ky-gutter: 20px;

  --ky-bg: #fbf4e8;
  --ky-card: #fff9ef;
  --ky-tint: #f6ead3;
  --ky-gold-soft: #f3e3bf;
  --ky-line: #ead3a6;
  --ky-ink: #24160f;
  --ky-muted: #6b5547;
  --ky-heading: #7e1014;
  --ky-link: #a8191e;
  --ky-good: #2f7d3a;
  --ky-shadow: 0 30px 70px -32px rgba(74, 20, 10, 0.5);
  --ky-shadow-sm: 0 12px 28px -18px rgba(74, 20, 10, 0.45);
  --ky-wave-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='0' r='19' fill='%23FFF9EF'/%3E%3Ccircle cx='20' cy='0' r='19' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='0' r='13' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='0' r='7' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='10' r='19' fill='%23FFF9EF'/%3E%3Ccircle cx='0' cy='10' r='19' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='10' r='13' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='10' r='7' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='10' r='19' fill='%23FFF9EF'/%3E%3Ccircle cx='40' cy='10' r='19' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='10' r='13' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='10' r='7' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='20' r='19' fill='%23FFF9EF'/%3E%3Ccircle cx='20' cy='20' r='19' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='20' r='13' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='20' r='7' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='30' r='19' fill='%23FFF9EF'/%3E%3Ccircle cx='0' cy='30' r='19' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='30' r='13' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='30' r='7' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='30' r='19' fill='%23FFF9EF'/%3E%3Ccircle cx='40' cy='30' r='19' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='30' r='13' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='30' r='7' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='40' r='19' fill='%23FFF9EF'/%3E%3Ccircle cx='20' cy='40' r='19' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='40' r='13' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='40' r='7' fill='none' stroke='%23EBD3A0' stroke-width='1.1'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ky-bg: #1c1411;
    --ky-card: #2a1f1a;
    --ky-tint: #231a16;
    --ky-gold-soft: #3b2b1d;
    --ky-line: #4b3729;
    --ky-ink: #f6ebdd;
    --ky-muted: #c7b2a0;
    --ky-heading: #ecc173;
    --ky-link: #f0a38f;
    --ky-good: #7fcf8a;
    --ky-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
    --ky-shadow-sm: 0 12px 28px -16px rgba(0, 0, 0, 0.7);
    --ky-wave-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='0' r='19' fill='%232A1F1A'/%3E%3Ccircle cx='20' cy='0' r='19' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='0' r='13' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='0' r='7' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='10' r='19' fill='%232A1F1A'/%3E%3Ccircle cx='0' cy='10' r='19' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='10' r='13' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='10' r='7' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='10' r='19' fill='%232A1F1A'/%3E%3Ccircle cx='40' cy='10' r='19' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='10' r='13' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='10' r='7' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='20' r='19' fill='%232A1F1A'/%3E%3Ccircle cx='20' cy='20' r='19' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='20' r='13' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='20' r='7' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='30' r='19' fill='%232A1F1A'/%3E%3Ccircle cx='0' cy='30' r='19' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='30' r='13' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='30' r='7' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='30' r='19' fill='%232A1F1A'/%3E%3Ccircle cx='40' cy='30' r='19' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='30' r='13' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='30' r='7' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='40' r='19' fill='%232A1F1A'/%3E%3Ccircle cx='20' cy='40' r='19' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='40' r='13' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='40' r='7' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3C/svg%3E");
  }
}

:root[data-theme="dark"] {
  --ky-bg: #1c1411;
  --ky-card: #2a1f1a;
  --ky-tint: #231a16;
  --ky-gold-soft: #3b2b1d;
  --ky-line: #4b3729;
  --ky-ink: #f6ebdd;
  --ky-muted: #c7b2a0;
  --ky-heading: #ecc173;
  --ky-link: #f0a38f;
  --ky-good: #7fcf8a;
  --ky-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --ky-shadow-sm: 0 12px 28px -16px rgba(0, 0, 0, 0.7);
  --ky-wave-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='0' r='19' fill='%232A1F1A'/%3E%3Ccircle cx='20' cy='0' r='19' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='0' r='13' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='0' r='7' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='10' r='19' fill='%232A1F1A'/%3E%3Ccircle cx='0' cy='10' r='19' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='10' r='13' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='10' r='7' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='10' r='19' fill='%232A1F1A'/%3E%3Ccircle cx='40' cy='10' r='19' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='10' r='13' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='10' r='7' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='20' r='19' fill='%232A1F1A'/%3E%3Ccircle cx='20' cy='20' r='19' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='20' r='13' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='20' r='7' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='30' r='19' fill='%232A1F1A'/%3E%3Ccircle cx='0' cy='30' r='19' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='30' r='13' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='30' r='7' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='30' r='19' fill='%232A1F1A'/%3E%3Ccircle cx='40' cy='30' r='19' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='30' r='13' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='30' r='7' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='40' r='19' fill='%232A1F1A'/%3E%3Ccircle cx='20' cy='40' r='19' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='40' r='13' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='40' r='7' fill='none' stroke='%235A4230' stroke-width='1.1'/%3E%3C/svg%3E");
}

/* ---- Base ---- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--ky-bg);
  color: var(--ky-ink);
}

.ky {
  min-height: 100vh;
  background: var(--ky-bg);
  color: var(--ky-ink);
  font-family: var(--ky-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

.ky a {
  color: inherit;
}

.ky img {
  max-width: 100%;
}

.ky h1,
.ky h2,
.ky h3 {
  margin: 0;
  font-family: var(--ky-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ky__container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--ky-gutter);
}

.ky__measure {
  max-width: 800px;
}

.ky__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ky__skip {
  position: absolute;
  left: -9999px;
}

.ky__skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--ky-radius-sm);
  background: var(--ky-accent);
  color: var(--ky-on-accent);
}

.ky__icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.ky__eyebrow {
  margin: 0 0 12px;
  color: var(--ky-link);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ky__eyebrow--light {
  color: var(--ky-gold-bright);
}

.ky__lead {
  margin: 16px 0 0;
  color: var(--ky-muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
}

.ky__note {
  margin: 32px auto 0;
  max-width: 720px;
  color: var(--ky-muted);
  font-size: 15px;
  text-align: center;
}

.ky__note--light {
  color: rgba(251, 236, 208, 0.82);
}

/* Gold rule – lotus – gold rule */

.ky__rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
  color: var(--ky-gold);
}

.ky__rule i {
  width: 64px;
  height: 2px;
  border-radius: 2px;
  background: var(--ky-gold);
}

.ky__rule-lotus {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ky__rule--light {
  justify-content: center;
  color: var(--ky-gold-bright);
}

.ky__rule--light i {
  background: var(--ky-gold-bright);
}

/* ---- Buttons ---- */

.ky__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 16px;
  background: var(--ky-accent);
  color: var(--ky-on-accent) !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 26px -14px var(--ky-accent);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.ky__button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.ky__button--small {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 15px;
}

.ky__button--ghost {
  background: var(--ky-gold-soft);
  color: var(--ky-heading) !important;
  box-shadow: inset 0 0 0 1.5px var(--ky-gold);
}

.ky__text-link {
  color: var(--ky-link) !important;
  font-weight: 700;
  text-decoration: none;
}

.ky__text-link:hover {
  text-decoration: underline;
}

.ky__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--ky-pill);
  background: var(--ky-gold-soft);
  box-shadow: inset 0 0 0 1.5px var(--ky-gold);
  color: var(--ky-heading);
  font-size: 17px;
  cursor: pointer;
}

/* ---- Store badges: black in both modes, like the official ones ---- */

.ky__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ky__store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  height: 56px;
  padding: 0 18px 0 14px;
  border-radius: 14px;
  background: #150b07;
  box-shadow: inset 0 0 0 1px rgba(243, 207, 122, 0.45);
  color: #fff !important;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.ky__store:hover {
  transform: translateY(-1px);
}

.ky__store svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex: none;
}

.ky__store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ky__store small {
  font-size: 11px;
  opacity: 0.8;
}

.ky__store strong {
  white-space: nowrap;
  font-family: var(--ky-sans);
  font-size: 18px;
  font-weight: 650;
}

.ky__store--soon {
  opacity: 0.72;
  cursor: default;
}

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

.ky__header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ky-bg) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--ky-line);
}

.ky__header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 70px;
}

.ky__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.ky__brand img,
.ky__brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex: none;
}

.ky__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ky-red);
  color: var(--ky-gold-bright);
}

.ky__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ky__brand-text strong {
  color: var(--ky-heading);
  font-family: var(--ky-serif);
  font-size: 21px;
  font-weight: 700;
}

.ky__brand-text small {
  color: var(--ky-muted);
  font-size: 13px;
}

.ky__menu-button {
  display: none;
}

.ky__header-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.ky__nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ky__nav a {
  display: block;
  padding: 8px 13px;
  border-radius: var(--ky-pill);
  color: var(--ky-ink);
  font-size: 16px;
  font-weight: 550;
  text-decoration: none;
}

.ky__nav a:hover {
  background: var(--ky-gold-soft);
  color: var(--ky-heading);
}

.ky__header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- Language switcher ---- */

.ky__lang {
  position: relative;
}

.ky__lang summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--ky-pill);
  box-shadow: inset 0 0 0 1.5px var(--ky-line);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.ky__lang summary::-webkit-details-marker {
  display: none;
}

.ky__lang summary i {
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.ky__flag {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  flex: none;
}

.ky__lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  border-radius: var(--ky-radius);
  background: var(--ky-card);
  box-shadow: var(--ky-shadow-sm), inset 0 0 0 1px var(--ky-line);
  list-style: none;
}

.ky__lang a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--ky-radius-sm);
  font-size: 15px;
  text-decoration: none;
}

.ky__lang a:hover,
.ky__lang a[aria-current="page"] {
  background: var(--ky-gold-soft);
}

/* ---- Mobile header: :target drawer ---- */

@media (max-width: 960px) {
  /* backdrop-filter would make the header the containing block of the fixed drawer. */
  .ky__header {
    background: var(--ky-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .ky__menu-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border-radius: var(--ky-pill);
    box-shadow: inset 0 0 0 1.5px var(--ky-line);
    color: var(--ky-heading);
  }

  .ky__menu-bars,
  .ky__menu-bars::before,
  .ky__menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }

  .ky__menu-bars {
    position: relative;
  }

  .ky__menu-bars::before,
  .ky__menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .ky__menu-bars::before {
    top: -6px;
  }

  .ky__menu-bars::after {
    top: 6px;
  }

  .ky__menu-bars--x {
    background: transparent;
  }

  .ky__menu-bars--x::before {
    top: 0;
    transform: rotate(45deg);
  }

  .ky__menu-bars--x::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .ky__menu-button--close {
    display: none;
  }

  .ky:has(#ky-menu:target) .ky__menu-button--open {
    display: none;
  }

  .ky:has(#ky-menu:target) .ky__menu-button--close {
    display: inline-flex;
  }

  .ky__header-panel {
    position: fixed;
    top: 71px;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px var(--ky-gutter) 32px;
    overflow-y: auto;
    background: var(--ky-bg);
  }

  .ky__header-panel:target {
    display: flex;
  }

  .ky__nav ul {
    flex-direction: column;
  }

  .ky__nav a {
    padding: 15px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--ky-line);
    font-size: 19px;
  }

  .ky__nav a:hover {
    background: transparent;
  }

  .ky__header-actions {
    flex-wrap: wrap;
  }
}

/* ---- Sections ---- */

.ky__section {
  position: relative;
  padding: var(--ky-band) 0;
}

.ky__section--tint {
  background: var(--ky-tint);
}

.ky__section--text {
  padding: 36px 0;
}

.ky__section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.ky__section-head h2 {
  color: var(--ky-heading);
  font-size: clamp(28px, 3.6vw, 42px);
}

.ky__section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ky__section-head--center .ky__rule {
  justify-content: center;
}

/* ---- Cards: cream with a gold rim, the seigaiha wave at the foot ---- */

.ky__card {
  position: relative;
  border: 1.5px solid var(--ky-line);
  border-radius: var(--ky-radius);
  background: var(--ky-card);
  box-shadow: var(--ky-shadow-sm);
}

.ky__card--wave {
  overflow: hidden;
  padding-bottom: 52px !important;
}

.ky__card--wave::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background-image: var(--ky-wave-img);
  background-size: 30px 30px;
  background-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 70%);
  mask-image: linear-gradient(to bottom, transparent, #000 70%);
  pointer-events: none;
}

.ky__chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: var(--ky-pill);
  background: var(--ky-gold-soft);
  box-shadow: inset 0 0 0 1px var(--ky-gold);
  color: var(--ky-heading);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

/* The waved lower edge of the app's red header band. */
.ky__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(22px, 3.2vw, 44px);
  background: var(--ky-bg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 26C220 6 420 4 600 18s400 22 600 0V40H0z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 26C220 6 420 4 600 18s400 22 600 0V40H0z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  pointer-events: none;
}

/* ---- Hero: the red header band, grown ---- */

.ky__hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) 0 clamp(88px, 10vw, 140px);
  background:
    radial-gradient(1000px 520px at 78% 30%, rgba(255, 120, 90, 0.22), transparent 60%),
    linear-gradient(170deg, #b51d22 0%, var(--ky-red) 45%, var(--ky-red-deep) 100%);
  color: var(--ky-cream-on-red);
}

.ky__hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='0' r='19' fill='%239A161B'/%3E%3Ccircle cx='20' cy='0' r='19' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='0' r='13' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='0' r='7' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='10' r='19' fill='%239A161B'/%3E%3Ccircle cx='0' cy='10' r='19' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='10' r='13' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='10' r='7' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='10' r='19' fill='%239A161B'/%3E%3Ccircle cx='40' cy='10' r='19' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='10' r='13' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='10' r='7' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='20' r='19' fill='%239A161B'/%3E%3Ccircle cx='20' cy='20' r='19' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='20' r='13' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='20' r='7' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='30' r='19' fill='%239A161B'/%3E%3Ccircle cx='0' cy='30' r='19' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='30' r='13' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='30' r='7' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='30' r='19' fill='%239A161B'/%3E%3Ccircle cx='40' cy='30' r='19' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='30' r='13' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='30' r='7' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='40' r='19' fill='%239A161B'/%3E%3Ccircle cx='20' cy='40' r='19' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='40' r='13' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='40' r='7' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3C/svg%3E");
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.55));
  mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.ky__hero-moon {
  position: absolute;
  left: -20px;
  top: 0;
  width: clamp(170px, 20vw, 280px);
  opacity: 0.95;
  pointer-events: none;
}

.ky__hero-fan {
  position: absolute;
  right: clamp(12px, 4vw, 64px);
  top: 14px;
  width: clamp(84px, 9vw, 132px);
  transform: rotate(-8deg);
  pointer-events: none;
  filter: drop-shadow(0 16px 24px rgba(40, 0, 0, 0.35));
}

.ky__hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
}

.ky__hero-text {
  padding-top: 36px;
}

.ky__hero-title {
  display: flex;
  flex-direction: column;
  color: var(--ky-cream-on-red);
  font-size: clamp(31px, 4.6vw, 62px) !important;
  line-height: 1.08 !important;
}

.ky__hero-gold {
  color: var(--ky-gold-bright);
}

.ky__hero-swash {
  display: block;
  width: 150px;
  height: 12px;
  margin-top: 18px;
  border-top: 3px solid var(--ky-gold-bright);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.ky__hero-copy {
  max-width: 560px;
  margin: 10px 0 0;
  color: rgba(251, 236, 208, 0.92);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.65;
}

.ky__hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 30px;
}

.ky__hero .ky__text-link,
.ky__cta .ky__text-link {
  color: var(--ky-gold-bright) !important;
}

.ky__hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(251, 236, 208, 0.9);
  font-size: 15px;
}

.ky__hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ky__hero-notes .ky__icon {
  width: 18px;
  height: 18px;
  color: var(--ky-gold-bright);
  stroke-width: 2.4;
}

.ky__hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 560px;
}

.ky__hero-phones .ky__phone {
  width: min(290px, 44vw);
}

.ky__phone--front {
  position: relative;
  z-index: 2;
  transform: translateX(-22%) rotate(-3deg);
}

.ky__phone--back {
  position: absolute;
  z-index: 1;
  top: 54px;
  left: 50%;
  transform: translateX(-2%) rotate(5deg);
  opacity: 0.96;
}

.ky__hero-phones--one .ky__phone--front {
  transform: none;
}

/* ---- The phone ---- */

.ky__phone {
  margin: 0;
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(160deg, #3a2a22, #140c09);
  box-shadow:
    inset 0 0 0 1.5px rgba(243, 207, 122, 0.4),
    var(--ky-shadow);
}

.ky__screen {
  overflow: hidden;
  border-radius: 33px;
  /* The bezel's own colour: where the scaled shot or the rounded clip's
   * anti-aliasing leaves a sub-pixel gap, it reads as frame, not a light line. */
  background: #140c09;
  aspect-ratio: 540 / 1110;
}

.ky__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The status bar over the screenshot's own (index.tsx StatusBar): 9cqw tall
 * (the shot's bar is 6.2cqw), time and icons 10cqw in from the edges so the
 * screen's rounded corners never cut them. Above every reel scene. */
.ky__statusbar {
  position: absolute;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  height: 9cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2cqw 10cqw 0;
  background: #b71b22;
  color: #ffffff;
  font: 600 4.6cqw/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.ky__statusbar svg {
  width: 12.5cqw;
  height: 3.7cqw;
}

/* ---- The phone in motion (Reel) ----
 * Every moving part gets animation-name / -duration / -delay inline from
 * index.tsx (run()); the keyframes are emitted next to the reel, one set per
 * loop length. Inside a phone, 1cqw = 1 % of the screen's width.
 */

.ky__screen {
  position: relative;
  container-type: inline-size;
  /* Its own stacking context: the status bar (z 40), the finger and the
   * overlays stack inside the phone and never above the sticky header (z 40)
   * or its open menu. */
  isolation: isolate;
}

.ky__reel-wrap {
  position: relative;
}

.ky__reel-scene,
.ky__reel-finger,
.ky__reel-finger i,
.ky__reel-field > span,
.ky__reel-chip,
.ky__reel-notify,
.ky__reel-captions p,
.ky__demo-lit {
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.ky__reel-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.ky__reel-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A fingertip: a soft dark disc with a white rim, a ring when it lands. */
.ky__reel-finger {
  position: absolute;
  z-index: 6;
  width: 12cqw;
  height: 12cqw;
  border-radius: 50%;
  background: rgba(36, 22, 15, 0.3);
  box-shadow: inset 0 0 0 0.7cqw rgba(255, 255, 255, 0.95), 0 1.6cqw 3.4cqw rgba(36, 22, 15, 0.35);
  opacity: 0;
  pointer-events: none;
}

.ky__reel-finger i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0.7cqw rgba(255, 255, 255, 0.95);
  opacity: 0;
}

.ky__reel-finger--swipe {
  left: 50%;
  transform: translate(-50%, -50%);
}

/* What adb could not type, typed on top of the empty fields. */
.ky__reel-field {
  position: absolute;
  z-index: 3;
  left: 4.17%;
  width: 91.67%;
  height: 6.35%;
  display: flex;
  align-items: center;
  padding-left: 3.98cqw;
  border-radius: 2.4cqw;
  background: #fff9ef;
  color: #24160f;
  font-family: Roboto, "Inter", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  font-size: 4.7cqw;
  line-height: 1;
  white-space: nowrap;
}

.ky__reel-field--title {
  top: 38.06%;
}

.ky__reel-field--name {
  top: 50.59%;
}


.ky__reel-field > .ky__reel-typed {
  border-right: 0;
  animation: none;
}

.ky__reel-field > span {
  display: inline-block;
  padding-right: 0.4cqw;
  border-right: 0.35cqw solid #a8191e;
}

.ky__reel-chip {
  position: absolute;
  z-index: 3;
  left: 58.52%;
  top: 56.76%;
  width: 21.39%;
  height: 5.23%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2.6cqw;
  background: #a8191e;
  color: #fff9ef;
  font-family: Roboto, "Inter", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  font-size: 4.5cqw;
  font-weight: 500;
  opacity: 0;
}

/* The heads-up notification, worded as ReminderReceiver posts it. */
.ky__reel-notify {
  position: absolute;
  z-index: 4;
  left: 3%;
  right: 3%;
  top: 10.5cqw; /* just under the status bar */
  display: flex;
  flex-direction: column;
  gap: 0.9cqw;
  padding: 3.4cqw 4.2cqw 3.8cqw;
  border-radius: 5cqw;
  background: #ffffff;
  box-shadow: 0 3cqw 7cqw rgba(36, 22, 15, 0.35);
  color: #24160f;
  font-family: Roboto, "Inter", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.25;
  opacity: 0;
}

.ky__reel-notify-app {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  margin: 0 0 0.6cqw;
  color: #6b5547;
  font-size: 3.1cqw;
}

.ky__reel-notify-app img {
  width: 4.4cqw;
  height: 4.4cqw;
  border-radius: 1cqw;
}

.ky__reel-notify b {
  font-size: 4cqw;
  font-weight: 700;
}

.ky__reel-notify span {
  color: #6b5547;
  font-size: 3.5cqw;
}

.ky__reel-notify em {
  align-self: flex-start;
  margin-top: 1.6cqw;
  padding: 1.4cqw 3cqw;
  border-radius: 999px;
  background: #f3e3bf;
  color: #7e1014;
  font-size: 3.6cqw;
  font-style: normal;
  font-weight: 700;
}

/* The step being shown, beside the hero phone. */
.ky__reel-captions {
  position: relative;
  min-height: 3.6em;
}

.ky__reel-captions p {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  opacity: 0;
}

.ky__reel-captions b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ky-red);
  color: var(--ky-gold-bright);
  font-family: var(--ky-serif);
  font-size: 15px;
}

.ky__reel-bubble {
  position: absolute;
  z-index: 20;
  left: -14%;
  bottom: -17%;
  width: min(250px, 60vw);
  min-height: 0;
  height: 76px;
  padding: 0 16px;
  border: 1.5px solid var(--ky-gold);
  border-radius: 18px;
  background: var(--ky-card);
  box-shadow: var(--ky-shadow);
  color: var(--ky-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  transform: rotate(3deg);
}

.ky__reel-bubble p {
  left: 14px;
  right: 14px;
}

/* ---- Demo block: three phones, three loops ---- */

.ky__demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ky__demo-item .ky__reel {
  max-width: 260px;
  margin: 0 auto 24px;
  padding: 8px;
  border-radius: 36px;
}

.ky__demo-item .ky__screen {
  border-radius: 29px;
}

.ky__demo-item h3 {
  color: var(--ky-heading);
  font-size: 23px;
  text-align: center;
}

.ky__demo-body {
  margin: 8px 0 0;
  color: var(--ky-muted);
  font-size: 15px;
  text-align: center;
}

.ky__demo-steps {
  display: grid;
  gap: 4px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ky__demo-steps li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  color: var(--ky-muted);
  font-size: 15px;
  line-height: 1.4;
}

.ky__demo-steps li > * {
  position: relative;
}

.ky__demo-lit {
  position: absolute !important;
  inset: 0;
  border-radius: 12px;
  background: var(--ky-gold-soft);
  box-shadow: inset 0 0 0 1.5px var(--ky-gold);
  opacity: 0;
}

.ky__demo-steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ky-red);
  color: var(--ky-gold-bright);
  font-family: var(--ky-serif);
  font-size: 13px;
}

.ky__demo-steps span:last-child {
  color: var(--ky-ink);
}

@media (max-width: 1060px) {
  .ky__demo-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    gap: 56px;
  }
}

@media (max-width: 900px) {
  .ky__reel-bubble {
    left: -10%;
    bottom: -24%;
    width: min(240px, 70vw);
    font-size: 14px;
  }

  .ky__hero-phones:has(.ky__reel-bubble) {
    padding-bottom: 110px;
  }
}

/* Motion off: the first frame, still, and every caption readable. */
@media (prefers-reduced-motion: reduce) {
  .ky__reel-scene,
  .ky__reel-finger,
  .ky__reel-finger i,
  .ky__reel-field > span,
  .ky__reel-chip,
  .ky__reel-notify,
  .ky__reel-captions p,
  .ky__demo-lit {
    animation: none !important;
  }

  .ky__reel-scene:first-child {
    opacity: 1;
  }

  .ky__reel-scene:not(:first-child),
  .ky__reel-finger,
  .ky__reel-bubble {
    display: none;
  }
}

/* ---- Screens ---- */

.ky__screens-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ky__screens-item {
  text-align: center;
}

.ky__screens-item .ky__phone {
  max-width: 250px;
  margin: 0 auto 22px;
  padding: 8px;
  border-radius: 34px;
}

.ky__screens-item .ky__screen {
  border-radius: 27px;
}

.ky__screens-item h3 {
  color: var(--ky-heading);
  font-size: 21px;
}

.ky__screens-item p {
  margin: 8px auto 0;
  max-width: 260px;
  color: var(--ky-muted);
  font-size: 15px;
}

/* ---- Features ---- */

.ky__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ky__feature {
  padding: 28px 26px;
}

.ky__feature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--ky-red);
  color: var(--ky-gold-bright);
  box-shadow: 0 10px 20px -12px var(--ky-red);
}

.ky__feature-mark .ky__icon {
  width: 28px;
  height: 28px;
}

.ky__feature h3 {
  color: var(--ky-heading);
  font-size: 21px;
}

.ky__feature p {
  margin: 10px 0 0;
  color: var(--ky-muted);
  font-size: 16px;
}

/* ---- Prayers ---- */

.ky__kc-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ky__kc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 0;
}

.ky__kc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ky-line);
}

.ky__kc-mark {
  width: 34px;
  height: 34px;
  color: var(--ky-gold);
  stroke-width: 1.6;
}

.ky__kc h3 {
  color: var(--ky-ink);
  font-size: 20px;
}

.ky__kc-when {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--ky-link);
  font-size: 15px;
  font-weight: 700;
}

.ky__kc-when .ky__icon {
  width: 18px;
  height: 18px;
}

.ky__kc-body {
  margin: 0;
  color: var(--ky-muted);
  font-size: 15.5px;
}

.ky__kc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
}

/* ---- Steps: the app's red, the reading screen's bottom bar ---- */

.ky__section--red {
  overflow: hidden;
  background: linear-gradient(170deg, var(--ky-red), var(--ky-red-deep));
  color: var(--ky-cream-on-red);
}

.ky__section--red .ky__section-head h2 {
  color: var(--ky-cream-on-red);
}

.ky__section--red .ky__eyebrow {
  color: var(--ky-gold-bright);
}

.ky__section--red .ky__lead {
  color: rgba(251, 236, 208, 0.86);
}

.ky__section--red .ky__rule {
  color: var(--ky-gold-bright);
}

.ky__section--red .ky__rule i {
  background: var(--ky-gold-bright);
}

.ky__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ky__step {
  position: relative;
  padding: 30px 26px 28px;
  border-radius: var(--ky-radius);
  background: rgba(60, 0, 4, 0.28);
  box-shadow: inset 0 0 0 1.5px rgba(243, 207, 122, 0.35);
}

.ky__step-n {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(243, 207, 122, 0.5);
  font-family: var(--ky-serif);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.ky__step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ky-gold-bright);
  color: var(--ky-red-deep);
}

.ky__step-icon .ky__icon {
  width: 28px;
  height: 28px;
}

.ky__step h3 {
  color: #fff6e6;
  font-size: 22px;
}

.ky__step p {
  margin: 10px 0 0;
  color: rgba(251, 236, 208, 0.86);
  font-size: 16px;
}

/* ---- Data list (privacy) ---- */

.ky__data {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ky__data-item {
  padding: 20px 22px;
}

.ky__data-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.ky__data-head h3 {
  margin-right: auto;
  color: var(--ky-heading);
  font-size: 19px;
}

.ky__chip--stays {
  background: color-mix(in srgb, var(--ky-good) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ky-good) 45%, transparent);
  color: var(--ky-good);
}

.ky__chip--leaves {
  background: color-mix(in srgb, var(--ky-link) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ky-link) 45%, transparent);
  color: var(--ky-link);
}

.ky__data-when {
  color: var(--ky-muted);
  font-size: 14px;
}

.ky__data-item p {
  margin: 10px 0 0;
  color: var(--ky-muted);
  font-size: 16px;
}

.ky__doc .ky__section-head {
  margin-bottom: 24px;
}

.ky__doc .ky__section-head h2 {
  font-size: clamp(22px, 2.4vw, 28px);
}

.ky__doc .ky__section-head .ky__rule {
  display: none;
}

/* ---- FAQ ---- */

.ky__faq {
  display: grid;
  gap: 12px;
}

.ky__faq-item {
  padding: 0 22px;
  box-shadow: none;
}

.ky__faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 0;
  color: var(--ky-ink);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.ky__faq-item summary::-webkit-details-marker {
  display: none;
}

.ky__faq-item summary i {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ky-gold-soft);
  box-shadow: inset 0 0 0 1.5px var(--ky-gold);
  position: relative;
}

.ky__faq-item summary i::before,
.ky__faq-item summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--ky-heading);
  transition: transform 0.2s ease;
}

.ky__faq-item summary i::after {
  transform: rotate(90deg);
}

.ky__faq-item[open] summary i::after {
  transform: rotate(0deg);
}

.ky__faq-item[open] summary {
  color: var(--ky-heading);
}

.ky__faq-item p {
  margin: 0 0 18px;
  color: var(--ky-muted);
}

.ky__faq-item .ky__text-link {
  display: inline-block;
  margin-bottom: 20px;
}

/* ---- CTA ---- */

.ky__cta {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 112px) 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='0' r='19' fill='%239A161B'/%3E%3Ccircle cx='20' cy='0' r='19' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='0' r='13' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='0' r='7' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='10' r='19' fill='%239A161B'/%3E%3Ccircle cx='0' cy='10' r='19' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='10' r='13' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='10' r='7' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='10' r='19' fill='%239A161B'/%3E%3Ccircle cx='40' cy='10' r='19' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='10' r='13' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='10' r='7' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='20' r='19' fill='%239A161B'/%3E%3Ccircle cx='20' cy='20' r='19' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='20' r='13' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='20' r='7' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='30' r='19' fill='%239A161B'/%3E%3Ccircle cx='0' cy='30' r='19' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='30' r='13' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='0' cy='30' r='7' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='30' r='19' fill='%239A161B'/%3E%3Ccircle cx='40' cy='30' r='19' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='30' r='13' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='40' cy='30' r='7' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='40' r='19' fill='%239A161B'/%3E%3Ccircle cx='20' cy='40' r='19' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='40' r='13' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3Ccircle cx='20' cy='40' r='7' fill='none' stroke='%23B8383A' stroke-width='1.1'/%3E%3C/svg%3E") center bottom / 34px 34px,
    linear-gradient(170deg, var(--ky-red), var(--ky-red-deep));
  color: var(--ky-cream-on-red);
  text-align: center;
}

.ky__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--ky-red) 25%, rgba(126, 16, 20, 0.55));
  pointer-events: none;
}

.ky__cta-fan {
  position: absolute;
  top: 18px;
  left: clamp(16px, 6vw, 120px);
  width: clamp(80px, 8vw, 120px);
  transform: rotate(10deg);
}

.ky__cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ky__cta h2 {
  max-width: 760px;
  color: var(--ky-cream-on-red);
  font-size: clamp(30px, 4vw, 48px);
}

.ky__cta .ky__lead {
  max-width: 620px;
  color: rgba(251, 236, 208, 0.88);
}

.ky__cta .ky__stores {
  justify-content: center;
  margin: 30px 0 14px;
}

/* ---- Pages and documents ---- */

.ky__page-head {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 7vw, 96px);
  background: linear-gradient(170deg, var(--ky-red), var(--ky-red-deep));
  color: var(--ky-cream-on-red);
}

.ky__page-moon {
  position: absolute;
  right: -10px;
  top: -8px;
  width: clamp(140px, 18vw, 240px);
  transform: scaleX(-1);
  opacity: 0.9;
  pointer-events: none;
}

.ky__page-head h1 {
  position: relative;
  max-width: 760px;
  color: var(--ky-cream-on-red);
  font-size: clamp(32px, 4.4vw, 52px);
}

.ky__page-head .ky__lead {
  position: relative;
  max-width: 680px;
  color: rgba(251, 236, 208, 0.88);
}

.ky__doc-updated {
  position: relative;
  margin: 14px 0 0;
  color: var(--ky-gold-bright);
  font-size: 15px;
  font-weight: 600;
}

.ky__toc {
  margin: 36px 0 4px;
  padding: 20px 24px;
  border: 1.5px solid var(--ky-line);
  border-radius: var(--ky-radius);
  background: var(--ky-card);
}

.ky__toc b {
  display: block;
  margin-bottom: 8px;
  color: var(--ky-heading);
  font-family: var(--ky-serif);
  font-size: 18px;
}

.ky__toc ul {
  columns: 2;
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ky__toc li {
  break-inside: avoid;
  padding: 3px 0;
}

.ky__toc a {
  color: var(--ky-muted);
  font-size: 15px;
  text-decoration: none;
}

.ky__toc a:hover {
  color: var(--ky-link);
  text-decoration: underline;
}

.ky__prose {
  font-size: 17px;
  line-height: 1.75;
}

.ky__prose h2 {
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ky-gold);
  color: var(--ky-heading);
  font-size: clamp(22px, 2.4vw, 28px);
}

.ky__prose h2:first-child {
  margin-top: 0;
}

.ky__prose h3 {
  margin: 26px 0 8px;
  color: var(--ky-heading);
  font-size: 20px;
}

.ky__prose p,
.ky__prose ul,
.ky__prose ol {
  margin: 0 0 16px;
}

.ky__prose li {
  margin: 6px 0;
}

.ky__prose li::marker {
  color: var(--ky-gold);
}

.ky__prose a {
  color: var(--ky-link);
  text-underline-offset: 3px;
}

.ky__prose b,
.ky__prose strong {
  color: var(--ky-ink);
}

.ky__figure {
  margin: 0 auto;
}

.ky__figure img {
  display: block;
  border-radius: var(--ky-radius);
}

.ky__figure figcaption {
  margin-top: 10px;
  color: var(--ky-muted);
  font-size: 14px;
  text-align: center;
}

/* ---- Posts ---- */

.ky__post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ky__post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.ky__post-card-date {
  margin: 0;
  color: var(--ky-muted);
  font-size: 14px;
}

.ky__post-card h3 {
  color: var(--ky-heading);
  font-size: 21px;
}

.ky__post-card h3 a {
  text-decoration: none;
}

.ky__post-card p {
  margin: 0;
  color: var(--ky-muted);
}

.ky__empty {
  color: var(--ky-muted);
  text-align: center;
}

.ky__pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.ky__pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1.5px var(--ky-line);
  text-decoration: none;
}

.ky__pager a[aria-current="page"] {
  background: var(--ky-accent);
  color: var(--ky-on-accent);
  box-shadow: none;
}

/* ---- 404 / 500: a tear-off calendar sheet ---- */

.ky__state {
  padding: clamp(64px, 9vw, 120px) 0;
  text-align: center;
}

.ky__state .ky__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ky__state-sheet {
  width: 150px;
  margin-bottom: 26px;
  overflow: hidden;
  border: 1.5px solid var(--ky-line);
  border-radius: 20px;
  background: var(--ky-card);
  box-shadow: var(--ky-shadow-sm);
}

.ky__state-sheet::before {
  content: "";
  display: block;
  height: 34px;
  background: var(--ky-red);
}

.ky__state-sheet span {
  display: block;
  padding: 14px 0 18px;
  color: var(--ky-heading);
  font-family: var(--ky-serif);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.ky__state h1 {
  color: var(--ky-heading);
  font-size: clamp(28px, 3.6vw, 40px);
}

.ky__state p {
  max-width: 520px;
  margin: 16px 0 28px;
  color: var(--ky-muted);
}

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

.ky__footer {
  padding: 64px 0 28px;
  border-top: 3px solid var(--ky-gold);
  background: var(--ky-tint);
}

.ky__footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
}

.ky__footer-about p {
  max-width: 380px;
  margin: 16px 0 0;
  color: var(--ky-muted);
  font-size: 15px;
}

.ky__footer-build {
  font-size: 13px !important;
}

.ky__footer-col h2 {
  margin-bottom: 14px;
  color: var(--ky-heading);
  font-size: 17px;
}

.ky__footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ky__footer-col li {
  padding: 4px 0;
}

.ky__footer-col a {
  color: var(--ky-muted);
  font-size: 15px;
  text-decoration: none;
}

.ky__footer-col a:hover {
  color: var(--ky-link);
}

.ky__footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.ky__footer-contact .ky__button {
  color: var(--ky-heading) !important;
}

.ky__footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--ky-line);
  color: var(--ky-muted);
  font-size: 14px;
}

.ky__footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.ky__footer-bottom a {
  text-decoration: none;
}

.ky__footer-bottom a:hover {
  color: var(--ky-link);
}

.ky__builtwith {
  margin-left: 12px;
  opacity: 0.75;
}

/* ---- Responsive ---- */

@media (max-width: 1060px) {
  .ky__screens-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .ky__kc-list,
  .ky__features,
  .ky__post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ky__hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ky__hero-text {
    padding-top: 64px;
  }

  .ky__hero-phones {
    min-height: 0;
    padding-bottom: 40px;
  }

  .ky__hero-phones .ky__phone {
    width: min(250px, 52vw);
  }

  .ky__phone--front {
    transform: translateX(-24%) rotate(-3deg);
  }

  .ky__phone--back {
    top: 40px;
  }

  .ky__steps {
    grid-template-columns: 1fr;
  }

  .ky__footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ky__footer-about {
    grid-column: 1 / -1;
  }

  .ky__toc ul {
    columns: 1;
  }
}

@media (max-width: 620px) {
  .ky {
    font-size: 16px;
  }

  .ky__kc-list,
  .ky__features,
  .ky__post-grid {
    grid-template-columns: 1fr;
  }

  .ky__screens-grid {
    gap: 24px 14px;
  }

  .ky__screens-item .ky__phone {
    padding: 5px;
    border-radius: 24px;
  }

  .ky__screens-item .ky__screen {
    border-radius: 20px;
  }

  .ky__screens-item h3 {
    font-size: 18px;
  }

  .ky__screens-item p {
    font-size: 14px;
  }

  .ky__hero-fan {
    width: 64px;
    right: 10px;
  }

  .ky__hero-moon {
    width: 150px;
  }

  .ky__brand--compact .ky__brand-text small {
    display: none;
  }

  .ky__store {
    min-width: 0;
    flex: 1 1 150px;
  }

  .ky__footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  /* Phone: the whole footer is centred — brand, text, columns, contact, bottom row. */
  .ky__footer-about {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .ky__footer-about p {
    margin-left: auto;
    margin-right: auto;
  }

  .ky__footer-contact {
    align-items: center;
  }

  .ky__footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ky__footer-bottom div {
    justify-content: center;
  }

  .ky__builtwith {
    display: block;
    margin: 6px 0 0;
  }
}

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

  .ky *,
  .ky *::before,
  .ky *::after {
    transition: none !important;
  }
}

/* ---- 暦注: 吉 / 凶 seal like the app's day detail ---- */

.ky__kc-seal {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ky-red);
  color: #fff;
  font-family: var(--ky-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.ky__kc-seal--bad {
  background: var(--ky-muted);
}

/* Japanese runs: never break inside a phrase where the browser can avoid it. */
.ky :lang(ja),
.ky[lang="ja"] {
  word-break: auto-phrase;
  line-break: strict;
}
