/* MaroStory 페이지 본문 — 포트폴리오와 같은 톤: 흰 바탕, 검정 글자, 코발트 포인트, 제품별 브랜드 패널.
   공통 헤더·푸터·다른 제품 섹션은 shell.css. */
:root {
  --paper: #ffffff;
  --tint: #f4f5f7;
  --ink: #000000;
  --text: #464b53;
  --muted: #8a8f97;
  --rule: #e2e4e8;
  --cobalt: #1f45d6;
  --dark: #0c0d10;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 28px;
  --font: "Wanted Sans Variable", "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--paper); line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { color: var(--ink); font-weight: 750; letter-spacing: -0.025em; line-height: 1.25; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 650; font-size: 16px; transition: background .2s, color .2s, border-color .2s; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--cobalt); }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-line:hover { border-color: var(--cobalt); color: var(--cobalt); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--ink); }
.more:hover { color: var(--cobalt); }
.more svg { transition: transform .2s; }
.more:hover svg { transform: translateX(3px); }
.stores { display: flex; flex-wrap: wrap; gap: 8px; }
.store { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; font-size: 14px; font-weight: 650; color: var(--ink); transition: border-color .2s; }
.store:hover { border-color: var(--ink); }
.store-os { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.store svg { color: var(--muted); }

/* Sections */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--dark); color: #b9bdc5; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--cobalt); letter-spacing: .02em; margin-bottom: 14px; }
.section-dark .eyebrow { color: #8ea4ff; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 50px); }
.section-lead { margin-top: 18px; font-size: clamp(17px, 1.6vw, 19px); }
.num { font-size: 13px; font-weight: 700; color: var(--cobalt); letter-spacing: .04em; }
.section-dark .num { color: #8ea4ff; }
.app-id { display: flex; align-items: center; gap: 14px; }
.app-icon { border-radius: 23%; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.app-id h3 { font-size: 22px; }
.app-sub { font-size: 14px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.phone { border-radius: 26px; box-shadow: 0 30px 60px -22px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.06); background: #fff; }

/* Home hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 10vw, 130px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.18; letter-spacing: -0.035em; font-weight: 800; }
.hero-lead { margin-top: 26px; font-size: clamp(17px, 1.7vw, 20px); }
.hero-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.icon-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.8vw, 22px); }
.icon-wall li { aspect-ratio: 1; animation: rise .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 55ms); }
.icon-wall a { display: block; height: 100%; border-radius: 24%; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px -12px color-mix(in srgb, var(--brand) 70%, transparent); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.icon-wall a:hover { transform: translateY(-4px) scale(1.03); }
.icon-wall li:nth-child(4n+2), .icon-wall li:nth-child(4n+4) { translate: 0 28px; }
.icon-wall li:nth-child(1) { grid-column: 2; }
.icon-wall img { width: 100%; height: 100%; object-fit: cover; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Home apps */
.app-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; background: var(--tint); min-height: 460px; }
.app-card-body { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; }
.app-tagline { margin-top: 28px; font-size: clamp(21px, 2vw, 26px); font-weight: 700; color: var(--ink); line-height: 1.38; letter-spacing: -0.02em; }
.app-summary { margin-top: 14px; font-size: 16px; }
.app-actions { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.app-card-stage { background: var(--brand); display: flex; justify-content: center; align-items: flex-start; padding-top: 48px; overflow: hidden; }
.app-card-stage .phone { width: min(62%, 260px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45), 0 0 0 6px rgba(255,255,255,.14); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.app-card:hover .app-card-stage .phone { transform: translateY(-8px); }
.app-feature { margin-bottom: 24px; }
.app-feature .app-card { grid-template-columns: 1fr 1.15fr; min-height: 520px; }
.app-feature .app-tagline { font-size: clamp(26px, 2.8vw, 36px); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.app-grid .app-card { grid-template-columns: 1fr; grid-template-rows: auto 340px; }
.app-grid .app-card-stage { padding-top: 40px; }
.app-grid .app-card-stage .phone { width: min(52%, 220px); }

/* Home games: 게임마다 하나의 밴드 */
.game-bands { display: grid; gap: 24px; }
.game-band { display: grid; grid-template-columns: 1fr 1.2fr; border-radius: var(--radius); overflow: hidden; background: #fff; min-height: 500px; }
.game-band.is-flip { grid-template-columns: 1.2fr 1fr; }
.game-band.is-flip .game-band-copy { order: 2; }
.game-band-copy { padding: clamp(28px, 3.6vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.game-hook { margin-top: 28px; font-size: clamp(22px, 2.3vw, 30px); font-weight: 750; color: var(--ink); line-height: 1.35; letter-spacing: -0.025em; }
.game-summary { margin-top: 14px; font-size: 16px; }
.game-band .app-actions { margin-top: 0; }
.game-band-stage { background: var(--brand); display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 1.6vw, 20px); padding: 48px 32px 0; overflow: hidden; }
.game-band-stage .phone { width: 30%; max-width: 200px; border-radius: 18px 18px 0 0; box-shadow: 0 24px 50px -18px rgba(0,0,0,.5); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.game-band-stage .phone:nth-child(2) { width: 34%; max-width: 230px; margin-bottom: 24px; border-radius: 18px; }
.game-band:hover .game-band-stage .phone:nth-child(2) { transform: translateY(-8px); }

/* Studio · contact */
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.studio-grid .section-head { margin-bottom: 0; }
.studio-body p { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.8; }
.studio-body p + p { margin-top: 14px; }
.values { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.values li { border-top: 1px solid #2a2d33; padding-top: 24px; }
.values h3 { margin-top: 14px; font-size: 21px; }
.values p { margin-top: 10px; font-size: 16px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.contact-grid li { border-top: 1.5px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; }
.contact-grid h3 { font-size: 20px; }
.contact-grid p { margin: 10px 0 22px; font-size: 15px; flex: 1; }

/* Product: local nav (공통 헤더 아래에 붙는 제품 메뉴) */
.local-nav { position: sticky; top: 0; z-index: 110; height: 60px; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--rule); font-family: var(--font); }
.local-nav-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.local-id { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; }
.local-id .app-icon { width: 32px; height: 32px; }
.local-links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--text); }
.local-links a:hover { color: var(--ink); }
.local-cta { height: 36px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 650; }
.local-cta:hover { background: var(--cobalt); }

/* Product: hero */
.p-hero { background: var(--brand); color: var(--brand-ink); overflow: hidden; }
.p-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; min-height: clamp(560px, 62vw, 720px); }
.p-hero-copy { padding: 72px 0; }
.p-hero .app-icon { box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 12px 30px -12px rgba(0,0,0,.4); }
.p-name { font-size: 24px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; color: var(--brand-ink); }
.p-hero .app-sub { color: color-mix(in srgb, var(--brand-ink) 65%, transparent); }
.p-hero h1 { margin-top: 36px; font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; letter-spacing: -0.035em; color: var(--brand-ink); line-height: 1.2; }
.p-lead { margin: 22px 0 34px; font-size: clamp(17px, 1.6vw, 19px); color: color-mix(in srgb, var(--brand-ink) 82%, transparent); max-width: 520px; }
.p-hero .store { border-color: transparent; }
.region { margin-top: 12px; font-size: 13px; opacity: .7; }
.p-hero-art { position: relative; height: 100%; min-height: 520px; }
.p-hero-art .phone { position: absolute; left: 50%; bottom: -48px; width: clamp(190px, 21vw, 280px); translate: -50% 0; box-shadow: 0 40px 80px -24px rgba(0,0,0,.5), 0 0 0 6px rgba(255,255,255,.12); animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.p-hero-art .phone:nth-child(1) { z-index: 2; bottom: 32px; }
.p-hero-art .phone:nth-child(2) { translate: -118% 0; rotate: -6deg; scale: .86; transform-origin: bottom center; animation-delay: .12s; }
.p-hero-art .phone:nth-child(3) { translate: 18% 0; rotate: 6deg; scale: .86; transform-origin: bottom center; animation-delay: .2s; }

/* Product: intro */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.ps-text { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.6; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; }
.ps + .ps .ps-text { color: var(--cobalt); }
.story { max-width: 860px; }
.story p { font-size: clamp(20px, 2.1vw, 28px); line-height: 1.6; font-weight: 650; color: var(--ink); letter-spacing: -0.02em; }
.story p + p { margin-top: 20px; color: var(--text); font-weight: 550; font-size: clamp(17px, 1.6vw, 20px); }

/* Product: features */
.feature-rows { display: grid; gap: clamp(24px, 3vw, 40px); }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: #fff; border-radius: var(--radius); overflow: hidden; }
.feature-row.is-flip .feature-copy { order: 2; }
.feature-copy { padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.feature-copy h3 { margin-top: 14px; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.03em; }
.feature-copy p { margin-top: 14px; font-size: clamp(16px, 1.5vw, 18px); max-width: 440px; }
.feature-stage { background: var(--brand-soft); display: flex; justify-content: center; align-items: flex-start; padding: 56px 24px 0; height: clamp(420px, 40vw, 520px); overflow: hidden; }
.feature-stage .phone { width: min(64%, 270px); }
.is-game .feature-stage { background: var(--brand); }

/* Product: steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.steps li { border-top: 1.5px solid var(--ink); padding-top: 24px; }
.step-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 750; font-size: 15px; }
.steps h3 { margin-top: 18px; font-size: 21px; }
.steps p { margin-top: 10px; font-size: 16px; }

/* Product: download */
.p-download { background: var(--brand); color: var(--brand-ink); padding: clamp(80px, 10vw, 128px) 0; text-align: center; }
.p-download-inner { display: flex; flex-direction: column; align-items: center; }
.p-download .app-icon { width: 96px; height: 96px; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 16px 40px -16px rgba(0,0,0,.5); }
.p-download h2 { margin: 28px 0 32px; font-size: clamp(30px, 4vw, 48px); color: var(--brand-ink); letter-spacing: -0.035em; }
.p-download .stores { justify-content: center; }
.p-download .store { border-color: transparent; }

/* Product: FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: 100px; }
.faq-grid .section-head .more { margin-top: 24px; }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 650; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { position: relative; width: 14px; height: 14px; flex: none; }
.faq-list summary span::before, .faq-list summary span::after { content: ""; position: absolute; inset: 6px 0 auto; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.faq-list summary span::after { transform: rotate(90deg); }
.faq-list details[open] summary span::after { transform: rotate(0); }
.faq-list details p { padding: 0 0 24px; font-size: 16px; max-width: 640px; }

/* Responsive */
@media (max-width: 960px) {
  .local-links { display: none; }
  .local-cta { margin-left: auto; }
  .hero-grid, .studio-grid, .ps-grid, .faq-grid, .p-hero-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .icon-wall { max-width: 440px; }
  .app-card, .app-feature .app-card { grid-template-columns: 1fr; grid-template-rows: auto 360px; min-height: 0; }
  .app-grid { grid-template-columns: 1fr; }
  .game-band, .game-band.is-flip { grid-template-columns: 1fr; min-height: 0; }
  .game-band.is-flip .game-band-copy { order: 0; }
  .game-band-stage { height: 360px; }
  .values, .contact-grid, .steps { grid-template-columns: 1fr; gap: 28px; }
  .p-hero-copy { padding: 56px 0 8px; }
  .p-hero-art { min-height: 440px; }
  .p-hero-art .phone { width: 210px; }
  .feature-row, .feature-row.is-flip { grid-template-columns: 1fr; }
  .feature-row.is-flip .feature-copy { order: 0; }
  .feature-stage { height: 400px; }
}
@media (max-width: 520px) {
  .hero-cta .btn { flex: 1; }
  .store-os { display: none; }
  .game-band-stage .phone:nth-child(3) { display: none; }
  .game-band-stage .phone { width: 42%; }
  .game-band-stage .phone:nth-child(2) { width: 46%; }
  .p-hero-art .phone { width: 180px; }
  .local-id strong { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
