/* Melorb launch page. One stylesheet for both languages. No external requests: fonts are local (fonts.css).
   Look: the fo notebook design system of the app (sky page, white paper cards, dashed borders, ink buttons,
   blossom pink accents, washi tape). Tokens copied from ui/styles/tokens.css. Body text contrast is at least 4.5:1. */
:root {
  color-scheme: light;
  --sky: #e6eff8;
  --paper: #ffffff;
  --ink: #1b2738;
  --ink-muted: #40516a;
  --blossom: #b83a73;
  --blossom-deep: #7a2149;
  --blossom-soft: #f6d3e2;
  --note: #fbe3ee;
  --sky-deep: #2f6fb5;
  --link: #24598f;
  --sky-photo: #cfdff0;
  --lilac: #b9b4e0;
  --line: #7f95b0;
  --shadow-paper: 0 6px 14px rgba(27, 39, 56, 0.16);
  --shadow-1: 0 2px 6px rgba(27, 39, 56, 0.1);
  --hand: "Long Cang", "KaiTi", "STKaiti", cursive;
  --script: "Caveat", "Segoe Script", cursive;
  --sans: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: var(--hand);
  --wrap: 1080px;
}
html[lang="en"] { --display: var(--script); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--sky);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M36 22l9 14-9 14-9-14z' fill='%23fff' fill-opacity='.55'/%3E%3C/svg%3E");
  overflow-wrap: anywhere;
}
html[lang="en"] body { line-height: 1.65; overflow-wrap: break-word; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--blossom-deep); }
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 2px; border-radius: 4px; }
code, pre { font-family: var(--mono); }
code { font-size: 0.88em; background: rgba(27, 39, 56, 0.07); padding: 0.1em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }
.nb { white-space: nowrap; }
.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; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 6px; }
.skip:focus { top: 8px; color: #fff; }

/* washi tape */
[data-tape="stripes"] { --tp: repeating-linear-gradient(-45deg, rgba(184, 58, 115, 0.5) 0 5px, rgba(255, 255, 255, 0.6) 5px 10px); }
[data-tape="dots"] { --tp: radial-gradient(circle, rgba(47, 111, 181, 0.75) 1.8px, transparent 2.3px) 0 0 / 8px 8px, rgba(207, 223, 240, 0.85); }
[data-tape="checks"] { --tp: conic-gradient(rgba(122, 33, 73, 0.5) 25%, transparent 0 50%, rgba(122, 33, 73, 0.5) 0 75%, transparent 0) 0 0 / 10px 10px, rgba(185, 180, 224, 0.7); }
[data-tape="zigzag"] { --tp: linear-gradient(135deg, rgba(47, 111, 181, 0.62) 25%, transparent 25%) -5px 0 / 10px 10px, linear-gradient(225deg, rgba(47, 111, 181, 0.62) 25%, transparent 25%) -5px 0 / 10px 10px, rgba(255, 255, 255, 0.7); }
[data-tape="solid"] { --tp: rgba(184, 58, 115, 0.42); }
[data-tape="plain"] { --tp: rgba(47, 111, 181, 0.34); }
[data-tape]::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 84px;
  height: 18px;
  margin-left: -42px;
  background: var(--tp);
  border: 1px solid rgba(27, 39, 56, 0.2);
  transform: rotate(-3deg);
  pointer-events: none;
}

/* header */
.site-header { padding: 10px 0 6px; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.wordmark { font-family: var(--script); font-weight: 600; font-size: 2rem; line-height: 1.1; }
.nav { order: 3; flex: 1 0 100%; }
/* the entries wrap onto further lines instead of scrolling or overflowing: a centred row wider than its box is clipped on both sides and the clipped part cannot be reached */
.nav ul { display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 0; padding: 4px 0; list-style: none; }
.nav a { display: block; white-space: nowrap; padding: 6px 12px; border-radius: 30px; color: var(--ink-muted); text-decoration: none; font-size: 0.95rem; line-height: 1.5; }
.nav a:hover { background: rgba(255, 255, 255, 0.85); color: var(--ink); }
.lang { margin-left: auto; padding: 4px 14px; border: 1.5px dashed var(--line); border-radius: 30px; background: rgba(255, 255, 255, 0.8); color: var(--ink); text-decoration: none; font-size: 0.95rem; }
@media (min-width: 980px) {
  .nav ul { justify-content: center; }
}

/* type */
h1, h2 { font-family: var(--display); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: 0.01em; }
html[lang="en"] h1, html[lang="en"] h2 { font-weight: 600; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 6.2vw, 3.6rem); line-height: 1.25; margin-bottom: 1rem; }
html[lang="en"] h1 { font-size: clamp(2.5rem, 7vw, 4.2rem); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 4.4vw, 2.5rem); line-height: 1.35; margin-bottom: 0.6rem; }
html[lang="en"] h2 { font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.15; }
h2 span, h2 { background: linear-gradient(transparent 66%, var(--blossom-soft) 66%) no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; display: inline; padding: 0 0.12em; }
h3 { font-size: 1.1rem; line-height: 1.5; margin: 0 0 0.4rem; font-weight: 700; }
p { margin: 0 0 0.9rem; }
.lead { font-size: 1.1rem; max-width: 46em; margin: 0.9rem 0 1.4rem; color: var(--ink-muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0.55rem 1.4rem;
  border-radius: 30px; border: 1px solid rgba(47, 70, 105, 0.3); text-decoration: none; font-weight: 700; color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(242, 248, 254, 0.85) 54%, rgba(226, 238, 250, 0.8) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), inset 0 -2px 3px rgba(27, 39, 56, 0.09), 0 3px 8px -2px rgba(27, 39, 56, 0.2);
}
.btn:hover { color: var(--ink); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(27, 39, 56, 0.1), 0 6px 14px -3px rgba(27, 39, 56, 0.25); }
.btn:active { box-shadow: inset 0 2px 4px rgba(27, 39, 56, 0.2), 0 1px 2px rgba(27, 39, 56, 0.14); }
.btn.primary {
  color: #fff; border-color: rgba(16, 24, 36, 0.55);
  background: linear-gradient(180deg, rgba(50, 69, 97, 0.96) 0%, rgba(27, 39, 56, 0.98) 52%, rgba(18, 27, 40, 1) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -2px 4px rgba(6, 10, 16, 0.52), 0 4px 11px -2px rgba(27, 39, 56, 0.34);
}
.btn.primary:hover { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform 0.15s ease, box-shadow 0.15s ease; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(1px); }
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4rem 0 0.7rem; }

/* paper */
.paper { position: relative; background: var(--paper); border: 1.5px dashed var(--line); border-radius: 6px; box-shadow: var(--shadow-paper); padding: 1.1rem 1.3rem; }

/* hero */
.hero { padding: 2.2rem 0 1.5rem; }
.eyebrow { display: inline-block; margin: 0 0 1rem; padding: 0.15rem 0.9rem; border: 1.5px dashed var(--blossom); border-radius: 30px; background: rgba(255, 255, 255, 0.7); color: var(--blossom-deep); font-weight: 500; font-size: 0.95rem; }
.definition { font-size: 1.18rem; max-width: 42em; padding-left: 1rem; border-left: 4px solid var(--blossom); margin: 0; }
.shot { margin: 1.4rem 0 0; padding: 0.7rem; }
.shot img { border-radius: 4px; border: 1px solid rgba(27, 39, 56, 0.14); width: 100%; }
.shot figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-muted); line-height: 1.6; }
.hero .shot { transform: rotate(-0.3deg); }
@media (prefers-reduced-motion: reduce) { .hero .shot { transform: none; } }

/* intro film: the 16:9 box is reserved by aspect-ratio, so nothing moves when the poster or the video loads */
.film { margin: 1.4rem 0 0; padding: 0.7rem; max-width: 960px; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ink); border: 2px solid var(--ink); border-radius: 4px; }
.film figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-muted); line-height: 1.6; }
.film .note { display: block; margin-top: 0.3rem; }
.film video p { padding: 1rem; color: #fff; }
.film video a { color: #fff; }

/* facts */
.facts ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 14px; list-style: none; margin: 0; padding: 14px 0 6px; }
.facts li { position: relative; background: var(--paper); border: 1.5px dashed var(--line); border-radius: 6px; box-shadow: var(--shadow-1); padding: 0.8rem 0.6rem 0.7rem; text-align: center; line-height: 1.35; }
.facts li::before { width: 56px; height: 13px; margin-left: -28px; top: -8px; }
.facts b { display: block; font-family: var(--script); font-weight: 600; font-size: 2.6rem; line-height: 1.05; color: var(--blossom); }
.facts span { display: block; font-size: 0.92rem; color: var(--ink-muted); }
@media (min-width: 620px) { .facts ul { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .facts ul { grid-template-columns: repeat(6, 1fr); } }

/* sections */
.block { padding: 2.6rem 0 0.8rem; scroll-margin-top: 8px; }

.cards { display: grid; grid-template-columns: 1fr; gap: 22px; list-style: none; margin: 1.6rem 0 0; padding: 0; counter-reset: step; }
.cards li { counter-increment: step; padding-top: 1.5rem; }
.cards li h3::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 1.7em; height: 1.7em; margin-right: 0.5em; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--script); font-size: 1.15em; font-weight: 600; line-height: 1; }
.cards p { margin: 0; color: var(--ink); font-size: 0.98rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.specs li { background: var(--paper); border: 1.5px dashed var(--line); border-radius: 6px; box-shadow: var(--shadow-1); padding: 0.9rem 1.1rem; font-size: 0.98rem; }
.specs strong { color: var(--blossom-deep); }
@media (min-width: 760px) { .specs { grid-template-columns: repeat(2, 1fr); } .split .specs { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.25fr 1fr; } }

.plain { list-style: none; margin: 0; padding: 0; }
.plain li { position: relative; padding: 0.25rem 0 0.25rem 1.25rem; font-size: 0.98rem; }
.plain li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 7px; height: 7px; background: var(--blossom); transform: rotate(45deg); }
.note-paper { background: var(--note); border-color: rgba(184, 58, 115, 0.5); padding: 1.3rem 1.5rem; }
.note-paper .plain li { padding-top: 0.35rem; padding-bottom: 0.35rem; }

.cols3 { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 0.4rem; }
.col { padding-top: 1.1rem; }
.col h3 { font-size: 1.2rem; }
.col.can h3 { color: var(--sky-deep); }
.col.cannot h3 { color: var(--blossom-deep); }
@media (min-width: 880px) { .cols3 { grid-template-columns: repeat(3, 1fr); } }
.shot.narrow { max-width: 560px; margin: 1.8rem auto 0; }

/* code */
.code { margin: 0.7rem 0 0; background: var(--ink); color: #e8eef7; border-radius: 8px; box-shadow: var(--shadow-1); min-width: 0; }
.code figcaption { padding: 0.45rem 1rem 0; font-size: 0.8rem; color: #b9c8dc; letter-spacing: 0.02em; }
.code pre { margin: 0; padding: 0.4rem 1rem 0.9rem; overflow-x: auto; font-size: 0.85rem; line-height: 1.65; }
.code code { background: none; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.split > .code { margin-top: 0; }
@media (min-width: 900px) { .split > .code { position: sticky; top: 16px; } }

/* table */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1.5px dashed var(--line); border-radius: 6px; box-shadow: var(--shadow-paper); }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.96rem; line-height: 1.6; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
th, td { padding: 0.8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px dashed rgba(127, 149, 176, 0.6); }
thead th { font-weight: 700; border-bottom: 1.5px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; width: 14%; }
.us { background: rgba(251, 227, 238, 0.65); }
thead th.us { color: var(--blossom-deep); }

/* live */
.shots { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 1.8rem; align-items: start; }
.shots .shot { margin: 0; }
.shot.phone { max-width: 330px; justify-self: center; width: 100%; }
@media (min-width: 820px) { .shots { grid-template-columns: 1.9fr 1fr; } }

/* setup */
h3.after { margin-top: 2rem; font-size: 1.2rem; }
.setup-steps { list-style: none; counter-reset: s; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 22px; }
.setup-steps li { counter-increment: s; position: relative; padding-left: 2.8rem; min-width: 0; }
.setup-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--script); font-weight: 600; font-size: 1.35rem; line-height: 2rem; text-align: center; }
.setup-steps > li > strong { display: block; font-size: 1.1rem; }
.setup-steps p { margin: 0.1rem 0 0; font-size: 0.98rem; }

/* faq */
.faq-list { display: grid; gap: 16px; margin-top: 1.2rem; }
.faq-item { padding-top: 1rem; }
.faq-item h3 { color: var(--blossom-deep); font-size: 1.1rem; }
.faq-item p { margin: 0; font-size: 0.98rem; }

/* footer */
.site-footer { margin-top: 3.2rem; padding: 1.8rem 0 2.4rem; background: var(--ink); color: #dfe8f4; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 0.4rem; }
.site-footer .small { font-size: 0.85rem; color: #b9c8dc; }

/* ASIO Compatible Logo (Steinberg official artwork, unchanged) next to the ASIO mention */
.asio-mark { display: flex; align-items: center; gap: 14px; margin: 16px 0 0; font-size: 0.85rem; color: var(--ink-muted); }
.asio-mark img { width: 112px; height: auto; flex: none; }

/* three languages: Korean uses the system Hangul fonts and keeps words together */
html[lang="ko"] {
  --sans: "Pretendard", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", "Nanum Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--sans);
}
html[lang="ko"] body { line-height: 1.75; word-break: keep-all; overflow-wrap: break-word; }
html[lang="ko"] h1, html[lang="ko"] h2 { font-weight: 700; letter-spacing: -0.01em; }
html[lang="ko"] h1 { font-size: clamp(1.85rem, 5.2vw, 3rem); line-height: 1.3; }
html[lang="ko"] h2 { font-size: clamp(1.5rem, 3.8vw, 2.1rem); line-height: 1.4; }
html[lang="ko"] .eyebrow, html[lang="ko"] .btn, html[lang="ko"] .nav a { font-weight: 600; }
.lang + .lang { margin-left: 0; }

/* download section */
.downloads { list-style: none; display: grid; grid-template-columns: 1fr; gap: 22px; margin: 1.4rem 0 1rem; padding: 0; }
.downloads li { padding-top: 1.5rem; display: flex; flex-direction: column; min-width: 0; }
.downloads p { font-size: 0.96rem; }
.downloads li p:last-child { margin: auto 0 0; }
.downloads .btn { width: 100%; text-align: center; overflow-wrap: anywhere; font-size: 0.88rem; padding: 0.55rem 0.9rem; }
@media (min-width: 900px) { .downloads { grid-template-columns: repeat(3, 1fr); } }
.links-row { margin: 0 0 1.4rem; font-size: 0.95rem; }
.warn { margin-top: 0.4rem; background: var(--note); border-color: rgba(184, 58, 115, 0.5); padding: 1.3rem 1.5rem; }
.warn h3 { color: var(--blossom-deep); font-size: 1.2rem; }
ol.plain { list-style: none; counter-reset: ws; margin: 0 0 0.9rem; padding: 0; }
ol.plain li { counter-increment: ws; padding-left: 2rem; }
ol.plain li::before { content: counter(ws); top: 0.35rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--ink); color: #fff; transform: none; font-size: 0.85rem; line-height: 1.4rem; text-align: center; font-weight: 700; }
#verify { margin-bottom: 0.4rem; }
#download .paper + h3.after, #download .code { margin-bottom: 0.4rem; }
#download > .wrap > .paper:last-child { margin-top: 1.4rem; }
.hero .updated { margin: 0.4rem 0 1.4rem; font-size: 0.88rem; color: var(--ink-muted); }
.keyfacts li { font-size: 1rem; }
p.after { margin: 1.6rem 0 0.3rem; }
p.cite { margin: 0; }
p.cite code { display: block; padding: 0.7rem 1rem; white-space: normal; overflow-wrap: anywhere; }
