/* 고요 홈페이지와 제품 페이지 공용 스타일.
   theme-home: 밝은 회사 소개 (다크 모드 대응) / theme-torch: 늘 어두운 무대 느낌의 Torch 제품 페이지 */

@font-face {
  font-family: "Goyoh Sans";
  src: url("/assets/fonts/goyoh-sans-2.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font: "Goyoh Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1180px;
  --gutter: 24px;
  --radius: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --bg: #f5f4ef;
  --bg-2: #ebe9e1;
  --card: #ffffff;
  --ink: #121417;
  --ink-2: #3a3e45;
  --muted: #6a6e75;
  --line: rgba(18, 20, 23, 0.1);
  --line-strong: rgba(18, 20, 23, 0.18);
  --button: #121417;
  --button-ink: #f5f4ef;
  --accent: #2563c9;
  --shadow: 0 1px 2px rgba(18, 20, 23, 0.06), 0 12px 32px -12px rgba(18, 20, 23, 0.18);
}

.theme-torch {
  --bg: #06080c;
  --bg-2: #0b0f16;
  --card: #0f141c;
  --card-2: #151c27;
  --ink: #f3f5f8;
  --ink-2: #c4cbd6;
  --muted: #8b95a7;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --button: #f3f5f8;
  --button-ink: #06080c;
  --accent: #3eb4ff;
  --flame: #ff8a3c;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--button); color: var(--button-ink); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { white-space: nowrap; }
@media (max-width: 640px) { :root { --gutter: 16px; } body { font-size: 16px; } .pc-break { display: none; } }
@media (min-width: 641px) { .mo-break { display: none; } }

/* 머리말 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: 0.14em; font-size: 15px; }
.brand svg { width: 22px; height: 22px; }
.brand-sub { display: inline-flex; align-items: center; gap: 10px; letter-spacing: -0.01em; font-weight: 600; font-size: 15px; }
.brand-sub::before { content: ""; width: 1px; height: 16px; background: var(--line-strong); }
.brand-sub img { width: 26px; height: 26px; border-radius: 7px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--ink-2); transition: color 0.2s, background 0.2s; }
.site-nav a:hover { color: var(--ink); background: var(--line); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav .nav-cta { margin-left: 6px; background: var(--button); color: var(--button-ink); font-weight: 600; }
.site-nav .nav-cta:hover { background: var(--button); color: var(--button-ink); opacity: 0.88; }
@media (max-width: 760px) {
  .site-nav .nav-optional { display: none; }
  .brand-sub span { display: none; }
}

/* 버튼 */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), opacity 0.2s, background 0.2s, border-color 0.2s;
}
.button svg { width: 18px; height: 18px; flex: none; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--button); color: var(--button-ink); }
.button-primary:hover { opacity: 0.9; }
.button-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.button-ghost:hover { border-color: var(--ink-2); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--ink); }
.text-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }
.text-link.up:hover svg { transform: translate(2px, -2px); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.section { padding: 128px 0; }
.section-tight { padding: 88px 0; }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 56px; }
.section-head h2, .display-2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.16; letter-spacing: -0.035em; font-weight: 700; }
.section-head p { font-size: 19px; color: var(--ink-2); max-width: 620px; }
@media (max-width: 640px) { .section { padding: 88px 0; } .section-tight { padding: 64px 0; } .section-head { margin-bottom: 40px; } .section-head p { font-size: 17px; } }

/* 홈: 첫 화면 */
.home-hero { padding: 104px 0 96px; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.home-hero h1 { margin: 22px 0 26px; font-size: clamp(42px, 6.6vw, 84px); line-height: 1.08; letter-spacing: -0.045em; font-weight: 750; }
.home-hero h1 em { font-style: normal; color: var(--muted); }
.home-hero .lead { font-size: 20px; color: var(--ink-2); max-width: 520px; margin-bottom: 36px; }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 28px; border-radius: 32px; background: var(--bg-2); border: 1px solid var(--line); }
.shelf a { display: grid; justify-items: center; gap: 10px; padding: 18px 6px 14px; border-radius: 20px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.3; transition: background 0.25s, transform 0.35s var(--ease); }
.shelf a:hover { background: var(--card); transform: translateY(-3px); }
.shelf img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 18px -8px rgba(0,0,0,.35); }
.shelf .is-new { position: relative; }
.shelf .badge { position: absolute; top: 8px; right: 10px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.6; }
@media (max-width: 900px) {
  .home-hero { padding: 64px 0 72px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .home-hero .lead { font-size: 18px; }
}
@media (max-width: 480px) { .shelf { gap: 6px; padding: 14px; border-radius: 24px; } .shelf img { width: 60px; height: 60px; border-radius: 14px; } .shelf a { font-size: 13px; } }

/* 홈: 새 제품 소개 */
.feature-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center;
  padding: 72px 0 72px 64px; border-radius: 36px;
  background: radial-gradient(120% 90% at 85% 10%, #18304f 0%, #0a0f18 55%, #06080c 100%);
  color: #f3f5f8;
}
.feature-panel .eyebrow { color: #9fb0c6; }
.feature-panel .eyebrow .dot { background: #ff8a3c; box-shadow: 0 0 0 4px rgba(255, 138, 60, 0.18); }
.feature-panel h2 { margin: 18px 0 20px; font-size: clamp(32px, 4vw, 50px); line-height: 1.15; letter-spacing: -0.035em; }
.feature-panel p { color: #c4cbd6; font-size: 18px; margin-bottom: 32px; }
.feature-panel .product-line { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; }
.feature-panel .product-line img { width: 44px; height: 44px; border-radius: 11px; }
.feature-panel .button-primary { background: #f3f5f8; color: #06080c; }
.feature-panel .button-ghost { color: #f3f5f8; border-color: rgba(255,255,255,.22); }
.feature-visual { position: relative; padding-bottom: 40px; }
.feature-visual .mac { border-radius: 14px 0 0 14px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); border: 1px solid rgba(255,255,255,.1); border-right: 0; }
.feature-visual .phone { position: absolute; left: -36px; bottom: 0; width: 27%; }
@media (max-width: 900px) {
  .feature-panel { grid-template-columns: 1fr; padding: 48px 0 0 28px; border-radius: 28px; gap: 40px; }
  .feature-panel > div:first-child { padding-right: 28px; }
  .feature-visual .phone { left: auto; right: 20px; bottom: 16px; width: 30%; }
  .feature-visual { padding-bottom: 0; }
}

/* 휴대폰·맥 틀 */
.phone { container-type: inline-size; }
.phone > img, .phone > video {
  width: 100%; border: 2.6cqw solid #050506; border-radius: 15cqw; background: #050506;
  box-shadow: 0 0 0 1.5px #4a4e55, 0 0 0 3px #1c1d20, 0 30px 60px -20px rgba(0,0,0,.8);
}
.window { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); background: var(--card); }

/* 홈: 제품 목록 */
.product-groups { display: grid; gap: 64px; }
.product-group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.product-group > h3 { font-size: 17px; font-weight: 650; color: var(--ink-2); }
.product-group > h3 span { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.product-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .product-cards { grid-template-columns: 1fr; } }
.product-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card .head { display: flex; align-items: center; gap: 14px; }
.product-card .head img { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 0 0 1px var(--line); }
.product-card h4 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.product-card .platform { font-size: 14px; color: var(--muted); }
.product-card p { color: var(--ink-2); font-size: 16px; flex: 1; }
.product-card .links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; padding-top: 6px; }
.product-card .links .sub { font-weight: 500; color: var(--muted); }
@media (max-width: 800px) { .product-group { grid-template-columns: 1fr; gap: 20px; } .product-card { padding: 24px; } }

/* 홈: 소개 */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.about h2 { font-size: clamp(40px, 6vw, 76px); line-height: 1.08; letter-spacing: -0.045em; }
.about h2 span { color: var(--muted); }
.about .ref { margin-top: 18px; font-size: 15px; color: var(--muted); }
.about-copy { display: grid; gap: 20px; font-size: 19px; color: var(--ink-2); padding-top: 8px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 72px; }
.principles div { padding: 28px; border-radius: var(--radius); background: var(--bg-2); }
.principles h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.02em; }
.principles p { font-size: 16px; color: var(--ink-2); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 32px; } .principles { grid-template-columns: 1fr; margin-top: 48px; } .about-copy { font-size: 17px; } }

/* 홈: 문의 */
.contact { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; padding: 64px; border-radius: 36px; background: var(--card); border: 1px solid var(--line); }
.contact h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.2; letter-spacing: -0.035em; margin-bottom: 12px; }
.contact p { color: var(--ink-2); }
.contact-mail { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.contact-mail svg { width: 26px; height: 26px; transition: transform 0.3s var(--ease); }
.contact-mail:hover svg { transform: translate(3px, -3px); }
@media (max-width: 640px) { .contact { padding: 36px 24px; border-radius: 28px; } }

/* 꼬리말 */
.site-footer { padding: 72px 0 48px; margin-top: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h3 { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--ink); }
.footer-brand p { margin-top: 14px; max-width: 280px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ── Torch 제품 페이지 ── */
.torch-hero { position: relative; padding: 96px 0 0; text-align: center; overflow: hidden; }
.torch-hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 900px; background: radial-gradient(50% 50% at 50% 30%, rgba(62, 180, 255, 0.22), transparent 70%), radial-gradient(30% 30% at 50% 20%, rgba(255, 138, 60, 0.12), transparent 70%); pointer-events: none; }
.torch-hero > .container { position: relative; }
.torch-hero .app-icon { width: 104px; height: 104px; margin: 0 auto 28px; border-radius: 24px; box-shadow: 0 20px 50px -12px rgba(62, 180, 255, 0.5); }
.torch-hero .name { font-size: 18px; font-weight: 650; color: var(--ink-2); }
.torch-hero h1 { margin: 14px auto 24px; max-width: 900px; font-size: clamp(42px, 7vw, 88px); line-height: 1.06; letter-spacing: -0.05em; font-weight: 750; }
.torch-hero h1 em { font-style: normal; background: linear-gradient(100deg, #8fd3ff, #3eb4ff 45%, #ff9c55); -webkit-background-clip: text; background-clip: text; color: transparent; }
.torch-hero .lead { max-width: 640px; margin: 0 auto 36px; font-size: 20px; color: var(--ink-2); }
.torch-hero .button-row { justify-content: center; }
.torch-hero .meta { margin-top: 20px; font-size: 14px; color: var(--muted); }
.hero-stage { position: relative; margin: 72px auto 0; max-width: 1100px; }
.hero-stage .window { border-radius: 16px; box-shadow: 0 50px 120px -40px rgba(62, 180, 255, 0.45), 0 0 0 1px rgba(255,255,255,.08); border: 0; }
.hero-stage .phone { position: absolute; right: -2%; bottom: -8%; width: 22%; }
.hero-stage.is-phone { max-width: 1000px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; align-items: end; padding: 0 4%; }
.hero-stage.is-phone .phone { position: static; width: auto; }
.hero-stage.is-phone .phone:nth-child(2) { transform: translateY(-48px); }
.fade-bottom { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
@media (max-width: 640px) {
  .torch-hero { padding-top: 56px; }
  .torch-hero .app-icon { width: 84px; height: 84px; border-radius: 20px; }
  .torch-hero .lead { font-size: 17px; }
  .hero-stage { margin-top: 48px; }
  .hero-stage .phone { right: 2%; width: 28%; }
  .hero-stage.is-phone { grid-template-columns: 1fr 1fr; }
  .hero-stage.is-phone .phone:nth-child(3) { display: none; }
  .hero-stage.is-phone .phone:nth-child(2) { transform: translateY(-28px); }
}

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 28px 24px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts strong { display: block; font-size: 24px; letter-spacing: -0.02em; }
.facts span { color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } .facts div { padding: 22px 16px; } .facts strong { font-size: 20px; } }

.story { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 64px; align-items: center; }
.story + .story { margin-top: 128px; }
.story.reverse { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.story.reverse .story-copy { order: 2; }
.story-copy .eyebrow { color: var(--accent); }
.story-copy h3 { margin: 14px 0 18px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.18; letter-spacing: -0.035em; }
.story-copy p { color: var(--ink-2); font-size: 18px; }
.story-copy ul { margin-top: 24px; list-style: none; display: grid; gap: 10px; }
.story-copy li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 16px; }
.story-copy li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); opacity: 0.8; }
.story-copy kbd, .guide kbd { font-family: var(--font); font-size: 0.88em; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--card-2, var(--bg-2)); white-space: nowrap; }
.story-visual.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; padding: 0 6%; }
@media (max-width: 900px) {
  .story, .story.reverse { grid-template-columns: 1fr; gap: 36px; }
  .story.reverse .story-copy { order: 0; }
  .story + .story { margin-top: 88px; }
  .story-copy p { font-size: 17px; }
}

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.tile svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 18px; }
.tile h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.02em; }
.tile p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { padding: 24px; } }

.split-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); gap: 48px; align-items: center; padding: 64px; border-radius: 36px; background: linear-gradient(140deg, #0f1a2a, #0b0f16 60%); border: 1px solid var(--line); overflow: hidden; }
.split-card .product-line { display: flex; align-items: center; gap: 12px; font-weight: 700; margin-bottom: 18px; }
.split-card .product-line img { width: 48px; height: 48px; border-radius: 12px; }
.split-card h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.16; letter-spacing: -0.035em; margin-bottom: 18px; }
.split-card p { color: var(--ink-2); font-size: 18px; margin-bottom: 28px; }
.split-card .phones { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; margin-bottom: -120px; }
.split-card .phones .phone:nth-child(2) { transform: translateY(-40px); }
@media (max-width: 900px) { .split-card { grid-template-columns: 1fr; padding: 40px 24px 0; border-radius: 28px; } .split-card .phones { margin-bottom: -80px; padding: 0 8%; } }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-card { padding: 40px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.price-card.is-full { background: linear-gradient(160deg, #13253b, #0f141c 70%); border-color: rgba(62, 180, 255, 0.35); }
.price-card .label { font-weight: 650; color: var(--ink-2); }
.price-card .price { font-size: 44px; font-weight: 750; letter-spacing: -0.035em; line-height: 1.1; }
.price-card .price small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.price-card ul { list-style: none; display: grid; gap: 10px; margin-top: 8px; }
.price-card li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 16px; }
.price-card li svg { position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; color: var(--accent); }
.note { margin-top: 20px; font-size: 14px; color: var(--muted); }
@media (max-width: 800px) { .pricing { grid-template-columns: 1fr; } .price-card { padding: 30px 24px; } }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--bg-2); }
.callout svg { width: 28px; height: 28px; color: var(--flame, var(--accent)); }
.callout h3 { font-size: 19px; margin-bottom: 6px; }
.callout p { color: var(--ink-2); font-size: 16px; }
.callout .formats { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.callout .formats span { font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); }
@media (max-width: 560px) { .callout { grid-template-columns: 1fr; padding: 24px; gap: 12px; } }

.video-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); background: #000; }
.video-frame video { width: 100%; }

.closing { text-align: center; padding: 136px 0 120px; }
.closing img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 28px; }
.closing h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.12; letter-spacing: -0.04em; margin-bottom: 18px; }
.closing p { color: var(--ink-2); font-size: 18px; margin-bottom: 32px; }
.closing .button-row { justify-content: center; }

.sub-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 28px; font-size: 15px; color: var(--muted); }
.sub-links a { text-decoration: none; }
.sub-links a:hover { color: var(--ink); }

/* 사용 가이드 */
.guide-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.guide-hero .crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.guide-hero .crumbs a { text-decoration: none; }
.guide-hero .crumbs a:hover { color: var(--ink); }
.guide-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.12; letter-spacing: -0.04em; margin-bottom: 16px; }
.guide-hero p { font-size: 19px; color: var(--ink-2); max-width: 680px; }
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; padding: 56px 0 96px; }
.guide-toc { position: sticky; top: 96px; align-self: start; font-size: 15px; }
.guide-toc h2 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.guide-toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.guide-toc a { display: flex; gap: 10px; padding: 7px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); }
.guide-toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; padding-top: 2px; }
.guide-toc a:hover, .guide-toc a.is-active { background: var(--card); color: var(--ink); }
.guide { max-width: 760px; }
.guide section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.guide section:last-child { border-bottom: 0; margin-bottom: 0; }
.guide .step-no { font-size: 14px; font-weight: 650; color: var(--accent); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.guide h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.25; letter-spacing: -0.03em; margin-bottom: 18px; }
.guide h3 { font-size: 19px; margin: 32px 0 10px; letter-spacing: -0.02em; }
.guide p { color: var(--ink-2); margin-bottom: 14px; }
.guide ol.steps { list-style: none; counter-reset: step; display: grid; gap: 12px; margin: 18px 0; }
.guide ol.steps li { position: relative; padding: 16px 20px 16px 58px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.guide ol.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 15px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--accent); color: #fff; }
.guide ul.points { list-style: none; display: grid; gap: 8px; margin: 14px 0; }
.guide ul.points li { position: relative; padding-left: 20px; color: var(--ink-2); }
.guide ul.points li::before { content: ""; position: absolute; left: 3px; top: 0.75em; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.guide strong { color: var(--ink); font-weight: 650; }
.guide figure { margin: 24px 0; }
.guide figure.phone-shot { max-width: 300px; }
.guide figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.guide .tip { margin: 18px 0; padding: 16px 20px; border-radius: 14px; border-left: 3px solid var(--accent); background: var(--card); color: var(--ink-2); font-size: 16px; }
.keys { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.keys th, .keys td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.keys th { font-weight: 500; color: var(--ink-2); }
.keys td { white-space: nowrap; text-align: right; }
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .guide-toc { position: static; padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
  .guide-toc ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .guide-toc ol { grid-template-columns: 1fr; } .guide ol.steps li { padding: 14px 16px 14px 52px; } .guide ol.steps li::before { left: 14px; } }

/* 나타나기 효과: 스크립트가 data-motion을 붙였을 때만 숨겼다가 보여 준다 */
[data-motion] .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-motion] .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
.footer-slim { margin-top: 0; padding-top: 0; border-top: 0; align-items: center; }
.site-footer:has(.footer-slim) { margin-top: 0; padding: 40px 0; }
.tile .step { width: 30px; height: 30px; margin-bottom: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; background: var(--accent); color: #06080c; }
.phone.duo { max-width: 380px; margin: 0 auto -120px; }
.phone.duo > img { border-width: 2cqw; border-radius: 9cqw; }
@media (max-width: 900px) { .phone.duo { margin-bottom: -60px; max-width: 300px; } }
.story-visual.single { max-width: 320px; width: 100%; margin: 0 auto; }

/* 홈 색: 물빛(mint)·새벽 하늘(sky). 머리말 단추로 바꾸고 고른 색은 브라우저에 기억한다. 각각 다크 모드 색이 따로 있다. */
.home-hero { position: relative; isolation: isolate; }
.home-hero::before { content: ""; position: absolute; inset: -64px 0 -200px; z-index: -1; background: var(--hero-bg, none); pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.theme-home[data-palette="mint"] {
  --bg: #f4f8f5; --bg-2: #e3f0ec; --card: #ffffff;
  --ink: #0f2e2a; --ink-2: #33524d; --muted: #6a857f;
  --line: rgba(15, 46, 42, 0.1); --line-strong: rgba(15, 46, 42, 0.2);
  --button: #0f2e2a; --button-ink: #f4f8f5; --accent: #2a9d93;
  --hero-bg: radial-gradient(70% 90% at 92% 0%, #b6e0da 0%, rgba(182, 224, 218, 0) 70%), radial-gradient(60% 80% at 0% 100%, #f6e6c8 0%, rgba(246, 230, 200, 0) 70%), linear-gradient(180deg, #eaf4f1, #f4f8f5);
  --soft-bg: linear-gradient(140deg, #dcefea 0%, #f3ead8 100%);
  --glass: rgba(255, 255, 255, 0.55); --glass-line: rgba(255, 255, 255, 0.9);
}
.theme-home[data-palette="sky"] {
  --bg: #f4f8fd; --bg-2: #e2edf9; --card: #ffffff;
  --ink: #0b1a2d; --ink-2: #2e4259; --muted: #62758c;
  --line: rgba(11, 26, 45, 0.1); --line-strong: rgba(11, 26, 45, 0.2);
  --button: #0b1a2d; --button-ink: #f4f8fd; --accent: #1d8cf0;
  --hero-bg: radial-gradient(70% 100% at 90% 0%, #b9dcfb 0%, rgba(185, 220, 251, 0) 70%), radial-gradient(50% 70% at 0% 100%, #dcecfb 0%, rgba(220, 236, 251, 0) 70%), linear-gradient(180deg, #e8f2fc, #f4f8fd);
  --soft-bg: linear-gradient(140deg, #d6e9fb 0%, #eef5fd 100%);
  --glass: rgba(255, 255, 255, 0.55); --glass-line: rgba(255, 255, 255, 0.9);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-home[data-palette="mint"] {
    --bg: #0c1816; --bg-2: #11221f; --card: #142825;
    --ink: #e4f1ee; --ink-2: #b5cbc6; --muted: #82a09a;
    --line: rgba(228, 241, 238, 0.1); --line-strong: rgba(228, 241, 238, 0.2);
    --button: #e4f1ee; --button-ink: #0c1816; --accent: #5ec9bd;
    --hero-bg: radial-gradient(70% 90% at 92% 0%, rgba(42, 157, 147, 0.38) 0%, rgba(42, 157, 147, 0) 70%), radial-gradient(60% 80% at 0% 100%, rgba(246, 220, 170, 0.1) 0%, rgba(246, 220, 170, 0) 70%);
    --soft-bg: linear-gradient(140deg, #14302b 0%, #222820 100%);
    --glass: rgba(255, 255, 255, 0.05); --glass-line: rgba(255, 255, 255, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  }
  :root:not([data-theme="light"]) .theme-home[data-palette="sky"] {
    --bg: #0a1320; --bg-2: #0f1c2e; --card: #12223a;
    --ink: #e8f0fa; --ink-2: #b6c6da; --muted: #8496ad;
    --line: rgba(232, 240, 250, 0.1); --line-strong: rgba(232, 240, 250, 0.2);
    --button: #e8f0fa; --button-ink: #0a1320; --accent: #5cb4ff;
    --hero-bg: radial-gradient(70% 100% at 90% 0%, rgba(29, 140, 240, 0.38) 0%, rgba(29, 140, 240, 0) 70%), radial-gradient(50% 70% at 0% 100%, rgba(120, 180, 255, 0.1) 0%, rgba(120, 180, 255, 0) 70%);
    --soft-bg: linear-gradient(140deg, #12304f 0%, #0f1c2e 100%);
    --glass: rgba(255, 255, 255, 0.05); --glass-line: rgba(255, 255, 255, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  }
}
.theme-home .shelf {
  background: var(--glass); border-color: var(--glass-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.35);
}
.theme-home .home-hero h1 em { color: var(--accent); }
.theme-home .principles div { background: var(--soft-bg); }
.theme-home .contact { background: var(--soft-bg); border-color: transparent; }
.theme-home .contact-mail { border-bottom-color: var(--accent); }
.theme-home .site-footer { background: var(--bg-2); border-top: 0; }
.theme-home .product-group > h3 { color: var(--accent); }
.theme-home .badge { background: var(--accent); color: var(--button-ink); }
.theme-home, .theme-home .home-hero::before, .theme-home .product-card, .theme-home .shelf, .theme-home .contact, .theme-home .principles div, .theme-home .site-footer { transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease); }

/* 색 바꾸기 단추 */
.palette-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; margin-right: 4px; border-radius: 999px; border: 1px solid var(--line-strong); }
.palette-switch button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; }
.palette-switch button:hover { color: var(--ink); }
.palette-switch button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.palette-switch .swatch { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.palette-switch .swatch.mint { background: linear-gradient(135deg, #8fd3c9, #f3e3c3); }
.palette-switch .swatch.sky { background: linear-gradient(135deg, #6fb8f7, #dcecfb); }
@media (max-width: 760px) { .palette-switch button { padding: 5px; } .palette-switch .label { display: none; } }
.site-header:not(.is-scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ── 밝은 앱 제품 페이지 (Journaly Bible · 머묾 · 리드믹루틴) ──
   theme-app + data-product로 제품별 색을 정하고, Torch 페이지의 구성 요소를 그대로 쓴다. */
.theme-app {
  --bg: #f7f6f2; --bg-2: #eeece5; --card: #ffffff; --card-2: #f3f1ea;
  --ink: #17181b; --ink-2: #3d4046; --muted: #6c6f76;
  --line: rgba(23, 24, 27, 0.1); --line-strong: rgba(23, 24, 27, 0.18);
  --button: #17181b; --button-ink: #ffffff; --accent: #2563c9; --accent-2: var(--accent);
  --hero-glow: rgba(37, 99, 201, 0.18); --soft-bg: var(--bg-2);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 24px 60px -28px rgba(0, 0, 0, 0.28);
}
.theme-app[data-product="journaly"] {
  --bg: #f6f7f2; --bg-2: #e9ede4; --card-2: #f1f3ec;
  --ink: #222820; --ink-2: #474f45; --muted: #77806f;
  --line: rgba(34, 40, 32, 0.1); --line-strong: rgba(34, 40, 32, 0.18);
  --button: #2f4a41; --button-ink: #fbfbf7; --accent: #4f7569; --accent-2: #d6b24d;
  --hero-glow: rgba(79, 117, 105, 0.22); --soft-bg: linear-gradient(140deg, #e2ebe5, #f6efd9);
}
.theme-app[data-product="mumeom"] {
  --bg: #f5f9f6; --bg-2: #e4f1ed; --card-2: #edf5f2;
  --ink: #17383b; --ink-2: #3e5d5f; --muted: #6c8788;
  --line: rgba(23, 56, 59, 0.1); --line-strong: rgba(23, 56, 59, 0.18);
  --button: #17383b; --button-ink: #f5f9f6; --accent: #2c7f82; --accent-2: #f1d29a;
  --hero-glow: rgba(95, 195, 198, 0.3); --soft-bg: linear-gradient(140deg, #d8efec, #fdf1dc);
}
.theme-app[data-product="routine"] {
  --bg: #f6f8fb; --bg-2: #e9eef5; --card-2: #f0f4f9;
  --ink: #111a26; --ink-2: #384656; --muted: #6a7887;
  --line: rgba(17, 26, 38, 0.1); --line-strong: rgba(17, 26, 38, 0.18);
  --button: #111a26; --button-ink: #f6f8fb; --accent: #2a7ae2; --accent-2: #f5b98a;
  --hero-glow: rgba(42, 122, 226, 0.2); --soft-bg: linear-gradient(140deg, #e3edfa, #fbe9dc);
}
.theme-app .torch-hero::before { background: radial-gradient(50% 50% at 50% 28%, var(--hero-glow), transparent 70%), radial-gradient(28% 28% at 62% 18%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 70%); }
.theme-app .torch-hero .app-icon { box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 22px 44px -16px color-mix(in srgb, var(--accent) 55%, transparent); }
.theme-app .torch-hero h1 em { background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.theme-app .hero-stage .window { box-shadow: var(--shadow); border: 1px solid var(--line); }
.theme-app .phone > img, .theme-app .phone > video { box-shadow: 0 0 0 1.5px #5a5e66, 0 0 0 3px #1c1d20, 0 30px 60px -24px rgba(0,0,0,.45); }
.theme-app .tile { box-shadow: none; }
.theme-app .split-card { background: var(--soft-bg); border-color: transparent; }
.theme-app .price-card.is-full { background: var(--soft-bg); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.theme-app .callout { background: var(--card); }
.theme-app .callout svg { color: var(--accent); }
.theme-app .site-footer { background: var(--bg-2); border-top: 0; }
.theme-app .facts strong { color: var(--ink); }
.tablet { border-radius: 4.5cqw; container-type: inline-size; }
.tablet > img { width: 100%; border: 1.6cqw solid #0b0c0e; border-radius: 4.5cqw; box-shadow: 0 0 0 1.5px #5a5e66, 0 0 0 3px #1c1d20, 0 40px 80px -30px rgba(0,0,0,.45); }
.hero-stage.is-tablet { max-width: 1040px; }
.hero-stage.is-tablet .phone { position: absolute; right: -3%; bottom: -6%; width: 21%; }
@media (max-width: 640px) { .hero-stage.is-tablet .phone { right: 0; width: 28%; } }
.theme-app[data-product="janjan"] {
  --bg: #fbf8f5; --bg-2: #f3ebe4; --card-2: #f8f1ec;
  --ink: #2b1e19; --ink-2: #54443c; --muted: #87766c;
  --line: rgba(43, 30, 25, 0.1); --line-strong: rgba(43, 30, 25, 0.18);
  --button: #a8503a; --button-ink: #ffffff; --accent: #a8503a; --accent-2: #e2a64f;
  --hero-glow: rgba(168, 80, 58, 0.18); --soft-bg: linear-gradient(140deg, #f7e3da, #fbf1e1);
}

/* 출시 예정 안내 창 */
.launch-dialog { width: min(420px, calc(100vw - 32px)); padding: 36px 32px 28px; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--card); color: var(--ink); text-align: center; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7); }
.launch-dialog::backdrop { background: rgba(4, 6, 10, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.launch-dialog .launch-date { font-size: 14px; font-weight: 650; color: var(--accent); letter-spacing: 0.04em; }
.launch-dialog h2 { margin: 8px 0 12px; font-size: 26px; letter-spacing: -0.03em; }
.launch-dialog .launch-body { color: var(--ink-2); font-size: 16px; margin-bottom: 24px; }
.launch-dialog .button { min-width: 140px; border: 0; cursor: pointer; }
