/* LINE Seed KR (OFL 1.1, assets/fonts/OFL.txt). Latin and Hangul are separate files so the
   pages in other languages don't fetch Hangul. */
@font-face {
  font-family: 'LINE Seed Latin';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/LINESeedKR-Regular.latin.woff2') format('woff2');
}

@font-face {
  font-family: 'LINE Seed Latin';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/LINESeedKR-Bold.latin.woff2') format('woff2');
}

@font-face {
  font-family: 'LINE Seed KR';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/LINESeedKR-Regular.hangul.woff2') format('woff2');
  unicode-range: U+3131-3163, U+AC00-D7A3, U+300C-300F;
}

@font-face {
  font-family: 'LINE Seed KR';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/LINESeedKR-Bold.hangul.woff2') format('woff2');
  unicode-range: U+3131-3163, U+AC00-D7A3, U+300C-300F;
}

/* The app's colours (새비서 화면 규칙, design D). Each -ink is the text colour for its tint. */
:root {
  color-scheme: light dark;
  --bg: #f4f4f8;
  --card: #ffffff;
  --ink: #1c1c3a;
  --mute: #5c5c80;
  --line: #e3e3ec;
  --edge: #8a8aa6;
  --blue: #3d63f2;
  --pink: #d93a80;
  --yellow: #b07800;
  --green: #0e8a58;
  --blue-ink: #2e4fd6;
  --pink-ink: #b4266a;
  --yellow-ink: #7a5200;
  --green-ink: #0a6e46;
  --blue-tint: #e4eaff;
  --pink-tint: #ffe3ee;
  --yellow-tint: #fff0c4;
  --green-tint: #daf4e8;
  --red: #b4266a;
  /* What an icon's cut-out shows: the surface the icon sits on. */
  --ko: var(--bg);
  --font: 'LINE Seed Latin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121228;
    --card: #1d1d3d;
    --ink: #f2f2ff;
    --mute: #a9a9cc;
    --line: #2c2c52;
    --edge: #6a6a94;
    --blue: #8ca3ff;
    --pink: #ff86b4;
    --yellow: #ffcb45;
    --green: #3ccb8c;
    --blue-ink: #a9baff;
    --pink-ink: #ff9cc2;
    --yellow-ink: #ffd566;
    --green-ink: #5fdba3;
    --blue-tint: #232b5c;
    --pink-tint: #4a2238;
    --yellow-tint: #45381a;
    --green-tint: #173d30;
    --red: #ff9cc2;
  }
}

@media (prefers-contrast: more) {
  :root {
    --bg: #ffffff;
    --card: #ffffff;
    --ink: #000000;
    --mute: #33334a;
    --line: #000000;
    --edge: #000000;
    --blue: #1f3fbf;
    --pink: #a8155a;
    --yellow: #6b4a00;
    --green: #075f3b;
    --blue-ink: #1f3fbf;
    --pink-ink: #a8155a;
    --yellow-ink: #6b4a00;
    --green-ink: #075f3b;
    --blue-tint: #ffffff;
    --pink-tint: #ffffff;
    --yellow-tint: #ffffff;
    --green-tint: #ffffff;
    --red: #a8155a;
  }
}

:lang(ko) {
  --font: 'LINE Seed Latin', 'LINE Seed KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}

:lang(ja) {
  --font: 'LINE Seed Latin', 'Hiragino Sans', 'Yu Gothic UI', Meiryo, system-ui, sans-serif;
}

:lang(zh-Hans) {
  --font: 'LINE Seed Latin', 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', system-ui, sans-serif;
}

:lang(zh-Hant) {
  --font: 'LINE Seed Latin', 'PingFang TC', 'Microsoft JhengHei UI', 'Microsoft JhengHei', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}

body:lang(ko) {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Breaks Japanese headings between phrases rather than inside a word (Chrome). */
h1:lang(ja),
h2:lang(ja),
h3:lang(ja),
dt:lang(ja) {
  word-break: auto-phrase;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

strong {
  font-weight: 700;
}

code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--line);
  font: 0.88em var(--mono);
  overflow-wrap: anywhere;
}

.icon {
  flex: none;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

.site-header,
main,
.site-footer {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

/* The header and the hero sit on the card colour, edge to edge, behind the centred column. */
.site-header,
.hero {
  background: var(--card);
  box-shadow: 0 0 0 100vmax var(--card);
  clip-path: inset(0 -100vmax);
  --ko: var(--card);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 0.9375rem;
}

.site-header nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--mute);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 12fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 88px);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.125rem, 4.1vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 34em;
  margin: 22px 0 30px;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 22px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px var(--edge);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  box-shadow: inset 0 0 0 2.5px var(--ink);
}

.button.primary {
  background: var(--ink);
  box-shadow: none;
  color: var(--card);
}

.button.primary:hover {
  text-decoration: underline;
}

.meta {
  margin: 16px 0 0;
  color: var(--mute);
  font-size: 0.9375rem;
}

.meta + .meta {
  margin-top: 4px;
}

/* Text on a tint takes the tint's -ink colour and the icon the plain colour, as in the app. */
.blue {
  --tint: var(--blue-tint);
  --on-tint: var(--blue-ink);
  --hue: var(--blue);
  color: var(--hue);
}

.pink {
  --tint: var(--pink-tint);
  --on-tint: var(--pink-ink);
  --hue: var(--pink);
  color: var(--hue);
}

.yellow {
  --tint: var(--yellow-tint);
  --on-tint: var(--yellow-ink);
  --hue: var(--yellow);
  color: var(--hue);
}

.green {
  --tint: var(--green-tint);
  --on-tint: var(--green-ink);
  --hue: var(--green);
  color: var(--hue);
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--tint);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--on-tint);
  line-height: 1.3;
  --ko: var(--tint);
}

.state > .icon {
  color: var(--hue);
}


.mock {
  min-width: 0;
  margin: 0;
}

.mock-screen {
  padding: clamp(16px, 2.4vw, 28px);
  border-radius: 28px;
  background: var(--bg);
  font-size: 0.9375rem;
  line-height: 1.5;
  --ko: var(--bg);
}

.mock-screen p {
  margin: 0;
}

.mock-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
}

.mock-head span {
  display: inline-flex;
}

.mock-head ~ .mock-head {
  margin-top: 26px;
}

.badge,
.count {
  justify-content: center;
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.875rem;
}

.badge {
  background: var(--pink-ink);
  color: var(--card);
}

.count {
  background: var(--line);
}

.card {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--card);
  --ko: var(--card);
}

.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--tint);
  --ko: var(--tint);
}

.card-main {
  min-width: 0;
}

.card-title {
  font-weight: 700;
  font-size: 1.0625rem;
}

.card-sub {
  color: var(--mute);
}

.card-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  --ko: var(--ink);
}

.btn.quiet {
  background: none;
  box-shadow: inset 0 0 0 1.5px var(--edge);
  color: var(--ink);
}

.job {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1.5px solid var(--line);
}

.job-main {
  flex: 1;
  min-width: 0;
}

.job-main p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  color: var(--ink);
}

.device {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mute);
}

.job-count {
  flex: none;
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bar {
  display: block;
  height: 8px;
  margin-top: 6px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: currentColor;
  transform-origin: left;
  animation: fill 0.9s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.bar-66 i {
  width: 66%;
}

.bar-57 i {
  width: 57%;
}

@keyframes fill {
  from {
    transform: scaleX(0);
  }
}

.ask {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: 22px;
}

.bird {
  flex: none;
  width: clamp(72px, 9vw, 104px);
  height: auto;
  margin: 0 0 -10px -6px;
}

.input-line {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 56px;
  padding: 6px 6px 6px 18px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: inset 0 0 0 2px var(--ink);
  color: var(--mute);
  font-size: 1rem;
}

.btn.send {
  justify-content: center;
  width: 44px;
  padding: 0;
}

.mock figcaption {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  color: var(--mute);
  font-size: 0.9375rem;
}

.mock figcaption span {
  display: inline-flex;
  margin-top: 4px;
}

.part {
  padding: clamp(56px, 7vw, 96px) 0 0;
}

.part:last-of-type {
  padding-bottom: clamp(56px, 7vw, 96px);
}

.part-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.part-lead {
  max-width: 40em;
  margin: 14px 0 0;
  color: var(--mute);
}

.rows {
  margin: 28px 0 0;
  border-bottom: 1.5px solid var(--line);
}

.rows > div {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 6px clamp(24px, 5vw, 72px);
  padding: 22px 0;
  border-top: 1.5px solid var(--line);
}

.rows dt {
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.45;
}

.rows dd {
  max-width: 40em;
  margin: 0;
}

.aside {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(32px, 6vw, 88px);
  margin-top: 48px;
}

h3 {
  font-size: 1.1875rem;
  line-height: 1.45;
}

.aside p {
  margin: 8px 0 0;
}

.signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.install h2 {
  margin-bottom: 20px;
}

details {
  border-top: 1.5px solid var(--line);
}

details:last-of-type {
  border-bottom: 1.5px solid var(--line);
}

summary {
  padding: 16px 0;
  font-weight: 700;
  cursor: pointer;
}

details p {
  max-width: 40em;
  margin: 0 0 20px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 24px 0 48px;
  color: var(--mute);
  font-size: 0.9375rem;
}

.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.site-footer a,
.languages [aria-current] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.languages a {
  text-decoration: none;
}

.languages a:hover {
  text-decoration: underline;
}

.languages [aria-current] {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero,
  .aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .rows > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .downloads .button {
    flex: 1 1 100%;
    justify-content: center;
  }

  .job {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .job-main {
    flex-basis: calc(100% - 58px);
  }

  .job-count {
    margin-left: 58px;
  }
}

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

  .bar i {
    animation: none;
  }
}

@media (prefers-contrast: more) {
  .state,
  .tile,
  .count,
  .mock-screen,
  .card {
    box-shadow: inset 0 0 0 1.5px var(--ink);
  }

  .count {
    background: none;
  }
}
