/* CATS 제품군 공통 조각: 제품군 띠 · 사이트맵 바닥글 · 소개(/about) · 앱(/apps, /apps/<slug>, /apps/<slug>/guide)
   · 홈 작업 검색 · 홈/Pro '함께 만들어가는 CAD'. 색은 brand.css 변수(--product-accent 등)를 따른다. */

/* ---------- 제품군 띠(scripts/generate_apps.py가 CATS_FAMILY 표시 사이에 채운다) ---------- */
.family-strip {
  padding: 72px 0;
  border-top: 1px solid var(--cats-line);
  background: #f7f9fc;
}

.family-strip-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 28px;
}

.family-strip-head h2 {
  margin: 10px 0 0;
  color: var(--cats-ink);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.family-strip-head p {
  max-width: 470px;
  margin: 0;
  color: var(--cats-muted);
  font-size: 15px;
}

.family-strip-head p a {
  color: var(--cats-blue);
  font-weight: 900;
  white-space: nowrap;
}

.family-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.family-strip-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px 14px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--cats-line);
  border-top: 3px solid var(--card-accent, var(--cats-blue));
  border-radius: 8px;
  background: #fff;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.family-strip-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.family-strip-card img {
  width: 44px;
  height: 44px;
}

.family-strip-copy {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
}

.family-strip-copy strong {
  color: var(--cats-ink);
  font-size: 17px;
  line-height: 1.3;
}

.family-strip-copy small {
  color: var(--card-accent, var(--cats-blue));
  font-size: 12px;
  font-weight: 800;
}

.family-strip-text {
  grid-column: 1 / -1;
  color: var(--cats-muted);
  font-size: 14px;
  line-height: 1.65;
}

.family-strip-card.is-current {
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: inset 0 0 0 1px var(--card-accent, var(--cats-blue));
}

.family-strip-here {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--card-accent, var(--cats-blue));
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

/* ---------- 사이트맵 바닥글 ---------- */
.family-footer {
  padding: 48px 0 40px;
}

.family-footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.family-footer-brand {
  display: grid;
  align-content: start;
  gap: 6px;
}

.family-footer-brand strong {
  color: #fff;
  font-size: 15px;
}

.family-footer-brand small {
  margin-top: 10px;
}

.family-footer-col {
  display: grid;
  align-content: start;
  gap: 8px;
}

.family-footer-col strong {
  margin-bottom: 4px;
  color: #e2e8f0;
  font-size: 13px;
}

.family-footer-col a:hover {
  color: #fff;
}

/* ---------- 소개·앱 모음 머리 ---------- */
.family-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 76px;
  border-bottom: 1px solid var(--cats-line);
  background:
    linear-gradient(120deg, rgba(29, 78, 216, 0.06), transparent 52%),
    linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}

.family-hero h1 {
  max-width: 860px;
  margin: 22px 0 20px;
  color: var(--cats-ink);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.family-hero h1 span {
  color: var(--cats-blue);
}

.family-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--cats-muted);
  font-size: 18px;
  line-height: 1.85;
}

.apps-page .family-hero {
  padding: 64px 0 52px;
}

.apps-list.home-section {
  padding-top: 56px;
}

/* ---------- 홈: 작업 검색 ---------- */
.home-task-search {
  max-width: 620px;
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--cats-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.home-task-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--cats-ink);
  font-size: 14px;
  font-weight: 900;
}

.home-task-input {
  display: flex;
  gap: 8px;
}

.home-task-input input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #a8b6c8;
  border-radius: 8px;
  color: var(--cats-ink);
  background: #fff;
  font: inherit;
  font-size: 15px;
}

.home-task-input button {
  padding: 0 18px;
  border: 1px solid var(--cats-blue);
  border-radius: 8px;
  color: #fff;
  background: var(--cats-blue);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.home-task-search p {
  margin: 8px 0 0;
  color: var(--cats-muted);
  font-size: 12px;
}

.home-hero-copy .home-hero-proof {
  margin-top: 22px;
}

/* ---------- 홈: CATS 앱 ---------- */
.home-apps {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--cats-line);
}

.home-apps-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.home-apps-head h3 {
  margin: 8px 0 0;
  color: var(--cats-ink);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.home-apps-head .home-text-link {
  --card-accent: var(--cats-blue);
}

.home-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
  gap: 14px;
}

.home-app-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--cats-line);
  border-left: 3px solid var(--card-accent);
  border-radius: 8px;
  background: #fff;
}

.home-app-icon {
  width: 56px;
  height: 56px;
}

.home-app-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--card-accent);
  font-size: 12px;
  font-weight: 900;
}

.home-app-copy h4 {
  margin: 4px 0;
  color: var(--cats-ink);
  font-size: 19px;
}

.home-app-copy p {
  margin: 0;
  color: var(--cats-muted);
  font-size: 14px;
}

.home-app-copy small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.home-app-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.home-apps-empty {
  color: var(--cats-muted);
}

/* ---------- 상태 배지(앱) ---------- */
.app-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--card-accent, var(--product-accent));
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.app-status.is-available {
  color: #047857;
}

.app-status.is-paused {
  color: #b45309;
}

/* ---------- 홈·Pro: 함께 만들어가는 CAD ---------- */
.home-together {
  background: #fff;
}

.home-together-inner,
.pro-together-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.home-together-copy h2 {
  margin: 12px 0 16px;
  color: var(--cats-ink);
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.045em;
}

.home-together-copy > p {
  max-width: 560px;
  margin: 0;
  color: var(--cats-muted);
  font-size: 16px;
  line-height: 1.85;
}

.home-together-copy .hero-actions {
  align-items: center;
  margin-top: 26px;
}

.home-together-copy .home-text-link {
  --card-accent: var(--cats-blue);
}

.home-together-steps,
.pro-together-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-together-steps li,
.pro-together-steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--cats-line);
  border-radius: 8px;
  background: #f8fafc;
}

.home-together-steps span,
.pro-together-steps span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: 8px;
  color: var(--product-accent);
  background: var(--product-tint);
  font-size: 12px;
  font-weight: 900;
}

.home-together-steps strong,
.pro-together-steps strong {
  color: var(--cats-ink);
  font-size: 17px;
}

.home-together-steps p,
.pro-together-steps p {
  margin: 4px 0 0;
  color: var(--cats-muted);
  font-size: 14px;
  line-height: 1.7;
}

.pro-together {
  padding: 76px 0;
  border-bottom: 1px solid var(--cats-line);
  background:
    linear-gradient(135deg, rgba(238, 244, 255, 0.9), rgba(237, 253, 250, 0.7)),
    #fff;
}

.pro-together .section-title,
.home-together-copy h2,
.family-strip-head h2 {
  text-wrap: balance;
}

.pro-together .section-sub {
  max-width: 600px;
  line-height: 1.85;
}

.pro-together-steps li {
  background: rgba(255, 255, 255, 0.92);
}

.pro-together-goal {
  margin: 14px 0 0;
  padding: 16px 20px;
  border-radius: 8px;
  color: #e2e8f0;
  background: #172033;
  font-size: 14px;
  line-height: 1.75;
}

.pro-together-goal strong {
  display: block;
  margin-bottom: 4px;
  color: #93c5fd;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ---------- 소개(/about) ---------- */
.about-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 56px;
  align-items: center;
}

.about-hero-visual {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  color: #e2e8f0;
  background:
    linear-gradient(rgba(96, 165, 250, 0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(96, 165, 250, 0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    #0b1220;
  box-shadow: var(--shadow-panel);
}

.about-hero-core {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.about-hero-core strong {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
}

.about-hero-core span {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 800;
}

.about-hero-tiers {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-hero-tiers li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(23, 32, 51, 0.92);
}

.about-hero-tiers strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.about-hero-tiers small {
  color: #94a3b8;
  font-size: 13px;
}

.about-hero-icons {
  display: flex;
  gap: 6px;
}

.about-hero-icons img {
  width: 40px;
  height: 40px;
}

.about-hero-icons.is-apps {
  display: grid;
  grid-template-columns: repeat(2, 17px);
  gap: 6px;
  width: 40px;
}

.about-hero-icons.is-apps i {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  background: #6d28d9;
}

.about-hero-icons.is-apps i:nth-child(2),
.about-hero-icons.is-apps i:nth-child(3) {
  background: #a78bfa;
}

.about-hero-visual figcaption {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.about-hero-visual figcaption b {
  color: #93c5fd;
}

.about-why-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
}

.about-why h2,
.about-why-inner h2 {
  margin: 12px 0 0;
  color: var(--cats-ink);
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.045em;
}

.about-why-copy > p {
  margin: 0 0 16px;
  color: #475569;
  font-size: 17px;
  line-height: 1.9;
}

.about-before-after {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.about-before-after li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--cats-line);
  border-radius: 8px;
  background: #f8fafc;
}

.about-before-after span {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 800;
  text-decoration: line-through;
}

.about-before-after strong {
  color: var(--cats-ink);
  font-size: 15px;
}

.about-before-after a {
  color: var(--cats-blue);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.about-principles-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-principles-grid strong small {
  display: block;
  margin-top: 4px;
  color: #93c5fd;
  font-size: 14px;
}

.about-structure {
  background: #f7f9fc;
}

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

.about-tiers li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 28px;
  border: 1px solid var(--cats-line);
  border-radius: 8px;
  background: #fff;
}

.about-tier-step {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: #fff;
  background: var(--cats-blue);
  font-size: 20px;
  font-weight: 900;
}

.about-tiers li:nth-child(2) .about-tier-step { background: #0f766e; }
.about-tiers li:nth-child(3) .about-tier-step { background: #6d28d9; }

.about-tiers small {
  color: var(--cats-muted);
  font-size: 12px;
  font-weight: 900;
}

.about-tiers h3 {
  margin: 4px 0 8px;
  color: var(--cats-ink);
  font-size: 21px;
}

.about-tiers h3 a {
  color: var(--cats-blue);
}

.about-tiers p {
  margin: 0;
  color: #475569;
}

.about-page .family-strip {
  border-top: 0;
  padding-top: 0;
}

.about-promise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.about-promise-grid article {
  padding: 24px;
  border: 1px solid var(--cats-line);
  border-top: 3px solid var(--cats-blue);
  border-radius: 8px;
  background: #fff;
}

.about-promise-grid h3 {
  margin: 0 0 10px;
  color: var(--cats-ink);
  font-size: 18px;
  line-height: 1.4;
}

.about-promise-grid p {
  margin: 0;
  color: var(--cats-muted);
  font-size: 14px;
  line-height: 1.75;
}

.about-promise-grid a {
  color: var(--cats-blue);
  font-weight: 800;
}

.about-join {
  background: #f7f9fc;
}

/* ---------- 앱 모음(/apps) ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
  gap: 18px;
}

.app-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--cats-line);
  border-top: 3px solid var(--card-accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-card-category {
  margin-top: 20px;
  color: var(--card-accent);
  font-size: 12px;
  font-weight: 900;
}

.app-card h2 {
  margin: 4px 0 6px;
  color: var(--cats-ink);
  font-size: 28px;
  letter-spacing: -0.035em;
}

.app-card-tagline {
  margin: 0 0 10px;
  color: var(--cats-ink);
  font-weight: 800;
}

.app-card > p:not(.app-card-tagline) {
  margin: 0;
  color: var(--cats-muted);
}

.app-card-points {
  display: grid;
  gap: 8px;
  margin: 22px 0 26px;
  padding: 18px 0 0;
  border-top: 1px solid var(--cats-line);
  list-style: none;
}

.app-card-points li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  font-size: 14px;
}

.app-card-points strong {
  color: var(--card-accent);
}

.app-card-points span {
  color: #334155;
}

.app-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.apps-page .btn-primary,
.product-app .btn-primary {
  border-color: var(--card-accent, var(--product-accent));
  background: var(--card-accent, var(--product-accent));
}

.apps-compare {
  background: #f7f9fc;
}

.apps-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.apps-compare-grid article {
  padding: 28px;
  border: 1px solid var(--cats-line);
  border-radius: 8px;
  background: #fff;
}

.apps-compare-grid span {
  color: var(--cats-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.apps-compare-grid article:last-child span {
  color: #6d28d9;
}

.apps-compare-grid h3 {
  margin: 8px 0 10px;
  color: var(--cats-ink);
  font-size: 22px;
}

.apps-compare-grid p {
  margin: 0 0 16px;
  color: var(--cats-muted);
}

.apps-compare-grid .home-text-link {
  --card-accent: var(--cats-blue);
}

/* ---------- 앱 소개(/apps/<slug>) ---------- */
.app-hero .hero-inner {
  min-height: 600px;
}

.app-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.app-hero-badges .eyebrow {
  margin-bottom: 0;
}

.app-hero-title {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 22px;
}

.app-hero-title img {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
}

.app-hero .hero-title {
  font-size: clamp(34px, 4vw, 50px);
}

.app-hero .hero-title span {
  display: block;
  margin-top: 8px;
  font-size: 0.62em;
  line-height: 1.3;
}

.app-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 660px;
  margin: 32px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--cats-line);
  border-radius: 8px;
  background: var(--cats-line);
  list-style: none;
}

.app-highlights li {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  background: #fff;
}

.app-highlights strong {
  color: var(--product-accent);
  font-size: 15px;
}

.app-highlights span {
  color: var(--cats-muted);
  font-size: 12px;
  font-weight: 700;
}

.app-split-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr);
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--cats-line);
  border-radius: 8px;
  background: #0f172a;
  box-shadow: var(--shadow-panel);
}

.app-split-source,
.app-split-output {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  background: #172033;
}

.app-split-source > span,
.app-split-output > span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.app-split-source strong {
  color: #fff;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.app-split-sheets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.app-split-sheets i {
  aspect-ratio: 1.414;
  border: 1px solid rgba(196, 181, 253, 0.7);
  border-radius: 3px;
  background:
    linear-gradient(rgba(196, 181, 253, 0.35) 1px, transparent 1px) 0 72% / 100% 100% no-repeat,
    linear-gradient(90deg, transparent 62%, rgba(196, 181, 253, 0.35) 62% 63%, transparent 63%),
    rgba(109, 40, 217, 0.12);
}

.app-split-arrow {
  color: #c4b5fd;
  font-size: 28px;
  font-weight: 900;
}

.app-split-output ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-split-output li {
  padding: 8px 10px;
  border: 1px solid rgba(196, 181, 253, 0.35);
  border-radius: 6px;
  color: #ede9fe;
  background: rgba(109, 40, 217, 0.16);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.app-split-output small {
  color: #94a3b8;
  font-size: 12px;
}

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

.app-problems li {
  padding: 22px 22px 22px 52px;
  position: relative;
  border: 1px solid var(--cats-line);
  border-radius: 8px;
  color: #334155;
  background: #fff;
  font-weight: 700;
  line-height: 1.7;
}

.app-problems li::before {
  position: absolute;
  top: 22px;
  left: 20px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  content: "";
  background: var(--product-tint);
  box-shadow: inset 0 0 0 5px var(--product-accent);
}

.app-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-steps .comfort-icon {
  color: var(--product-accent);
  background: var(--product-tint);
}

.section-comfort .section-sub a,
.app-guide-body a {
  color: var(--product-accent);
  font-weight: 800;
}

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

.app-feature {
  padding: 24px;
  border: 1px solid var(--cats-line);
  border-radius: 8px;
  background: #fff;
}

.app-feature h3 {
  margin: 0 0 8px;
  color: var(--cats-ink);
  font-size: 18px;
}

.app-feature p {
  margin: 0;
  color: var(--cats-muted);
  font-size: 14px;
  line-height: 1.75;
}

.app-faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.app-faq {
  border: 1px solid var(--cats-line);
  border-radius: 8px;
  background: #fff;
}

.app-faq summary {
  padding: 18px 22px;
  color: var(--cats-ink);
  font-weight: 900;
  cursor: pointer;
}

.app-faq p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--cats-muted);
}

.app-download-pending {
  display: grid;
  gap: 22px;
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: #172033;
}

.app-download-pending h3 {
  margin: 12px 0 8px;
  color: #fff;
  font-size: 22px;
}

.app-download-pending p {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
}

.app-download-pending .app-status {
  background: transparent;
  color: #c4b5fd;
}

.app-download-pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-download-support {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 14px;
  font-weight: 800;
}

.app-download-support a {
  color: #c4b5fd;
}

.download-panel .app-download-support a {
  color: var(--product-accent);
}

.app-download-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* ---------- 앱 도움말(/apps/<slug>/guide) ---------- */
.app-guide {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 40px 0 80px;
}

.app-guide-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 28px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--cats-line);
}

.app-guide-crumbs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--cats-muted);
  font-size: 13px;
  font-weight: 700;
}

.app-guide-crumbs a {
  color: var(--product-accent);
}

.app-guide-title {
  display: flex;
  gap: 18px;
  align-items: center;
}

.app-guide-title h1 {
  margin: 0 0 6px;
  color: var(--cats-ink);
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.035em;
}

.app-guide-title p {
  margin: 0;
  color: var(--cats-muted);
}

.app-guide-actions {
  display: flex;
  gap: 10px;
}

.app-guide-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-top: 36px;
}

.app-guide-layout > * {
  min-width: 0;
}

.app-guide-toc {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--cats-line);
  border-radius: 8px;
  background: #f8fafc;
}

.app-guide-toc strong {
  color: var(--cats-ink);
  font-size: 13px;
}

.app-guide-toc ol {
  display: grid;
  gap: 2px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.app-guide-toc a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.app-guide-toc a:hover {
  color: var(--product-accent);
  background: var(--product-tint);
}

.app-guide-section {
  padding: 0 0 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--cats-line);
  scroll-margin-top: 92px;
}

.app-guide-section h2,
.app-guide-help h2 {
  margin: 0 0 14px;
  color: var(--cats-ink);
  font-size: 25px;
  letter-spacing: -0.03em;
}

.app-guide-section p {
  max-width: 760px;
  margin: 0 0 12px;
  color: #334155;
  font-size: 16px;
  line-height: 1.85;
}

/* 도움말 그림: 앱 화면(정지)과 움직이는 그림(애니메이션 WebP, 동작 줄이기면 정지 화면) */
.app-guide-figure {
  max-width: 820px;
  margin: 18px 0 20px;
}

.app-guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--cats-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.app-guide-figure.is-motion {
  max-width: 760px;
}

.app-guide-figure figcaption {
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.app-guide-items {
  display: grid;
  gap: 8px;
  max-width: 820px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.app-guide-items li {
  padding: 12px 16px;
  border-left: 3px solid var(--product-accent);
  border-radius: 0 8px 8px 0;
  color: #334155;
  background: #f8fafc;
  font-size: 15px;
  line-height: 1.75;
}

.app-guide-items strong {
  color: var(--cats-ink);
}

.app-guide-table {
  max-width: 100%;
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--cats-line);
  border-radius: 8px;
}

.app-guide-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.app-guide-table th,
.app-guide-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--cats-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.app-guide-table thead th {
  color: var(--cats-muted);
  background: #f8fafc;
  font-size: 12px;
}

.app-guide-table tbody th {
  width: 110px;
  color: var(--product-accent);
  white-space: nowrap;
}

.app-guide-table tr:last-child th,
.app-guide-table tr:last-child td {
  border-bottom: 0;
}

.app-guide-code {
  max-width: 100%;
  margin: 14px 0 0;
  padding: 18px;
  overflow-x: auto;
  border-radius: 8px;
  color: #e2e8f0;
  background: #0f172a;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
}

.app-guide-help {
  padding: 28px;
  border: 1px solid var(--cats-line);
  border-radius: 8px;
  background: var(--product-tint);
}

.app-guide-help p {
  margin: 0;
  color: #334155;
}

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .family-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-footer-brand {
    grid-column: 1 / -1;
  }

  .home-together-inner,
  .pro-together-inner,
  .about-why-inner,
  .about-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-hero-visual {
    max-width: 560px;
  }

  .about-principles-grid,
  .about-promise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-principles-grid article:nth-child(2) {
    border-right: 0;
  }

  .about-principles-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  }

  .app-feature-grid,
  .app-problems,
  .app-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-split-visual {
    max-width: 640px;
  }
}

@media (max-width: 760px) {
  .family-strip {
    padding: 56px 0;
  }

  .family-strip-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .family-hero {
    padding: 56px 0 50px;
  }

  .family-hero p {
    font-size: 16px;
  }

  .family-header .site-nav {
    display: none;
  }

  .home-task-input {
    flex-direction: column;
  }

  .home-task-input input {
    flex: 0 0 auto;
  }

  .home-task-input button {
    min-height: 44px;
  }

  .home-app-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .home-app-icon {
    width: 48px;
    height: 48px;
  }

  .home-app-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-items: start;
    gap: 18px;
  }

  .home-apps-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .about-before-after li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .about-principles-grid,
  .about-promise-grid,
  .apps-compare-grid,
  .app-feature-grid,
  .app-problems,
  .app-steps,
  .app-highlights {
    grid-template-columns: 1fr;
  }

  .about-principles-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  }

  .about-principles-grid article:last-child {
    border-bottom: 0;
  }

  .about-tiers li {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
  }

  .app-card {
    padding: 22px;
  }

  .app-card-points li {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .app-hero-title {
    align-items: flex-start;
  }

  .app-hero-title img {
    width: 56px;
    height: 56px;
  }

  .app-split-visual {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .app-split-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .app-guide-head {
    grid-template-columns: 1fr;
  }

  .app-guide-title {
    align-items: flex-start;
  }

  .app-guide-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .app-guide-toc {
    position: static;
  }

  .app-guide-section h2 {
    font-size: 22px;
  }

  .family-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }
}

/* 좁은 휴대폰: 제품군 머리글은 로고와 다운로드 버튼을 한 줄에 둔다 */
@media (max-width: 480px) {
  .family-page .brand-copy {
    display: none;
  }

  .family-page .site-header {
    flex-wrap: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .family-strip-card {
    transition: none;
  }
}
