:root {
  --blue-950: #0a1628;
  --blue-900: #0f1f3d;
  --blue-800: #1a3260;
  --blue-700: #1e4080;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --accent: #0ea5e9;
  --accent-light: #e0f2fe;
  --wa-green: #25d366;
  --surface: #f6f8fc;
  --page-bg: #f6f8fc;
  --white: #ffffff;
  --text-primary: #0a1628;
  --text-secondary: #4b5e7e;
  --text-muted: #8499b8;
  --border: #e2eaf8;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 100px;
  --shadow-sm: 0 1px 4px rgba(10,22,40,0.07);
  --shadow-md: 0 4px 20px rgba(37,99,235,0.10);
  --shadow-lg: 0 8px 40px rgba(37,99,235,0.15);
  --shadow-blue: 0 8px 32px rgba(37,99,235,0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--page-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; }
img, video, svg { max-width: 100%; height: auto; display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-full);
  background: var(--blue-50);
  color: var(--blue-600);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.highlight { color: var(--blue-600); }
.display-highlight { color: #2f67f6; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  background: var(--blue-600);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-blue);
  transition: .2s ease;
}
.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: 0 12px 40px rgba(37,99,235,.30); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--blue-600);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: .2s ease;
}
.btn-ghost:hover { background: var(--blue-50); border-color: var(--blue-600); }

.tool-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 64px;
  background:
    radial-gradient(ellipse 60% 40% at 70% 50%, rgba(37,99,235,.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(14,165,233,.04) 0%, transparent 60%);
}
.tool-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(37,99,235,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 78%);
}

.tool-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 64px;
}

.hero-copy h1 {
  max-width: 620px;
  margin-top: 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 800;
}
.hero-lead {
  max-width: 620px;
  margin-top: 22px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
}
.hero-lead strong { color: var(--text-primary); font-weight: 600; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}
.hero-trust span { position: relative; padding-left: 16px; }
.hero-trust span::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #18a05e;
  font-weight: 800;
}

.generator-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.generator-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.generator-head h2 {
  margin-top: 5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.eyebrow, .marketing-eyebrow {
  display: inline-flex;
  width: fit-content;
  color: #2f67f6;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.marketing-eyebrow {
  padding: 6px 11px;
  border: 1px solid #dce6ff;
  border-radius: var(--radius-full);
  background: #f2f6ff;
}
.privacy-chip {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: var(--radius-full);
  background: #ecfbf3;
  color: #18a05e;
  font-size: 10px;
  font-weight: 800;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field.full { grid-column: 1 / -1; }
.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}
.field label span { color: var(--text-muted); font-weight: 500; }
.label-row { display: flex; justify-content: space-between; gap: 16px; }
.counter { color: var(--text-muted); font-size: 11px; }

.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text-primary);
  outline: none;
  transition: .2s ease;
}
.field input, .field select { min-height: 48px; padding: 0 14px; }
.field textarea { resize: vertical; min-height: 106px; padding: 13px 14px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}
.field small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.phone-input-wrap {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: .2s ease;
}
.phone-input-wrap:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
.phone-input-wrap span {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 13px;
  border-right: 1px solid var(--border);
  background: #f8faff;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}
.phone-input-wrap input { border: 0; box-shadow: none!important; border-radius: 0; }

.message-presets { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.preset {
  padding: 7px 10px;
  border: 1px solid #e4eaf5;
  border-radius: var(--radius-full);
  background: #fbfcff;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  transition: .2s ease;
}
.preset:hover { border-color: var(--blue-200); background: var(--blue-50); color: var(--blue-600); }

.live-preview {
  margin-top: 20px;
  padding: 13px 14px;
  border: 1px solid #e4eaf5;
  border-radius: 12px;
  background: #f9fbff;
}
.preview-label, .result-kicker, .syntax-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-preview code {
  display: block;
  overflow: hidden;
  color: var(--blue-700);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.generator-button { width: 100%; margin-top: 14px; border: 0; }

.result-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #ccebdc;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfffd, #f4fbf7);
}
.result-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}
.result-top strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; }
.success-pill {
  padding: 5px 8px;
  border-radius: var(--radius-full);
  background: #ecfbf3;
  color: #18a05e;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.result-copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.result-copy-row input {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d7e8df;
  border-radius: 10px;
  background: #fff;
  color: #21364f;
  outline: none;
  font-size: 12px;
}
.copy-btn {
  min-height: 44px;
  padding: 0 15px;
  border-radius: 10px;
  background: var(--blue-600);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
}
.result-actions { display: flex; gap: 8px; margin-top: 10px; }
.result-action { flex: 1; border-radius: 10px; }
.html-output { margin-top: 12px; }
.html-output pre {
  overflow: auto;
  padding: 12px;
  border: 1px solid #d7e8df;
  border-radius: 10px;
  background: #fff;
}
.html-output code { color: #32455f; font-size: 10px; white-space: pre-wrap; word-break: break-all; }

.privacy-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.seo-section { padding: 84px 0; }
.seo-section.compact-top { padding-top: 28px; }
.section-intro { max-width: 720px; margin-bottom: 34px; }
.section-intro.centered { margin-inline: auto; text-align: center; }
.section-intro h2, .split-heading h2, .guide-copy h2, .faq-intro h2 {
  margin-top: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(34px, 4.3vw, 52px);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 800;
}
.section-intro p, .split-heading > p, .guide-copy > p, .faq-intro p {
  margin-top: 14px;
  color: #6f7f96;
  font-size: 17px;
  line-height: 1.65;
}

.format-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.format-row {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 24px;
  align-items: center;
  padding: 24px 26px;
}
.format-row + .format-row { border-top: 1px solid var(--border); }
.format-copy h3 {
  margin-top: 7px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
}
.format-copy p { margin-top: 5px; color: var(--text-secondary); font-size: 13px; }
.format-badge {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: var(--radius-full);
  background: #f2f4f7;
  color: #6f7f96;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.format-badge.recommended { background: #ecfbf3; color: #18a05e; }
.format-row > code {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  background: #f9fbff;
  color: var(--blue-700);
  font-size: 12px;
  white-space: nowrap;
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr .72fr;
  align-items: end;
  gap: 50px;
  margin-bottom: 32px;
}

.steps-grid, .mistakes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card, .mistake-card, .use-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: .25s ease;
}
.step-card:hover, .use-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
}
.step-card h3, .use-card h3 {
  margin-top: 22px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  line-height: 1.35;
}
.step-card p, .use-card p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.use-cases-section {
  position: relative;
}
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.use-icon, .related-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
}
.text-link {
  display: inline-flex;
  margin-top: 15px;
  padding: 0;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 700;
}

.guide-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.manual-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  list-style: none;
}
.manual-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}
.manual-list li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
}
.manual-list strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; }
.manual-list p { margin-top: 3px; color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.manual-list code { color: var(--blue-700); }

.syntax-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #fff, #f9fbff);
  box-shadow: var(--shadow-md);
}
.syntax-block {
  padding: 16px;
  border: 1px solid #e3e9f2;
  border-radius: 14px;
  background: #fff;
}
.syntax-block.active { border-color: #cfe0ff; background: #f7faff; }
.syntax-block small { display: block; margin-bottom: 7px; color: var(--text-muted); font-size: 10px; text-transform: uppercase; font-weight: 800; }
.syntax-block code { color: var(--blue-700); font-size: 12px; word-break: break-all; }
.syntax-arrow { padding: 8px 0; color: var(--text-muted); text-align: center; }
.rule-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}
.rule-list div { color: var(--text-secondary); font-size: 12px; }
.rule-list span { display: inline-block; width: 17px; color: #18a05e; font-weight: 900; }
.rule-list div:nth-last-child(-n+2) span { color: #dc2626; }

.mistake-card code {
  display: block;
  margin: 12px 0 10px;
  padding: 12px;
  border-radius: 10px;
  background: #f8faff;
  color: var(--blue-700);
  font-size: 11px;
  word-break: break-all;
}
.mistake-card p { color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.mistake-label {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background: #fee2e2;
  color: #dc2626;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.mistake-label.good { background: #ecfbf3; color: #18a05e; }

.related-tools { padding: 72px 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  transition: .25s ease;
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related-card h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; line-height: 1.3; }
.related-card p { margin-top: 4px; color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.related-arrow { color: var(--blue-600); font-size: 18px; }

.faq-section { padding: 82px 0; }
.faq-wrap {
  width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 58px;
  align-items: start;
}
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.faq-item[open] { border-color: #d8e3ff; background: #fafdff; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { color: var(--blue-600); font-size: 19px; font-weight: 400; }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-answer {
  padding: 0 18px 18px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
}
.faq-answer code { color: var(--blue-700); }

.cta-section { padding: 80px 0 94px; }
.cta-inner {
  padding: 54px 28px;
  border: 1px solid #e3e8f0;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 10% 15%, rgba(47,103,246,.08), transparent 28%),
    radial-gradient(circle at 90% 90%, rgba(116,87,246,.07), transparent 28%),
    #fff;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.cta-inner .marketing-eyebrow { margin-inline: auto; }
.cta-inner h2 {
  max-width: 800px;
  margin: 18px auto 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 800;
}
.cta-inner > p {
  max-width: 700px;
  margin: 18px auto 0;
  color: #6f7f96;
  font-size: 17px;
  line-height: 1.65;
}
.lcta-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.lcta-btn-primary, .lcta-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border-radius: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
}
.lcta-btn-primary { background: #2f67f6; color: #fff; box-shadow: 0 12px 26px rgba(47,103,246,.22); }
.lcta-btn-secondary { border: 1px solid #dbe2ec; color: var(--text-primary); }
.cta-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}
.cta-trust span::before { content: "✓"; color: #18a05e; margin-right: 6px; font-weight: 900; }

@media (max-width: 1024px) {
  .tool-hero-inner, .guide-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .tool-hero-inner { gap: 34px; }
  .use-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .container { width: min(100% - 40px, 1180px); }
  .tool-hero { padding: 54px 0 44px; }
  .tool-hero-inner { gap: 28px; }
  .hero-copy h1 { font-size: clamp(32px, 9vw, 44px); }
  .hero-lead { font-size: 16px; }
  .generator-card { padding: 20px; border-radius: 22px; width: 100%; max-width: 100%; }
  .generator-head { display: block; }
  .privacy-chip { display: inline-flex; margin-top: 10px; }
  .seo-section, .related-tools, .faq-section { padding: 48px 0; }
  .seo-section.compact-top { padding-top: 10px; }
  .format-row, .split-heading { grid-template-columns: 1fr; }
  .format-row { gap: 14px; }
  .split-heading { gap: 8px; }
  .steps-grid, .mistakes-grid, .use-grid { grid-template-columns: 1fr; }
  .section-intro h2, .split-heading h2, .guide-copy h2 { font-size: clamp(28px, 8vw, 34px); }
  .result-copy-row { grid-template-columns: 1fr; }
  .result-copy-row input, .live-preview code { word-break: break-all; white-space: pre-wrap; }
  .result-actions { flex-direction: column; }
  .lcta-actions { flex-direction: column; }
  .lcta-btn-primary, .lcta-btn-secondary { width: 100%; min-height: 48px; }
  .cta-inner { padding: 36px 18px; }
  .cta-inner h2 { font-size: clamp(28px, 8vw, 40px); }
  .phone-input-wrap, .field input, .field textarea, .generate-btn, .outline-btn { min-height: 48px; }
  .hero-trust { display: grid; gap: 8px; }
  .related-card { grid-template-columns: auto 1fr; gap: 12px; }
  .related-arrow { display: none; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 32px, 1180px); }
  .generator-card { padding: 16px; }
  .message-presets { display: grid; grid-template-columns: 1fr 1fr; }
  .rule-list { grid-template-columns: 1fr; }
  .format-row { padding: 20px; }
  .hero-trust { display: grid; gap: 7px; }
}
