/* 건졌다 · Keeper website. Tokens follow docs/DESIGN_SYSTEM.md: neutral dark, one blue, and the icon's
   cobalt, orange and drop blue only where the photo fish appears. */
:root {
  --bg: #111113; --surface: #1c1c1f; --raised: #2a2a2e;
  --text: #fff; --sub: #9b9ba3; --dim: #6e6e76;
  --accent: #3182f6; --accent-press: #1b64da;
  --cobalt: #0002c4; --orange: #fc6200; --drop: #b5dffc;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad: clamp(20px, 5vw, 64px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.code { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sub); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border: 0; border-radius: 16px; background: var(--raised); color: #fff; font: 600 16px/1.2 var(--sans); cursor: pointer; text-decoration: none; transition: transform .12s, background .12s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); }
.btn.primary:active { background: var(--accent-press); }
.btn:disabled { opacity: .6; cursor: default; }
.badge { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 14px; font-weight: 600; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* Navigation, shared by every page */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav ul { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 14px; font-weight: 500; }
.nav ul a { color: var(--sub); text-decoration: none; }
.nav ul a:hover, .nav ul a[aria-current] { color: #fff; }

/* Hero: the film strip and the print (main.js) */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; display: flex; flex-direction: column; isolation: isolate; }
.scene, .hero-still { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; }
.hero-still { display: none; object-fit: cover; opacity: .5; }
.no-gl .scene { display: none; }
.no-gl .hero-still { display: block; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(17, 17, 19, .88), rgba(17, 17, 19, 0) 52%), linear-gradient(0deg, rgba(17, 17, 19, .85), rgba(17, 17, 19, 0) 26%); }
.hero-copy { margin-top: auto; padding: 0 var(--pad) clamp(40px, 7vh, 84px); max-width: 760px; }
.hero h1 { margin: 14px 0 20px; font-size: clamp(52px, 8.6vw, 128px); font-weight: 800; line-height: .98; letter-spacing: -.045em; }
:lang(en) .hero-copy { max-width: 900px; }
:lang(en) .hero h1 { font-size: clamp(42px, 6.8vw, 104px); }
.lede { max-width: 27em; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: #d6d6dc; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; font-size: 15px; font-weight: 600; }
.cta a { text-underline-offset: 5px; }
.hero-steps { position: absolute; right: var(--pad); bottom: clamp(40px, 7vh, 84px); display: flex; gap: 8px; font-size: 13px; font-weight: 600; }
.hero-steps li { padding: 9px 14px; border-radius: 999px; background: rgba(42, 42, 46, .7); color: var(--dim); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: color .3s, background .3s; }
.hero[data-step="0"] .hero-steps li:nth-child(1), .hero[data-step="1"] .hero-steps li:nth-child(2), .hero[data-step="2"] .hero-steps li:nth-child(3) { background: #fff; color: #111113; }
.no-gl .hero-steps { display: none; }

/* Sections */
section { padding: clamp(72px, 11vw, 150px) var(--pad); }
section > h2 { margin: 14px 0 0; max-width: 16em; font-size: clamp(32px, 5vw, 64px); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; }
section > h2 + p { margin-top: 18px; max-width: 34em; color: var(--sub); font-size: 17px; }
.zoom { min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--surface); color: var(--sub); font: 600 14px/1 var(--sans); cursor: pointer; }
.zoom[aria-pressed="true"] { background: #fff; color: #111113; }

/* Before and after */
.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: center; gap: 12px clamp(32px, 6vw, 96px); }
.proof { grid-template-rows: 1fr auto auto auto 1fr; }
.proof > .code { grid-area: 2 / 1; }
.proof > h2 { grid-area: 3 / 1; }
.proof > p:not(.code) { grid-area: 4 / 1; }
.compare { grid-area: 1 / 2 / -1 / 3; margin: 0; }
.cmp-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.thumbs { display: flex; gap: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; overflow: hidden; cursor: pointer; opacity: .55; transition: opacity .2s; }
.thumbs button[aria-pressed="true"] { border-color: #fff; opacity: 1; }
.thumbs img { display: block; width: 44px; height: 55px; object-fit: cover; }
.cmp-view { --x: 50%; --focus: 50% 33%; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 20px; background: var(--surface); }
.cmp-view .layer { position: absolute; inset: 0; overflow: hidden; }
.cmp-view .clip { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.cmp-view img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: var(--focus); transition: transform .6s cubic-bezier(.3, .7, .2, 1); }
.cmp-view.zoomed img { transform: scale(2.8); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .5); pointer-events: none; }
.cmp-line::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #111113; font: 700 17px/1 var(--sans); letter-spacing: .12em; transform: translate(-50%, -50%); box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.cmp-view .tag { position: absolute; top: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(0, 0, 0, .6); font-size: 12px; font-weight: 600; pointer-events: none; }
.cmp-view .tag.l { left: 16px; }
.cmp-view .tag.r { right: 16px; }
.cmp-view input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.cmp-view:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.compare figcaption { margin-top: 14px; font-size: 13px; color: var(--dim); }

/* How many pixels each one keeps, drawn to scale */
.px { position: relative; margin-top: clamp(36px, 5vw, 64px); aspect-ratio: 16 / 9; max-width: 1100px; border-radius: 16px; background: var(--surface); }
.px div { position: absolute; left: 0; bottom: 0; border-radius: 12px; }
.px span { position: absolute; left: 16px; top: 14px; font-size: 13px; color: var(--sub); }
.px b { display: block; margin-top: 2px; font: 600 clamp(15px, 2vw, 24px)/1.2 var(--mono); color: #fff; }
.px-4k { width: 50%; height: 50%; background: var(--accent); }
.px-4k span { color: rgba(255, 255, 255, .85); }
.px-shot { width: 55.83%; height: 55.83%; background: #111113; }
.pixels .note { margin-top: 14px; font-size: 13px; color: var(--dim); }

/* From the whole frame to the part worth keeping: the capture area drawn on the video frame it came from */
.pick { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: center; gap: 36px clamp(32px, 6vw, 96px); margin-top: clamp(40px, 6vw, 72px); }
.pick figure { margin: 0; }
.pick .frame { position: relative; overflow: hidden; border-radius: 16px; background: var(--surface); }
.pick img { display: block; width: 100%; height: auto; opacity: .55; }
.pick .frame i { position: absolute; left: 34.26%; top: 31.77%; width: 37.04%; height: 26.04%; border: 2px solid #fff; box-shadow: 0 0 0 100vmax rgba(17, 17, 19, .35); backdrop-filter: brightness(1.8); -webkit-backdrop-filter: brightness(1.8); }
.pick figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font: 500 11px/1.4 var(--mono); letter-spacing: .06em; color: var(--dim); }
.pick h3 { margin: 0 0 14px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.pick li { position: relative; padding: 14px 0 14px 22px; border-top: 1px solid var(--surface); color: #d6d6dc; font-size: 16px; line-height: 1.65; }
.pick li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.frames { counter-reset: no; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 0 28px; margin-top: clamp(40px, 6vw, 72px); }
.frames li { counter-increment: no; padding: 26px 0 30px; border-top: 1px solid var(--raised); }
.frames li::before { content: counter(no, decimal-leading-zero); font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--accent); }
.frames h3 { margin: 12px 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.frames p { font-size: 15px; line-height: 1.7; color: var(--sub); }

.strip { background: #0b0b0d; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(40px, 6vw, 72px); padding: 26px 0; border-block: 1px solid var(--raised); background: radial-gradient(circle, var(--raised) 3px, transparent 3.5px) 0 7px / 26px 12px repeat-x, radial-gradient(circle, var(--raised) 3px, transparent 3.5px) 0 calc(100% - 7px) / 26px 12px repeat-x; }
.steps li { counter-increment: step; padding: 22px; border-left: 1px solid var(--raised); }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--accent); }
.steps h3 { margin: 14px 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.steps p { font-size: 14px; line-height: 1.7; color: var(--sub); }

.vow h2 { max-width: 12em; font-size: clamp(36px, 6.6vw, 96px); line-height: 1.06; }
.vow ul { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.vow li { padding: 10px 16px; border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 600; }
.vow > p:last-child { margin-top: 26px; color: var(--sub); }
.vow p a { color: #fff; text-underline-offset: 5px; }

.get { text-align: center; }
.get img { width: 112px; height: 112px; border-radius: 25px; box-shadow: 0 24px 60px rgba(0, 2, 196, .45); }
.get h2 { margin: 28px auto 0; }
.get h2 + p { margin-inline: auto; }
.get .badge { margin-top: 28px; background: var(--surface); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding: 28px var(--pad) 40px; border-top: 1px solid var(--surface); font-size: 13px; color: var(--dim); }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--sub); text-decoration: none; }
.foot a:hover { color: #fff; }

/* Documents: privacy policy, help */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(36px, 7vw, 80px) var(--pad) 96px; }
.doc h1 { margin: 12px 0 10px; font-size: clamp(34px, 6vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.doc .meta { color: var(--sub); font-size: 14px; }
.doc h2 { margin: 52px 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.doc h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 700; }
.doc p, .doc li { color: #d6d6dc; line-height: 1.8; }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 12px; }
.doc ul:not(.plain) { padding-left: 1.2em; list-style: disc; }
.doc li + li { margin-top: 6px; }
.doc a { color: #fff; text-underline-offset: 4px; }
.doc code { padding: 2px 6px; border-radius: 6px; background: var(--surface); font: 13px var(--mono); }
.doc .summary { margin-top: 28px; padding: 22px 24px; border-radius: 16px; background: var(--surface); }
.doc .summary p { color: #fff; font-weight: 600; }
.doc .summary p + p { color: var(--sub); font-weight: 400; }
.doc details { border-bottom: 1px solid var(--surface); }
.doc summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; color: var(--dim); font: 400 22px/1 var(--mono); }
.doc details[open] summary::after { content: "−"; }
.doc details > :not(summary) { margin-bottom: 14px; }
.doc details > :last-child { margin-bottom: 22px; }

@media (max-width: 900px) {
  .proof, .pick { display: block; }
  .compare { margin-top: 32px; }
  .pick figure { max-width: 300px; margin-bottom: 32px; }
  .steps { grid-template-columns: 1fr; background: none; padding: 0; }
  .steps li, .steps li:first-child { padding: 22px 0; border-left: 0; border-top: 1px solid var(--raised); }
  .steps li:first-child { border-top: 0; }
}
@media (max-width: 720px) {
  .hero::before { background: linear-gradient(0deg, rgba(17, 17, 19, .97) 34%, rgba(17, 17, 19, 0) 58%); }
  .hero-steps { display: none; }
  .nav ul { gap: 14px; font-size: 13px; }
  .cmp-view { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
