/* Yesterme — 출시 알림 랜딩. 다크 온리(브랜드 원형), 오렌지는 포인트에만. */

:root {
  --bg: #0b0b0c;
  --bg-2: #101012;
  --surface: #17171a;
  --surface-2: #1e1e22;
  --line: #2a2a2f;
  --ink: #f2f0ec;
  --ink-2: #a8a8ae;
  --ink-3: #74747b;
  --orange: #ff7a2e;
  --orange-soft: rgba(255, 122, 46, 0.14);
  --success: #58c08a;
  --danger: #ff5c7a;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 34px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
          "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 폭만 CSS로 줄이면 높이는 HTML의 height 속성이 그대로 이겨서 그림이 늘어난다.
   실제로 앱 화면 스트립이 210×912로 두 배 늘어나 있었다(자연 크기 420×913). */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ── 헤더 ───────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 12, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
header.scrolled { border-bottom-color: var(--line); }
header .bar {
  display: flex; align-items: center; gap: 16px;
  height: 62px;
}
.wordmark {
  font-family: var(--mono); font-weight: 600; font-size: 16px;
  letter-spacing: .02em; text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.wordmark .mark { width: 26px; height: 26px; border-radius: 7px; }
.final .mark { width: 64px; height: 64px; border-radius: 15px; margin: 0 auto 24px; }
header .spacer { flex: 1; }

.lang {
  display: flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; font-family: var(--mono); font-size: 12px;
}
.lang a {
  padding: 5px 11px; text-decoration: none; color: var(--ink-3);
  transition: color .15s ease, background .15s ease;
}
.lang a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.lang a:hover { color: var(--ink); }

.btn {
  font: inherit; font-size: 15px; font-weight: 600;
  border: 0; border-radius: 999px; padding: 11px 22px;
  background: var(--orange); color: #1a0d04; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
  padding: 8px 16px; font-size: 14px;
}
.btn.ghost:hover { border-color: var(--ink-3); }
header .btn.ghost { display: none; }
@media (min-width: 720px) { header .btn.ghost { display: inline-flex; } }

/* ── 공통 섹션 ──────────────────────────────────────────── */
section { padding: 92px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange); margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.kicker::after { content: ""; height: 1px; flex: 1; max-width: 60px; background: var(--line); }

h1 {
  font-size: clamp(34px, 6.2vw, 60px); line-height: 1.14; letter-spacing: -0.025em;
  font-weight: 700; margin: 0 0 20px; text-wrap: balance;
}
h2 {
  font-size: clamp(27px, 4.2vw, 40px); line-height: 1.22; letter-spacing: -0.02em;
  font-weight: 700; margin: 0 0 16px; text-wrap: balance;
}
h3 { font-size: 18px; margin: 0 0 6px; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 16px; color: var(--ink-2); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 46ch; }
.small { font-size: 14px; color: var(--ink-3); }

.split {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split.reverse > *:first-child { order: 2; }
}

/* ── 히어로 ─────────────────────────────────────────────── */
.hero { padding-top: 64px; padding-bottom: 88px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto -10%;
  width: 70%; height: 620px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 122, 46, .11), transparent 72%);
}
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px; margin-bottom: 22px; background: var(--surface);
}
.hero .badge .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 122, 46, .6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(255, 122, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 46, 0); }
}
@media (prefers-reduced-motion: reduce) { .hero .badge .pulse { animation: none; } }

/* ── 이메일 폼 ──────────────────────────────────────────── */
.signup { margin-top: 28px; max-width: 460px; }
.signup form { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 220px; min-width: 0;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 12px 20px;
  transition: border-color .15s ease, background .15s ease;
}
.signup input[type="email"]::placeholder { color: var(--ink-3); }
.signup input[type="email"]:focus {
  outline: none; border-color: var(--orange); background: var(--surface-2);
}
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup .note { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
.signup .status { margin: 12px 0 0; font-size: 14px; min-height: 21px; }
.signup .status.ok { color: var(--success); }
.signup .status.err { color: var(--danger); }
.signup .btn[disabled] { opacity: .55; cursor: progress; }

/* ── 폰 목업 ────────────────────────────────────────────── */
.phone {
  position: relative; width: min(300px, 78vw); margin-inline: auto;
  border-radius: 42px; padding: 10px;
  background: linear-gradient(160deg, #333338, #17171a 40%, #0e0e10);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .05);
}
.phone .screen {
  position: relative; border-radius: 33px; overflow: hidden;
  background: #000; aspect-ratio: 300 / 620;
}
.phone .notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 22px; border-radius: 999px; background: #000; z-index: 6;
}
.phone.wide { width: min(340px, 84vw); }

/* 뷰파인더 */
.viewfinder { position: absolute; inset: 0; }
.viewfinder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewfinder .layer { transition: opacity .18s linear; }
.vf-chrome { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.vf-chrome .grid {
  position: absolute; inset: 8%;
  background:
    linear-gradient(to right, rgba(255,255,255,.18) 1px, transparent 1px) 33.33% 0 / 33.33% 100%,
    linear-gradient(to bottom, rgba(255,255,255,.18) 1px, transparent 1px) 0 33.33% / 100% 33.33%;
}
.vf-chrome .bracket {
  position: absolute; width: 22px; height: 22px;
  border: 1.5px solid rgba(255, 255, 255, .55);
}
.vf-chrome .bracket.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.vf-chrome .bracket.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.vf-chrome .bracket.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.vf-chrome .bracket.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.vf-chrome .level {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 92px; height: 1.5px; background: var(--success); border-radius: 2px;
}
.vf-chrome .level::before, .vf-chrome .level::after {
  content: ""; position: absolute; top: 50%; width: 34px; height: 1.5px;
  background: rgba(255, 255, 255, .45); transform: translateY(-50%);
}
.vf-chrome .level::before { right: calc(100% + 12px); }
.vf-chrome .level::after { left: calc(100% + 12px); }

.stamp {
  position: absolute; top: 44px; left: 18px; z-index: 5;
  font-family: var(--mono); line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 0 12px rgba(0, 0, 0, .5);
}
.stamp .dn { color: var(--orange); font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.stamp .date { color: rgba(255, 138, 70, .95); font-size: 11px; letter-spacing: .06em; }
.stamp.sm .dn { font-size: 15px; }
.stamp.sm { top: 14px; left: 14px; }

/* 하단 셔터 바 */
.shutter-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 14px 0 18px; display: flex; justify-content: center;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
}
.shutter {
  width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.9); background: rgba(255,255,255,.94);
  box-shadow: 0 0 0 3px rgba(0,0,0,.25);
}

/* ── 컨트롤 ────────────────────────────────────────────── */
.controls { margin-top: 22px; }
.seg {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  flex-wrap: wrap;
}
.seg button {
  font: inherit; font-size: 14px; font-weight: 550;
  border: 0; background: transparent; color: var(--ink-3);
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--orange-soft); color: var(--orange); }

.slider-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.slider-row label { font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.slider-row output {
  font-family: var(--mono); font-size: 13px; color: var(--orange);
  min-width: 44px; text-align: right; font-variant-numeric: tabular-nums;
}
input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; min-width: 0;
  height: 24px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px; border-radius: 999px;
  background: linear-gradient(to right, var(--orange) var(--pct, 40%), var(--line) var(--pct, 40%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; margin-top: -7.5px; box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
input[type="range"]::-moz-range-track { height: 3px; border-radius: 999px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 3px; border-radius: 999px; background: var(--orange); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff;
}
input[type="range"]:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  width: 46px; height: 27px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line); position: relative; transition: background .2s ease, border-color .2s ease;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 21px; height: 21px;
  border-radius: 50%; background: var(--ink-2); transition: transform .2s ease, background .2s ease;
}
.switch input:checked + .track { background: var(--orange-soft); border-color: var(--orange); }
.switch input:checked + .track::after { transform: translateX(19px); background: var(--orange); }
.switch input:focus-visible + .track { outline: 2px solid var(--orange); outline-offset: 3px; }

.readout {
  font-family: var(--mono); font-size: 13px; color: var(--ink-3);
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px;
}
.readout b { color: var(--ink); font-weight: 600; }

/* ── 반반 / 비교 드래그 ─────────────────────────────────── */
.split-view { position: absolute; inset: 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.split-view .top, .compare-frame .top { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; }
.split-view .handle, .compare-frame .handle {
  position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.9);
  transform: translateX(-1px); z-index: 5; cursor: ew-resize;
}
.split-view .handle::after, .compare-frame .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  background: rgba(20,20,22,.82); border: 1.5px solid rgba(255,255,255,.9);
  background-image: linear-gradient(90deg, transparent 43%, #fff 43%, #fff 46%, transparent 46%,
                    transparent 54%, #fff 54%, #fff 57%, transparent 57%);
}
.compare-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: #000; aspect-ratio: 4 / 5;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.compare-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.corner-tag {
  position: absolute; bottom: 12px; z-index: 6; font-family: var(--mono); font-size: 12px;
  background: rgba(11,11,12,.72); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px; color: var(--ink-2);
}
.corner-tag.l { left: 12px; } .corner-tag.r { right: 12px; }

/* ── 카드 그리드 ────────────────────────────────────────── */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 22px;
}
.card .ic {
  width: 32px; height: 32px; border-radius: 9px; background: var(--orange-soft);
  display: grid; place-items: center; margin-bottom: 14px; color: var(--orange);
}
.card p { margin: 0; font-size: 15px; }

/* ── 주제 탭 ───────────────────────────────────────────── */
.subject-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .subject-grid { grid-template-columns: 380px 1fr; gap: 56px; } }
.subject-img {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4 / 5; position: relative; background: var(--surface);
}
.subject-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.subject-img img { opacity: 0; transition: opacity .28s ease; }
.subject-img img.on { opacity: 1; }

/* ── 앱 화면 스트립 ─────────────────────────────────────── */
.strip {
  display: flex; gap: 18px; overflow-x: auto; padding: 8px 0 26px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.strip figure { margin: 0; flex: 0 0 auto; width: 210px; scroll-snap-align: center; }
.strip img {
  width: 100%; border-radius: 20px; border: 1px solid var(--line); background: #000;
}
.strip figcaption {
  margin-top: 10px; font-size: 13px; color: var(--ink-3); text-align: center;
  font-family: var(--mono);
}

/* ── 프라이버시 ────────────────────────────────────────── */
.privacy {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-block: 1px solid var(--line);
}
.privacy .cards .card { background: transparent; }

/* ── 마무리 CTA ────────────────────────────────────────── */
.final { text-align: center; }
.final .signup { margin-inline: auto; }
.final .signup form { justify-content: center; }

/* ── 푸터 ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line); padding: 40px 0 56px;
  font-size: 14px; color: var(--ink-3);
}
footer .row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .mark { width: 22px; height: 22px; border-radius: 6px; }
footer a { text-decoration: none; color: var(--ink-3); transition: color .15s ease; }
footer a:hover { color: var(--ink); }
footer .spacer { flex: 1; }

/* ── 등장 애니메이션 ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── 데모 레이어 ───────────────────────────────────────── */
.mode-layer { position: absolute; inset: 0; transition: opacity .25s ease; }
.mode-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stack {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: #000; aspect-ratio: 1 / 1;
}
.stack .frame {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .16s linear;
}
.demo-foot {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 18px;
}
.note-honest {
  margin-top: 18px; padding: 14px 16px; border-left: 2px solid var(--orange);
  background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 14px; color: var(--ink-2);
}
