/* Gloss website. Colors follow the app (app/Sources/Views/Theme.swift); the icon's serif is Fraunces. */
:root {
  --paper: #F7F6F2;
  --white: #FFFFFF;
  --ink: #1D1D1F;
  --ink-2: #55555C;
  --ink-3: #6B6B72;
  --body-2: #3A3A40;
  --line: #E4E2DB;
  --line-2: #DAD7CF;
  --accent: #2145BF;
  --accent-ink: #16307F;
  --accent-soft: rgba(33, 69, 191, 0.09);
  --record: #D9372C;
  --record-tint: #FCEBE9;
  --record-text: #8E1F17;
  --night: #14235F;
  --display: 'Fraunces', 'Noto Serif KR', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Segoe UI', Roboto, 'Malgun Gothic', sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
html[lang="ko"] { --sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; overflow-x: clip; }
html[lang="ko"] body { word-break: keep-all; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--white); padding: 8px 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 246, 242, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; align-items: center; gap: 12px 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-family: 'Fraunces', serif; font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 500; font-size: 17px; text-decoration: none; }
.btn svg { flex: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-ink); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--ink); border: 1px solid var(--line-2); }
.btn-secondary:hover { color: var(--ink); border-color: #C9C5BB; }
.btn-small { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 15px; }

/* Language menu */
.lang { position: relative; }
.lang-button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--white); color: var(--body-2); font: inherit; font-size: 14px; cursor: pointer; }
.lang-button:hover { border-color: #C9C5BB; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.18); display: flex; flex-direction: column; gap: 2px; }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.lang-menu a:hover { background: #F2F1EC; color: var(--ink); }
.lang-menu a[aria-current="true"] { background: rgba(33, 69, 191, 0.08); }
.lang-menu a svg { visibility: hidden; }
.lang-menu a[aria-current="true"] svg { visibility: visible; }

/* Shared section pieces */
.band { background: var(--white); border-block: 1px solid var(--line); }
.section { padding-block: 104px; }
.kicker { margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }
html[lang="en"] .kicker { letter-spacing: 0.08em; text-transform: uppercase; }
.title { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.25; letter-spacing: -0.015em; }
html[lang="en"] .title { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.15; letter-spacing: -0.02em; }
.muted { color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--white); font-family: var(--sans); font-size: 11px; font-style: normal; font-weight: 700; line-height: 1; }

/* Hero */
.hero { padding-block: 88px 72px; }
.hero-text { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid #DDDAD2; border-radius: 999px; background: var(--white); font-size: 14px; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--record); flex: none; }
.display { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 6.4vw, 76px); line-height: 1.18; letter-spacing: -0.02em; }
html[lang="en"] .display { font-size: clamp(40px, 6.8vw, 82px); line-height: 1.1; letter-spacing: -0.025em; }
.display .mark { border-bottom: 0.08em solid var(--accent); padding-bottom: 0.02em; }
.display .badge { font-size: 0.32em; width: 1.3em; height: 1.3em; margin-left: 0.3em; vertical-align: 1.6em; }
.lede { max-width: 660px; font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.fine { font-size: 14px; color: var(--ink-3); }
.footnote { margin-top: 18px; text-align: center; font-family: var(--display); font-style: italic; font-size: 15px; color: var(--ink-3); }
.footnote .badge { display: inline-flex; width: 18px; height: 18px; margin-right: 6px; vertical-align: 2px; }

/* App screen in the hero (drawn, not a screenshot) */
.mock { margin: 64px 0 0; border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid #DDDAD2; box-shadow: 0 30px 80px -30px rgba(27, 56, 159, 0.35), 0 8px 24px -12px rgba(0, 0, 0, 0.18); font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; text-align: left; }
.mock-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 16px; background: #F5F5F3; border-bottom: 1px solid #E4E4E0; }
.lights { display: flex; gap: 8px; }
.lights span { width: 12px; height: 12px; border-radius: 50%; }
.lights span:nth-child(1) { background: #FF5F57; }
.lights span:nth-child(2) { background: #FEBC2E; }
.lights span:nth-child(3) { background: #28C840; }
.mock-title { font-size: 14px; font-weight: 600; }
.mock-page { font-size: 13px; color: var(--ink-3); }
.rec { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--record-tint); color: var(--record-text); font-size: 13px; font-weight: 600; }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: #EFEFF1; font-size: 12px; color: #4A4A52; }
.seg span { padding: 3px 10px; border-radius: 7px; }
.seg .on { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.mock-body { display: flex; flex-wrap: wrap; }
.mock-canvas { flex: 999 1 520px; min-width: 0; background: #E7E7E4; padding: clamp(16px, 3vw, 36px); display: flex; align-items: center; }
.slide { width: 100%; container-type: inline-size; aspect-ratio: 16 / 10; background: var(--white); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); padding: 6cqw 7cqw; display: flex; flex-direction: column; gap: 2.6cqw; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.slide-title { font-size: 4.6cqw; font-weight: 700; letter-spacing: -0.01em; }
.slide-rule { height: 0.3cqw; width: 12cqw; background: var(--ink); }
.slide-list { display: flex; flex-direction: column; gap: 1.8cqw; font-size: 2.5cqw; line-height: 1.45; }
.slide .badge { width: 3.2cqw; height: 3.2cqw; font-size: 1.9cqw; vertical-align: middle; }
.slide .badge.picked { box-shadow: 0 0 0 0.5cqw rgba(33, 69, 191, 0.18); }
.slide .ul { border-bottom: 0.45cqw solid var(--accent); }
.formula { align-self: center; display: flex; align-items: center; gap: 1.6cqw; padding: 1.4cqw 3cqw; border: 0.3cqw dashed var(--accent); border-radius: 1cqw; background: rgba(33, 69, 191, 0.05); }
.formula span:first-child { font-family: 'Fraunces', serif; font-style: italic; font-size: 4cqw; }
.slide-num { margin-top: auto; align-self: flex-end; font-size: 1.6cqw; color: #8C8C95; }
.panel { flex: 1 1 300px; min-width: 0; border-left: 1px solid #E4E4E0; display: flex; flex-direction: column; }
.panel-head { padding: 14px 16px 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.02em; }
.notes { padding: 0 10px; display: flex; flex-direction: column; gap: 6px; }
.note { display: flex; gap: 10px; padding: 10px; border-radius: 10px; }
.note.picked { background: var(--accent-soft); }
.note > div { display: flex; flex-direction: column; gap: 6px; }
.note-text { font-size: 13.5px; line-height: 1.5; }
.listen { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.note.picked .listen { color: var(--accent-ink); font-weight: 600; }
.chip { align-self: flex-start; font-size: 11.5px; padding: 1px 8px; border-radius: 6px; background: #EFEFF1; color: #4A4A52; }
.transcript { margin-top: 10px; border-top: 1px solid #E4E4E0; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.line { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); }
.line time { flex: none; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.line.now { color: var(--ink); background: #FDF3DC; margin: 0 -6px; padding: 2px 6px; border-radius: 6px; }
.line.now time { color: #7A5300; }

/* Problem */
.split { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; padding-block: 96px; }
.split > div:first-child { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.compare { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.compare-card { padding: 22px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.compare-card.gloss { background: rgba(33, 69, 191, 0.06); border-color: rgba(33, 69, 191, 0.22); }
.compare-label { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.gloss .compare-label { color: var(--accent-ink); }
.compare-card p { font-size: 15px; color: var(--ink-2); }
.gloss p { color: var(--ink); }
.sketch { height: 96px; display: flex; gap: 8px; }
.sheet { flex: 1; border-radius: 6px; background: var(--white); border: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.sheet i { display: block; height: 4px; border-radius: 2px; background: #D6D6D2; }
.sheet i.head { height: 6px; width: 60%; background: var(--ink); }
.sheet .side { border-left: 1px solid var(--line); padding-left: 8px; }
.sheet .note-block { height: 18px; border-radius: 4px; background: rgba(33, 69, 191, 0.12); }
.sheet .marked { display: flex; align-items: center; gap: 4px; }
.sheet .marked i { width: 50%; border-bottom: 2px solid var(--accent); }
.sheet .marked b { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* Steps and features */
.steps { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { padding: 28px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.step-num { font-family: 'Fraunces', serif; font-weight: 600; font-size: 44px; line-height: 1; color: var(--accent); }
.card h3, .feature h3 { font-size: 20px; font-weight: 700; }
.card p, .feature p { font-size: 16px; color: var(--ink-2); }
.features { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 36px; }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-size: 19px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.also { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-3); }

/* AI */
.night { background: var(--night); color: #ECEEF8; }
.night .split > div:first-child p { color: #C6CDEA; }
.night .kicker { color: #A9B8F5; }
.night .title { color: var(--white); }
.night .small { font-size: 15px; }
.ai-list { flex: 1 1 420px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ai-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.ai-list b { color: var(--white); }
.ai-list span { color: #C6CDEA; font-size: 15px; }
.ai-list .where { margin-left: auto; font-size: 13px; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); color: #DCE3FF; }
.ai-list li.plain { padding: 4px 4px 0; background: none; border: 0; font-size: 14px; color: #A9B8F5; }

/* Privacy summary */
.rows { margin-top: 40px; border-top: 1px solid var(--line-2); }
.rows > div { display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rows dt { flex: 0 0 220px; font-weight: 700; }
.rows dd { flex: 1 1 360px; margin: 0; color: var(--ink-2); }

/* FAQ */
.faq { max-width: 820px; }
.faq .title { margin-bottom: 32px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--ink-3); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* Download */
.download { padding-block: 112px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.download > img { width: 136px; height: 136px; }
.download .title { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.2; }
.dl-cards { width: 100%; max-width: 760px; margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; text-align: left; }
.dl-cards .card { gap: 10px; padding: 26px; }
.dl-cards .card p { font-size: 15px; }
.dl-cards .btn { margin-top: 8px; min-height: 48px; font-size: 16px; }
.beta { font-size: 13px; font-weight: 700; color: var(--record-text); background: var(--record-tint); padding: 2px 8px; border-radius: 6px; vertical-align: 3px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 32px 48px; font-size: 14px; color: var(--ink-3); }
.site-footer .brand { gap: 8px; }
.site-footer .brand img { width: 22px; height: 22px; border-radius: 6px; }
.site-footer .brand span { font-size: 16px; }
.site-footer .brand small { font-family: var(--sans); font-size: 14px; color: var(--ink-3); font-weight: 400; }
.site-footer a:not(.brand) { color: var(--ink-2); }

/* Privacy policy page */
.policy { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; padding-block: 72px 112px; line-height: 1.75; }
.toc { flex: 1 1 220px; max-width: 260px; min-width: 0; position: sticky; top: 96px; }
@media (max-width: 860px) { .toc { position: static; max-width: none; } }
.toc p { margin-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.04em; }
html[lang="en"] .toc p { letter-spacing: 0.08em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ink-2); }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.policy article { flex: 999 1 560px; min-width: 0; max-width: 720px; }
.policy h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 52px); line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 8px; }
.policy .meta { margin-bottom: 48px; font-size: 15px; color: var(--ink-3); }
.policy section { margin-bottom: 48px; }
.policy h2 { margin-bottom: 16px; font-size: 24px; font-weight: 700; }
.policy article p, .policy article li { color: var(--body-2); }
.policy ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.policy .box { padding: 24px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.policy .box p { color: var(--ink); }
.policy .after { margin-top: 16px; }
.policy .lead { margin-bottom: 16px; }
.policy h3 { margin: 32px 0 12px; font-size: 18px; font-weight: 700; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--white); margin-top: 20px; }
.table-scroll table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.table-scroll th { padding: 12px 16px; text-align: left; font-weight: 700; background: #F5F5F3; border-bottom: 1px solid var(--line); }
.table-scroll td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid #EEECE6; color: var(--body-2); }
.table-scroll tr:last-child td { border-bottom: 0; }
.policy .contact-note { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

/* 404 */
.lost { padding-block: 140px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
