/* ONER 소개 사이트 — 브랜드 토큰(ONER-assets/tokens.css)에서 가져온 값만 쓴다 */
:root {
  --ivory: #f7f3ec;
  --paper: #fffdf9;
  --wine: #7a2e3a;
  --wine-pressed: #5e2330;
  --wine-soft: #efdfe0;
  --wine-faint: #f6eded;
  --ink: #2a2321;
  --muted: #6e625c;
  --line: #e4dcd2;
  --sunken: #ede6dc;
  --serif: "Noto Serif KR", serif;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(42, 35, 33, 0.06), 0 12px 32px -12px rgba(42, 35, 33, 0.18);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 16px/1.7 var(--sans); word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; border-radius: 6px; }

/* 상단 */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(247, 243, 236, 0.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { width: 104px; height: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--wine); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--wine); color: var(--paper); box-shadow: 0 10px 24px -10px rgba(122, 46, 58, 0.7); }
.btn-primary:hover { background: var(--wine-pressed); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn-ghost:hover { border-color: var(--wine); color: var(--wine); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 60px; padding: 0 34px; font-size: 17px; }
.btn-icon { display: inline-flex; width: 20px; height: 20px; }
.btn-icon:empty { display: none; }
.btn-icon svg, .fi svg { width: 100%; height: 100%; }

.eyebrow { font: 500 13px/1.4 var(--sans); letter-spacing: 0.14em; color: var(--wine); text-transform: uppercase; margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 17px; }

/* 첫 화면 */
.hero { padding: 56px 0 96px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1fr 1.08fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.18; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--wine); position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.08em; height: 0.28em; background: var(--wine-soft); z-index: -1; border-radius: 4px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cta-center { justify-content: center; }
.cta-note { margin-top: 14px; font-size: 14px; color: var(--muted); min-height: 1.7em; }
.hero-art { position: relative; margin: 0; }
.hero-art > img { border-radius: 28px; box-shadow: var(--shadow); aspect-ratio: 25 / 16; object-fit: cover; width: 100%; }
.hero-chip { position: absolute; left: -28px; bottom: -26px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); font-size: 13px; color: var(--muted); }
.hero-chip img { width: 40px; height: 40px; }
.hero-chip strong { display: block; color: var(--ink); font-size: 14px; }

/* 섹션 */
.section { padding: 104px 0; }
.section-tint { background: var(--paper); border-block: 1px solid var(--line); }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-sub { margin-top: 12px; }
.sec-head h2, .dl h2 { font-size: clamp(28px, 3.4vw, 40px); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.feature-art { aspect-ratio: 16 / 9; background: var(--sunken); overflow: hidden; position: relative; }
.feature-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.feature:hover .feature-art img { transform: scale(1.03); }
.feature-text { padding: 26px 28px 30px; }
.feature-text h3 { font-size: 22px; margin-bottom: 8px; }
.feature-text p { color: var(--muted); }

/* 사진 일기 그림(사진 자리) */
.art-diary { background: linear-gradient(160deg, #efe6da, #e6dbcc); display: grid; place-items: center; }
.polaroid { position: absolute; width: 34%; background: var(--paper); padding: 8px 8px 0; border-radius: 4px; box-shadow: 0 10px 22px -10px rgba(42, 35, 33, 0.45); }
.polaroid span { display: block; aspect-ratio: 1; border-radius: 2px; }
.polaroid i { display: block; font: 500 12px/2.4 var(--serif); font-style: normal; color: var(--muted); text-align: center; }
.p1 { transform: translate(-66%, 4%) rotate(-8deg); }
.p1 span { background: linear-gradient(150deg, #c9a99b, #8f5a55); }
.p2 { transform: translate(0, -6%) rotate(2deg); z-index: 1; }
.p2 span { background: linear-gradient(200deg, #b8c2b0, #6f7f6a); }
.p3 { transform: translate(66%, 6%) rotate(7deg); }
.p3 span { background: linear-gradient(170deg, #e9c9b4, #b77a62); }

/* 디데이 그림 */
.art-dday { background: linear-gradient(160deg, var(--wine), #5a2029); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; }
.dday-card { background: rgba(255, 253, 249, 0.1); border: 1px solid rgba(255, 253, 249, 0.22); color: var(--ivory); border-radius: 14px; padding: 14px 16px; min-width: 0; flex: 1; }
.dday-card.main { flex: 1.5; background: var(--paper); color: var(--ink); border-color: transparent; }
.dday-card small { display: block; font-size: 12px; opacity: 0.75; }
.dday-card b { display: block; font: 700 clamp(20px, 2.4vw, 30px)/1.25 var(--serif); margin-top: 4px; }
.dday-card.main b { color: var(--wine); }
.dday-card span { font-size: 12px; color: var(--muted); }

.more { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.more li { padding: 18px 20px; border-radius: 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; line-height: 1.55; }
.more b { display: block; color: var(--ink); font: 600 16px/1.5 var(--serif); margin-bottom: 2px; }

.more-link { margin-top: 32px; text-align: center; }

/* 시작하는 법 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { padding: 30px 28px; border-radius: var(--radius); background: var(--ivory); }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--wine); color: var(--paper); font: 700 16px/1 var(--serif); margin-bottom: 18px; }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }
.how-art { margin: 40px auto 0; max-width: 760px; }
.how-art img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* 다운로드 */
.dl { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.dl-main { text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 52px 36px; }
.dl-icon { width: 112px; height: 112px; margin: 0 auto 22px; }
.dl-main .lead { margin-top: 12px; }
.meta { margin-top: 14px; font-size: 13px; color: var(--muted); }
.dl-all h3 { font-size: 18px; margin-bottom: 14px; }
.files { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.files a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; transition: border-color 0.2s; }
.files a:hover { border-color: var(--wine); }
.files a.is-current { border-color: var(--wine); background: var(--wine-faint); }
.files a.is-current b::after { content: "이 기기"; margin-left: 8px; font: 500 11px/1 var(--sans); color: var(--wine); border: 1px solid var(--wine); border-radius: 999px; padding: 3px 7px; vertical-align: 2px; }
.fi { width: 22px; height: 22px; color: var(--wine); flex: none; }
.files b { font-weight: 600; font-size: 15px; }
.files small { display: block; color: var(--muted); font-size: 13px; }
.guide { border-top: 1px solid var(--line); padding: 14px 2px; }
.guide summary { cursor: pointer; font-weight: 500; }
.guide ol { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.guide code { font-size: 13px; background: var(--sunken); padding: 1px 6px; border-radius: 6px; }

.footer { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot-in nav { display: flex; gap: 20px; margin-left: auto; }
.foot-in a { text-decoration: none; }
.foot-in a:hover { color: var(--wine); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: 14px; font-size: 14px; box-shadow: var(--shadow); transition: transform 0.35s ease; z-index: 30; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }

/* 떠오르기 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 반응형 */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .hero-chip { left: 16px; }
  .more { grid-template-columns: repeat(2, 1fr); }
  .dl { grid-template-columns: 1fr; }
  .br-wide { display: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .hero { padding-top: 32px; }
  .features, .steps, .more { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .cta .btn { flex: 1 1 100%; }
  .art-dday .dday-card:last-child { display: none; }
  .foot-in nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0ms !important; }
}
