:root {
  --bg: #ffffff;
  --panel: #fafafa;
  --soft: #f5f5f5;
  --line: #e7e7e7;
  --text: #0f0f10;
  --muted: #66666b;
  --accent: #111111;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

.is-locked header,
.is-locked main,
.is-locked footer {
  display: none;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.container {
  width: min(1100px, calc(100% - 3rem));
  margin: 0 auto;
}

.hero {
  min-height: 70vh;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #fff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--accent);
}

.brand img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}

.link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.18rem;
  transition: color 0.2s ease, border-color 0.2s ease;
  font-size: 0.9rem;
}

.link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-content {
  margin: auto;
  padding: 2rem 0 4.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 600;
}

h1 {
  margin: 0;
  line-height: 1.02;
  font-size: clamp(2.2rem, 7vw, 5rem);
  letter-spacing: -0.02em;
  max-width: 980px;
}

.hero-subtitle {
  margin: 0.8rem 0 0;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: var(--text);
  font-weight: 600;
}

.lead {
  max-width: 780px;
  margin: 1.25rem 0 0;
  color: #3f3f44;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #000000;
}

.hero-meta {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-meta span {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  padding: 4.2rem 0;
}

h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: -0.01em;
}

h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

p {
  margin: 0;
  color: #444448;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
}

.card.strong {
  background: #f0f0f0;
}

.list {
  margin: 0;
  padding-left: 1.2rem;
  color: #333338;
  display: grid;
  gap: 0.45rem;
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.step {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  width: 58px;
  height: 42px;
  color: #303036;
  font-weight: 700;
}

.budget {
  display: grid;
  gap: 1rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.kpi-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 1rem;
}

.kpi-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.kpi-value {
  margin-top: 0.35rem;
  font-size: 1.65rem;
  line-height: 1.15;
  color: var(--accent);
  font-weight: 800;
}

.kpi-note {
  margin-top: 0.32rem;
  font-size: 0.88rem;
  color: #66666b;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  background: #fff;
}

.roi-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.roi-table th,
.roi-table td {
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

.roi-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  background: #fbfbfb;
}

.roi-table tbody tr:last-child td {
  border-bottom: none;
}

.table-note {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: #6a6a70;
}

.ask-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 1.2rem;
}

.ask-title {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.ask-note {
  margin-top: 0.9rem;
  font-size: 0.92rem;
}

.budget-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: var(--soft);
}

.budget-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.bar {
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: #dddddf;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8f8f95, #0f0f10);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.7rem;
  color: #7a7a80;
  background: #fcfcfc;
}

.footer p {
  color: #7a7a80;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  z-index: 9999;
  padding: 1rem;
}

.auth-card {
  width: min(430px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 1.2rem;
}

.auth-card h2 {
  margin: 0 0 0.4rem;
}

.auth-card p {
  margin-bottom: 0.9rem;
}

.auth-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
}

.auth-form input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  font: inherit;
}

.auth-form button {
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.auth-error {
  min-height: 1.2rem;
  margin-top: 0.65rem;
  margin-bottom: 0;
  color: #b42318;
  font-size: 0.88rem;
}

@media (max-width: 920px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(1100px, calc(100% - 1.4rem));
  }

  .section {
    padding: 3rem 0;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
}
