/* Kafo site — flat corporate style (no gradients) */
:root {
  --accent: #00a896;
  --accent-soft: #e8f7f5;
  --text: #222222;
  --text-soft: #666666;
  --border: #e5e5e5;
  --muted: #f5f5f5;
  --white: #ffffff;
  --radius: 8px;
  --max: 1040px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: ease;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--text);
  color: var(--white);
  font-weight: 700;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  display: flex;
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-nav__inner {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand__mark {
  width: 32px;
  height: 32px;
  /* PNG already has iOS squircle alpha — do not add border-radius */
  border-radius: 0;
  border: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 8px 12px;
}

.nav-links a:hover {
  color: var(--text);
}

/* —— Hero —— */
.hero {
  padding: 72px 0 80px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__copy {
  max-width: 34rem;
}

.hero__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
}

.hero__icon {
  width: 64px;
  height: 64px;
  border-radius: 0;
  border: 0;
  flex-shrink: 0;
}

.hero__brand {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text);
}

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.hero__lede {
  margin: 0 0 12px;
  max-width: 36ch;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.hero__note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8125rem;
}

/* —— Phone mock —— */
.device {
  justify-self: end;
  width: min(100%, 300px);
  margin-inline: auto;
}

.device__frame {
  border-radius: 28px;
  background: #111;
  padding: 8px;
  border: 1px solid #222;
}

.device__screen {
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.device__status {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 0;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-soft);
}

.device__body {
  padding: 10px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pill-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 6px;
}

.pill-bar span {
  height: 4px;
  border-radius: 999px;
  background: var(--border);
}

.pill-bar span.is-on {
  background: var(--accent);
}

.lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--muted);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
}

.lang-row strong {
  color: var(--accent);
  font-weight: 700;
}

.field {
  padding: 12px;
  background: var(--muted);
  border-radius: var(--radius);
}

.field__label {
  margin: 0 0 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-soft);
}

.field__text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.field--result {
  background: var(--accent-soft);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.65rem;
  font-weight: 600;
}

.chip--mint {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.fake-btn {
  margin-top: auto;
  height: 40px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border);
  padding: 8px 4px 12px;
  background: var(--white);
}

.tabbar span {
  text-align: center;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-soft);
}

.tabbar span.is-active {
  color: var(--accent);
}

/* —— Sections —— */
.section {
  padding: 80px 0;
  background: var(--white);
}

.section--soft {
  background: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__inner {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.section__head {
  max-width: 36rem;
  margin-bottom: 36px;
}

.section__head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.section__head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Loop */
.loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  counter-reset: step;
}

.loop__item {
  padding: 28px 22px;
  background: var(--white);
  min-height: 160px;
}

.loop__item::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.loop__item h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

.loop__item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Feature split */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature-panel {
  padding: 32px 28px;
  background: var(--white);
}

.feature-panel--mint {
  background: var(--white);
}

.feature-panel h3 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 700;
}

.feature-panel p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.feature-list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.feature-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.feature-list li:last-child {
  padding-bottom: 0;
}

.feature-list .dot {
  width: auto;
  height: auto;
  margin-top: 2px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.feature-list .dot--violet,
.feature-list .dot--red {
  background: transparent;
  box-shadow: none;
  color: var(--accent);
}

.feature-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
  font-weight: 700;
}

.feature-list span {
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 40px 0 48px;
}

.site-footer__inner {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-footer__brand img {
  width: 36px;
  height: 36px;
  border-radius: 0;
  border: 0;
  flex-shrink: 0;
}

.site-footer strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.site-footer p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8125rem;
  max-width: 42ch;
  line-height: 1.7;
}

.legal-note {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text-soft);
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: right;
  flex-shrink: 0;
}

.legal-note__pp {
  color: var(--text-soft);
  font-weight: 500;
  text-decoration: none;
}

.legal-note__pp:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    padding: 48px 0 56px;
  }

  .hero__inner,
  .feature-split,
  .loop {
    grid-template-columns: 1fr;
  }

  .device {
    justify-self: center;
    width: min(100%, 280px);
  }

  .loop {
    gap: 0;
    border: 0;
    background: transparent;
  }

  .loop__item {
    border: 1px solid var(--border);
    border-bottom: 0;
  }

  .loop__item:last-child {
    border-bottom: 1px solid var(--border);
  }

  .feature-split {
    gap: 0;
    border: 0;
    background: transparent;
  }

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

  .feature-panel + .feature-panel {
    border-top: 0;
  }

  .site-footer__inner {
    align-items: flex-start;
  }
}
