/* Kiokuya — landing (public, standalone; NOT the panel stylesheet).
   Art direction: japoński minimalizm — papier (shiro), tusz (sumi),
   cynober pieczęci hanko (shu), złote akcenty (kin / kintsugi).
   Zero JS; animacje wejściowe czysto CSS + prefers-reduced-motion. */

:root {
  --paper: #FAF7F1;
  --paper-2: #F3EEE4;
  --ink: #17130F;
  --ink-soft: #4A423A;
  --shu: #C22F2A;        /* hanko red — CTA (biały tekst: kontrast ~5.3:1) */
  --shu-deep: #A32521;
  --gold: #B9973E;       /* wyłącznie ozdobne linie / duże znaki */
  --gold-text: #8A6E25;  /* złoto przyciemnione do tekstu (kontrast ≥4.5:1) */
  --hairline: rgba(23, 19, 15, 0.14);
  /* typografia marki: Khand SemiBold (display) + General Sans (body) */
  --serif: "Khand", "General Sans", system-ui, sans-serif;
  --sans: "General Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --jp: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: 1100px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

/* ── nagłówek ─────────────────────────────────────────────── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.1rem;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem; letter-spacing: .38em; text-transform: uppercase;
  translate: 0 1px;
}
.header-login {
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  padding: .65rem 1rem; min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color .2s ease-out, border-color .2s ease-out;
}
.header-login:hover { color: var(--shu); border-color: var(--shu); }
.site-nav { display: flex; align-items: center; gap: .5rem; }

/* hero podstrony (bez kolumny kanji) */
.hero-sub { padding-block: clamp(2.5rem, 7vh, 5rem) clamp(2.5rem, 7vh, 5rem); }
.hero-sub h1 { max-width: 22ch; }

/* link na ciemnym finale */
.link-inverse {
  color: var(--paper); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: .65rem .35rem; min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 2px solid var(--gold);
  transition: color .2s ease-out, border-color .2s ease-out;
}
.link-inverse:hover { color: #E8A9A5; border-color: #E8A9A5; }
.final-cta { justify-content: center; }

/* ── hero ─────────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(3rem, 9vh, 6.5rem) clamp(3.5rem, 10vh, 7rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .5fr); gap: 2rem; align-items: center; }

.hero-rule { width: 72px; height: 2px; background: var(--gold); border: 0; margin: 0 0 1.6rem; }

.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.16; letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
}
.hero h1 em { font-style: normal; color: var(--shu); }

.hero-lead {
  max-width: 34rem; color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  margin: 0 0 2.2rem;
}

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

.btn-primary {
  display: inline-flex; align-items: center; gap: .55rem;
  border: 0; /* <button> ma domyślny border UA; CTA-linki go nie mają */
  background: var(--shu); color: #fff; text-decoration: none;
  font-weight: 650; font-size: 1.02rem;
  padding: .95rem 1.75rem; min-height: 48px;
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(194, 47, 42, .22);
  transition: background .2s ease-out, translate .15s ease-out, box-shadow .2s ease-out;
  cursor: pointer;
}
.btn-primary:hover { background: var(--shu-deep); translate: 0 -1px; box-shadow: 0 12px 30px rgba(194, 47, 42, .3); }
.btn-primary:active { translate: 0 0; }

.cta-note { color: var(--ink-soft); font-size: .9rem; }

/* pionowe kanji + hinomaru — czysto dekoracyjne */
.hero-kanji {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 300px;
}
.hero-kanji .ring {
  position: absolute; inset: 50% auto auto 50%; translate: -50% -50%;
  width: min(300px, 26vw); aspect-ratio: 1;
  border: 1px solid var(--gold); border-radius: 50%; opacity: .55;
}
.hero-kanji .ring::after {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid var(--shu); border-radius: 50%; opacity: .18;
}
.kanji-vertical {
  writing-mode: vertical-rl;
  font-family: var(--jp); font-size: clamp(3.4rem, 6vw, 5rem); line-height: 1.28;
  letter-spacing: .32em; color: var(--ink);
  position: relative; user-select: none;
}
.kanji-vertical .accent { color: var(--shu); }

/* ── sekcje wspólne ───────────────────────────────────────── */
.section { padding-block: clamp(3rem, 8vh, 5.5rem); }
.section + .section { border-top: 1px solid var(--hairline); }

.kicker {
  font-size: .82rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-text); margin: 0 0 .9rem;
}
.section h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25;
  margin: 0 0 2.2rem; max-width: 30ch;
}

/* ── co robi (一 二 三) ───────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.feature {
  border: 1px solid var(--hairline); border-radius: 10px;
  background: #fff;
  padding: 1.7rem 1.6rem 1.8rem;
  transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.feature:hover { border-color: rgba(194, 47, 42, .4); box-shadow: 0 14px 34px rgba(23, 19, 15, .07); }
.feature .num {
  font-family: var(--jp); font-size: 1.5rem; color: var(--shu); line-height: 1;
  display: block; margin-bottom: 1rem;
}
.feature h3 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin: 0 0 .55rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ── jak działa ───────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 17px; left: 8%; right: 8%;
  height: 1px; background: var(--gold); opacity: .6;
}
.step { position: relative; }
.step .dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--gold);
  color: var(--gold-text); font-weight: 700; font-size: .95rem;
  display: grid; place-items: center;
  position: relative; z-index: 1; margin-bottom: 1.1rem;
}
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; margin: 0 0 .45rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ── pas zaufania ─────────────────────────────────────────── */
.trust {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .6rem 1rem; text-align: center;
  color: var(--ink-soft); font-size: .93rem;
}
.trust .sep { color: var(--gold); }

/* ── finałowe CTA (tusz) ──────────────────────────────────── */
.final {
  background: var(--ink); color: var(--paper);
  padding-block: clamp(3.5rem, 9vh, 6rem);
}
.final-inner { text-align: center; }
.final h2 {
  font-family: var(--serif); font-weight: 600; color: var(--paper);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.3;
  max-width: 24ch; margin: 0 auto 2rem;
}
.final h2 em { font-style: normal; color: #E8A9A5; }
.final .kanji-inline {
  font-family: var(--jp); color: var(--gold); font-size: 1.1rem; letter-spacing: .5em;
  display: block; margin-bottom: 1.4rem;
}

/* ── stopka ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 1.6rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem;
  color: var(--ink-soft); font-size: .88rem;
}
.site-footer .jp { font-family: var(--jp); color: var(--gold-text); letter-spacing: .3em; }
.site-footer a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--hairline); }
.site-footer a:hover { color: var(--shu); border-color: var(--shu); }

/* ── formularz zgłoszeniowy ───────────────────────────────── */
.link-secondary {
  font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none;
  padding: .65rem .35rem; min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 2px solid var(--gold);
  transition: color .2s ease-out, border-color .2s ease-out;
}
.link-secondary:hover { color: var(--shu); border-color: var(--shu); }

.form-intro { max-width: 38rem; color: var(--ink-soft); margin: -1rem 0 2rem; }

.inquiry { max-width: 44rem; }
.inquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; margin-bottom: 1.1rem; }
.inquiry label { display: block; }
.inquiry label > span {
  display: block; font-size: .88rem; font-weight: 600; margin-bottom: .35rem;
}
.inquiry label em { color: var(--shu); font-style: normal; margin-left: .15rem; }
.inquiry input[type="text"], .inquiry input[type="email"],
.inquiry input[type="tel"], .inquiry textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--hairline); border-radius: 6px;
  padding: .7rem .85rem; min-height: 44px;
  transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.inquiry textarea { resize: vertical; min-height: 8rem; }
.inquiry input:focus, .inquiry textarea:focus {
  outline: none; border-color: var(--shu);
  box-shadow: 0 0 0 3px rgba(194, 47, 42, .14);
}
.inquiry-message { margin-bottom: 1.1rem; }
/* .inquiry label ma specyficzność (0,1,1) — tu potrzeba (0,2,0), inaczej wygra display:block */
.inquiry label.inquiry-consent {
  display: flex; align-items: flex-start; gap: .6rem;
  margin-bottom: 1.4rem; cursor: pointer;
}
.inquiry-consent input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--shu); }
.inquiry-consent span { font-size: .93rem; color: var(--ink-soft); font-weight: 400; }
.form-note { color: var(--ink-soft); font-size: .85rem; margin: 1rem 0 0; }
.form-error {
  color: var(--shu-deep); font-weight: 600; font-size: .95rem;
  border: 1px solid rgba(194, 47, 42, .35); border-radius: 6px;
  background: rgba(194, 47, 42, .06);
  padding: .75rem 1rem; margin: 0 0 1.4rem; max-width: 44rem;
}
.form-done {
  border: 1px solid var(--gold); border-radius: 10px; background: #fff;
  padding: 1.6rem 1.8rem; max-width: 34rem;
}
.form-done p { margin: .5rem 0 0; color: var(--ink-soft); }
/* honeypot: poza ekranem (nie display:none — część botów to wykrywa) */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ── dostępność / fokus ───────────────────────────────────── */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px;
}
.final a:focus-visible { outline-color: var(--paper); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: .6rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; }

/* ── animacje wejściowe (tylko transform/opacity) ─────────── */
.reveal { animation: rise .55s ease-out both; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .btn-primary, .header-login, .feature { transition: none; }
}

/* ── mobile ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-kanji {
    position: absolute; inset: 0 0 auto auto; height: 100%; min-height: 0;
    opacity: .08; pointer-events: none; padding-right: .35rem;
    /* animacja .reveal kończy na opacity:1 (fill both) i nadpisałaby watermark */
    animation: none;
  }
  .hero-kanji .ring { display: none; }
  /* na mobile watermark jest tłem pod tekstem — monochromatycznie i drobniej,
     żeby czerwony akcent nie konkurował z treścią */
  .hero-kanji .kanji-vertical { font-size: 2.7rem; }
  .hero-kanji .accent { color: inherit; }
  .features, .steps { grid-template-columns: 1fr; }
  .inquiry-grid { grid-template-columns: 1fr; }
  .steps::before { left: 17px; right: auto; top: 5%; bottom: 5%; height: auto; width: 1px; }
  .brand-name { letter-spacing: .28em; font-size: .95rem; }
}
@media (max-width: 520px) {
  .brand-name { display: none; } /* dwa linki nawigacji muszą się zmieścić */
  .header-login { font-size: .88rem; padding-inline: .6rem; }
}
