/* ===== Reset & Base ===== */
*,
*::before,
*::after{ box-sizing: border-box; }

:root{
  --text: #222;
  --muted: #444;
  --border: #e6e6e6;
  --border-2: #efefef;
  --bg: #ffffff;
  --chip: #f5f5f5;
}

body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a{ color: #1a1a1a; text-decoration: none; }
a:hover{ text-decoration: underline; }

img{ max-width: 100%; height: auto; display: block; }

/* ===== Layout ===== */
.wrap{
  max-width: 900px;   /* was 980px */
  margin: 0 auto;
  padding: 24px;
}

/* ===== Header / Navigation ===== */
header{
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.nav{
  display: flex;
   align-items: center;
    gap: 24px;
    padding: 8px 0;
}

nav{
  margin-left: auto;
}

/* Brand */
.brand{
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.3px;
  line-height: 1.15;
}

.brand .brand-sub{
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-top: 2px;
  color: var(--muted);
}

/* Nav pills */
nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: nowrap; /* keep clean on desktop */
  align-items: center;
}

nav a{
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--border);
  white-space: nowrap;
  text-decoration: none;
}

nav a:hover{
  background: #ededed;
  border-color: #dcdcdc;
  text-decoration: none;
}

nav a.active{
  background: #222;
  color: #fff;
  border-color: #222;
}

/* ===== Typography helpers ===== */
.small{ font-size: 14px; color: #555; }
.muted{ color: #333; } /* for method step descriptions */
.kicker{ margin-top: 4px; color: #444; font-size: 14px; }
.note{
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: #fafafa;
  border-radius: 10px;
}

/* ===== Hero ===== */
.hero{
  padding: 46px 0 24px;
}

.hero h1{
  font-size: 22px; /* was 40px 30px 20px */
  margin: 0 0 14px;
  font-weight: 600; /* was 650 */
  letter-spacing: -0.2px;
}

.hero p{
  font-size: 18px;
  margin: 0 0 16px;
  color: var(--muted);
}

/* Pills inside hero/content */
.pills{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.pill{
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* ===== Buttons ===== */
.btn{
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #222;
  border-radius: 999px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover{
  background: #222;
  color: #fff;
  text-decoration: none;
}

/* If a .btn is placed inside pills (not recommended), keep spacing */
.pills .btn{ margin-left: 2px; }

/* ===== Sections ===== */
.section{
  padding: 44px 0;
  border-bottom: 1px solid var(--border-2);
}

h2{
  margin-top: 0;
  font-size: 24px;
  font-weight: 650;
}

/* ===== Grid / Cards ===== */
.grid{ display: grid; gap: 24px; }
.grid-2{ grid-template-columns: 1fr 1fr; }

.card{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 16px;
  background: #fff;
}

.card h2{
  font-size: 20px;
  margin: 0 0 10px;
}

/* ===== Lists ===== */
.list{
  margin: 12px 0 0;
  padding-left: 20px;
}

.list > li{
  margin: 10px 0;
}

/* ===== Method steps (this is your "original shape" lever) ===== */
.steps{
  list-style: none;     /* we will draw our own numbers */
  padding-left: 0;
  margin: 18px 0 10px;
}

.steps > li{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0;
  background: #fff;
}

.stephead{
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.stepnum{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  border: 1px solid var(--border);
  font-weight: 650;
  flex: 0 0 28px;
}

/* Auto-number the method steps */
.steps{ counter-reset: ztmstep; }
.steps > li{ counter-increment: ztmstep; }
.steps > li .stepnum::before{ content: counter(ztmstep); }

/* ===== Tables ===== */
.table-wrap{ overflow-x: auto; }
table{ width: 100%; border-collapse: collapse; }
th, td{ border: 1px solid var(--border); padding: 8px; text-align: left; }

/* ===== Footer ===== */
footer{
  padding: 30px 0;
  font-size: 14px;
  color: #777;
}

/* form design */

form {
  max-width: 600px;
  margin: 0 auto;
}

form label {
  display: block;
  margin-top: 20px;
  font-weight: 600;
}

form input,
form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
  margin-bottom: 20px; /* was 8px */
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form button {
  margin-top: 24px;
  padding: 10px 16px;
  border: none;
  background: #111;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

form button:hover {
  background: #333;
}

/* ===== Mobile ===== */
@media (max-width: 720px){
  .wrap{ padding: 16px; }

  .nav{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;          /* tighter than desktop, was 14px */
  }

  nav{ 
    margin-left: 0;     /* IMPORTANT: undo the desktop push */
    width: 100%; 
  }

  nav ul{
    width: 100%;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: wrap; /* allow wrap on mobile */
  }

  .brand{
     font-size: 23px;  /* was 20px */
  }

  .brand .brand-sub{ font-size: 13px; }

  .hero{ padding: 34px 0 18px; }
  .hero h1{ font-size: 21px; /* was 30px 26px 22px */}
  .hero p{ font-size: 16px; }

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

  .steps > li{ padding: 12px 14px; }
}
