/* stream2clip site. Colors and type are the brand's (assets/brand); the layout follows the content:
   facts in tables, procedures in numbered lists, no decoration that carries no information. */

:root {
  --ink: #15131F;
  --paper: #F7F4FA;
  --pink: #FF4F8B;
  --pink-light: #FF7AA8;
  --highlight: #FFD84D;
  --surface: #1D1A29;
  --border: #332E48;
  --muted: #A39DB3;

  --bg: var(--ink);
  --fg: var(--paper);
  --line: var(--border);
  --soft: var(--muted);
  --code-bg: #0F0D17;
  --link: var(--pink-light);

  --wordmark: "Outfit", "Noto Sans KR", sans-serif;
  --body: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK KR", sans-serif;
  --code: "JetBrains Mono", "Cascadia Mono", Consolas, "Noto Sans KR", monospace;
  --wrap: 1080px;
}

/* Japanese pages use the Japanese cut of the same face (the Korean one draws some kanji differently). */
:lang(ja) { --body: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", "Noto Sans KR", sans-serif; --wordmark: "Outfit", "Noto Sans JP", sans-serif; }

/* The manual is read and printed on paper. */
.paper {
  --bg: var(--paper);
  --fg: var(--ink);
  --line: #DDD6E8;
  --soft: #5A5468;
  --code-bg: #ECE7F3;
  --link: #B81452;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.01em; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--pink); color: var(--ink); padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }

/* ---------------------------------------------------------------- header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-family: var(--wordmark); font-size: 24px; line-height: 1; }
.lockup img { width: 38px; height: 38px; }
.lockup, .lockup span { flex: none; white-space: nowrap; }
.lockup .s { font-weight: 300; }
.lockup .two { font-weight: 700; color: var(--pink); }
.lockup .c { font-weight: 700; }
.nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a { color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; }
.nav a:hover { color: var(--fg); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--fg); font-weight: 700; }

/* Language menu. Windows has no flag emoji of its own, so the flags come from a small font that holds only them. */
@font-face {
  font-family: "Twemoji Country Flags";
  unicode-range: U+1F1E6-1F1FF;
  src: url("https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1.10/dist/TwemojiCountryFlags.woff2") format("woff2");
  font-display: swap;
}
.flag { font-family: "Twemoji Country Flags", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.lang { position: relative; font-size: 15px; }
.lang summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--fg); white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; border: 5px solid transparent; border-top-color: currentColor; margin: 5px 0 0 2px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; margin: 0; padding: 6px; min-width: 100%; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.lang li a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
.lang li a[aria-current] { font-weight: 700; color: var(--fg); }
.lang li a:hover { background: var(--code-bg); text-decoration: none; }

/* ---------------------------------------------------------------- shared pieces */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: 8px;
  background: var(--pink); color: var(--ink); font: 700 17px/1.2 var(--body); text-decoration: none;
}
.btn:hover { background: var(--pink-light); }
.btn svg { width: 20px; height: 20px; flex: none; }
code, kbd { font-family: var(--code); font-size: .9em; }
code { background: var(--code-bg); padding: .1em .4em; border-radius: 4px; }
kbd { display: inline-block; min-width: 1.9em; text-align: center; padding: .05em .45em; border-radius: 4px; border: 1px solid var(--line); border-bottom-width: 2px; font-weight: 700; }
pre { margin: 10px 0; padding: 14px 16px; border-radius: 8px; background: var(--code-bg); border: 1px solid var(--line); overflow-x: auto; font: 14px/1.6 var(--code); }
pre code { background: none; padding: 0; font-size: 1em; }
pre.wrap { white-space: pre-wrap; word-break: break-all; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
/* Header row and header column are centred; every cell is centred vertically. */
th, td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td { text-align: left; }
th { text-align: center; font-weight: 700; }
thead th { font-size: 14px; color: var(--soft); border-bottom-width: 2px; white-space: nowrap; }
tbody th { white-space: nowrap; width: 1%; padding-inline: 20px; }
.tablewrap { overflow-x: auto; }
figure { margin: 0; }
figure img { border-radius: 8px; border: 1px solid var(--line); width: 100%; }
figcaption { font-size: 14px; color: var(--soft); margin-top: 8px; }

/* ---------------------------------------------------------------- home: hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.14; letter-spacing: -.03em; font-weight: 900; margin: 0 0 20px; }
.hero h1 em { font-style: normal; color: var(--pink); }
.summary { font-size: 18px; color: var(--soft); margin: 0 0 28px; max-width: 26em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.actions .text { color: var(--fg); font-weight: 700; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 30px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; }

.stage { position: relative; padding-right: 44px; }
.frame { border-radius: 10px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; aspect-ratio: 16 / 10; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.clipcard {
  position: absolute; right: 0; bottom: -30px; width: 30%; aspect-ratio: 9 / 16;
  background: var(--highlight); color: var(--ink); border-radius: 12px; transform: rotate(6deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45); overflow: hidden; display: flex; flex-direction: column;
}
.clipcard .time { margin: 12px 12px 0; align-self: flex-start; background: var(--ink); color: var(--paper); font: 700 11px/1 var(--code); padding: 6px 8px; border-radius: 4px; white-space: nowrap; }
.clipcard img { margin-top: auto; width: 100%; }
.timeline { margin-top: 52px; }
.timeline img { width: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--soft); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 12px; border-radius: 2px; background: #3A3454; }
.sw.clip { background: var(--pink); }
.sw.vert { background: var(--highlight); }

/* ---------------------------------------------------------------- home: sections */
.block { padding: 56px 0; border-top: 1px solid var(--line); }
.block h2 { font-size: 30px; font-weight: 800; margin: 0 0 28px; }
/* The mascot at the far end of a heading, turned towards it. */
.block h2.peeked { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.block h2.peeked .peek { width: 84px; height: auto; margin: -22px 0 -6px; }
.block h3 { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 56px; align-items: start; }
.procedure { margin: 0; padding-left: 1.3em; }
.procedure li { margin: 0 0 12px; padding-left: 4px; }
.procedure li::marker { font-weight: 700; }
.spaced { margin-top: 30px; }
.alt { margin: 14px 0 0; font-size: 15px; color: var(--soft); }

.features { margin: 0; }
.features > div { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.features > div:first-child { border-top: 2px solid var(--line); }
.features dt { font-size: 18px; font-weight: 700; }
.features dd { margin: 0; }
.features ul, .plain { margin: 0; padding-left: 1.1em; }
.features li, .plain li { margin: 2px 0; color: var(--soft); }
.features li::marker, .plain li::marker { color: var(--pink); }

.shots { display: grid; grid-template-columns: 3fr 2fr; gap: 28px; align-items: start; }
.manual { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 28px; align-items: center; }
.manual .links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 0; padding: 0; list-style: none; font-weight: 700; }
.manual p { margin: 0; color: var(--soft); }

footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--soft); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
footer .tagline { font-family: var(--wordmark); font-size: 17px; color: var(--fg); margin-right: auto; }
footer a { color: var(--soft); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer p { flex-basis: 100%; margin: 4px 0 0; }

/* ---------------------------------------------------------------- app page: real screens in phone frames */
.app-hero { padding: 64px 0 48px; overflow: hidden; }
.app-hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.app-hero h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.16; letter-spacing: -.03em; font-weight: 900; margin: 0 0 20px; }
.app-hero h1 em, .step h2 em { font-style: normal; color: var(--pink); }
.appname { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 24px; font-weight: 700; font-size: 17px; }
.appname img { width: 56px; height: 56px; border-radius: 14px; }
.beta { padding: 2px 10px; border: 1px solid var(--pink); border-radius: 999px; color: var(--pink); font-size: 13px; line-height: 1.6; }

.phone { width: 260px; margin: 0; padding: 8px; border-radius: 36px; background: #0B0A10; border: 1px solid var(--border); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.phone img { width: 100%; border: 0; border-radius: 28px; }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-start; padding: 8px 0 40px; }
.phones .phone { width: 47%; max-width: 250px; flex: none; }
.phones .back { transform: rotate(-5deg) translateY(36px); margin-right: -12%; }
.phones .front { transform: rotate(4deg); position: relative; z-index: 1; }
.phones .kiri { position: absolute; z-index: 2; width: 26%; max-width: 130px; right: 0; bottom: 0; }

.step { padding: 72px 0; border-top: 1px solid var(--line); }
.step .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 72px; align-items: center; }
.step.flip .wrap { grid-template-columns: 280px minmax(0, 1fr); }
.step.flip .phone { order: -1; }
.step .phone { width: 100%; }
.tag { display: inline-block; margin: 0 0 16px; padding: 4px 12px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--highlight); font-size: 14px; font-weight: 700; }
.step h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.25; letter-spacing: -.02em; font-weight: 900; margin: 0 0 18px; }
.step p:not(.tag) { margin: 0 0 18px; max-width: 32em; font-size: 17px; color: var(--soft); }

.cta { padding: 72px 0 80px; border-top: 1px solid var(--line); text-align: center; }
.cta img { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 24px; }
.cta h2 { font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.cta p { margin: 0 0 24px; color: var(--soft); }
.cta .text { display: block; margin-top: 16px; color: var(--fg); font-weight: 700; }
.getbar { display: none; }

/* ---------------------------------------------------------------- manual */
.dochead { padding: 40px 0 20px; border-bottom: 3px solid var(--pink); }
.dochead h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 900; letter-spacing: -.02em; margin: 0 0 14px; }
.dochead dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; margin: 0; font-size: 15px; color: var(--soft); }
.dochead dd { margin: 0; color: var(--fg); }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 32px 0 72px; align-items: start; }
.toc { position: sticky; top: 24px; font-size: 15px; max-height: calc(100vh - 48px); overflow: auto; }
.toc h2 { font-size: 15px; margin: 0 0 10px; }
.doc .toc ol { margin: 0; padding-left: 2.2em; }
.toc li { margin: 5px 0; }
.toc a { color: var(--fg); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc .pdf { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--link); }

.doc article { min-width: 0; max-width: 46em; counter-reset: chapter; }
.doc article h2 { font-size: 26px; font-weight: 800; margin: 52px 0 14px; counter-increment: chapter; counter-reset: part; }
.doc article h2:first-child { margin-top: 0; }
.doc article h2::before { content: counter(chapter) ". "; }
.doc article h3 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; counter-increment: part; }
.doc article h3::before { content: counter(chapter) "." counter(part) " "; }
.doc p { margin: 10px 0; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 10px 0; }
.doc li { margin: 5px 0; }
.doc li::marker { font-weight: 700; }
.doc figure { margin: 20px 0; }
.doc table { margin: 12px 0; }
.note { border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin: 18px 0; }
.note h4 { margin: 0 0 6px; font-size: 15px; }
.note ul { margin: 0; }
.note.kiri { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap, .split, .shots { grid-template-columns: 1fr; gap: 40px; }
  .features > div { grid-template-columns: 1fr; gap: 8px; }
  .dochead { padding-top: 28px; }
  .doc { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .toc { position: static; max-height: none; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .toc ol { columns: 2; column-gap: 32px; }
  .app-hero { padding-top: 40px; }
  .app-hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .phones { max-width: 460px; margin-inline: auto; }
  .step { padding: 52px 0; }
  .step .wrap, .step.flip .wrap { grid-template-columns: 1fr; gap: 32px; }
  .step.flip .phone { order: 0; }
  .step .phone { width: 240px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .top .wrap { gap: 12px; padding: 10px 0; }
  .lockup { font-size: 20px; }
  .lockup img { width: 32px; height: 32px; }
  .nav { gap: 2px 16px; }
  .btn { width: 100%; }
  .stage { padding-right: 26px; }
  .clipcard { width: 36%; bottom: -24px; border-radius: 10px; }
  .clipcard .time { font-size: 9px; margin: 8px 8px 0; padding: 4px 5px; }
  .manual { grid-template-columns: 72px minmax(0, 1fr); gap: 18px; }
  .block { padding: 44px 0; }
  th, td { padding: 10px 10px; }
  tbody th { white-space: normal; width: 34%; padding-inline: 8px; }
  .phone { padding: 6px; border-radius: 28px; }
  .phone img { border-radius: 22px; }
  /* On a phone the download stays at hand: a bar at the bottom of the screen, the page padded above it. */
  .getbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); border-top: 1px solid var(--line); }
  .has-getbar { padding-bottom: 76px; }
}

/* ---------------------------------------------------------------- print: the manual as a PDF */
@page { size: A4; margin: 16mm 15mm; }
@media print {
  body { font-size: 10.5pt; line-height: 1.6; background: #fff; }
  .top, .toc, .skip, footer .links { display: none !important; }
  .wrap { width: 100%; }
  .doc { display: block; padding: 0; }
  .doc article { max-width: none; }
  .dochead { padding-top: 0; }
  .doc article h2 { margin-top: 26px; break-after: avoid; }
  .doc article h2:first-child { margin-top: 18px; }
  .doc article h3 { break-after: avoid; }
  pre, figure, tr, .note { break-inside: avoid; }
  pre { font-size: 9pt; white-space: pre-wrap; }
  .tablewrap { overflow: visible; }
  table { font-size: inherit; }
  .doc figure img { max-height: 90mm; width: auto; margin-inline: auto; }
  a { color: inherit; }
  footer { padding: 12px 0 0; font-size: 9pt; }
}
