/*
Theme Name: StoryMaker Theme
Theme URI: https://mystorymaker.duckdns.org/
Author: StoryMaker
Description: StoryMaker SNS AI Studio WordPress theme for local small business marketing tools.
Version: 0.1
Text Domain: storymaker
*/

/* Global Korean typography */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif !important;
  letter-spacing: -0.035em;
  line-height: 1.25;
  font-weight: 850;
  word-break: keep-all;
  overflow-wrap: break-word;
}

p, li, dd, dt {
  line-height: 1.75;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a, strong, b, small, span {
  font-family: inherit;
}

/* StoryMaker owner before/after + channel flow section */
.owner-before-after,
.storymaker-flow {
  padding: 80px 20px;
  background: #f0fbf7;
}

.owner-before-after .section-inner,
.storymaker-flow .section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.owner-before-after .section-heading,
.storymaker-flow .section-heading {
  text-align: center;
  margin-bottom: 42px;
}

.owner-before-after .section-heading .eyebrow,
.storymaker-flow .section-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #00a862;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.owner-before-after .section-heading h2,
.storymaker-flow .section-heading h2 {
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.35;
  color: #111827;
  margin: 0 0 14px;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.owner-before-after .section-heading p,
.storymaker-flow .section-heading p {
  font-size: 18px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.compare-card h3 {
  font-size: 24px;
  margin: 0 0 24px;
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.compare-card h3 span {
  font-size: 16px;
  color: #00a862;
  margin-left: 8px;
}

.compare-card.before h3 span {
  color: #ef4444;
}

.compare-card.after {
  border: 2px solid rgba(0, 168, 98, 0.25);
}

.compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-card li {
  font-size: 19px;
  line-height: 1.8;
  margin-bottom: 18px;
  color: #1f2937;
  word-break: keep-all;
}

.compare-card li:last-child {
  margin-bottom: 0;
}

.section-note {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: #111827;
  margin: 36px 0 0;
  word-break: keep-all;
}

.story-text {
  max-width: 860px;
  margin: 0 auto 36px;
  text-align: center;
  font-size: 18px;
  line-height: 1.9;
  color: #374151;
  word-break: keep-all;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 36px 0;
}

.channel-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.channel-card strong {
  display: block;
  font-size: 18px;
  color: #111827;
  margin-bottom: 8px;
  font-weight: 900;
}

.channel-card span {
  display: block;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.process-grid div {
  background: #111827;
  color: #ffffff;
  border-radius: 18px;
  padding: 22px 16px;
  text-align: center;
}

.process-grid b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #00c73c;
  margin-bottom: 12px;
  font-size: 16px;
}

.process-grid span {
  display: block;
  font-weight: 800;
  line-height: 1.5;
  word-break: keep-all;
}

.section-cta {
  text-align: center;
  margin-top: 52px;
}

.section-cta h3 {
  font-size: clamp(26px, 3vw, 30px);
  color: #111827;
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-cta p {
  font-size: 17px;
  color: #4b5563;
  margin: 0 0 24px;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  border-radius: 999px;
  background: #00c73c;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 900;
  font-size: 17px;
  box-shadow: 0 12px 28px rgba(0, 199, 60, 0.22);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-cta:hover {
  background: #00a862;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 168, 98, 0.26);
}

@media (max-width: 900px) {
  .owner-before-after,
  .storymaker-flow {
    padding: 64px 18px;
  }

  .compare-grid,
  .channel-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .owner-before-after .section-heading h2,
  .storymaker-flow .section-heading h2 {
    font-size: 30px;
  }

  .owner-before-after .section-heading p,
  .storymaker-flow .section-heading p,
  .story-text {
    font-size: 17px;
  }

  .compare-card {
    padding: 28px 22px;
  }

  .compare-card li {
    font-size: 17px;
  }

  .section-note {
    font-size: 20px;
  }
}

.ob-hero-local.banner > .image {
  animation: heroImageDrift 22s ease-in-out infinite alternate !important;
  transform-origin: center center !important;
  will-change: transform, background-position, filter !important;
  filter: saturate(1.03) contrast(1.02) brightness(0.99) !important;
}

.ob-hero-local.banner > .image::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  pointer-events: none !important;
  background: linear-gradient(120deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008) 42%, rgba(15,23,42,0.05)) !important;
  backdrop-filter: blur(0.7px) saturate(1.04) !important;
  -webkit-backdrop-filter: blur(0.7px) saturate(1.04) !important;
}

@keyframes heroImageDrift {
  0% { transform: scale(1.006) translate3d(-0.5%, -0.3%, 0); background-position: 48% 49%; }
  35% { transform: scale(1.035) translate3d(0.8%, 0.4%, 0); background-position: 54% 47%; }
  70% { transform: scale(1.025) translate3d(-0.7%, 0.6%, 0); background-position: 51% 53%; }
  100% { transform: scale(1.047) translate3d(0.9%, -0.45%, 0); background-position: 56% 52%; }
}

@media (prefers-reduced-motion: reduce) {
  .ob-hero-local.banner > .image {
    animation: none !important;
    transform: none !important;
  }
}

/* SNS AI Studio typography system: 전체 페이지 기본 글자 힘 조정 */
:root {
  --sns-type-h1-size: clamp(38px, 3.1vw, 42px);
  --sns-type-h2-size: clamp(30px, 2.45vw, 34px);
  --sns-type-h3-size: clamp(22px, 1.75vw, 24px);
  --sns-type-body-size: 17px;
  --sns-type-desc-size: 16px;
  --sns-type-h1-weight: 700;
  --sns-type-h2-weight: 700;
  --sns-type-h3-weight: 600;
  --sns-type-body-weight: 500;
  --sns-type-desc-weight: 400;
}

body,
.ob-page {
  font-size: var(--sns-type-body-size) !important;
  font-weight: var(--sns-type-body-weight) !important;
}

h1,
.banner h1,
.ob-hero h1 {
  font-size: var(--sns-type-h1-size) !important;
  font-weight: var(--sns-type-h1-weight) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.04em !important;
}

h2,
.wrapper h2,
.section-heading h2,
.ob-latest-case h2,
.ob-contact h2,
#ob-service-accordion h2 {
  font-size: var(--sns-type-h2-size) !important;
  font-weight: var(--sns-type-h2-weight) !important;
  line-height: 1.24 !important;
  letter-spacing: -0.035em !important;
}

h3,
.compare-card h3,
.channel-card strong,
.section-cta h3,
.ob-service-title,
.ob-latest-case-text h3 {
  font-size: var(--sns-type-h3-size) !important;
  font-weight: var(--sns-type-h3-weight) !important;
  line-height: 1.32 !important;
  letter-spacing: -0.03em !important;
}

p,
li,
.story-text,
.compare-card li,
.section-heading p,
.ob-service-lead,
.ob-service-detail p,
.ob-latest-case-text p,
.ob-contact p {
  font-size: var(--sns-type-body-size) !important;
  font-weight: var(--sns-type-body-weight) !important;
  line-height: 1.74 !important;
  letter-spacing: -0.015em !important;
}

.eyebrow,
.channel-card span,
.section-note,
.section-cta p,
.ob-service-badge,
.ob-latest-case-text span,
small {
  font-size: var(--sns-type-desc-size) !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  letter-spacing: -0.015em !important;
}

strong,
b {
  font-weight: 600 !important;
}

.button,
.primary-cta,
button,
input[type="submit"] {
  font-weight: 600 !important;
}

@media (max-width: 760px) {
  :root {
    --sns-type-h1-size: clamp(30px, 8vw, 36px);
    --sns-type-h2-size: clamp(25px, 6.5vw, 30px);
    --sns-type-h3-size: clamp(20px, 5.4vw, 23px);
    --sns-type-body-size: 16px;
    --sns-type-desc-size: 15px;
  }
}
