/* Knitflow — knitflow.io
   Breakpoints: phone < 810px · tablet 810–1199px · desktop ≥ 1200px */

:root {
  --bg: #ffffff;
  --panel: #f7f7f6;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --muted: #6b6b70;
  --line: #e4e4e1;
  --accent: #af52de;
  --accent-soft: rgba(175, 82, 222, 0.12);
  --danger: #d2362e;

  --gutter: 32px;
  --max: 1136px;
  --section: 140px;
  --radius-xl: 36px;
  --radius-l: 28px;
  --radius-m: 24px;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:lang(ko) body, body:lang(ko) { word-break: keep-all; }
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */
.container { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-top: var(--section); }

/* ---------- type ---------- */
.display { font-size: 76px; line-height: 1.04; letter-spacing: -0.04em; font-weight: 780; text-wrap: balance; }
.h2 { font-size: 48px; line-height: 1.1; letter-spacing: -0.035em; font-weight: 760; text-wrap: balance; }
.h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; }
.lead { font-size: 21px; line-height: 1.5; letter-spacing: -0.01em; font-weight: 450; color: var(--muted); }
.body { font-size: 16px; line-height: 1.6; letter-spacing: -0.005em; font-weight: 450; color: var(--muted); }
.label { font-size: 14px; line-height: 1.3; letter-spacing: -0.005em; font-weight: 600; }
.small { font-size: 14px; line-height: 1.45; font-weight: 450; color: var(--muted); }
.eyebrow { font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--accent); }
.accent { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px 0 20px; border-radius: 100px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease, transform .15s ease;
}
.btn:active { transform: scale(.97); }
.btn .icon { font-size: 20px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #333; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--panel); }
.btn-lg { height: 52px; }
.btn-sm { height: 40px; padding: 0 18px 0 16px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 24px; height: 24px; }
.wordmark { font-size: 21px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; list-style: none; padding: 0; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.only-phone { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: 24px; }
.hero-panel {
  display: flex; align-items: center; gap: 56px;
  background: var(--panel); border-radius: var(--radius-xl); overflow: hidden;
  padding-right: 64px;
}
.hero-visual { flex: 0 0 540px; align-self: flex-end; }
.hero-visual img { width: 540px; height: auto; }
.hero-copy { flex: 1; max-width: 520px; padding: 56px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-copy .lead { text-wrap: pretty; }
.badge { display: flex; align-items: center; gap: 6px; }
.badge img { width: 15px; height: 38px; }
.badge-text { display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.badge-text strong { font-size: 14px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.badge-text span { font-size: 13px; line-height: 1.2; font-weight: 500; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

/* ---------- proof ---------- */
.proof { padding-top: 56px; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 4px 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-value { font-size: 30px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 760; }

/* ---------- section heading ---------- */
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: 48px; }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--panel); border-radius: var(--radius-l); padding: 32px; display: flex; flex-direction: column; overflow: hidden; }
.card-text { display: flex; flex-direction: column; gap: 10px; }
.card-text .body { min-height: 3.2em; text-wrap: pretty; }
.card-shot { flex: 1; display: flex; align-items: flex-end; justify-content: center; margin-top: 16px; }
.card-shot img { width: 100%; height: 500px; object-fit: contain; object-position: center bottom; }
.feature-card { padding-bottom: 24px; }

.counters { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; }
.counter {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px;
  background: var(--surface); border-radius: 20px; box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}
.counter.dim-2 { opacity: .4; }
.counter.dim-1 { opacity: .6; }
.counter-name { width: 64px; display: flex; flex-direction: column; gap: 2px; }
.counter-name strong { font-size: 14px; line-height: 1.3; font-weight: 600; }
.counter-name span { font-size: 11px; line-height: 1.3; color: var(--muted); }
.round { width: 36px; height: 36px; border-radius: 50%; background: #efefee; display: grid; place-items: center; font-size: 16px; }
.ring {
  --p: 35;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), #efe8fa 0);
}
.ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.report-card { grid-column: span 2; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.report-head .card-text { max-width: 420px; }
.timer-chip {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; flex: none;
  background: var(--surface); border-radius: 100px; box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}
.timer-chip .play { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 16px; }
.timer-chip strong { display: block; font-size: 18px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.timer-chip span { display: block; font-size: 12px; line-height: 1.2; font-weight: 500; color: var(--muted); }
.report-visual { flex: 1; display: flex; align-items: center; justify-content: center; margin-top: 28px; }
.report-visual picture { width: 100%; max-width: 640px; }
.report-visual img { width: 100%; height: auto; }

/* ---------- reviews ---------- */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px 32px; margin-bottom: 48px; }
.reviews-head .section-head { margin-bottom: 0; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: var(--panel); border-radius: var(--radius-m); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.stars { display: flex; gap: 2px; color: var(--accent); font-size: 16px; margin-bottom: 16px; }
.review blockquote { font-size: 18px; line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; text-wrap: pretty; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; }
.review-meta { display: flex; align-items: center; gap: 8px; }
.review-meta img { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }

.link-inline {
  font-size: 14px; font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  transition: color .2s;
}
.link-inline:hover { color: var(--accent); }

/* ---------- vision ---------- */
.vision-grid { display: grid; grid-template-columns: 1fr 400px; gap: 96px; align-items: start; }
.vision-main { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.vision-main .h2 { margin-top: -12px; }
.vision-sub { font-size: 34px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 760; margin-top: -8px; }
.vision-body { display: flex; flex-direction: column; gap: 22px; }
.vision-body strong { color: var(--ink); font-weight: 600; }
.ai-waitlist { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 100px; background: var(--accent-soft); }
.pill .icon { color: var(--accent); font-size: 18px; }
.principles { list-style: none; padding: 44px 0 0; }
.principles li { display: flex; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.principles .num { font-size: 14px; line-height: 1.6; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.principles div { display: flex; flex-direction: column; gap: 6px; }

/* ---------- forms ---------- */
.waitlist-form {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 5px; border-radius: 100px;
}
.waitlist-form input[type="email"] {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 0; border-radius: 100px;
  background: transparent; font-size: 16px; font-weight: 500; outline: none;
}
.waitlist-form .btn { height: 46px; flex: none; }
.waitlist-form .hp { display: none; }
.form-light { max-width: 440px; background: var(--surface); border: 1px solid var(--line); }
.form-light input::placeholder { color: rgba(107, 107, 112, .7); }
.form-light:focus-within { border-color: #c9c9c5; }
.form-dark { max-width: 480px; padding: 6px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); }
.form-dark input { color: #fff; height: 52px !important; padding: 0 18px !important; }
.form-dark input::placeholder { color: rgba(255, 255, 255, .45); }
.form-dark:focus-within { border-color: rgba(255, 255, 255, .3); }
.form-dark .btn { height: 52px; background: #fff; color: var(--ink); }
.form-dark .btn:hover { background: #ececec; }
.waitlist-form .btn[data-state="loading"] { opacity: .6; pointer-events: none; }
.waitlist-form .btn[data-state="success"] { background: var(--accent); color: #fff; }
.waitlist-form .btn[data-state="error"] { background: var(--danger); color: #fff; }
.form-note[data-error] { color: var(--danger); }

/* ---------- android ---------- */
.android { padding-bottom: 120px; }
.dark-panel {
  background: var(--ink); color: #fff; border-radius: var(--radius-xl);
  padding: 88px 40px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
}
.dark-panel .icon-box { width: 56px; height: 56px; border-radius: 18px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 28px; }
.dark-panel .lead { color: #a1a1a6; }
.dark-panel .small { color: #8e8e93; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 28px; list-style: none; padding: 4px 0 0; }
.footer-links a { font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- document pages ---------- */
.doc { padding: 96px 0 128px; }
.doc-inner { max-width: 720px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.doc-divider { width: 100%; height: 1px; background: var(--line); }
.prose { width: 100%; color: var(--muted); font-size: 16px; line-height: 1.6; }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 44px; font-size: 20px; line-height: 1.35; letter-spacing: -0.015em; font-weight: 700; color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 4px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }

/* ---------- tablet ---------- */
@media (max-width: 1199px) {
  :root { --section: 120px; }
  .display { font-size: 60px; }
  .h2 { font-size: 40px; }
  .h3 { font-size: 21px; }
  .lead { font-size: 20px; }

  .hero-panel { flex-direction: column; align-items: stretch; gap: 40px; padding: 64px 0 0; }
  .hero-copy { max-width: none; padding: 0 48px; }
  .hero-visual { flex: none; align-self: stretch; order: 2; }
  .hero-visual img { width: 100%; }

  .proof { padding-top: 48px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .stat, .stat:first-child { padding: 0; border-left: 0; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .card-shot img { height: 460px; }

  .review-grid { grid-template-columns: 1fr; gap: 12px; }

  .vision-grid { grid-template-columns: 1fr; gap: 56px; }
  .principles { padding-top: 0; }
}

/* ---------- phone ---------- */
@media (max-width: 809px) {
  :root { --gutter: 20px; --section: 96px; --radius-xl: 28px; }
  html { scroll-padding-top: 76px; }
  .display { font-size: 44px; line-height: 1.08; }
  .h2 { font-size: 32px; }
  .h3 { font-size: 20px; }
  .lead { font-size: 18px; }
  .small { font-size: 13px; }

  .nav-links { display: none; }
  .only-wide { display: none; }
  .only-phone { display: inline; }

  .hero { padding-top: 12px; }
  .hero-panel { padding-top: 40px; gap: 32px; }
  .hero-copy { padding: 0 24px; gap: 22px; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; }

  .proof { padding-top: 40px; }
  .proof-grid { gap: 28px 16px; }
  .stat-value { font-size: 24px; }

  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .report-card { grid-column: auto; }
  .card { padding: 32px 24px; }
  .feature-card { padding-bottom: 24px; }
  .card-shot img { height: 440px; }
  .report-head { flex-direction: column; gap: 20px; }

  .vision-grid { gap: 40px; }
  .vision-sub { font-size: 26px; }

  .reviews-head { flex-direction: column; align-items: flex-start; }

  .android { padding-bottom: 80px; }
  .dark-panel { padding: 56px 20px; }

  .footer { padding: 48px 0 32px; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; }

  .doc { padding: 56px 0 88px; }
}
