/* ==========================================================================
   MathIllustHelper — 모던 토스 감성 + 수학 모티프
   ========================================================================== */

/* ---- Pretendard (variable) ---------------------------------------------- */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* color — sRGB hex (OKLCH source in DESIGN.md) */
  --blue: #3182f6;
  --blue-strong: #1b64da;
  --blue-050: #eff6ff;
  --blue-100: #dbeafe;

  --ink: #191f28;
  --ink-2: #4e5968;
  --ink-3: #6b7684; /* AA: ~4.6:1 on white for secondary/meta text */

  --bg: #ffffff;
  --surface: #f7f9fc;
  --surface-2: #f2f4f6;
  --line: #e5e8eb;
  --mint: #15c47e;

  /* type */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  /* radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* shadow */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.07);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, 0.05), 0 28px 60px rgba(16, 24, 40, 0.12);
  --shadow-blue: 0 8px 24px rgba(49, 130, 246, 0.28);

  /* layout */
  --wrap: 1120px;
  --read: 720px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(80px, 12vh, 156px);

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* z */
  --z-header: 100;
  --z-overlay: 200;
  --z-sheet: 300;
}

/* ---- Reset / base ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all; /* 한국어: 단어 단위 줄바꿈 (음절 중간 끊김 방지) */
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- Typography --------------------------------------------------------- */
h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.034em;
  line-height: 1.12;
  font-weight: 800;
  color: var(--ink);
}
p {
  text-wrap: pretty;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.01em;
}

/* ---- Layout helpers ----------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
}
.section--tint {
  background: var(--surface);
}
.section__head {
  max-width: 680px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section__head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.85rem);
  margin-top: 14px;
}
.section__head p {
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
  max-width: 60ch;
}
.subsection__head {
  max-width: 680px;
  margin-top: 42px;
  margin-bottom: 14px;
}
.subsection__head h3 {
  font-size: clamp(1.25rem, 3.6vw, 2.00rem);
}
.center {
  text-align: center;
  margin-inline: auto;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-radius: var(--r-md);
  padding: 0 22px;
  height: 52px;
  font-size: 1.05rem;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    box-shadow 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover {
  background: var(--blue-strong);
  transform: translateY(-2px);
}
.btn--primary:active {
  transform: translateY(0);
}
.btn--secondary {
  background: var(--surface-2);
  color: var(--ink);
}
.btn--secondary:hover {
  background: var(--line);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  background: var(--surface);
}
.btn--sm {
  height: 42px;
  font-size: 0.95rem;
  padding: 0 16px;
  border-radius: var(--r-sm);
}
.btn--lg {
  height: 58px;
  font-size: 1.12rem;
  padding: 0 28px;
}
.btn--block {
  width: 100%;
}

/* ---- Badge / chip ------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--blue-050);
  color: var(--blue-strong);
  letter-spacing: -0.01em;
}
.badge--soon {
  background: var(--surface-2);
  color: var(--ink-3);
}
.badge--save {
  background: #e3f7ee; /* opaque — sits on the card border without it showing through */
  color: #0a8f5b;
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}
.brand__mark {
  width: 30px;
  height: 30px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-2);
  transition: color 0.16s, background 0.16s;
}
.nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}
.hamburger:hover {
  background: var(--surface-2);
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.hamburger span::before {
  top: -6px;
}
.hamburger span::after {
  top: 6px;
}

/* mobile sheet */
.sheet {
  position: fixed;
  inset: 0;
  z-index: var(--z-sheet);
  background: var(--bg);
  padding: 88px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
    visibility 0.28s;
}
.sheet.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sheet a {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.sheet__cta {
  margin-top: auto;
  display: grid;
  gap: 10px;
}
.sheet__close {
  position: absolute;
  top: 20px;
  right: var(--gutter);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-size: 1.6rem;
  color: var(--ink-2);
}
body.no-scroll {
  overflow: hidden;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(120px, 18vh, 184px);
  padding-bottom: clamp(72px, 10vh, 128px);
  overflow: hidden;
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(49, 130, 246, 0.07) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(49, 130, 246, 0.07) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(
    ellipse 90% 70% at 50% 30%,
    #000 35%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 90% 70% at 50% 30%,
    #000 35%,
    transparent 78%
  );
  z-index: 0;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy h1 {
  font-size: clamp(2.2rem, 5.6vw, 4.1rem);
  margin: 22px 0 0;
}
.hero__copy h1 .pt {
  color: var(--blue);
}
.hero__sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: var(--ink-2);
  max-width: 30ch;
  line-height: 1.55;
}
.hero__cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__meta {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--ink-3);
  font-family: var(--mono);
  letter-spacing: -0.01em;
}

/* hero visual: framed gif + drawn geometry */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap:min(50px, 5vw);
}
.canvas-frame {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 2;
}
.canvas-frame__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.canvas-frame__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
}
.canvas-frame__bar i:nth-child(1) {
  background: #ff5f57;
}
.canvas-frame__bar i:nth-child(2) {
  background: #febc2e;
}
.canvas-frame__bar i:nth-child(3) {
  background: #28c840;
}
.canvas-frame__bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-3);
}
.canvas-frame__body {
  position: relative;
  background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 23px,
        rgba(49, 130, 246, 0.06) 23px,
        rgba(49, 130, 246, 0.06) 24px
      ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 23px,
      rgba(49, 130, 246, 0.06) 23px,
      rgba(49, 130, 246, 0.06) 24px
    );
}
.canvas-frame__body img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}
.hero__svg {
  z-index: 1;
  overflow: visible;
}
.hero__svg--tl {
  top: -34px;
  left: -30px;
  width: 150px;
  height: 150px;
}
.hero__svg--br {
  bottom: -36px;
  right: -26px;
  width: 170px;
  height: 130px;
}
.draw {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
  animation: draw 1.4s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}
.draw--soft {
  stroke: rgba(49, 130, 246, 0.45);
  stroke-dasharray: 4 5;
}
.dot-node {
  fill: var(--blue);
  opacity: 0;
  animation: pop 0.4s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   Value strip
   ========================================================================== */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.value {
  padding: 28px 4px;
}
.value__icon {
  width: 46px;
  height: 46px;
  color: var(--blue);
  margin-bottom: 18px;
}
.value h3 {
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}
.value p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 1rem;
}
.stat-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-top: 8px;
}
.stat-line strong {
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-line > span {
  /* description text only — must not match the count <span> inside <strong> */
  color: var(--ink-2);
  font-size: 1.05rem;
}

/* ==========================================================================
   Feature showcase
   ========================================================================== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.feature.odd{
  grid-template-columns: 1.5fr 1fr;
}

.feature.even{
  grid-template-columns: 1fr 1.5fr;
}

.feature + .feature {
  margin-top: clamp(64px, 9vw, 120px);
}
.feature:nth-child(even) .feature__media {
  order: -1;
}
.feature__num {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--blue);
  letter-spacing: 0;
}
.feature__copy h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  margin: 14px 0 0;
}
.feature__copy p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.08rem;
  max-width: 46ch;
}
.feature__media {
  position: relative;
}

/* ==========================================================================
   Tools
   ========================================================================== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.96rem;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.tab svg {
  width: 18px;
  height: 18px;
}
.tab:hover {
  transform: translateY(-1px);
}
.tab.is-active {
  background: var(--ink);
  color: #fff;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.tool-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}
.tool-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--blue-050);
  color: var(--blue);
  margin-bottom: 16px;
}
.tool-card__icon svg {
  width: 24px;
  height: 24px;
}
.tool-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.tool-card p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.tool-shots {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.shot {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.shot__cap {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.96rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.shot__img {
  padding: 20px;
  background: var(--surface);
  display: flex;
  justify-content: center;
}
.shot__img img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 760px;
  margin-inline: auto;
}
.plan {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}
.plan--feature {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.plan__tag {
  position: absolute;
  top: -13px;
  left: 30px;
  z-index: 3;
}
.plan__name {
  font-weight: 700;
  color: var(--ink-2);
  font-size: 1.05rem;
}
.plan__price {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plan__price b {
  font-size: clamp(2.2rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.plan__price span {
  color: var(--ink-3);
  font-weight: 600;
}
.plan__note {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 0.92rem;
  min-height: 1.2em;
}
.plan__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  display: grid;
  gap: 12px;
}
.plan__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 0.98rem;
}
.plan__list svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--mint);
  margin-top: 1px;
}
.plan .btn {
  margin-top: auto;
}
.pricing-foot {
  text-align: center;
  margin-top: 26px;
  color: var(--ink-3);
  font-size: 0.92rem;
}

/* ==========================================================================
   Roadmap
   ========================================================================== */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.road-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  overflow: hidden;
}
.road-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--blue-050);
  color: var(--blue);
  margin-bottom: 20px;
}
.road-card__icon svg {
  width: 28px;
  height: 28px;
}
.road-card h3 {
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}
.road-card p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 1rem;
}
.road-card .badge {
  position: absolute;
  top: 24px;
  right: 24px;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 80px);
  text-align: center;
}
.cta-band .grid-bg {
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, #000, transparent 75%);
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}
.cta-band h2 {
  position: relative;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.85rem);
}
.cta-band p {
  position: relative;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.12rem;
  max-width: 40ch;
}
.cta-band__btns {
  position: relative;
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.cta-band .btn--secondary {
  background: #333d4b; /* solid — no grid bleed-through */
  color: #fff;
}
.cta-band .btn--secondary:hover {
  background: #3d4856;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 80px) 40px;
  background: var(--surface);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer__brand .brand {
  margin-bottom: 14px;
}
.footer__brand p {
  color: var(--ink-2);
  font-size: 0.96rem;
  max-width: 34ch;
}
.footer__col h4 {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer__col a {
  color: var(--ink-2);
  font-size: 0.98rem;
  transition: color 0.16s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer__col a:hover {
  color: var(--blue);
}
.footer__bottom {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-3);
  font-size: 0.88rem;
}
.footer__bottom .mono {
  font-family: var(--mono);
}

/* ==========================================================================
   Sub-page (download / updates) shared
   ========================================================================== */
.page-hero {
  position: relative;
  padding-top: clamp(120px, 18vh, 168px);
  padding-bottom: clamp(40px, 6vw, 64px);
  overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  margin-top: 16px;
}
.page-hero p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.1rem;
  max-width: 52ch;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.16s;
}
.back-link:hover {
  color: var(--blue);
}
.back-link svg {
  width: 16px;
  height: 16px;
}

/* download table */
.dl-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
  background: var(--bg);
}
table.dl {
  width: 100%;
  min-width: 540px; /* keeps columns readable; wrapper scrolls on narrow screens */
  border-collapse: collapse;
  font-size: 0.98rem;
}
table.dl th,
table.dl td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.dl thead th {
  background: var(--surface);
  font-weight: 700;
  color: var(--ink-2);
  font-size: 0.9rem;
}
table.dl tbody tr:last-child td {
  border-bottom: none;
}
table.dl tbody tr:hover {
  background: var(--surface);
}
table.dl .ver {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink);
}
table.dl a {
  color: var(--blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  word-break: break-all;
}
table.dl a:hover {
  color: var(--blue-strong);
  text-decoration: underline;
}
table.dl .muted {
  color: var(--ink-3);
}

/* step cards */
.steps {
  display: grid;
  gap: 18px;
}
.step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}
.step__no {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-050);
  color: var(--blue);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.step h3 {
  font-size: 1.18rem;
}
.step p {
  margin-top: 8px;
  color: var(--ink-2);
}
.step img {
  margin-top: 16px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.step .red {
  color: #e5484d;
  font-weight: 700;
}
.step__imgrow {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}
.step__imgrow img {
  margin-top: 0;
  flex: 1 1 240px;
}
.callout {
  background: var(--blue-050);
  border-radius: var(--r-md);
  padding: 18px 20px;
  color: var(--blue-strong);
  font-size: 0.98rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.callout svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
}

/* updates / changelog */
.log-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.log-rail {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 6px;
}
.log-rail a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-weight: 600;
  transition: background 0.16s, color 0.16s;
}
.log-rail a .v {
  font-family: var(--mono);
  font-weight: 700;
}
.log-rail a small {
  color: var(--ink-3);
  font-weight: 500;
  font-size: 0.82rem;
}
.log-rail a:hover,
.log-rail a.is-active {
  background: var(--surface-2);
  color: var(--ink);
}

.log-rail .log-rail{
  position: sticky;
  padding-left: 14px;
  top: 96px;
  display: grid;
  gap: 6px;
}

.log-group {
  margin-top: 30px;
}
.log-group > h3 {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.log-group h4 {
  font-size: 1.04rem;
  font-weight: 700;
  margin-top: 18px;
  color: var(--ink);
}
.log-group ul {
  margin: 10px 0;
  padding-left: 4px;
  list-style: none;
  display: grid;
  gap: 10px;
}
.log-group ul li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  line-height: 1.62;
}
.log-group ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-100);
}
.log-group ul ul {
  margin-top: 8px;
  margin-left: 4px;
}
.log-group ul ul li::before {
  background: var(--line);
  width: 5px;
  height: 5px;
}
.log-group .dev-note {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin: 14px 0;
  font-size: 0.96rem;
  color: var(--ink-2);
}
.log-group .dev-note b {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
}
.log-group code,
.kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--blue-strong);
}

/* ==========================================================================
   Reveal animation (enhances already-visible content)
   ========================================================================== */
/* Reveal is progressive enhancement: content is visible by default.
   Only when JS is active (html.js) do we hide-then-reveal, so headless
   renderers, print, and no-JS clients always show the content. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--rd, 0ms);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 920px) {
  .nav,
  .header__actions .btn {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero__sub {
    max-width: 38ch;
  }
  .values {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .value {
    padding: 22px 4px;
  }
  .feature,
  .feature:nth-child(even) .feature__media {
    grid-template-columns: 1fr;
    order: 0;
  }
  .feature__media {
    order: -1 !important;
  }
  .feature.odd{
  grid-template-columns: 1.5fr 1fr;
  }

  .feature.even{
    grid-template-columns: 1fr 1.5fr;
  }
  .roadmap {
    grid-template-columns: 1fr;
  }
  .tool-shots {
    grid-template-columns: 1fr;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .log-layout {
    grid-template-columns: 1fr;
  }
  .log-rail {
    position: static;
    grid-auto-flow: column;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .log-rail a {
    white-space: nowrap;
  }
}
@media (max-width: 560px) {
  .pricing {
    grid-template-columns: 1fr;
  }
  .footer__top {
    grid-template-columns: 1fr;
  }
  .hero__cta .btn,
  .cta-band__btns .btn {
    flex: 1 1 100%;
  }
  .step {
    grid-template-columns: 1fr;
  }
  .step__no {
    margin-bottom: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .draw {
    stroke-dashoffset: 0;
  }
  .dot-node {
    opacity: 1;
    transform: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

.pricingRadio
{
  display: flex;
  align-items: center;
  gap:4px;
  font-weight: 400;
}

.pricingRadio:hover
{
  font-weight: 800;
}


.pricingRadio input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.pricingRadio .radio-btn {
  position: relative;
  display: inline-block;
  width: 24px; /* 원하는 크기 지정 */
  height: 24px; /* 원하는 크기 지정 */
  background-color: #f9f9f9;
  border: 2px solid var(--ink-3);
  border-radius: 50%; /* 동그랗게 만들기 */
}

.pricingRadio:hover .radio-btn {
  border: 2px solid var(--ink);
}

.pricingRadio input[type="radio"]:checked + .radio-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px; /* 내부 점 크기 */
  height: 12px; /* 내부 점 크기 */
  border-radius: 50%;
  background-color: var(--blue); /* 내부 점 색상 */
}

.pricingRadio:hover input[type="radio"]:checked + .radio-btn::after {
  background-color: var(--blue-strong); /* 내부 점 색상 */
}

article.release {
  margin-top: 0px;
  margin-bottom: 72px;
  padding-bottom: 0px;
}
article.release > h1 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
article.release > h1 strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--blue-050);
  color: var(--blue-strong);
  letter-spacing: -0.01em;
}
article.release > h2 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
article.release > h3 {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  padding-top: 10px;
  margin-top: 10px;
}
article.release h4 {
  font-size: 1.04rem;
  font-weight: 700;
  margin-top: 18px;
  color: var(--ink);
}
article.release p {
  margin: 10px 0;
  padding-left: 4px;
  list-style: none;
  display: grid;
  gap: 10px;
}
article.release ul {
  margin: 10px 0;
  padding-left: 4px;
  list-style: none;
  display: grid;
  gap: 10px;
}
article.release ul li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  line-height: 1.62;
}
article.release ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
article.release ul ul {
  margin-top: 8px;
  margin-left: 4px;
}
article.release ul ul li::before {
  background: var(--ink);
  width: 5px;
  height: 5px;
}

article.release blockquote {
  padding: 18px 20px;
  margin: 18px 0;
  background: #f3f6fb;
  border-radius: 16px;
  color: var(--ink-2);
}
article.release blockquote p {
  margin: 0;
  display:block;
}