:root {
  --paper: #f7f3ec;
  --ink: #1d1b17;
  --muted: #6e675c;
  --accent: #e8543f;
  --teal: #69bfba; /* sampled from the app icon background */
  --card: #fffdf8;
  --radius: 18px;
  font-size: 16px;
}
* { box-sizing: border-box; margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, .tagline { font-family: "Paperlogy", "Pretendard Variable", Pretendard, system-ui, sans-serif; font-weight: 700; word-break: keep-all; }

.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; max-width: 720px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .01em; }
.brand-icon { width: 32px; height: 32px; border-radius: 8px; }
#lang-switcher {
  border: 1px solid #d8d1c5; background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 6px 12px; font-size: .85rem; appearance: none;
}

main { max-width: 720px; margin: 0 auto; padding: 0 20px 80px; }
section { margin-top: 64px; }

.hero { text-align: center; margin-top: 40px; }
.tagline { color: var(--accent); font-weight: 600; font-size: 1.15rem; }
h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); line-height: 1.12; margin: 12px 0 16px; letter-spacing: -0.01em; }
.sub { color: var(--muted); max-width: 34em; margin: 0 auto; }
.cta {
  display: inline-block; margin-top: 28px; background: var(--teal); color: var(--ink);
  text-decoration: none; padding: 14px 30px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 10px 24px -10px rgba(105, 191, 186, .75);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(105, 191, 186, .85); }
.hero-visual { margin-top: 44px; }
.hero-visual video {
  width: 100%; max-width: 390px; border-radius: var(--radius);
  box-shadow: 0 24px 60px -24px rgba(29, 27, 23, .35);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-10px) rotate(.4deg); } }
@media (prefers-reduced-motion: reduce) { .hero-visual video { animation: none; } }

.how h2, .notify h2 { font-size: 2rem; margin-bottom: 20px; }
.steps { list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  background: var(--card); border: 1px dashed #cfc6b6; border-radius: var(--radius);
  padding: 22px 20px;
}
.step-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--ink); color: var(--paper);
  font-size: .9rem; font-weight: 700; margin-bottom: 10px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .92rem; }

.notify {
  background: var(--card); border-radius: calc(var(--radius) + 6px);
  border: 1px solid #e7e0d3; padding: 32px 24px; text-align: center;
  box-shadow: 0 30px 70px -40px rgba(29, 27, 23, .3);
}
.notify > p { color: var(--muted); max-width: 32em; margin: 0 auto 24px; }
.platform-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-bottom: 16px; }
.platform-q { width: 100%; font-size: .9rem; color: var(--muted); }
.platform-row label {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid #d8d1c5; border-radius: 999px; padding: 8px 18px;
  cursor: pointer; font-size: .95rem; background: var(--paper);
  position: relative;
}
.platform-row input { position: absolute; opacity: 0; pointer-events: none; }
.platform-row label::before {
  content: ""; width: 18px; height: 18px; flex: none; box-sizing: border-box;
  border-radius: 50%; border: 2px solid #b9b0a1; background: var(--card);
  transition: background .15s ease, border-color .15s ease;
}
.platform-row label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.platform-row label:has(input:checked)::before {
  border-color: var(--teal);
  background: var(--teal) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3.5 8.5l3 3L12.5 5" fill="none" stroke="%231d1b17" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/11px 11px no-repeat;
}
.method-row { margin-top: -4px; }
.email-row { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.input-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.at-prefix {
  position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-weight: 600; pointer-events: none;
  opacity: 0; transition: opacity .18s ease;
}
.input-wrap.ig .at-prefix { opacity: 1; }
#contact {
  flex: 1; min-width: 0; padding: 13px 16px; border-radius: 12px;
  border: 1px solid #d8d1c5; background: var(--paper); font-size: 1rem; color: var(--ink);
  transition: padding-inline-start .18s ease;
}
.input-wrap.ig #contact { padding-inline-start: 32px; }
#contact:focus { outline: 2px solid var(--teal); border-color: transparent; }
.contact-help { color: var(--muted); font-size: .85rem; margin-top: 10px; }

.play-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  padding: 14px 26px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 10px 24px -10px rgba(29, 27, 23, .6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.play-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(29, 27, 23, .7); }
.play-btn[hidden] { display: none; }
#submit-btn {
  background: var(--teal); color: var(--ink); border: 0; border-radius: 12px;
  padding: 13px 20px; font-size: 1rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
#submit-btn:disabled { opacity: .6; cursor: default; }
/* Offscreen via left:-5000px would become 5000px of horizontal scroll in RTL,
   so clip it instead. */
#hp-company {
  position: absolute; width: 1px; height: 1px; padding: 0; border: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.form-error { color: var(--accent); margin-top: 12px; font-size: .9rem; }
.form-success h3 { font-size: 1.4rem; }
.form-success p { color: var(--muted); }
@media (max-width: 420px) { .email-row { flex-direction: column; } }

footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 0 40px; }
