/* SoRoKi — soroki.co.kr
   Layout: 밤하늘 같은 네이비 밴드(히어로) → 따뜻한 종이색 본문. 섹션은 '보관함 목록'처럼 줄 단위로 읽히게.
   폰트: 제목 Noto Serif KR / 본문 Noto Sans KR / 시간·용량 같은 숫자 IBM Plex Mono */
:root {
  --navy: #1E2347;
  --purple: #4A3B6B;
  --gold: #B8894D;
  --gold-l: #D4A96A;
  --night-ink: #FBF9F5;
  --night-ink-2: #C9C5D8;

  --paper: #FBF9F5;
  --surface: #F3F1EC;
  --card: #FFFFFF;
  --ink: #1A1A2E;
  --ink-2: #4A4A6A;
  --muted: #6F6F86;
  --line: #E0DDD6;
  --gold-ink: #8E6630;
  --shadow: 0 18px 40px -24px rgba(30, 35, 71, .35);

  --f-display: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", serif;
  --f-body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1120px;
  --r: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12152B; --surface: #181C38; --card: #1D2142;
    --ink: #F1EEE7; --ink-2: #BDB9CC; --muted: #8E8BA6; --line: #2C3154;
    --gold-ink: #D4A96A; --shadow: 0 18px 40px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12152B; --surface: #181C38; --card: #1D2142;
  --ink: #F1EEE7; --ink-2: #BDB9CC; --muted: #8E8BA6; --line: #2C3154;
  --gold-ink: #D4A96A; --shadow: 0 18px 40px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.75;
  word-break: keep-all; overflow-wrap: break-word;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--navy);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 64px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.eyebrow {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-ink);
}
.night .eyebrow { color: var(--gold-l); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--navy) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 169, 106, .14);
  color: var(--night-ink);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: block; margin-left: -14px; }
.brand img { height: 44px; width: auto; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--night-ink-2);
  padding: 6px 10px; border-radius: 999px;
}
.site-nav a:hover { color: var(--night-ink); }
.site-nav a[aria-current="page"] { color: var(--gold-l); }
.site-nav .nav-cta { border: 1px solid rgba(212, 169, 106, .5); color: var(--gold-l); }
@media (max-width: 560px) { .site-nav .hide-sm { display: none; } .brand img { height: 38px; } }

/* ---------- hero (항상 네이비) ---------- */
.night {
  background: radial-gradient(120% 90% at 85% 10%, #3A3163 0%, rgba(58, 49, 99, 0) 60%), linear-gradient(160deg, var(--navy) 0%, #262A55 55%, var(--purple) 130%);
  color: var(--night-ink); position: relative; overflow: hidden;
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center;
  padding-block: 72px 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { padding-bottom: 72px; min-width: 0; }
.hero h1 {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.28; letter-spacing: -.01em; margin-top: 18px;
}
.hero h1 em { font-style: normal; color: var(--gold-l); }
.hero .lead { margin-top: 22px; font-size: clamp(16px, 1.6vw, 18px); color: var(--night-ink-2); max-width: 34em; }
.store-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 14px; border-radius: 12px;
  border: 1px solid rgba(251, 249, 245, .22); background: rgba(251, 249, 245, .06); color: var(--night-ink);
  font-size: 14px; line-height: 1.3;
}
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-size: 11.5px; color: var(--night-ink-2); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 12px 20px; border-radius: 12px; background: linear-gradient(135deg, var(--gold-l), var(--gold)); color: #1E2347;
  border: 0; cursor: pointer; font-family: inherit;
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: inherit; border: 1px solid currentColor; font-weight: 500; }

#wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 160px; opacity: .55; pointer-events: none; }

.hero-visual { position: relative; align-self: end; display: flex; justify-content: center; min-width: 0; }
.phone {
  width: min(290px, 78vw); max-width: 100%; aspect-ratio: 648 / 1264; border-radius: 40px; overflow: hidden;
  border: 9px solid #0E1024; background: #0E1024; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(212, 169, 106, .25);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero .phone { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; aspect-ratio: 648 / 1000; }
.now-playing {
  position: absolute; left: max(-28px, -6vw); bottom: 96px; width: 236px;
  background: rgba(251, 249, 245, .96); color: #1A1A2E; border-radius: 16px; padding: 12px 14px;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); display: grid; grid-template-columns: 38px 1fr; gap: 4px 12px; align-items: center;
}
.now-playing .play {
  grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-l), var(--gold)); color: #fff;
}
.now-playing .t { font-weight: 700; font-size: 14px; line-height: 1.3; }
.now-playing .m { font-family: var(--f-mono); font-size: 11.5px; color: #6F6F86; line-height: 1.3; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 48px 0; }
  .hero-copy { padding-bottom: 32px; }
  .now-playing { left: 0; bottom: 56px; width: 210px; }
}

/* ---------- sections ---------- */
.section { padding-block: 96px; }
.section.alt { background: var(--surface); }
.sec-head { display: grid; gap: 14px; max-width: 40em; margin-bottom: 48px; }
.sec-head h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.35; }
.sec-head p { color: var(--ink-2); font-size: 17px; }
@media (max-width: 560px) { .section { padding-block: 64px; } .sec-head { margin-bottom: 32px; } }

/* 순간 목록: 보관함 리스트처럼 */
.archive { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.archive li {
  display: grid; grid-template-columns: 9.5em minmax(0, 1fr) auto 4.5em; gap: 24px; align-items: center;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
}
.archive .tag { font-size: 13.5px; font-weight: 500; color: var(--gold-ink); }
.archive .title { font-family: var(--f-display); font-size: clamp(18px, 2vw, 22px); font-weight: 500; line-height: 1.45; min-width: 0; }
.archive .dur { font-family: var(--f-mono); font-size: 14px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.mini-wave { display: flex; align-items: center; gap: 3px; height: 28px; width: 140px; }
.mini-wave i { display: block; width: 3px; border-radius: 2px; background: var(--gold); opacity: .75; }
.archive li:hover .mini-wave i { opacity: 1; }
.example-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
@media (max-width: 720px) {
  .archive li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 18px 2px; }
  .archive .tag { grid-column: 1 / -1; }
  .archive .mini-wave { display: none; }
}

/* 기능: 폰 + 설명 교차 배치 */
.features { display: grid; gap: 96px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feature:nth-child(even) .feature-shot { order: 2; }
.feature-shot { display: flex; justify-content: center; position: relative; min-width: 0; }
.feature-shot::before {
  content: ""; position: absolute; inset: 12% 8%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 22%, transparent), transparent);
}
.feature-shot .phone { position: relative; width: min(270px, 70vw); }
.feature-text { display: grid; gap: 16px; min-width: 0; max-width: 30em; }
.feature-text h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.35; }
.feature-text p { color: var(--ink-2); }
.points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink); font-size: 15.5px; }
.points li::before {
  content: ""; width: 8px; height: 8px; margin: 10px 0 0 6px; border-radius: 50%; background: var(--gold);
}
@media (max-width: 820px) {
  .features { gap: 72px; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature:nth-child(even) .feature-shot { order: 0; }
}

/* 안심 보관 */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.trust > div { padding: 28px 24px 8px 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.trust > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.trust svg { width: 28px; height: 28px; color: var(--gold); }
.trust h3 { font-size: 17px; font-weight: 700; }
.trust p { font-size: 15px; color: var(--ink-2); }
.trust-foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14.5px; color: var(--ink-2); }
.trust-foot a { color: var(--gold-ink); font-weight: 500; }
@media (max-width: 900px) {
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 20px; }
}
@media (max-width: 520px) {
  .trust { grid-template-columns: minmax(0, 1fr); }
  .trust > div, .trust > div + div { padding: 22px 0 6px; border-left: 0; }
  .trust > div + div { border-top: 1px solid var(--line); margin-top: 14px; }
}

/* 요금제 */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px;
  display: grid; gap: 6px; align-content: start; min-width: 0;
}
.plan .name { font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.plan .size { font-family: var(--f-display); font-size: 34px; font-weight: 600; line-height: 1.2; margin-top: 6px; font-variant-numeric: tabular-nums; }
.plan .price { font-size: 15px; color: var(--ink-2); }
.plan .price b { color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; }
.plan .hours { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink-2); }
.plan .hours b { font-family: var(--f-mono); font-weight: 500; color: var(--ink); }
.plan.featured { background: var(--navy); border-color: var(--navy); color: var(--night-ink); }
.plan.featured .name { color: var(--gold-l); }
.plan.featured .price, .plan.featured .hours { color: var(--night-ink-2); }
.plan.featured .price b, .plan.featured .hours b { color: var(--night-ink); }
.plan.featured .hours { border-top-color: rgba(251, 249, 245, .2); }
.plan-note { margin-top: 20px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 900px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 17px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 44em; }
.faq a { color: var(--gold-ink); }

/* CTA band */
.cta .wrap { padding-block: 88px; display: grid; gap: 22px; justify-items: start; position: relative; z-index: 1; }
.cta h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 4vw, 44px); line-height: 1.35; }
.cta p { color: var(--night-ink-2); max-width: 36em; }
.mailbox {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 14px;
  background: rgba(251, 249, 245, .07); border: 1px solid rgba(251, 249, 245, .18); max-width: 100%;
}
.mailbox code { font-family: var(--f-mono); font-size: 15px; user-select: all; color: var(--night-ink); overflow-wrap: anywhere; }
.copy-btn {
  font: 500 13px var(--f-body); padding: 7px 12px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--gold-l); color: #1E2347;
}

/* ---------- 회사 소개 ---------- */
.about-hero .wrap { padding-block: 88px 96px; display: grid; gap: 20px; position: relative; z-index: 1; }
.about-hero h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 5vw, 58px); line-height: 1.3; }
.about-hero p { color: var(--night-ink-2); max-width: 34em; font-size: 17px; }

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; }
.story-body { display: grid; gap: 22px; font-size: 17.5px; line-height: 1.95; color: var(--ink-2); max-width: 34em; }
.story-body strong { color: var(--ink); font-weight: 500; }
.story blockquote {
  margin: 0; font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.55; font-weight: 500;
  color: var(--ink); align-self: start; position: sticky; top: 110px;
}
.story blockquote::before { content: ""; display: block; width: 40px; height: 2px; background: var(--gold); margin-bottom: 22px; }
@media (max-width: 820px) { .story { grid-template-columns: minmax(0, 1fr); gap: 32px; } .story blockquote { position: static; } }

.name-eq { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.name-eq > div { flex: 1 1 200px; padding: 28px 26px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.name-eq > div + div { border-left: 1px solid var(--line); }
.name-eq .big { font-family: var(--f-body); font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.name-eq .big .op { color: var(--gold); font-weight: 400; margin-right: 8px; }
.name-eq .lbl { font-size: 15px; color: var(--ink-2); }
.name-eq .final { background: var(--navy); color: var(--night-ink); }
.name-eq .final .lbl { color: var(--night-ink-2); }
.name-eq .final .big { color: var(--gold-l); }
@media (max-width: 680px) { .name-eq > div + div { border-left: 0; border-top: 1px solid var(--line); } }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.values > div { display: grid; gap: 12px; align-content: start; min-width: 0; }
.values h3 { font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.values p { color: var(--ink-2); font-size: 15.5px; }
.values .mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold-ink); }
.values .mark svg { width: 22px; height: 22px; }
@media (max-width: 820px) { .values { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 760px; }
.timeline li { display: grid; grid-template-columns: 7em 20px minmax(0, 1fr); gap: 16px; }
.timeline time { font-family: var(--f-mono); font-size: 14px; color: var(--gold-ink); padding-top: 2px; font-variant-numeric: tabular-nums; }
.timeline .rail { position: relative; }
.timeline .rail::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline .rail::after { content: ""; position: absolute; left: 4px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.timeline li.next .rail::after { border-style: dashed; }
.timeline li:first-child .rail::before { top: 10px; }
.timeline li:last-child .rail::before { bottom: auto; height: 10px; }
.timeline .ev { padding-bottom: 32px; min-width: 0; }
.timeline .ev b { display: block; font-size: 17px; }
.timeline .ev span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 520px) { .timeline li { grid-template-columns: 5.6em 20px minmax(0, 1fr); gap: 10px; } }

.partners { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.partner-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.partner-list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.partner-list b { font-size: 16.5px; }
.partner-list span { font-size: 15px; color: var(--ink-2); }
@media (max-width: 820px) { .partners { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.info { width: 100%; border-collapse: collapse; font-size: 15.5px; max-width: 760px; }
.info th, .info td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.info th { width: 9em; font-weight: 500; color: var(--muted); }
.info td a { color: var(--gold-ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.site-footer .wrap { padding-block: 44px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-footer .logo-l, .site-footer .logo-d { height: 40px; width: auto; margin: 0 0 10px -12px; }
.site-footer .logo-d { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer .logo-l { display: none; } :root:not([data-theme="light"]) .site-footer .logo-d { display: block; } }
:root[data-theme="dark"] .site-footer .logo-l { display: none; }
:root[data-theme="dark"] .site-footer .logo-d { display: block; }
.site-footer nav { display: grid; gap: 4px; align-content: start; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer .copy { color: var(--muted); font-size: 13px; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
