/* JevTube landing. Tokens from docs/mockups/popup-v26.html; type scale and sections from DESIGN.md. */
:root {
  --bg: #FFFFFF; --bg2: #F2F2F2; --line: #E5E5E5; --ink: #0F0F0F; --ink2: #606060; --ink3: #8A8A8A;
  --accent: #FF4D1F; --accent-soft: #FFE9E1;
  --shadow: 0 18px 50px rgba(20,18,30,.14), 0 2px 6px rgba(20,18,30,.06);
  --frame: #DEE1E6; --frame-ink: #202124;
  /* the popup's long-topic chip (popup/popup.css --chip-grad) */
  --chip-grad: linear-gradient(135deg, #A3A3A3 0%, #4A4A4A 38%, #262626 65%, #0A0A0A 100%); --chip-grad-ink: #FFFFFF;
  color-scheme: light;
}
/* Dark: the header toggle sets data-theme (theme.js); without a stored choice it follows the system. The block is
   repeated because a media query and an attribute selector can't share one rule. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0F0F; --bg2: #272727; --line: #303030; --ink: #F1F1F1; --ink2: #AAAAAA; --ink3: #8A8A8A;
    --accent: #FF6A3D; --accent-soft: #3A2218;
    --shadow: 0 18px 50px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.4);
    --frame: #35363A; --frame-ink: #E8EAED;
    --chip-grad: linear-gradient(135deg, #FFFFFF 0%, #DADADA 38%, #B3B3B3 65%, #7E7E7E 100%); --chip-grad-ink: #0F0F0F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0F0F; --bg2: #272727; --line: #303030; --ink: #F1F1F1; --ink2: #AAAAAA; --ink3: #8A8A8A;
  --accent: #FF6A3D; --accent-soft: #3A2218;
  --shadow: 0 18px 50px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.4);
  --frame: #35363A; --frame-ink: #E8EAED;
  --chip-grad: linear-gradient(135deg, #FFFFFF 0%, #DADADA 38%, #B3B3B3 65%, #7E7E7E 100%); --chip-grad-ink: #0F0F0F;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--ink2); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
section[id] { scroll-margin-top: 16px; }
.wrap { max-width: 960px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.measure { max-width: 60ch; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; width: 100%; }
.top nav a, footer nav a { padding: 10px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; }
.top nav { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--ink2); }
/* theme toggle: the popup's .iconbtn (popup/popup.css) */
.iconbtn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink2); display: grid; place-items: center; cursor: pointer; font: inherit; font-size: 18px; line-height: 1; padding: 0; transition: color .15s; }
.iconbtn:hover { color: var(--ink); }
.top nav a { white-space: nowrap; }
/* phones: brand + three links + toggle don't fit; drop the in-page anchor, keep the pages */
@media (max-width: 420px) { .top nav a[href$="#how"] { display: none; } }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* hero */
.hero { text-align: center; padding-top: 56px; padding-bottom: 40px; }
.hero .icon { width: 64px; height: 64px; margin: 0 auto 18px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 50px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.hero .sub { font-size: clamp(16px, 1.8vw, 18px); color: var(--ink2); margin: 16px auto 0; max-width: 34em; line-height: 1.5; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; padding: 13px 22px; border-radius: 10px; border: 0; background: var(--ink); color: var(--bg); font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: opacity .15s; }
.cta:hover { opacity: .85; color: var(--bg); }
.micro { font-size: 13px; color: var(--ink2); margin-top: 12px; }
.micro .dot { margin: 0 8px; color: var(--ink3); }

/* demo frame: Bear-style app window */
.frame { max-width: 820px; margin: 32px auto 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: var(--shadow); }
.frame .bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; background: var(--frame); color: var(--frame-ink); border-bottom: 1px solid var(--line); }
.frame .dots { display: flex; gap: 6px; }
.frame .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink3); opacity: .45; }
.frame .url { flex: 1; font-size: 12px; color: var(--frame-ink); opacity: .75; background: color-mix(in srgb, var(--bg) 70%, transparent); border-radius: 8px; padding: 4px 12px; text-align: center; }
.frame video, .frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.caption { text-align: center; font-size: 13px; color: var(--ink2); margin-top: 14px; }

/* sections */
section { padding: 112px 0 0; }
section h2 { font-size: clamp(30px, 4vw, 38px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
section .lead { color: var(--ink2); margin-top: 8px; max-width: 48em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.step figure { margin: 0; }
.step .shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg2); aspect-ratio: 4 / 5; }
.step .shot img, .step .shot video { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
.step .n { display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink2); margin-top: 16px; }
.step h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin-top: 4px; }
.step p { color: var(--ink2); font-size: 15px; margin-top: 6px; line-height: 1.5; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; margin-top: 28px; }
.facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.facts b { display: block; font-weight: 600; letter-spacing: -.01em; }
.facts p { color: var(--ink2); font-size: 15px; margin-top: 4px; line-height: 1.5; }

.closing { text-align: center; padding: 120px 0 24px; }
.closing h2 { font-size: clamp(24px, 3.6vw, 32px); }
.closing .cta { margin-top: 22px; }
.feedback-line { font-size: 13px; color: var(--ink2); margin-top: 40px; }
.feedback-line a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink3); }
.feedback-line a:hover { text-decoration-color: currentColor; }

/* footer */
footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--ink2); width: 100%; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .credit { margin-top: 10px; color: var(--ink2); }

/* privacy / 404 pages */
.doc { padding: 24px 0 0; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.doc .meta { color: var(--ink2); margin-top: 10px; font-size: 15px; }
.doc h2 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin-top: 40px; }
.doc p, .doc li { margin-top: 10px; color: var(--ink); }
.doc ul { padding-left: 22px; margin: 0; }
.doc li { margin-top: 8px; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; background: var(--bg2); padding: 1px 5px; border-radius: 4px; }
.doc table { border-collapse: collapse; width: 100%; margin-top: 14px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; color: var(--ink2); font-size: 13px; }
.doc th[scope="row"] { color: var(--ink); font-size: 15px; white-space: nowrap; }
.doc .note { background: var(--bg2); border-radius: 10px; padding: 14px 16px; margin-top: 16px; color: var(--ink2); font-size: 15px; }
.notfound { text-align: center; padding: 96px 0; }
.notfound h1 { font-size: clamp(32px, 6vw, 48px); font-weight: 600; letter-spacing: -.025em; }
.notfound p { color: var(--ink2); margin-top: 12px; }

@media (max-width: 720px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 36px; padding-bottom: 24px; }
  .hero .icon { width: 56px; height: 56px; }
  .steps, .facts { grid-template-columns: 1fr; }
  .step .shot { aspect-ratio: 4 / 3; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { position: absolute; left: -9999px; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .doc th, .doc td { border: 0; padding: 2px 0; }
  .doc th[scope="row"] { white-space: normal; }
  section { padding-top: 72px; }
  .top nav { gap: 14px; }
  .closing { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
/* hover.png is landscape in a portrait slot: keep the popover (centered) instead of the top-left corner. */
.step .shot img.center { object-position: 50% 0; }

/* FAQ: native <details>, single centered column, collapsed by default */
#faq h2 { text-align: center; }
.faq { margin: 24px auto 0; max-width: 60ch; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ink2); }
.faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.faq .chev { flex: none; color: var(--ink2); transition: transform .2s; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p { margin: -6px 0 18px; color: var(--ink2); font-size: 15px; line-height: 1.55; max-width: 56ch; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; align-items: start; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; }
.plan h2 { font-size: 22px; margin: 0; }
.plan .price { font-size: 32px; font-weight: 600; letter-spacing: -.02em; margin-top: 10px; }
.plan .price small { font-size: 14px; font-weight: 400; color: var(--ink2); letter-spacing: 0; margin-left: 6px; }
.plan ul { padding-left: 20px; margin: 18px 0 0; color: var(--ink2); font-size: 15px; line-height: 1.55; }
.plan li { margin-top: 6px; }
.plan .cta { align-self: flex-start; margin-top: 22px; margin-bottom: 6px; }
.plan .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--ink2); border: 1px dashed var(--line); border-radius: 999px; padding: 3px 10px; margin-left: 10px; vertical-align: middle; }
.plan.soon { color: var(--ink2); }
.plan.soon h2 { color: var(--ink); }
.plan .note { margin-top: 18px; font-size: 13px; color: var(--ink2); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .frame video, .frame img { aspect-ratio: 4 / 3; } }

/* Long topics: split section (text left, clip right) — the page's one asymmetric section */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.split .lead { max-width: 40em; }
.pairs { list-style: none; padding: 0; margin: 22px 0 0; }
/* two rows per pair: the sentence, then "→ label" under it, so long sentences never strand the arrow */
.pairs li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.pairs q { grid-column: 1 / -1; }
.pairs .label-chip { justify-self: start; }
.pairs li:last-child { border-bottom: 1px solid var(--line); }
.pairs q { color: var(--ink2); font-size: 15px; line-height: 1.45; }
.pairs .to { flex: none; color: var(--ink3); }
/* Same as the popup's long-topic chip (popup/popup.css .chip.long.on): grey gradient, chevron, inverted in dark mode */
.label-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; line-height: 1.3; white-space: nowrap; background: var(--chip-grad); color: var(--chip-grad-ink); border-radius: 999px; padding: 6px 11px 6px 12px; }
.label-chip::after { content: ""; width: 10px; height: 10px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .85; }
.split .note { color: var(--ink2); font-size: 14px; line-height: 1.5; margin-top: 16px; }
.split-media { margin: 0; }
.split-media .shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg2); aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.split-media video { width: 100%; height: 100%; object-fit: cover; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* Blur vs hide: two clips side by side, same feed and topics, so the difference is the only thing that changes */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.pair figure { margin: 0; }
.pair .shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg2); aspect-ratio: 4 / 3; }
.pair video { width: 100%; height: 100%; object-fit: cover; }
.pair h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin-top: 14px; }
.pair figcaption p { color: var(--ink2); font-size: 15px; line-height: 1.5; margin-top: 4px; }
@media (max-width: 720px) { .pair { grid-template-columns: 1fr; } }

/* Speed section: two lead paragraphs, then the wide promo clip in the same window frame as the hero */
#speed .lead + .lead { margin-top: 12px; }
#speed .frame { max-width: none; margin-top: 28px; } /* full content width, flush with the text above */
#speed .frame video { aspect-ratio: 16 / 9; } /* the clip is 16:9; the shared 16:10 / 4:3 crops cut off the popup and its counter */
