/* RemoTune landing — shared by every locale page (src/Page.tsx renders the markup). */
:root {
  --ink: #0f1614;
  --ink-2: #16211e;
  --paper: #f3f7f5;
  --paper-2: #ffffff;
  --teal: #087c70;
  --teal-deep: #065e55;
  --mint: #8fe3d1;
  --line: #dbe4df;
  --line-dark: #253430;
  --text: #1c2624;
  --muted: #5f6d68;
  --muted-dark: #9fb0aa;
  --display: "Bricolage Grotesque", "Segoe UI Variable", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1120px;
  --radius: 14px;
}
/* The brand fonts carry no CJK glyphs: keep them for Latin text and fall through to Noto for the rest. */
html[lang="ko"] {
  --display: "Bricolage Grotesque", "Noto Sans KR", "Segoe UI Variable", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Noto Sans KR", ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: keep-all;
}
html[lang="ja"] {
  --display: "Bricolage Grotesque", "Noto Sans JP", "Segoe UI Variable", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Noto Sans JP", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Noto Sans JP", ui-monospace, SFMono-Regular, Menlo, monospace;
}
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3,
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { letter-spacing: 0; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; }
p { margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.dark .eyebrow { color: var(--mint); }
.lede { color: var(--muted); max-width: 40rem; }
.dark .lede { color: var(--muted-dark); }

/* Brand mark: the four bars from the desktop and mobile apps. */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.mark { display: inline-flex; align-items: flex-end; gap: 3px; width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: var(--teal); }
.mark i { display: block; width: 3px; border-radius: 2px; background: #fff; height: var(--h, 60%); transform-origin: bottom; }
.mark i:nth-child(1) { --h: 45%; animation-delay: 0s; }
.mark i:nth-child(2) { --h: 100%; animation-delay: -0.5s; }
.mark i:nth-child(3) { --h: 70%; animation-delay: -0.9s; }
.mark i:nth-child(4) { --h: 55%; animation-delay: -0.3s; }
@media (prefers-reduced-motion: no-preference) {
  .mark.live i { animation: eq 1.4s ease-in-out infinite alternate; }
  @keyframes eq { from { transform: scaleY(0.45); } to { transform: scaleY(1); } }
}

/* Header */
header.top { position: sticky; top: 0; z-index: 10; background: rgba(15, 22, 20, 0.85); backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid var(--line-dark); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
header.top .top-right { display: flex; align-items: center; gap: 1.5rem; }
header.top nav { display: flex; gap: 1.6rem; font-size: 0.95rem; }
header.top nav a { text-decoration: none; color: var(--muted-dark); }
header.top nav a:hover { color: #fff; }
@media (max-width: 640px) { header.top nav a:not(:last-child) { display: none; } }
header.top nav a[aria-current="page"] { color: var(--mint); }
@media (max-width: 640px) {
  header.top nav a.nav-docs { display: inline; }
  header.top nav a.nav-blog { display: inline; }
  header.top .wrap { height: auto; min-height: 64px; flex-wrap: wrap; gap: .6rem; padding-block: .65rem; }
  header.top nav { gap: .75rem; font-size: .8rem; }
  header.top .top-right { gap: .65rem; }
}
@media (min-width: 641px) and (max-width: 1050px) {
  header.top nav a:nth-child(-n+3) { display: none; }
}
@media (max-width: 380px) {
  header.top .wrap { width: calc(100% - 24px); }
  header.top .brand { font-size: 1rem; gap: .4rem; }
  header.top nav, header.top .top-right { gap: .5rem; }
}

/* Language switcher: a <details> popover, so it opens without JavaScript. */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; height: 36px; padding: 0 0.7rem; border: 1px solid var(--line-dark); border-radius: 10px; font-size: 0.88rem; color: var(--muted-dark); white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: #fff; border-color: var(--muted-dark); }
.lang summary svg { width: 16px; height: 16px; flex: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 176px; margin: 0; padding: 6px; list-style: none; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,0.45); }
.lang ul a { display: block; padding: 0.5rem 0.7rem; border-radius: 8px; text-decoration: none; color: var(--muted-dark); font-size: 0.92rem; white-space: nowrap; }
.lang ul a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.lang ul a[aria-current="true"] { color: var(--mint); font-weight: 600; }
@media (max-width: 640px) {
  .lang summary span { display: none; }
  .lang summary { padding: 0 0.55rem; }
}

.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: #a6ecdd; }
.btn-ghost { border-color: var(--line-dark); color: #fff; }
.btn-ghost:hover { border-color: var(--muted-dark); }
.light .btn-ghost { border-color: var(--line); color: var(--text); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* Hero */
.dark { background: var(--ink); color: #fff; }
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 0; overflow: hidden; }
.hero-copy { max-width: 54rem; margin: 0 auto; text-align: center; }
.hero h1 { margin-top: 0.9rem; font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.14; font-weight: 600; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero h1 > span { display: block; }
.hero h1 .l1 { font-size: 0.72em; font-weight: 600; color: rgba(255,255,255,0.78); margin-bottom: 0.1em; }
.hero h1 .l3 { font-size: 0.7em; font-weight: 500; margin-top: 0.1em; }
.hero .sub { margin-top: 1.5rem; margin-inline: auto; font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.4; color: #fff; max-width: 34em; text-wrap: pretty; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: center; }
.hero-actions .note { font-family: var(--mono); font-size: 0.8rem; color: var(--muted-dark); margin-left: 0.25rem; }

/* Device stage */
.stage { position: relative; margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(1rem, 4vw, 3rem); align-items: end; }
@media (max-width: 820px) { .stage { grid-template-columns: 1fr; justify-items: center; } }

.laptop { position: relative; width: 100%; max-width: 780px; }
.laptop-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 18px 18px 6px 6px; padding: 14px 14px 16px; background: linear-gradient(180deg, #2a3431, #1a2320); box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.06); }
.laptop-screen::before { content: ""; position: absolute; top: 5px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #0a0f0e; box-shadow: inset 0 0 0 1.5px #3a4642; }
.laptop-panel { position: relative; width: 100%; height: 100%; border-radius: 8px 8px 3px 3px; overflow: hidden; background: radial-gradient(120% 90% at 20% 0%, #1e5c54 0%, #0e2a27 45%, #0a1b19 100%); display: grid; place-items: center; }
.laptop-panel img { width: 68%; height: auto; border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.3); }
.laptop-base { height: 16px; margin: 0 -3%; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, #3a4642, #232d2a); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.laptop-base::after { content: ""; display: block; width: 14%; height: 5px; margin: 0 auto; border-radius: 0 0 6px 6px; background: #151d1b; }

.phone { position: relative; width: min(280px, 72vw); aspect-ratio: 640 / 1391; border-radius: 44px; padding: 10px; background: linear-gradient(160deg, #3a4642, #1a2320); box-shadow: 0 30px 60px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.08); justify-self: end; }
.phone::before { content: ""; position: absolute; top: 90px; right: -3px; width: 3px; height: 70px; border-radius: 2px; background: #2a3431; }
.phone-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--ink); }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .phone { justify-self: center; margin-top: -3rem; } }

/* The link between the two devices: local Wi-Fi only. */
.link { position: absolute; right: calc(300px + 1.5rem); top: 34%; transform: translate(50%, -50%); display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.85rem; border-radius: 999px; background: rgba(15,22,20,0.85); border: 1px solid var(--line-dark); font-family: var(--mono); font-size: 0.75rem; color: var(--mint); white-space: nowrap; }
.link .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(143,227,209,0.6); }
@media (prefers-reduced-motion: no-preference) {
  .link .pulse { animation: pulse 1.8s ease-out infinite; }
  @keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(143,227,209,0); } 100% { box-shadow: 0 0 0 0 rgba(143,227,209,0); } }
}
@media (max-width: 820px) { .link { display: none; } }

/* Sections */
.moments { padding: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.moments-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 760px) { .moments-list { grid-template-columns: 1fr; } }
.moments-list li { padding: 1.25rem 1.4rem; border-left: 3px solid var(--teal); background: var(--paper-2); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.moments-list strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 0.2rem; }
.moments-line { margin-top: 1.4rem; font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
section.block { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
#faq { scroll-margin-top: 64px; }
.section-head { display: grid; gap: 0.9rem; max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Control cards: the exact controls the phone gives you. */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 960px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .strip { grid-template-columns: 1fr; } }
.strip > div { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem 1.9rem; display: grid; gap: 0.75rem; align-content: start; }
.strip .glyph { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(8,124,112,0.1); color: var(--teal); margin-bottom: 0.5rem; }
.strip svg { width: 28px; height: 28px; }
.strip h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.strip p { color: var(--muted); font-size: 1rem; line-height: 1.55; max-width: 30ch; }

/* Connecting: three image-topped cards. The first two are alternatives, so no numbering. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 32rem; } }
.step { padding: 1rem 1rem 1.6rem; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); display: grid; gap: 0.6rem; align-content: start; }
.step h3 { font-size: 1.25rem; padding: 0.6rem 0.5rem 0; }
.step p { color: var(--muted-dark); font-size: 0.97rem; line-height: 1.5; padding: 0 0.5rem; }
.step-shot { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: radial-gradient(120% 100% at 30% 0%, #1b4a44 0%, #0f2623 50%, #0b1716 100%); display: grid; place-items: center; }
.step-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-desk img { width: 84%; max-height: 88%; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 14px 30px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.3); }
.steps-note { margin-top: 1.5rem; color: var(--muted-dark); font-size: 0.95rem; max-width: 44rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { display: grid; grid-template-rows: auto auto 1fr auto; gap: 1.2rem; padding: 1.8rem 1.7rem; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); }
.plan.pro { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(8,124,112,0.08); }
.plan-name { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.plan-name h3 { font-size: 1.5rem; }
.free-meta { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.55rem; border-radius: 999px; background: var(--paper); color: var(--muted); text-align: center; }
.plan.pro .tag { background: rgba(8,124,112,0.1); color: var(--teal-deep); }
.price { font-family: var(--display); font-size: 2.6rem; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.price-choice { display: grid; gap: 0.6rem; border: 0; padding: 0; margin: 0; }
.price-choice legend { margin-bottom: 0.5rem; }
.price-choice label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 1rem; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.price-choice label:has(input:checked) { border-color: var(--teal); background: rgba(8,124,112,0.06); }
.price-choice input { accent-color: var(--teal); margin: 0 0.6rem 0 0; }
.price-choice .opt { display: flex; align-items: center; }
.price-choice .opt span { display: block; }
.price-choice .opt .sub { font-size: 0.82rem; color: var(--muted); }
.price-choice .amt { font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.price-choice .amt small { font-family: var(--mono); font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; font-size: 0.97rem; }
.plan li { display: flex; gap: 0.6rem; align-items: flex-start; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 0.2rem; color: var(--teal); }
.plan-foot { display: grid; gap: 0.6rem; }
.plan-foot .fine { font-size: 0.82rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.faq details { border-bottom: 1px solid var(--line-dark); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 0; font-family: var(--display); font-size: 1.15rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--mint); font-size: 1.3rem; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 0 1.3rem; color: var(--muted-dark); max-width: 44rem; }

/* Download: one column per device type. */
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 760px) { .downloads { grid-template-columns: 1fr; } }
.dl-group { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 0.5rem; }
.dl-head { display: grid; gap: 0.35rem; padding-bottom: 1.1rem; }
.dl-head .role { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.dl-head h3 { font-size: 1.3rem; }
.dl-head p { color: var(--muted); font-size: 0.93rem; }
.dl-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.dl-logo { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.dl-logo svg { width: 22px; height: 22px; }
.dl-name { display: grid; gap: 0.1rem; flex: 1; min-width: 0; }
.dl-name strong { font-family: var(--display); font-size: 1.05rem; font-weight: 600; }
.dl-name span { font-size: 0.85rem; color: var(--muted); }
.dl-status { flex: none; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--paper); color: var(--muted); }
.dl-link { background: var(--teal); color: #fff; text-decoration: none; }
.dl-link:hover { text-decoration: underline; }
.dl-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* Windows installer notice */
.download-notice { width: min(31rem, calc(100% - 2rem)); border: 0; border-radius: var(--radius); padding: 2.25rem; color: var(--ink); background: var(--paper-2); box-shadow: 0 1.5rem 4rem rgba(17, 30, 46, 0.28); text-align: center; }
.download-notice::backdrop { background: rgba(17, 30, 46, 0.62); }
.download-notice-close { position: absolute; top: 1rem; right: 1rem; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.download-notice-close:hover { color: var(--ink); background: var(--paper); }
.download-notice-close:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.download-notice-icon { width: 3.75rem; height: 3.75rem; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; color: var(--teal); background: rgba(8, 124, 112, 0.12); }
.download-notice-icon svg { width: 2rem; height: 2rem; }
.download-notice h2 { margin: 0; font-size: 1.55rem; }
.download-notice-body { display: grid; gap: 0.8rem; margin: 1.4rem 0 1.8rem; color: var(--muted); line-height: 1.6; }
.download-notice-body p { margin: 0; white-space: pre-line; }
.download-notice-actions { display: flex; gap: 0.75rem; justify-content: center; }
.download-notice-actions .btn { min-width: 9rem; justify-content: center; }
.download-notice .btn-ghost { border-color: var(--line-dark); color: var(--text); }
.download-notice .btn-ghost:hover { border-color: var(--muted); background: var(--paper); }
@media (max-width: 460px) { .download-notice { padding: 2rem 1.25rem 1.25rem; } .download-notice-actions { flex-direction: column-reverse; } .download-notice-actions .btn { width: 100%; } }

footer { padding: 2.5rem 0 3rem; color: var(--muted-dark); font-size: 0.88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
footer .brand { color: #fff; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: #fff; }
