/* ==========================================================================
   Purpleap — design tokens
   ========================================================================== */
:root {
  --ink: #14111a;
  --ink-2: #2f2a38;
  --muted: #6a6474;
  --subtle: #8f8998;
  --line: #e7e3ec;
  --line-strong: #d3cddb;
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f4f2f6;

  --accent: #5f4b8b;
  --accent-600: #4d3c74;
  --accent-50: #f2eff8;
  --accent-100: #e5def2;

  --dark: #14111a;
  --dark-2: #1d1925;
  --dark-3: #27222f;
  --dark-line: rgba(255, 255, 255, 0.12);
  --dark-muted: #a9a2b4;

  --ok: #2e7d5b;
  --ok-50: #e9f4ee;
  --warn: #b4533c;

  --fs-display: clamp(40px, 5.4vw, 68px);
  --fs-h2: clamp(30px, 3.6vw, 46px);
  --fs-h3: 22px;
  --fs-lead: 19px;
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-micro: 13px;

  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 16px;

  --shadow-frame: 0 1px 2px rgba(20, 17, 26, 0.04), 0 12px 32px -8px rgba(20, 17, 26, 0.12), 0 40px 80px -24px rgba(20, 17, 26, 0.12);
  --container: 1200px;
  --gutter: 32px;
  --header-h: 72px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
svg.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }
p { margin: 0 0 16px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.25; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-100); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); text-decoration: none; }
.skip:focus { top: 12px; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.section { padding: 120px 0; }
.section + .section:not(.section--dark):not(.section--tint) { border-top: 1px solid var(--line); }
.section--tight { padding: 88px 0; }
.section--tint { background: var(--surface-2); }
.section--dark { background: var(--dark); color: #fff; }

.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head--split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; max-width: none; align-items: end; }
.section-head--split > :first-child { grid-column: 1 / span 7; }
.section-head--split > :last-child { grid-column: 9 / span 4; margin: 0; color: var(--muted); }
.section--dark .section-head--split > :last-child { color: var(--dark-muted); }

/* ==========================================================================
   Typography
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.eyebrow .num { color: var(--subtle); font-weight: 500; }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.section--dark .eyebrow { color: #c3b6e6; }
.section--dark .eyebrow .num { color: var(--dark-muted); }

.display { font-size: var(--fs-display); line-height: 1.16; letter-spacing: -0.045em; }
.h2 { font-size: var(--fs-h2); line-height: 1.22; letter-spacing: -0.04em; }
.h3 { font-size: var(--fs-h3); line-height: 1.4; letter-spacing: -0.025em; }
.lead { font-size: var(--fs-lead); line-height: 1.7; color: var(--muted); }
.section--dark .lead { color: var(--dark-muted); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.micro { font-size: var(--fs-micro); }
.accent { color: var(--accent); }

/* ==========================================================================
   Buttons, badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform .15s ease; }
.btn:hover svg { transform: translateX(2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-600); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-50); }
.btn--lg { height: 56px; padding: 0 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  background: var(--accent-50);
  color: var(--accent-600);
  white-space: nowrap;
}
.badge--ok { background: var(--ok-50); color: var(--ok); }
.badge--line { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }
.badge--dark { background: rgba(255,255,255,.08); color: #e4dcf5; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(250, 249, 247, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(250, 249, 247, 0.9); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a[aria-current="page"] { font-weight: 700; }
.nav .btn { height: 40px; padding: 0 16px; font-size: var(--fs-small); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; margin-right: -10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 88px 0 112px; overflow: hidden; }
.hero .grid { align-items: center; row-gap: 64px; }
.hero-copy { grid-column: 1 / span 6; }
.hero-visual { grid-column: 7 / span 6; position: relative; }
.hero .display { margin-bottom: 28px; }
.hero .display em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 30em; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 24px; font-size: var(--fs-micro); color: var(--subtle); }

/* ==========================================================================
   Mockup frame (shared)
   ========================================================================== */
.frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-frame);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
}
.frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: #fcfbfd;
}
.frame-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.frame-title .logo-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.frame-body { padding: 20px; }
.sample-tag {
  position: absolute;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--subtle);
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}
.hero-visual .sample-tag { right: 16px; bottom: -32px; background: transparent; border: 0; padding: 0; }

/* Business app mockup */
.app-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.app-summary div { padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); }
.app-summary span { display: block; font-size: 12px; color: var(--muted); }
.app-summary b { display: block; margin-top: 2px; font-size: 20px; letter-spacing: -0.03em; line-height: 1.3; }
.app-summary b small { margin-left: 2px; font-size: 12px; font-weight: 500; color: var(--subtle); }
.app-summary .is-warn b { color: var(--warn); }
.app-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.tabs { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--surface-2); }
.tab { padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tab.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20, 17, 26, 0.08); }
.app-search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 12px; color: var(--subtle); white-space: nowrap; }
.app-search svg { width: 14px; height: 14px; }
.app-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.app-table th { padding: 10px 8px; text-align: left; font-size: 11px; font-weight: 600; color: var(--subtle); border-bottom: 1px solid var(--line); white-space: nowrap; }
.app-table td { padding: 11px 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.app-table tr:last-child td { border-bottom: 0; }
.app-table th:first-child, .app-table td:first-child { padding-left: 0; }
.app-table th:last-child, .app-table td:last-child { padding-right: 0; text-align: right; }
.app-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); }
.st { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.st::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.st--wait { background: var(--accent-50); color: var(--accent-600); }
.st--done { background: var(--ok-50); color: var(--ok); }
.st--late { background: #fbeeea; color: var(--warn); }
.frame-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--subtle); }

.float-card {
  position: absolute;
  left: -32px;
  bottom: 40px;
  z-index: 3;
  width: 240px;
  padding: 14px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -12px rgba(20,17,26,.4);
  font-size: 13px;
  line-height: 1.5;
}
.float-card .row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.float-card .row + .row { border-top: 1px solid var(--dark-line); }
.float-card .k { color: var(--dark-muted); }
.float-card .v { font-weight: 600; }
.float-card .v.ok { color: #8fd4b2; }

/* ==========================================================================
   Promise strip
   ========================================================================== */
.promise { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.promise ul { display: grid; grid-template-columns: repeat(3, 1fr); }
.promise li { padding: 40px 32px; }
.promise li + li { border-left: 1px solid var(--line); }
.promise li:first-child { padding-left: 0; }
.promise .big { display: block; font-size: 32px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.2; margin-bottom: 8px; }
.promise .big small { font-size: 18px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: -0.02em; }
.promise p { margin: 0; color: var(--muted); font-size: var(--fs-small); }

/* ==========================================================================
   Pain
   ========================================================================== */
.pain .grid { row-gap: 40px; }
.pain-head { grid-column: 1 / span 4; }
.pain-list { grid-column: 6 / span 7; }
.pain-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.pain-list li:last-child { border-bottom: 1px solid var(--line); }
.pain-list .q { font-size: 40px; line-height: .9; color: var(--accent-100); font-weight: 700; font-family: Georgia, serif; }
.pain-close { margin-top: 32px; font-size: var(--fs-lead); font-weight: 600; letter-spacing: -0.02em; }
.pain-close span { color: var(--accent); }

/* ==========================================================================
   Pricing
   ========================================================================== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); overflow: hidden; }
.plan { display: flex; flex-direction: column; padding: 40px 36px 36px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan--featured { background: var(--ink); color: #fff; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.plan-step { font-size: var(--fs-micro); font-weight: 600; color: var(--subtle); letter-spacing: .06em; }
.plan--featured .plan-step { color: var(--dark-muted); }
.plan h3 { font-size: 24px; margin-bottom: 8px; }
.plan .desc { color: var(--muted); font-size: var(--fs-small); min-height: 3.4em; margin-bottom: 28px; }
.plan--featured .desc { color: var(--dark-muted); }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price strong { font-size: 40px; letter-spacing: -0.045em; line-height: 1.1; }
.price span { font-size: var(--fs-small); color: var(--muted); font-weight: 500; }
.plan--featured .price span { color: var(--dark-muted); }
.term { font-size: var(--fs-micro); color: var(--subtle); margin-bottom: 28px; }
.plan--featured .term { color: var(--dark-muted); }
.plan ul { display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); margin-bottom: 32px; flex: 1; }
.plan--featured ul { border-top-color: var(--dark-line); }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: var(--fs-small); line-height: 1.55; }
.plan li svg { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.plan--featured li svg { color: #c3b6e6; }
.plans-note { margin-top: 20px; font-size: var(--fs-micro); color: var(--subtle); }

/* ==========================================================================
   What we build (dark)
   ========================================================================== */
.build-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.build-card {
  display: flex;
  flex-direction: column;
  padding: 32px 26px 28px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-l);
  background: var(--dark-2);
  transition: border-color .2s ease;
}
.build-card:hover { border-color: rgba(195, 182, 230, 0.45); }
.build-card .ic-box { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 28px; background: rgba(155, 134, 214, 0.14); color: #c3b6e6; }
.build-card .ic-box svg { width: 22px; height: 22px; }
.build-card h3 { font-size: 20px; margin-bottom: 10px; }
.build-card p { flex: 1; margin-bottom: 28px; font-size: var(--fs-small); line-height: 1.65; color: var(--dark-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 2px 10px; border: 1px solid var(--dark-line); border-radius: 999px; font-size: 12px; color: #d6cfe0; }
.build-note { display: flex; align-items: center; gap: 12px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--dark-line); font-size: var(--fs-small); color: var(--dark-muted); }
.build-note svg { width: 18px; height: 18px; color: #c3b6e6; }
.build-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 20px 0 0; font-size: var(--fs-small); }
.build-links span { color: var(--dark-muted); }
.build-links a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--dark-line); }
.build-links a:hover { border-bottom-color: #c3b6e6; }

/* ==========================================================================
   Team, cases, stack
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.team-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.team-from { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--accent-50); color: var(--accent-600); font-size: 12px; font-weight: 600; margin-bottom: 20px; }
.team-card h3 { font-size: 22px; margin-bottom: 4px; }
.team-role { font-size: var(--fs-small); color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.team-card p:last-child { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.team-sub { font-size: 20px; letter-spacing: -0.025em; margin: 72px 0 24px; }

.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.case-card { display: flex; flex-direction: column; padding: 32px 28px 28px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.case-client { font-size: var(--fs-micro); font-weight: 600; color: var(--subtle); letter-spacing: .02em; margin-bottom: 10px; }
.case-card h4 { font-size: 20px; letter-spacing: -0.03em; margin-bottom: 10px; }
.case-card p { flex: 1; font-size: var(--fs-small); color: var(--muted); margin-bottom: 24px; }
.case-card .tags li { border-color: var(--line-strong); color: var(--ink-2); }
.case-result { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: -8px 0 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.case-result div { display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; }
.case-result dd { order: -1; margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); }
.case-result dt { font-size: var(--fs-micro); color: var(--muted); line-height: 1.4; }
.case-card--more { background: transparent; border-style: dashed; }
.case-card--more .btn { align-self: flex-start; }

.stack-list { margin: 0; border-top: 1px solid var(--line); }
.stack-list > div { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.stack-list dt { font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); padding-top: 4px; }
.stack-list dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack-list dd span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface); font-size: 14px; font-weight: 500; }
.stack-note { margin: 16px 0 0; font-size: var(--fs-small); color: var(--muted); }
.team-more { margin: 32px 0 0; }
.partner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; margin-top: 16px; padding: 32px; border-radius: var(--radius-l); background: var(--surface-2); }
.section--tint .partner { background: var(--surface); border: 1px solid var(--line); }
.container > .team-sub:first-child { margin-top: 0; }
.container > .metrics:last-child { margin-bottom: 0; }
.partner-head h3 { font-size: 20px; margin-bottom: 10px; }
.partner-head p { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.partner-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.partner-list b { display: block; font-size: 16px; margin-bottom: 4px; letter-spacing: -0.02em; }
.partner-list span { font-size: var(--fs-small); color: var(--muted); }
.focus-grid .case-card h4 { color: var(--accent); }
.takeover-more { margin: 32px 0 0; }

.cta-band .container { max-width: calc(820px + var(--gutter) * 2); text-align: center; }
.cta-band .eyebrow::before { display: none; }
.cta-band .h2 { margin-bottom: 20px; }
.cta-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 36px; }
.cta-tel { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--dark-line); }
.cta-tel:hover { border-bottom-color: #fff; }

/* ==========================================================================
   Takeover
   ========================================================================== */
.takeover .grid { row-gap: 56px; align-items: center; }
.takeover-copy { grid-column: 1 / span 5; }
.takeover-copy .lead { margin-top: 20px; }
.takeover-steps { margin-top: 36px; border-top: 1px solid var(--line-strong); }
.takeover-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.takeover-steps .n { padding-top: 2px; font-size: var(--fs-micro); font-weight: 700; color: var(--accent); }
.takeover-steps b { display: block; margin-bottom: 2px; font-size: 18px; letter-spacing: -0.02em; }
.takeover-steps span { font-size: var(--fs-small); color: var(--muted); }
.takeover-visual { grid-column: 7 / span 6; position: relative; }
.takeover-visual .sample-tag { top: -30px; right: 0; background: transparent; border: 0; padding: 0; }
.check-list { padding: 4px 24px; }
.check-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list b { display: block; font-weight: 600; color: var(--ink); }
.check-list small { display: block; font-size: 12px; color: var(--subtle); }
.verdict { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 24px 24px; padding: 14px 16px; border-radius: var(--radius); background: var(--accent-50); font-size: 14px; font-weight: 600; color: var(--accent-600); }
.verdict span:last-child { font-weight: 500; color: var(--muted); }

/* ==========================================================================
   Operations
   ========================================================================== */
.ops .grid { row-gap: 56px; align-items: start; }
.ops-copy { grid-column: 1 / span 5; }
.ops-list { margin-top: 40px; border-top: 1px solid var(--line); }
.ops-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ops-list b { font-weight: 700; }
.ops-list span { color: var(--muted); font-size: var(--fs-small); }
.ops-visual { grid-column: 7 / span 6; position: relative; }
.sla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 88px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.sla li { padding: 28px 28px 24px; }
.sla li + li { border-left: 1px solid var(--line); }
.sla-v { display: block; font-size: 40px; font-weight: 700; letter-spacing: -0.045em; line-height: 1.1; color: var(--accent); margin-bottom: 8px; }
.sla-v small { font-size: 18px; font-weight: 600; margin-left: 4px; letter-spacing: -0.02em; }
.sla-k { font-size: var(--fs-small); color: var(--muted); }
.sla-note { margin: 16px 0 0; font-size: var(--fs-micro); color: var(--subtle); }
.metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 40px; }
.ops-visual .sample-tag { top: -30px; right: 0; background: transparent; border: 0; padding: 0; }

.report-head { padding: 24px 24px 20px; border-bottom: 1px solid var(--line); }
.report-head .meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--subtle); margin-bottom: 6px; }
.report-head h4 { font-size: 18px; letter-spacing: -0.02em; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.kpi { padding: 18px 20px; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi .k { font-size: 12px; color: var(--subtle); }
.kpi .v { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; margin-top: 2px; }
.kpi .s { font-size: 12px; color: var(--muted); }
.kpi .s.ok { color: var(--ok); }
.log { padding: 8px 24px 16px; }
.log li { display: grid; grid-template-columns: 52px 72px 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--subtle); }
.log .t { font-size: 11px; font-weight: 600; border-radius: 4px; padding: 1px 6px; text-align: center; background: var(--surface-2); color: var(--muted); }
.log .t--fix { background: #fbeee9; color: var(--warn); }
.log .t--doc { background: var(--accent-50); color: var(--accent-600); }
.log .t--model { background: var(--ok-50); color: var(--ok); }

/* ==========================================================================
   Process timeline
   ========================================================================== */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.step { position: relative; padding-right: 24px; }
.step-dot { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 24px; }
.step--accent .step-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.step .dur { display: inline-block; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 4px; padding: 2px 8px; margin-bottom: 10px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: var(--fs-small); color: var(--muted); margin: 0; }

/* ==========================================================================
   Contract
   ========================================================================== */
.contract .grid { row-gap: 48px; align-items: start; }
.contract-quote { grid-column: 1 / span 5; }
.contract-quote .h2 { margin-bottom: 24px; }
.contract-list { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.contract-list li { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.contract-list li:nth-child(even) { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--line); }
.contract-list .ic-box { width: 36px; height: 36px; border-radius: 8px; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.contract-list .ic-box svg { width: 18px; height: 18px; }
.contract-list b { display: block; font-size: 17px; margin-bottom: 4px; letter-spacing: -0.02em; }
.contract-list span { font-size: var(--fs-small); color: var(--muted); }

/* ==========================================================================
   Fit
   ========================================================================== */
.fit-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 36px; }
.fit-card h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 20px; }
.fit-card ul { display: grid; gap: 14px; }
.fit-card li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: var(--fs-body); line-height: 1.6; }
.fit-card li svg { width: 20px; height: 20px; margin-top: 3px; }
.fit-card--yes li svg { color: var(--accent); }
#fit .section-head .lead { margin-top: 20px; }
.fit-card li b { display: block; margin-bottom: 2px; font-size: 16px; color: var(--ink); letter-spacing: -0.02em; }
.fit-card li span { font-size: var(--fs-small); }
.fit-card--no { background: transparent; }
.fit-card--no li { color: var(--muted); }
.fit-card--no li svg { color: var(--subtle); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq .grid { row-gap: 40px; }
.faq-head { grid-column: 1 / span 4; }
.faq-list { grid-column: 6 / span 7; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .pm { position: relative; width: 14px; height: 14px; flex: none; }
.faq-list summary .pm::before, .faq-list summary .pm::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--accent); transition: transform .2s ease; }
.faq-list summary .pm::after { transform: rotate(90deg); }
.faq-list details[open] summary .pm::after { transform: rotate(0deg); }
.faq-list .a { padding: 0 48px 28px 0; color: var(--muted); }
.faq-list .a p:last-child { margin: 0; }

/* ==========================================================================
   Contact (dark)
   ========================================================================== */
.contact .grid { row-gap: 56px; align-items: start; }
.contact-copy { grid-column: 1 / span 5; }
.contact-copy .h2 { margin-bottom: 20px; }
.get-list { margin: 40px 0; border-top: 1px solid var(--dark-line); }
.get-list li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--dark-line); }
.get-list .n { font-size: 13px; font-weight: 700; color: #c3b6e6; padding-top: 2px; }
.get-list b { display: block; font-weight: 600; }
.get-list span { font-size: var(--fs-small); color: var(--dark-muted); }
.contact-info { display: grid; gap: 6px; font-size: var(--fs-small); color: var(--dark-muted); }
.contact-info b { color: #fff; font-weight: 600; display: inline-block; min-width: 72px; }
.contact-info a { color: #fff; }

.form-card { grid-column: 7 / span 6; background: var(--surface); color: var(--ink); border-radius: var(--radius-l); padding: 40px; }
.form-card h3 { font-size: 22px; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: var(--fs-small); margin-bottom: 28px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0; }
.field label .req { color: var(--accent); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a6474' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field textarea { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-50); }
.field input::placeholder, .field textarea::placeholder { color: #b0aab8; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.choice label { position: relative; cursor: pointer; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; transition: all .15s ease; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-50); color: var(--accent-600); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin: 24px 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.consent a { color: var(--ink); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; font-size: var(--fs-small); min-height: 1.6em; }
.form-status.is-error { color: var(--warn); }
.form-status a { color: inherit; font-weight: 600; }
.form-done { display: none; text-align: left; }
.form-done .ok-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--ok-50); color: var(--ok); display: grid; place-items: center; margin-bottom: 20px; }
.form-done .ok-ic svg { width: 24px; height: 24px; }
.form-card.is-done form { display: none; }
.form-card.is-done .form-done { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--dark); color: var(--dark-muted); font-size: 14px; padding: 64px 0 48px; border-top: 1px solid var(--dark-line); }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--dark-line); }
.footer-brand { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -0.03em; margin-bottom: 8px; }
.footer-top p { margin: 0; max-width: 28em; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 13px; color: #fff; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.footer-cols li { margin: 6px 0; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; }
.footer-bottom a { color: #fff; }

/* ==========================================================================
   Legal page
   ========================================================================== */
.legal { padding: 72px 0 120px; }
.legal .container { max-width: 840px; }
.legal h1 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.04em; margin-bottom: 16px; }
.legal .intro { color: var(--muted); font-size: var(--fs-lead); margin-bottom: 48px; }
.legal h2 { font-size: 20px; letter-spacing: -0.02em; margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { margin: 0 0 16px; padding-left: 1.2em; list-style: disc; }
.legal li { margin: 6px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: var(--fs-small); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal tr:last-child td { border-bottom: 0; }
.legal th { background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 600; }
.legal .date { margin-top: 48px; color: var(--muted); }

/* ==========================================================================
   Service landing pages
   ========================================================================== */
.lp-hero { padding: 72px 0 104px; border-bottom: 1px solid var(--line); }
.lp-hero .container > * { max-width: 860px; }
.lp-hero .display { font-size: clamp(36px, 4.8vw, 58px); margin-bottom: 24px; }
.lp-hero .display em { font-style: normal; color: var(--accent); }
.lp-hero .lead { margin-bottom: 36px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 32px; font-size: var(--fs-micro); color: var(--subtle); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-card { padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.lp-card .ic-box { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 20px; background: var(--accent-50); color: var(--accent); }
.lp-card .ic-box svg { width: 20px; height: 20px; }
.lp-card .chip { display: inline-block; margin-bottom: 14px; padding: 2px 10px; border-radius: 999px; background: var(--accent-50); color: var(--accent-600); font-size: 12px; font-weight: 600; }
.lp-card h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 8px; }
.lp-card p { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.lp-banner { margin: 24px 0 0; padding: 20px 24px; border-radius: var(--radius); background: var(--ink); color: #fff; font-weight: 600; letter-spacing: -0.01em; }
.lp-banner span { color: #c3b6e6; }
.lp-more { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.sla--flat { margin-top: 0; }
.timeline--3 { grid-template-columns: repeat(3, 1fr); }
.timeline--4 { grid-template-columns: repeat(4, 1fr); }
.section-head .lead { margin-top: 20px; }
.lp-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-related a { display: block; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color .15s ease; }
.lp-related a:hover { border-color: var(--accent); }
.lp-related b { display: block; margin-bottom: 4px; letter-spacing: -0.02em; }
.lp-related span { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 1024px) {
  .lp-grid, .lp-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .lp-hero { padding: 40px 0 80px; }
  .lp-grid, .lp-grid--2, .lp-related { grid-template-columns: 1fr; }
  .lp-card { padding: 28px 24px; }
}

/* ==========================================================================
   Sample diagnosis report
   ========================================================================== */
.rp { padding: 56px 0 120px; }
.rp .container { max-width: calc(960px + var(--gutter) * 2); }
.rp-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; padding: 14px 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: var(--fs-small); color: var(--muted); }
.rp-notice b { color: var(--ink); }
.rp-notice .btn { height: 40px; padding: 0 16px; font-size: var(--fs-small); }
.rp-doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-frame); overflow: hidden; }
.rp-cover { padding: 56px 64px 48px; background: var(--dark); color: #fff; }
.rp-cover-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.rp-cover-top img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.rp-cover-top .badge { background: rgba(255,255,255,.08); color: #e4dcf5; }
.rp-cover .kind { font-size: var(--fs-micro); font-weight: 600; letter-spacing: .08em; color: #c3b6e6; margin-bottom: 14px; }
.rp-cover h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.22; letter-spacing: -0.04em; margin-bottom: 40px; }
.rp-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--dark-line); }
.rp-meta div { padding: 16px 16px 0 0; }
.rp-meta dt { font-size: 12px; color: var(--dark-muted); margin-bottom: 2px; }
.rp-meta dd { margin: 0; font-size: var(--fs-small); font-weight: 500; }

.rp-sec { padding: 56px 64px; border-top: 1px solid var(--line); }
.rp-sec:first-of-type { border-top: 0; }
.rp-sec--tint { background: #fcfbfd; }
.rp-h { display: flex; align-items: baseline; gap: 12px; font-size: 24px; letter-spacing: -0.03em; margin-bottom: 8px; }
.rp-h .no { font-size: var(--fs-micro); font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.rp-sub { color: var(--muted); font-size: var(--fs-small); margin-bottom: 28px; }

.rp-verdict { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 28px; border-radius: var(--radius-l); background: var(--accent-50); margin-bottom: 24px; }
.rp-verdict .stamp { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); text-align: center; font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: -0.03em; }
.rp-verdict .stamp small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--accent-600); }
.rp-verdict h3 { font-size: 22px; margin-bottom: 6px; }
.rp-verdict p { margin: 0; color: var(--ink-2); }
.rp-verdict .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.rp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 32px; }
.rp-kpis > div { padding: 18px 20px; }
.rp-kpis > div + div { border-left: 1px solid var(--line); }
.rp-kpis .k { font-size: 12px; color: var(--subtle); }
.rp-kpis .v { font-size: 26px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.3; }
.rp-kpis .v.warn { color: var(--warn); }
.rp-kpis .s { font-size: 12px; color: var(--muted); }

.rp-brief { border-left: 3px solid var(--accent); padding: 4px 0 4px 24px; }
.rp-brief h3 { font-size: 17px; margin-bottom: 12px; }
.rp-brief ol { display: grid; gap: 10px; counter-reset: brief; }
.rp-brief li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; counter-increment: brief; color: var(--ink-2); }
.rp-brief li::before { content: counter(brief); font-weight: 700; color: var(--accent); }

.rp-areas { border-top: 1px solid var(--line); }
.rp-areas li { display: grid; grid-template-columns: 150px 132px 64px 1fr; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.rp-areas b { font-weight: 600; }
.rp-areas p { margin: 0; color: var(--muted); }
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.meter { --on: var(--ok); }
.meter--mid { --on: #c99a3a; }
.meter--bad { --on: var(--warn); }
.meter i { height: 8px; border-radius: 2px; background: var(--surface-2); }
.meter[data-v="1"] i:nth-child(-n+1), .meter[data-v="2"] i:nth-child(-n+2), .meter[data-v="3"] i:nth-child(-n+3), .meter[data-v="4"] i:nth-child(-n+4), .meter[data-v="5"] i { background: var(--on); }
.lv { display: inline-flex; justify-content: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 24px; white-space: nowrap; }
.lv--ok { background: var(--ok-50); color: var(--ok); }
.lv--mid { background: #f8f0dc; color: #8a6514; }
.lv--bad { background: #fbeeea; color: var(--warn); }
.lv--low { background: var(--surface-2); color: var(--muted); }

.rp-arch { display: grid; grid-template-columns: 1fr 40px 1.3fr 40px 1fr; align-items: center; gap: 0; margin-bottom: 28px; padding: 28px; border-radius: var(--radius); background: var(--surface-2); font-size: 13px; }
.rp-arch .col { display: grid; gap: 10px; }
.rp-arch .box { padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; line-height: 1.5; }
.rp-arch .box b { display: block; font-size: 14px; }
.rp-arch .box span { color: var(--muted); }
.rp-arch .box--main { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-50); }
.rp-arch .box--bad { border-color: var(--warn); border-style: dashed; }
.rp-arch .box--bad span { color: var(--warn); }
.rp-arch .arrow { text-align: center; color: var(--subtle); font-size: 18px; }

.rp table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.rp th, .rp td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rp thead th { background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.rp tbody th { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.rp td.num, .rp th.num { text-align: right; white-space: nowrap; }
.rp .eol { color: var(--warn); font-weight: 600; }
.rp-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rp-table tr:last-child > * { border-bottom: 0; }
.rp-table tfoot td, .rp-table tfoot th { background: var(--surface-2); font-weight: 700; }

.rp-findings { display: grid; gap: 16px; margin-bottom: 28px; }
.finding { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.finding-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fcfbfd; }
.finding-head .id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--subtle); }
.finding-head h3 { font-size: 17px; letter-spacing: -0.02em; flex: 1; }
.finding-head .eta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.finding dl { display: grid; grid-template-columns: 88px 1fr; margin: 0; padding: 6px 20px 10px; font-size: var(--fs-small); }
.finding dt, .finding dd { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.finding dt { font-weight: 600; color: var(--muted); }
.finding dd { margin: 0; color: var(--ink-2); }
.finding dl > :nth-last-child(-n+2) { border-bottom: 0; }
.finding--crit { border-color: #efc9be; }
.finding--crit .finding-head { background: #fdf6f3; }

.rp-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rp-plan > div { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.rp-plan .when { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.rp-plan h3 { font-size: 18px; margin: 4px 0 14px; }
.rp-plan ul { display: grid; gap: 8px; font-size: var(--fs-small); color: var(--ink-2); }
.rp-plan li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; }
.rp-plan li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent-100); }
.rp-plan .cost { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.rp-save { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; padding: 16px 20px; border-radius: var(--radius); background: var(--ok-50); color: var(--ink-2); font-size: var(--fs-small); }
.rp-save b { color: var(--ok); white-space: nowrap; }

.rp-diy { counter-reset: diy; display: grid; gap: 10px; margin-bottom: 20px; }
.rp-diy li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: var(--fs-small); counter-increment: diy; }
.rp-diy li::before { content: counter(diy); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.rp-diy b { display: block; color: var(--ink); }
.rp-diy span { color: var(--muted); }

.rp-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rp-scope > div { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.rp-scope h3 { font-size: 16px; margin-bottom: 10px; }
.rp-scope ul { display: grid; gap: 6px; padding-left: 1.1em; list-style: disc; font-size: var(--fs-small); color: var(--ink-2); }
.rp-scope .out { background: var(--surface-2); border-color: transparent; }
.rp-scope .out ul { color: var(--muted); }

.rp-sign { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 36px 64px; border-top: 1px solid var(--line); background: #fcfbfd; font-size: var(--fs-small); color: var(--muted); }
.rp-sign b { display: block; font-size: 17px; color: var(--ink); }
.rp-sign img { height: 22px; width: auto; }

.rp-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.rp-cta > div { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; border-radius: var(--radius-l); }
.rp-cta h2 { font-size: 22px; margin-bottom: 8px; }
.rp-cta p { flex: 1; color: var(--muted); font-size: var(--fs-small); margin-bottom: 24px; }
.rp-cta .main { background: var(--dark); color: #fff; }
.rp-cta .main p { color: var(--dark-muted); }
.rp-cta .sub { border: 1px solid var(--line); background: var(--surface); }

@media (max-width: 768px) {
  .rp { padding: 32px 0 80px; }
  .rp-cover { padding: 36px 24px 32px; }
  .rp-cover-top { margin-bottom: 36px; }
  .rp-meta { grid-template-columns: 1fr 1fr; }
  .rp-sec { padding: 40px 20px; }
  .rp-sign { padding: 28px 20px; }
  .rp-verdict { grid-template-columns: 1fr; padding: 24px 20px; }
  .rp-verdict .stamp { width: 96px; height: 96px; font-size: 16px; }
  .rp-kpis { grid-template-columns: 1fr 1fr; }
  .rp-kpis > div:nth-child(3) { border-left: 0; }
  .rp-kpis > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rp-areas li { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .rp-areas .meter { grid-column: 1 / -1; grid-row: 2; }
  .rp-areas p { grid-column: 1 / -1; }
  .rp-arch { grid-template-columns: 1fr; padding: 20px; }
  .rp-arch .arrow { transform: rotate(90deg); padding: 4px 0; }
  .rp-table-wrap { overflow-x: auto; }
  .rp-table-wrap .rp-table { min-width: 560px; }
  .finding-head { flex-wrap: wrap; }
  .finding dl { grid-template-columns: 1fr; padding: 4px 16px 10px; }
  .finding dt { padding-bottom: 0; border-bottom: 0; }
  .finding dl > dt:nth-last-child(2) { border-bottom: 0; }
  .rp-plan, .rp-scope, .rp-cta { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 12px; }
  .site-header, .site-footer, .rp-notice, .rp-cta, .skip { display: none !important; }
  .rp { padding: 0; }
  .rp .container { max-width: none; padding: 0; }
  .rp-doc { border: 0; box-shadow: none; border-radius: 0; }
  .rp-cover, .lv, .meter i, .rp-verdict, .finding-head, .rp-save, .rp-diy li::before, .rp thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rp-sec { padding: 28px 8px; }
  .rp-sec--break { break-before: page; }
  .finding, .rp-plan > div, .rp-arch, .rp-verdict, .rp-areas li { break-inside: avoid; }
}

/* ==========================================================================
   Reveal motion
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --gutter: 28px; }
  .site-header .container { gap: 24px; }
  .nav { gap: 20px; }
  .nav-links { gap: 18px; }
  .section { padding: 96px 0; }
  .hero-copy, .hero-visual { grid-column: 1 / -1; }
  .hero-visual { max-width: 640px; }
  .float-card { left: auto; right: -12px; bottom: -28px; }
  .hero-visual .sample-tag { left: 0; right: auto; bottom: -32px; }
  .section-head--split > :first-child, .section-head--split > :last-child { grid-column: 1 / -1; }
  .section-head--split > :last-child { margin-top: 20px; }
  .build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sla { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 64px; }
  .sla li:nth-child(3) { border-left: 0; }
  .sla li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 32px; }
  .metrics li:nth-child(3) { border-left: 1px solid var(--line); border-top: 0; }
  .pain-head, .pain-list, .takeover-copy, .takeover-visual, .ops-copy, .ops-visual, .contract-quote, .contract-list, .faq-head, .faq-list, .contact-copy, .form-card { grid-column: 1 / -1; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .plan .desc { min-height: 0; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { top: 0; bottom: 0; left: 15px; right: auto; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 32px 1fr; column-gap: 20px; padding: 0 0 32px; }
  .step-dot { margin: 0; grid-row: span 3; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; --fs-body: 16px; --fs-lead: 17px; --header-h: 64px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 48px 0 96px; }
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav.is-open { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(20,17,26,.2); }
  .nav.is-open .nav-links { display: flex; flex-direction: column; gap: 0; }
  .nav.is-open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav.is-open .btn { display: inline-flex; height: 48px; margin-top: 20px; font-size: 16px; }
  .header-inner { position: relative; }
  .promise ul { grid-template-columns: 1fr; }
  .promise li { padding: 24px 0; }
  .promise li + li { border-left: 0; border-top: 1px solid var(--line); }
  .pain-list li { font-size: 18px; grid-template-columns: 28px 1fr; gap: 12px; padding: 22px 0; }
  .pain-list .q { font-size: 32px; }
  .plan { padding: 32px 24px; }
  .build-grid { grid-template-columns: 1fr; }
  .team-grid, .case-grid { grid-template-columns: 1fr; }
  .partner { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
  .partner-list { grid-template-columns: 1fr; }
  .team-card, .case-card { padding: 28px 24px 24px; }
  .team-sub { margin-top: 56px; }
  .sla li { padding: 22px 20px 20px; }
  .sla-v { font-size: 32px; }
  .metrics { grid-template-columns: 1fr; }
  .metrics li + li, .metrics li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stack-list > div { grid-template-columns: 1fr; gap: 10px; }
  .build-card { padding: 28px 24px 24px; }
  .build-card .ic-box { margin-bottom: 20px; }
  .build-note { align-items: flex-start; }
  .build-note svg { margin-top: 3px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .log li { grid-template-columns: 44px 64px 1fr; gap: 8px; }
  .contract-list { grid-template-columns: 1fr; }
  .contract-list li, .contract-list li:nth-child(even) { padding: 22px 0; border-left: 0; }
  .fit-wrap { grid-template-columns: 1fr; }
  .fit-card { padding: 28px 24px; }
  .faq-list summary { font-size: 17px; padding: 20px 0; }
  .faq-list .a { padding-right: 0; }
  .form-card { padding: 28px 20px; }
  .fields { grid-template-columns: 1fr; }
  .ops-list li { grid-template-columns: 1fr; gap: 4px; }
  .float-card { position: relative; right: auto; bottom: auto; left: auto; width: auto; margin: 16px 0 0; }
  .hero-visual .sample-tag { position: static; display: block; margin-top: 12px; }
  .app-search { display: none; }
  .app-summary { gap: 6px; }
  .app-summary div { padding: 10px; }
  .app-summary b { font-size: 17px; }
  .app-table th:nth-child(3), .app-table td:nth-child(3) { display: none; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .price strong { font-size: 34px; }
  .footer-cols { gap: 40px; }
}
