/*
 * kiswave.com introduction page (M7b D-M7-11). Plain CSS, no script. Colours, spacing and type
 * are the apps' design tokens (packages/ui/src/tokens.css), copied here because the page ships
 * without a build step.
 */
:root {
  color-scheme: light dark;
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-subtle: #f1efea;
  --border: #e4e1da;
  --text: #1b1a18;
  --muted: #67625a;
  --primary: #0f6e5c;
  --on-primary: #ffffff;
  --focus: #2d6ae3;
  --accent: #3fbf9f;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgb(27 26 24 / 0.06), 0 1px 1px rgb(27 26 24 / 0.04);
  --font:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Apple SD Gothic Neo',
    'Noto Sans KR', sans-serif;
}

:root:lang(ko) {
  --font:
    system-ui, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1c1b19;
    --surface-subtle: #262420;
    --border: #34312c;
    --text: #f2f0ec;
    --muted: #a7a198;
    --primary: #3fbf9f;
    --on-primary: #121110;
    --focus: #79a6ff;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: var(--radius-md);
  z-index: 1;
}

.wrap {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9375rem;
}

.top nav a {
  text-decoration: none;
  color: var(--muted);
}

.top nav a:hover {
  color: var(--text);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--primary);
  color: var(--on-primary);
}

.button.primary:hover {
  filter: brightness(1.08);
}

.button.secondary {
  background: var(--surface);
  border-color: var(--border);
}

.button.secondary:hover {
  background: var(--surface-subtle);
}

/* Hero */
.hero {
  padding-block: 56px 72px;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding-block: 80px 96px;
  }
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  margin: 20px 0 0;
  max-width: 34rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.note {
  margin: 14px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* The phone and ticket illustration: shapes only, no image files to load. */
.scene {
  position: relative;
  /* Tall enough on a phone that the ticket sits below the pay button, never over it. */
  min-height: 440px;
}

@media (min-width: 900px) {
  .scene {
    min-height: 340px;
  }
}

.phone,
.ticket {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.phone {
  width: 210px;
  height: 330px;
  left: 8%;
  top: 0;
  padding: 18px 16px;
}

.phone::before {
  content: '';
  display: block;
  width: 56px;
  height: 6px;
  margin: 0 auto 18px;
  border-radius: 3px;
  background: var(--surface-subtle);
}

.line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}

.line span:last-child {
  color: var(--muted);
}

.pay {
  margin-top: 18px;
  padding: 11px;
  text-align: center;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.8125rem;
  font-weight: 600;
}

.ticket {
  width: 220px;
  right: 4%;
  bottom: 0;
  padding: 16px;
  font-size: 0.8125rem;
}

.ticket strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.ticket .status {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-subtle);
  font-weight: 600;
}

/* Sections */
section {
  padding-block: 56px;
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section-lede {
  margin: 0 0 32px;
  color: var(--muted);
  max-width: 40rem;
}

.grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.125rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.step {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--surface-subtle);
  font-weight: 700;
}

.closing {
  text-align: center;
}

.closing .actions {
  justify-content: center;
}

footer {
  padding-block: 32px 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition:
      filter 120ms ease-out,
      background-color 120ms ease-out;
  }
}

.closing .section-lede {
  margin-inline: auto;
}
