/* ──────────────────────────────────────────────────────────────────────────
   Vexar landing.
   Visual language: an engineering document, not a brochure. Hairline rules
   instead of floating cards, a numbered spine down the left, monospace for
   anything countable (section numbers, times, prices), and the accent used on
   rules and links rather than on large filled surfaces.
   ────────────────────────────────────────────────────────────────────────── */
:root {
  --bg: #0a1024;
  --bg-2: #0e1630;
  --bg-3: #111a33;
  --fg: #eef1f8;
  --fg84: rgba(238,241,248,.84);
  --fg72: rgba(238,241,248,.72);
  --fg60: rgba(238,241,248,.6);
  --fg48: rgba(238,241,248,.48);
  --fg28: rgba(238,241,248,.28);
  --fg14: rgba(238,241,248,.14);
  --fg8:  rgba(238,241,248,.08);
  --fg4:  rgba(238,241,248,.04);
  --accent: #7c9cff;
  --accent-2: #a9beff;
  --accent-dim: rgba(124,156,255,.16);
  --good: #3ccb9a;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  /* Numerals and Latin only: no face in this stack has Hangul, so Korean set in it
     falls back per character to a system font that sits taller and heavier than the
     digits beside it. Labels holding Korean words use --font at a heavier weight. */
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --tnum: tabular-nums;
  --w: 1080px;
  --pad: 32px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font);
  font-size: 15.5px; line-height: 1.6; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; color: var(--accent-2); }
strong { font-weight: 700; color: var(--fg); }
svg { display: block; }
::selection { background: var(--accent); color: #0a1024; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: calc(var(--w) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.wrap.narrow { max-width: 760px; }
.wide { display: inline; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--accent); color: #0a1024; padding: 10px 16px; border-radius: var(--r); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #0a1024; font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: var(--r); white-space: nowrap;
  transition: background-color .14s ease, transform .14s ease;
}
.btn:hover { background: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn-sm { font-size: 13.5px; padding: 8px 15px; }
.btn-out { background: none; color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg28); }
.btn-out:hover { background: var(--fg8); box-shadow: inset 0 0 0 1px var(--fg48); }
.lnk { font-size: 14px; font-weight: 600; color: var(--fg72); }
.lnk:hover { color: var(--fg); }

/* ---------- Top bar ---------- */
.bar { position: sticky; top: 0; z-index: 40; background: rgba(10,16,36,.82); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--fg8); }
.bar-in { max-width: calc(var(--w) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); height: 58px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand-word { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.bar-nav { display: flex; gap: 22px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.bar-nav::-webkit-scrollbar { display: none; }
.bar-nav a { font-size: 14px; font-weight: 600; color: var(--fg60); white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent; }
.bar-nav a:hover { color: var(--fg); }
.bar-nav a.on { color: var(--fg); border-bottom-color: var(--accent); }
.bar-act { display: flex; align-items: center; gap: 14px; flex: none; }

/* ---------- Hero ---------- */
.hero { padding: 104px 0 76px; border-bottom: 1px solid var(--fg8); background:
  radial-gradient(760px 320px at 50% -8%, rgba(124,156,255,.16), transparent 70%); }
.tag { font-size: 13px; font-weight: 700; letter-spacing: .01em; color: var(--accent-2); margin-bottom: 20px; }
.tag::before { content: "— "; color: var(--fg28); }
.hero-h { font-size: clamp(38px, 6.4vw, 62px); line-height: 1.12; letter-spacing: -.035em; font-weight: 800; }
.hero-p { margin-top: 22px; font-size: 17px; line-height: 1.72; color: var(--fg72); max-width: 620px; word-break: keep-all; }

.ask { display: flex; align-items: center; gap: 14px; margin-top: 30px; max-width: 560px;
  padding: 13px 16px; border: 1px solid var(--fg14); border-radius: var(--r); background: var(--fg4);
  transition: border-color .14s ease, background-color .14s ease; }
.ask:hover { border-color: var(--accent); background: var(--fg8); }
.ask-c { color: var(--accent); font-weight: 700; }
.ask-t { flex: 1; min-width: 0; font-size: 15px; color: var(--fg72); word-break: keep-all; }
.ask-go { font-size: 13.5px; font-weight: 700; color: var(--accent-2); white-space: nowrap; }

.launch { margin-top: 28px; }
.launch-go {
  display: inline-flex; flex-direction: column; gap: 2px; background: var(--accent); color: #0a1024;
  padding: 14px 26px; border-radius: var(--r); transition: background-color .14s ease, transform .14s ease;
}
.launch-go:hover { background: var(--accent-2); }
.launch-go:active { transform: translateY(1px); }
.launch-go-t { font-size: 16px; font-weight: 800; }
.launch-go-s { font-size: 12px; font-weight: 600; font-variant-numeric: var(--tnum); opacity: .78; }
.launch-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.launch-chips a {
  font-size: 13.5px; font-weight: 600; color: var(--fg72); padding: 7px 13px;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--fg14); transition: color .14s, box-shadow .14s, background-color .14s;
}
.launch-chips a:hover { color: var(--fg); background: var(--fg4); box-shadow: inset 0 0 0 1px var(--accent); }
.launch-chips .more { color: var(--accent-2); box-shadow: none; }

/* ---------- Section frame ---------- */
.sec { padding: 84px 0; border-bottom: 1px solid var(--fg8); scroll-margin-top: 58px; }
.sec.alt { background: var(--bg-2); }
.sec-h { max-width: 680px; margin-bottom: 44px; }
.sec-no { font-family: var(--mono); font-size: 12.5px; color: var(--accent); letter-spacing: .1em; }
.sec-h h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.25; letter-spacing: -.028em; font-weight: 800; margin-top: 10px; word-break: keep-all; }
.sec-h p { margin-top: 14px; color: var(--fg60); font-size: 15.5px; line-height: 1.7; word-break: keep-all; }
.note { margin-top: 20px; font-size: 13.5px; color: var(--fg48); word-break: keep-all; }

/* ---------- 01 Modules ---------- */
.mods { border-top: 1px solid var(--fg14); }
.mod { display: grid; grid-template-columns: 52px 1fr auto; align-items: baseline; gap: 18px;
  padding: 18px 12px 18px 4px; border-bottom: 1px solid var(--fg8); transition: background-color .14s ease; scroll-margin-top: 78px; }
.mod:hover { background: var(--fg4); }
.mod-n { font-family: var(--mono); font-size: 12.5px; color: var(--fg28); }
.mod:hover .mod-n { color: var(--accent); }
.mod-b h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; }
.mod-b p { margin-top: 5px; font-size: 14px; color: var(--fg60); line-height: 1.6; word-break: keep-all; }
.mod-go { font-size: 13.5px; font-weight: 700; color: var(--accent-2); white-space: nowrap; }
.mod-go::after { content: " →"; color: var(--fg28); transition: color .14s; }
.mod:hover .mod-go::after { color: var(--accent-2); }

/* ---------- 02 Day ---------- */
.day { position: relative; padding-left: 4px; }
.day li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 0 0 30px 0; position: relative; }
.day li::before { content: ""; position: absolute; left: 96px; top: 9px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 2px var(--accent); transform: translateX(7px); }
.day li::after { content: ""; position: absolute; left: 96px; top: 20px; bottom: 0; width: 1px; background: var(--fg14); transform: translateX(10px); }
.day li:last-child { padding-bottom: 0; }
.day li:last-child::after { display: none; }
.day-t { font-size: 13.5px; font-weight: 600; font-variant-numeric: var(--tnum); color: var(--fg60); padding-top: 2px; text-align: right; }
.day h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.day-m { font-size: 12px; font-weight: 700; color: var(--accent-2); background: var(--accent-dim); padding: 3px 9px; border-radius: 999px; }
.day p { margin-top: 7px; font-size: 14.5px; color: var(--fg60); line-height: 1.68; word-break: keep-all; max-width: 640px; }

/* ---------- 01 AI ---------- */
.tiers { border-top: 1px solid var(--fg14); margin-bottom: 48px; }
.tiers > li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 18px 12px 18px 4px; border-bottom: 1px solid var(--fg8); }
.tier-n { font-family: var(--mono); font-size: 12.5px; color: var(--fg28); padding-top: 4px; }
.tiers h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tier-tag { font-size: 12px; font-weight: 700; color: var(--accent-2); background: var(--accent-dim); padding: 3px 9px; border-radius: 999px; }
.tiers p { margin-top: 6px; font-size: 14px; color: var(--fg60); line-height: 1.68; word-break: keep-all; max-width: 640px; }

.talk { max-width: 700px; }
.q { font-size: 15.5px; font-weight: 700; color: var(--fg); padding: 12px 0 12px 22px; position: relative; }
.q::before { content: "›"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.a { border-left: 2px solid var(--accent-dim); padding: 2px 0 20px 20px; margin-bottom: 14px; }
.a > p { font-size: 15px; color: var(--fg84); }
.a-list { margin-top: 8px; }
.a-list li { position: relative; padding-left: 15px; font-size: 15px; color: var(--fg84); line-height: 1.7; word-break: keep-all; }
.a-list li::before { content: "·"; position: absolute; left: 3px; color: var(--accent); }
.a-tail { margin-top: 8px; font-size: 15px; color: var(--fg84); }
.a-go { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--accent-2); }
.a-src { display: block; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--fg48); }
.a-hits { margin-top: 12px; }
.a-hits li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--fg8); }
.a-hits b { font-size: 14px; font-weight: 700; flex: none; }
.a-hits span { font-size: 12.5px; color: var(--fg48); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-hits i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--accent-2); background: var(--accent-dim); padding: 2px 8px; border-radius: 999px; flex: none; }

.rail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--fg14); }
.rail h4 { font-size: 15px; font-weight: 700; }
.rail p { margin-top: 7px; font-size: 14px; color: var(--fg60); line-height: 1.68; word-break: keep-all; }

/* ---------- 04 Facts ---------- */
.facts { border-top: 1px solid var(--fg14); }
.facts > div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 16px 4px; border-bottom: 1px solid var(--fg8); }
.facts dt { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; color: var(--accent-2); padding-top: 2px; word-break: keep-all; }
.facts dd { font-size: 14.5px; color: var(--fg72); line-height: 1.68; word-break: keep-all; }

/* ---------- 05 Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--fg14); }
.plan { padding: 28px 24px; border-right: 1px solid var(--fg8); display: flex; flex-direction: column; align-items: flex-start; }
.plan:last-child { border-right: 0; }
/* An even wash rather than a stop at 60%: the plans stack on a phone, and a fixed
   stop lands mid-paragraph there and reads as a band across the text. */
.plan.hi { background: linear-gradient(180deg, rgba(124,156,255,.09), rgba(124,156,255,.025)); }
.plan h3 { font-size: 14px; font-weight: 700; color: var(--accent-2); letter-spacing: .02em; }
.price { font-size: 27px; font-weight: 800; font-variant-numeric: var(--tnum); letter-spacing: -.03em; margin-top: 10px; }
.price small { font-size: 13px; font-variant-numeric: normal; font-weight: 600; color: var(--fg48); letter-spacing: 0; }
.plan-w { margin-top: 4px; font-size: 13px; color: var(--fg48); }
.plan-d { margin-top: 14px; font-size: 14px; color: var(--fg72); line-height: 1.6; word-break: keep-all; flex: 1; }
.plan .btn { margin-top: 22px; }

/* ---------- Contact ---------- */
.contact { text-align: center; border-bottom: 0; }
.contact h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.028em; font-weight: 800; }
.contact-p { margin-top: 14px; color: var(--fg60); font-size: 15.5px; line-height: 1.7; word-break: keep-all; }
.contact-p a { color: var(--accent-2); font-weight: 600; border-bottom: 1px solid var(--accent-dim); }
.lead-form { display: flex; gap: 8px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.lead-form input {
  flex: 1 1 210px; max-width: 280px; background: var(--fg4); border: 1px solid var(--fg14);
  border-radius: var(--r); padding: 12px 15px; font-size: 15px; color: var(--fg);
}
.lead-form input::placeholder { color: var(--fg48); }
.lead-form input:focus { outline: none; border-color: var(--accent); background: var(--fg8); }
.lead-form.busy { opacity: .6; pointer-events: none; }
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--fg48); }
.form-note.ok { color: var(--good); }
.form-note.err { color: #ff8b8b; }

/* ---------- Footer ---------- */
.foot { padding: 56px 0 30px; border-top: 1px solid var(--fg8); background: var(--bg-2); }
.foot-in { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.foot-p { margin-top: 12px; font-size: 13.5px; color: var(--fg48); max-width: 260px; word-break: keep-all; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols div { display: flex; flex-direction: column; }
.foot-cols h4 { font-size: 12.5px; font-weight: 700; color: var(--fg48); letter-spacing: 0; margin-bottom: 10px; }
.foot-cols a { font-size: 14px; color: var(--fg72); padding: 5px 0; }
.foot-cols a:hover { color: var(--accent-2); }
.foot-legal { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--fg8); font-size: 12.5px; color: var(--fg48); }
.foot-dim { color: var(--fg28); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Narrow ---------- */
@media (max-width: 860px) {
  :root { --pad: 20px; }
  .bar-in { gap: 14px; }
  .bar-nav { gap: 16px; }
  .bar-act .lnk { display: none; }
  .hero { padding: 68px 0 56px; }
  .wide { display: none; }
  .sec { padding: 60px 0; }
  .rail { grid-template-columns: 1fr; gap: 24px; }
  .facts > div { grid-template-columns: 1fr; gap: 6px; padding: 14px 2px; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--fg8); padding: 24px 20px; }
  .plan:last-child { border-bottom: 0; }
  .foot-in { grid-template-columns: 1fr; gap: 32px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  /* the demo page's bar: the three companies must fit next to 로그인 on a phone */
  .bar-demo .brand-word, .bar-demo .bar-nav a[href="#compare"] { display: none; }
  .bar-demo .bar-nav { gap: 14px; }
  .hero-h { font-size: clamp(31px, 8.4vw, 42px); }
  .hero-p { font-size: 16px; }
  .mod { grid-template-columns: 34px 1fr; row-gap: 8px; }
  .tiers > li { grid-template-columns: 34px 1fr; gap: 12px; }
  .ask { flex-wrap: wrap; gap: 8px; }
  .ask-t { flex-basis: calc(100% - 26px); }
  .ask-go { margin-left: auto; }
  .mod-go { grid-column: 2; justify-self: start; }
  .day li { grid-template-columns: 1fr; gap: 4px; padding-left: 18px; }
  .day li::before { left: 0; top: 8px; transform: none; }
  .day li::after { left: 3px; top: 18px; transform: none; }
  .day-t { text-align: left; }
  .a-hits li { flex-wrap: wrap; gap: 6px; }
  .a-hits span { flex-basis: 100%; }
}

/* ---------- Demo page: three companies by size ---------- */
.demo-hero { padding-bottom: 64px; }
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.pick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 20px 20px 18px; border-radius: var(--r); background: var(--fg4); box-shadow: inset 0 0 0 1px var(--fg14);
  transition: box-shadow .14s ease, background-color .14s ease;
}
.pick:hover { background: var(--fg8); box-shadow: inset 0 0 0 1px var(--fg28); }
.pick[aria-selected="true"] { background: var(--accent-dim); box-shadow: inset 0 0 0 2px var(--accent); }
.pick-k { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.pick[aria-selected="true"] .pick-k { color: var(--accent-2); }
.pick-n { font-size: 13.5px; font-weight: 700; color: var(--fg72); font-variant-numeric: var(--tnum); }
.pick-d { font-size: 13px; color: var(--fg48); margin-top: 6px; }
.panel { position: relative; }
.panel .launch { margin: -8px 0 32px; }
.demo-mods .mod-b h3 { word-break: keep-all; }
.cmp-scroll { overflow-x: auto; border-top: 1px solid var(--fg14); }
.cmp { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 13px 10px; border-bottom: 1px solid var(--fg8); }
.cmp thead th { font-size: 13px; font-weight: 700; color: var(--fg48); text-align: center; }
.cmp thead th:first-child, .cmp tbody th { text-align: left; }
.cmp tbody th { font-weight: 600; color: var(--fg84); word-break: keep-all; }
.cmp td { text-align: center; width: 18%; }
.cmp td.y { color: var(--accent); }
.cmp td.n { color: var(--fg28); }
@media (max-width: 860px) {
  .picks { grid-template-columns: 1fr; gap: 10px; margin-top: 30px; }
  .pick { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 12px; padding: 16px; }
  .pick-d { flex-basis: 100%; margin-top: 2px; }
}
/* Korean in the section labels: the mono face has no Hangul (see --mono) */
.panel .sec-no, #compare .sec-no { font-family: var(--font); font-weight: 700; letter-spacing: .02em; }

/* ─── 대기업: the app's navy look (tosspayments-like) — a light grey panel, white rows, deep navy actions ─── */
#panel-large {
  --bg: #f2f4f6; --bg-2: #ffffff; --bg-3: #e5e8eb;
  --fg: #191f28;
  --fg84: rgba(25,31,40,.84); --fg72: rgba(25,31,40,.72); --fg60: #4e5968; --fg48: #6b7684;
  --fg28: #8b95a1; --fg14: #e5e8eb; --fg8: #e5e8eb; --fg4: #f9fafb;
  --accent: #152c6e; --accent-2: #152c6e; --accent-dim: #e8edf8;
  background: var(--bg); color: var(--fg);
}
#panel-large .sec-no { color: var(--accent); font-weight: 700; }
#panel-large .sec-h h2 { color: var(--fg); }
#panel-large .launch-go { background: var(--accent); color: #ffffff; border-radius: 12px; }
#panel-large .launch-go:hover { background: #0f2156; }
#panel-large .mods { border-top: 0; background: #ffffff; border-radius: 16px; overflow: hidden; }
#panel-large .mod { border-bottom: 1px solid var(--fg8); padding-left: 20px; padding-right: 20px; }
#panel-large .mod:last-child { border-bottom: 0; }
#panel-large .mod:hover { background: var(--accent-dim); }
#panel-large .mod-go { color: var(--accent); }
#panel-large :focus-visible { outline-color: var(--accent); }
