/* ── Subpage shell ── */
body.page {
  --page-stack-gap: clamp(40px, 6vw, 64px);
  overflow-x: hidden;
}

body.page .site-header {
  background: var(--header-scrolled-bg);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.2);
  color: var(--fg);
  box-shadow: var(--header-scrolled-shadow);
}

body.page .site-header .brand img {
  filter: var(--logo-filter);
  opacity: var(--logo-opacity);
}

.page-main {
  padding-top: 68px;
  min-height: 70vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(220px, 34vw, 360px);
  padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px);
  color: #f7f2ea;
  background: #1a1612;
}

html[data-theme="light"] .page-hero,
html[data-theme="light"] .page-hero h1,
html[data-theme="light"] .page-hero .page-hero-lead,
html[data-theme="light"] .page-hero p:not(.section-eyebrow) {
  color: #f7f2ea;
}

html[data-theme="light"] .page-hero .page-hero-lead,
html[data-theme="light"] .page-hero p:not(.section-eyebrow) {
  color: rgba(247, 242, 234, 0.78);
}

html[data-theme="light"] .page-hero .section-eyebrow {
  background: linear-gradient(105deg, #e8c4cb 0%, #d14d5c 50%, #e8c4cb 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

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

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 14, 12, 0.82) 0%, rgba(15, 14, 12, 0.55) 42%, rgba(15, 14, 12, 0.28) 100%),
    linear-gradient(180deg, rgba(15, 14, 12, 0.35) 0%, rgba(15, 14, 12, 0.55) 100%);
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero-inner {
  max-width: 40rem;
  margin-inline: 0;
  width: 100%;
  animation: page-hero-in 0.85s var(--ease-out) both;
}

@keyframes page-hero-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero .section-eyebrow {
  margin-bottom: 14px;
  background: linear-gradient(105deg, #e8c4cb 0%, #d14d5c 50%, #e8c4cb 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: eyebrow-sheen 7s ease-in-out infinite;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.032em;
  color: #faf6f0;
}

.page-hero-title {
  background: linear-gradient(165deg, #fffef9 0%, #faf3ea 40%, #e8d5c4 78%, #f7ebe0 100%);
  background-size: 180% 180%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.28));
  animation: ivory-sheen 8s ease-in-out infinite;
}

/* 히어로는 어두운 오버레이 — 라이트 테마의 진한 text-ember 대신 밝은 엠버 유지 */
.page-hero .text-ember {
  --text-ember: linear-gradient(115deg, #f0cfc8 0%, #d4656e 22%, #9e2b45 48%, #c45a62 72%, #8b1e3a 100%);
  --text-ember-glow: rgba(158, 43, 69, 0.35);
  --text-ember-glow-hot: rgba(212, 110, 100, 0.55);
  --text-ember-edge: rgba(74, 20, 36, 0.2);
  --text-ember-edge-hot: rgba(74, 20, 36, 0.28);
  display: inline-block;
  padding-inline: 0.02em 0.08em;
  margin-inline: -0.02em -0.08em;
  background-image: var(--text-ember);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-hero-lead,
.page-hero p:not(.section-eyebrow) {
  margin-top: 16px;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.65;
  color: rgba(250, 246, 240, 0.78);
  max-width: 32rem;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.page-hero + .page-section {
  padding-top: clamp(32px, 5vw, 48px);
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-inner,
  .page-hero-title,
  .page-hero .section-eyebrow {
    animation: none;
  }

  .page-hero-media img {
    transform: none;
  }
}

.page-section {
  padding: var(--page-stack-gap) 0 clamp(56px, 8vw, 96px);
}

.page-section + .page-section {
  border-top: 1px solid var(--line-strong);
}

.page-section--muted {
  background: var(--page-section-muted-bg);
}

.page-lead {
  margin-top: 16px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 36rem;
}

body.page .center-title,
body.page .section-eyebrow.center,
body.page .page-lead.center {
  text-align: center;
}

body.page .page-lead.center {
  margin-inline: auto;
}

body.page .section-eyebrow:not(.center),
body.page h1,
body.page .page-lead:not(.center),
body.page .page-hero-lead {
  text-align: left;
  margin-inline: 0;
}

body.page .page-section > .container > h2:not(.center-title),
body.page .about-history-intro h2,
body.page .about-vision-intro h2 {
  text-align: left;
  margin-inline: 0;
}

body.page .pricing-cta,
body.page .pricing-cta h2,
body.page .pricing-cta .pricing-eyebrow {
  text-align: center;
}

/* ── About ── */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: 40px;
}

.about-story-media {
  margin: 0;
  border-radius: clamp(12px, 1.5vw, 18px);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--media-slot);
  box-shadow: 0 24px 56px var(--shadow-deep);
  border: 1px solid var(--line);
}

.about-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-points {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

@media (min-width: 901px) {
  .about-points {
    margin-top: 65px;
  }
}

.about-point {
  padding-left: 16px;
  border-left: 2px solid transparent;
  border-image: var(--ember) 1;
}

.about-point h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.62vw, 20px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.about-point p {
  margin-top: 6px;
  font-size: clamp(13px, 1.13vw, 14px);
  line-height: 1.5;
  color: color-mix(in srgb, var(--fg) 78%, transparent);
}

.about-story .page-lead {
  margin-top: 0;
  color: color-mix(in srgb, var(--fg) 90%, transparent);
}

.about-profile {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: clamp(40px, 6vw, 64px) 0 0;
  border-top: 1px solid var(--line-strong);
}

.about-profile-item {
  display: grid;
  gap: 8px;
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid var(--line);
}

.about-profile-item:nth-child(3n) {
  padding-right: 0;
}

.about-profile-item:not(:nth-child(3n)) {
  padding-right: 28px;
  border-right: 1px solid var(--line);
  margin-right: 28px;
}

.about-profile dt {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.about-profile dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.26vw, 15px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.about-history {
  display: grid;
  gap: 32px;
}

.about-history-intro .page-lead {
  margin-top: 14px;
  max-width: 22rem;
}

.about-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.about-timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 0;
}

.about-timeline time {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.2;
}

.about-timeline h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.44vw, 18px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.about-timeline p {
  margin: 6px 0 0;
  font-size: clamp(13px, 1.13vw, 14px);
  line-height: 1.55;
  color: var(--fg-muted);
}

@media (min-width: 901px) {
  .about-history {
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.55fr);
    gap: clamp(48px, 7vw, 96px);
    align-items: start;
  }

  .about-history-intro {
    position: sticky;
    top: 96px;
    padding-top: 4px;
  }

  .about-history-intro h2 {
    max-width: 8ch;
  }

  .about-timeline {
    border-left: 1px solid var(--line-strong);
    padding-left: clamp(28px, 3.5vw, 48px);
  }

  .about-timeline li {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: clamp(24px, 3vw, 40px);
    padding: clamp(28px, 3vw, 40px) 0;
  }

  .about-timeline time {
    font-size: clamp(20px, 1.98vw, 25px);
  }

  .about-timeline h3 {
    font-size: clamp(16px, 1.53vw, 20px);
  }

  .about-timeline p {
    max-width: 36rem;
  }
}

.about-vision-block {
  display: grid;
  gap: clamp(48px, 7vw, 80px);
}

.about-vision-intro h2 {
  margin: 0;
}

.about-vision-intro .page-lead {
  margin-top: clamp(20px, 2.8vw, 28px);
  max-width: 36rem;
}

.about-vision-br {
  display: none;
}

@media (min-width: 720px) {
  .about-vision-br {
    display: inline;
  }
}

.about-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  margin-top: 0;
  padding-top: clamp(8px, 1.5vw, 16px);
}

.about-vision-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.about-vision-item h3 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.about-vision-item > p:not(.about-vision-label) {
  margin: 18px 0 0;
  font-size: clamp(14px, 1.22vw, 15px);
  line-height: 1.75;
  color: color-mix(in srgb, var(--fg) 88%, transparent);
  max-width: 30rem;
}

.about-vision-points {
  list-style: none;
  margin: clamp(28px, 3.5vw, 36px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.about-vision-points li {
  display: grid;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding-left: 14px;
  border-left: 2px solid transparent;
  border-image: var(--ember) 1;
}

.about-vision-points strong {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.17vw, 14px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.about-vision-points span {
  font-size: clamp(12px, 1.08vw, 13px);
  line-height: 1.5;
  color: var(--fg-muted);
}

.about-vision-focus {
  list-style: none;
  margin: 0;
  padding: clamp(36px, 5vw, 52px) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.about-vision-focus li {
  display: grid;
  gap: 12px;
  padding: 0 24px 0 0;
}

.about-vision-focus li:not(:last-child) {
  padding-right: 36px;
  margin-right: 36px;
  border-right: 1px solid var(--line);
}

.about-vision-focus strong {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-vision-focus span {
  font-size: clamp(12px, 1.08vw, 13px);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 18rem;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.doc-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.doc-card figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.doc-card:hover figure {
  border-color: var(--card-hover-border);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px var(--shadow-deep);
}

.doc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.doc-card h3 {
  margin: 0;
  font-size: clamp(14px, 1.22vw, 15px);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.doc-card p {
  margin-top: 4px;
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.45;
}

/* ── Usage ── */
.guide-steps {
  display: grid;
  gap: 0;
  margin-top: 40px;
  max-width: 720px;
  margin-inline: auto;
}

.guide-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-strong);
}

.guide-step:first-child {
  border-top: 1px solid var(--line-strong);
}

.guide-num {
  font-family: var(--font-display);
  font-size: clamp(25px, 2.7vw, 32px);
  font-weight: 700;
  line-height: 1;
  background: var(--ember);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.guide-step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.guide-step p {
  margin-top: 8px;
  font-size: clamp(13px, 1.17vw, 14px);
  line-height: 1.55;
  color: var(--fg-muted);
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.use-item {
  position: relative;
  overflow: hidden;
  border-radius: clamp(14px, 1.6vw, 18px);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 11;
  background: var(--media-slot);
}

.use-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.use-item:hover img {
  transform: scale(1.04);
}

.use-item-meta {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(8, 7, 6, 0.88));
  color: #f7f2ea;
}

.use-item-meta h3 {
  margin: 0;
  font-size: clamp(15px, 1.44vw, 18px);
  font-weight: 600;
  color: #f7f2ea;
}

.use-item-meta p {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(244, 239, 231, 0.72);
}

.usage-video {
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
}

/* ── Reviews (shorts + capture strip) ── */
.review-shorts-section .shorts-rail {
  margin-top: 32px;
  max-width: 1180px;
}

.review-shorts-section .review-shorts-link {
  margin-top: 8px;
}

.review-captures-section {
  padding-top: clamp(12px, 2vw, 20px);
}

.review-captures-section .review-marquee {
  margin-top: 24px;
}

.review-captures-section .review-store-link {
  margin-top: 28px;
}

/* ── FAQ / Support ── */
.faq-list {
  margin-top: 40px;
  max-width: 760px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease;
}

.faq-trigger:hover {
  color: var(--accent-soft);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  position: relative;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.35s var(--ease-out);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--fg);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.faq-icon::before {
  width: 12px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1.5px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-icon {
  border-color: rgba(158, 43, 69, 0.4);
  transform: rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
  opacity: 0;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel p {
  margin: 0;
  padding: 0 4px 22px;
  font-size: clamp(15px, 1.35vw, 16px);
  line-height: 1.6;
  color: color-mix(in srgb, var(--fg) 86%, transparent);
  max-width: 40rem;
}

@media (min-width: 901px) {
  .faq-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(40px, 4vw, 64px);
    max-width: none;
    border-top: 0;
  }

  .faq-item {
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }
}

.page-footer-cta {
  margin-top: 64px;
}

@media (max-width: 900px) {
  .about-story {
    grid-template-columns: 1fr;
  }

  .about-profile {
    grid-template-columns: 1fr;
  }

  .about-profile-item,
  .about-profile-item:nth-child(odd),
  .about-profile-item:not(:nth-child(3n)),
  .about-profile-item:nth-child(3n) {
    display: grid;
    grid-template-columns: 5.75rem minmax(0, 1fr);
    gap: 8px 14px;
    align-items: baseline;
    padding: 12px 0;
    margin-right: 0;
    padding-right: 0;
    border-right: 0;
  }

  .about-profile dt {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .about-profile dd {
    font-size: 13px;
  }

  .about-vision {
    grid-template-columns: 1fr;
  }

  .about-vision-focus {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-vision-focus li,
  .about-vision-focus li:not(:last-child) {
    padding: 22px 0;
    margin-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .about-vision-focus li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .guide-step {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .about-timeline li {
    grid-template-columns: 4.25rem 1fr;
    gap: 14px;
  }

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

/* ── Light mode: ivory ↔ white page rhythm ── */
html[data-theme="light"] .page-section:not(.page-section--muted) {
  background: #fffcf7;
  box-shadow: inset 0 1px 0 rgba(42, 28, 32, 0.05);
}

html[data-theme="light"] .page-section + .page-section:not(.page-section--muted) {
  border-top-color: rgba(42, 28, 32, 0.06);
}

html[data-theme="light"] .page-section--muted {
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(158, 43, 69, 0.04), transparent 55%),
    linear-gradient(180deg, #faf7f2 0%, #f5f0e8 100%);
}

html[data-theme="light"] .page-section--muted + .page-section:not(.page-section--muted),
html[data-theme="light"] .page-hero + .page-section:not(.page-section--muted) {
  border-top: 0;
}

html[data-theme="light"] .page-hero + .page-section:not(.page-section--muted) {
  box-shadow: none;
}

html[data-theme="light"] .doc-card figure {
  box-shadow: 0 10px 28px rgba(42, 28, 32, 0.06);
}
