/* Zetty Factory — independent digital product studio */

:root {
  --ink: #1a1f24;
  --ink-soft: #3a434c;
  --muted: #6b757f;
  --line: rgba(26, 31, 36, 0.12);
  --paper: #f3f5f4;
  --paper-deep: #e6ebe8;
  --surface: rgba(255, 255, 255, 0.72);
  --accent: #2f7a6b;
  --accent-deep: #246257;
  --live: #2f7a6b;
  --dev: #8a6a2f;
  --exp: #4a5d73;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(26, 31, 36, 0.08);
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --font-body-ko: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --max: 1120px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 122, 107, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(74, 93, 115, 0.12), transparent 50%),
    linear-gradient(180deg, #f7f8f7 0%, var(--paper) 40%, #eef1ef 100%);
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-h);
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(26, 31, 36, 0.28);
  z-index: 98;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-backdrop:not([hidden]) {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: #f3f5f4;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: #eef1ef;
}

/* Blur only on desktop — backdrop-filter traps position:fixed mobile nav inside the header */
@media (min-width: 761px) {
  .site-header {
    background: rgba(243, 245, 244, 0.88);
    backdrop-filter: blur(14px);
  }

  .site-header.is-scrolled {
    background: rgba(243, 245, 244, 0.96);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand span {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.lang-switch a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.35rem 0.3rem;
  min-width: 1.75rem;
  text-align: center;
}

.lang-switch a[aria-current="true"] {
  color: var(--ink);
}

.lang-sep {
  color: var(--muted);
  opacity: 0.45;
  user-select: none;
}

html[lang="ko"] body {
  font-family: var(--font-body-ko);
  word-break: keep-all;
}

/* 본문은 한글 폰트 — 히어로/브랜드/섹션 제목은 영문과 동일(Syne) */
html[lang="ko"] .contact-panel a.email {
  font-family: var(--font-body-ko);
  letter-spacing: -0.02em;
}

html[lang="ko"] .featured-tagline,
html[lang="ko"] .featured-body > p:not(.featured-tagline),
html[lang="ko"] .product-card p:not(.tagline) {
  font-family: var(--font-body-ko);
}

html[lang="ko"] .hero .hero-brand {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

html[lang="ko"] .hero h1 {
  font-family: var(--font-display), "Manrope", var(--font-body-ko);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 18ch;
  word-break: keep-all;
}

html[lang="ko"] .footer-brand {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 560;
  color: var(--ink-soft);
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 0 4px 14px rgba(20, 28, 24, 0.18);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: #000;
  border-color: #000;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2.5px;
  background: #fff;
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

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

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5.5rem);
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(26, 31, 36, 0.03), transparent 40%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 22px,
      rgba(26, 31, 36, 0.015) 22px,
      rgba(26, 31, 36, 0.015) 23px
    );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: end;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero-brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-brand span {
  display: block;
  color: var(--accent);
}

.hero h1,
.page-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.lede {
  margin: 0;
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.button:hover {
  transform: translateY(-1px);
  color: inherit;
}

.button-primary {
  background: var(--ink);
  color: #f5f7f6;
}

.button-primary:hover {
  background: #000;
  color: #fff;
}

.button-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--ink);
}

.button[aria-disabled="true"],
.button.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  transform: none;
}

.section {
  padding: var(--space-5) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head h2,
.page-hero h1,
.content-block h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-desc {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42ch;
}

.featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.featured + .featured {
  margin-top: 2.5rem;
}

.featured-identity {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.15rem;
}

.featured-app-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.7rem;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(20, 28, 24, 0.12);
}

.featured-app-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.featured-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #dfe7e3, #c9d5cf);
  min-height: 240px;
  aspect-ratio: 16 / 10;
}

.featured-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s var(--ease);
}

.featured:hover .featured-media img {
  transform: scale(1.02);
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.75rem 0.5rem 0.75rem 0.25rem;
}

.featured-body h3,
.featured-tagline {
  margin: 0.55rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.featured-body .product-doc-links {
  margin-top: 0.85rem;
}

.store-icon-links {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.85rem;
  margin-top: 1rem;
}

.store-icon-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 4.75rem;
  padding: 0.85rem 0.9rem 0.7rem;
  border-radius: 1.1rem;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 6px 16px rgba(20, 28, 24, 0.06);
}

.store-icon-link:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(20, 28, 24, 0.1);
}

.store-icon-link.is-disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

.store-icon-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
}

.store-icon-link svg,
.store-icon-glyph svg {
  width: 2.1rem;
  height: 2.1rem;
  display: block;
}

.store-icon-label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--ink-soft);
  text-align: center;
  white-space: nowrap;
}

.store-icon-links--lg {
  gap: 1rem;
  margin-top: 1.35rem;
}

.store-icon-links--lg .store-icon-link {
  min-width: 5.6rem;
  padding: 1.05rem 1.1rem 0.85rem;
  border-radius: 1.25rem;
}

.store-icon-links--lg .store-icon-glyph {
  width: 2.85rem;
  height: 2.85rem;
}

.store-icon-links--lg .store-icon-link svg,
.store-icon-links--lg .store-icon-glyph svg {
  width: 2.55rem;
  height: 2.55rem;
}

.store-icon-links--lg .store-icon-label {
  font-size: 0.82rem;
}

.featured-more {
  display: inline-flex;
  align-items: center;
  margin-top: 0.85rem;
  color: var(--accent-deep);
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  width: fit-content;
}

.featured-more:hover {
  border-bottom-color: currentColor;
}

.featured-more::after {
  content: " →";
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-live {
  background: rgba(47, 122, 107, 0.14);
  color: var(--live);
}

.badge-dev {
  background: rgba(138, 106, 47, 0.14);
  color: var(--dev);
}

.badge-exp {
  background: rgba(74, 93, 115, 0.14);
  color: var(--exp);
}

.product-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  letter-spacing: -0.02em;
}

.featured-body > p,
.product-card p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}

.featured-body > p.featured-tagline {
  margin: 0.55rem 0 0.45rem;
  color: var(--ink);
}

.featured .button,
.product-card .button {
  margin-top: 0.75rem;
  align-self: flex-start;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}

.product-card:hover {
  border-color: rgba(26, 31, 36, 0.28);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.82);
}

.product-card .tagline {
  font-weight: 650;
  color: var(--ink);
}

.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 2rem;
}

.page-hero p {
  margin: 0.75rem 0 0;
  max-width: 48ch;
  color: var(--ink-soft);
}

.content-block {
  max-width: 62ch;
}

.content-block p + p {
  margin-top: 1rem;
}

.philosophy {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.philosophy article {
  padding: 1.25rem;
  border-top: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.45);
}

.philosophy h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.philosophy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.contact-panel {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  max-width: 40rem;
}

.contact-panel a.email {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.intake-section {
  padding-top: 0;
}

.intake-panel {
  display: grid;
  gap: 1.25rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  max-width: 40rem;
}

.intake-panel .section-kicker {
  margin: 0;
}

.intake-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.intake-panel > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.intake-form {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 1.15rem !important;
  margin: 0;
  width: 100%;
  max-width: 100%;
  position: relative;
}

.intake-form > * {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.intake-field {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.45rem;
  width: 100% !important;
  max-width: 100%;
}

.intake-field > span,
.intake-type-label {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.intake-form input[type="text"],
.intake-form input[type="email"],
.intake-form select,
.intake-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.intake-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.intake-form input:focus,
.intake-form select:focus,
.intake-form textarea:focus {
  outline: 2px solid rgba(47, 122, 107, 0.35);
  outline-offset: 1px;
  border-color: var(--accent);
}

.intake-type {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.intake-type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
}

.intake-type-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 560;
  color: var(--ink);
  cursor: pointer;
}

.intake-type-options input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent-deep);
}

.intake-form .hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.intake-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.15rem;
}

.intake-form .form-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

.intake-form .form-note a {
  color: var(--accent-deep);
}

.intake-status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 560;
}

.intake-status[data-kind="success"] {
  background: rgba(47, 122, 107, 0.12);
  color: var(--accent-deep);
}

.intake-status[data-kind="error"] {
  background: rgba(138, 60, 47, 0.1);
  color: #7a3428;
}

.product-doc-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
}

.product-doc-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 560;
}

.product-doc-links a:hover {
  color: var(--accent-deep);
}

.product-doc-links .doc-sep {
  color: var(--muted);
  opacity: 0.55;
}

.legal-studio-panel {
  padding: 1.5rem 1.35rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}

.legal-studio-panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.legal-studio-panel p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.legal-index {
  display: grid;
  gap: 1rem;
}

.legal-app-block {
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}

.legal-app-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.legal-app-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.legal-product-link {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-deep);
}

.legal-soon {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-doc-groups {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .legal-doc-groups {
    grid-template-columns: repeat(2, 1fr);
  }
}

.legal-doc-group h3 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.legal-doc-list a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 560;
}

.legal-doc-list a:hover {
  color: var(--ink);
}

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  max-width: 52rem;
}

.faq-item {
  margin: 0;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}

.faq-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

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

/* Reserved AdSense shells — hidden until publisher approval; never style like CTAs */
.ad-slot {
  display: none;
  margin: 1.5rem auto;
  max-width: 728px;
  min-height: 90px;
  border: 1px dashed rgba(26, 31, 36, 0.2);
  border-radius: 8px;
  background: transparent;
}

.ad-slot.is-enabled {
  display: block;
}

.ad-slot__label {
  display: block;
  padding: 0.35rem 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-prose h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

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

.legal-prose p,
.legal-prose li {
  color: var(--ink-soft);
}

.legal-prose ul {
  padding-left: 1.2rem;
}

.site-footer {
  margin-top: var(--space-5);
  padding: 2.75rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.footer-note,
.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-copy {
  margin-top: 2rem;
}

.footer-links h3 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

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

.footer-links a:hover {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

@media (max-width: 900px) {
  .featured,
  .product-grid,
  .footer-grid,
  .philosophy {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .header-inner {
    gap: 0.65rem;
  }

  /* Conventional mobile order: ☰ | brand | lang (toggle is first in HTML) */
  .nav-toggle {
    display: inline-flex;
    order: 0;
  }

  .brand {
    min-width: 0;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    max-height: min(18rem, calc(100dvh - var(--header-h) - 1rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.35rem 0.75rem 0.65rem;
    background: #f3f5f4;
    border: 1px solid var(--line);
    border-top: none;
    border-radius: 0 0 calc(var(--radius) + 2px) calc(var(--radius) + 2px);
    box-shadow: 0 14px 36px rgba(20, 28, 24, 0.14);
    transform: translateY(-0.65rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.24s var(--ease),
      opacity 0.2s var(--ease),
      visibility 0.2s var(--ease);
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.9rem 0.65rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    border-radius: 0.55rem;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .featured {
    padding: 0.85rem;
  }

  .featured-body {
    padding: 0.5rem 0.15rem 0.35rem;
  }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* —— Product landing pages —— */

.product-landing-hero {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem);
}

.product-landing-hero .hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .product-landing-hero .hero-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.product-landing-hero h1 {
  margin: 0.75rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.product-landing-hero .lede {
  max-width: 42ch;
}

.platform-cta {
  display: block;
  margin-top: 1.5rem;
}

.platform-cta .store-icon-links {
  margin-top: 0;
}

.product-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1rem;
}

.product-app-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.85rem;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(20, 28, 24, 0.14);
}

.product-app-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.product-docs-panel {
  margin-top: 0.75rem;
}

.product-docs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 36rem;
}

.product-docs-list a {
  display: inline-flex;
  align-items: center;
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.product-docs-list a:hover {
  border-bottom-color: currentColor;
}

.product-docs-list a::after {
  content: " →";
  font-weight: 500;
}

.platform-soon {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 560;
}

.platform-cta .button.is-disabled {
  border-style: dashed;
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-family: var(--font-display);
}

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

/* WaveLog product landing — image slots (do not mix):
   .screenshot-panel--hero     → small card next to copy (16:10)
   .screenshot-panel--showcase → large “실제 UI” section (natural ratio)
   Image files: see js/wavelog-images.js */

.product-landing-hero .screenshot-panel--hero {
  aspect-ratio: 16 / 10;
}

.product-landing-hero .screenshot-panel--hero picture {
  display: block;
  width: 100%;
  height: 100%;
}

.product-landing-hero .screenshot-panel--hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.product-landing-showcase .screenshot-panel--showcase img {
  width: 100%;
  height: auto;
}

/* Portrait phone store shots (e.g. Bookus) — constrain width, center */
.product-landing-showcase .screenshot-panel--phone {
  max-width: 22rem;
  margin-inline: auto;
}

/* Store-style horizontal screenshot gallery */
.screenshot-gallery {
  margin-top: 0.75rem;
  opacity: 1 !important;
  transform: none !important;
}

.screenshot-gallery-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.screenshot-gallery-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0; /* critical: allow flex child to shrink so overflow-x works */
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0.35rem 0.15rem 1.25rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  cursor: grab;
}

.screenshot-gallery-track:active {
  cursor: grabbing;
}

.screenshot-gallery-track:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.screenshot-gallery-item {
  flex: 0 0 auto !important;
  width: min(42vw, 14.5rem);
  max-width: 15.5rem;
  margin: 0;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background: #0e0e10;
  box-shadow: var(--shadow);
}

.screenshot-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.screenshot-gallery-hint {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.screenshot-gallery-nav {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
}

.screenshot-gallery-nav:hover:not(:disabled) {
  border-color: var(--ink);
}

.screenshot-gallery-nav:disabled,
.screenshot-gallery-nav[aria-disabled="true"] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.screenshot-gallery-nav span {
  display: block;
  margin-top: -0.1em;
}

@media (min-width: 900px) {
  .screenshot-gallery-item {
    width: 15.5rem;
  }
}

@media (max-width: 640px) {
  .screenshot-gallery-shell {
    gap: 0.25rem;
  }

  .screenshot-gallery-nav {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.5rem;
  }
}

.screenshot-panel {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.screenshot-panel picture {
  display: block;
}

.screenshot-panel img {
  width: 100%;
  height: auto;
  display: block;
}

.platform-panel .store-icon-links {
  margin-top: 1.25rem;
}

.platform-panel .lede + .store-icon-links,
.platform-panel .lede + [data-product-platforms] .store-icon-links {
  margin-top: 0.5rem;
}

.platform-panel {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}

.platform-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.platform-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.platform-list .platform-soon-item {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 560;
  font-size: 0.92rem;
}

.product-cta-band {
  padding: 2.5rem 0;
  text-align: center;
}

.product-cta-band .platform-cta {
  margin-top: 1.25rem;
}

.product-cta-band .store-icon-links {
  justify-content: center;
}

.product-cta-band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.product-cta-band p {
  margin: 0 auto;
  max-width: 40ch;
  color: var(--ink-soft);
}

.more-products-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .more-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.more-product-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.more-product-card:hover {
  border-color: rgba(26, 31, 36, 0.28);
  transform: translateY(-2px);
  color: inherit;
}

.more-product-card h3 {
  margin: 0.35rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.more-product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card-link:hover {
  color: inherit;
}

.product-card-link h3 {
  transition: color 0.2s;
}

.product-card-link:hover h3 {
  color: var(--accent-deep);
}

.breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--ink);
}

