:root {
  --page-width: 930px;
  --page-gutter: 48px;
  --page-gutter-mobile: 32px;
  --accent: #8b4177;
  --accent-dark: #743665;
  --accent-deep: #4f2b74;
  --text: #111;
  --muted: #555;
  --border: #dcdcdc;
  --border-soft: #ededed;
  --panel-soft: #f7f7f7;
  --ok: #17643c;
  --err: #9d2843;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.45;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

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

.wrap {
  width: min(var(--page-width), calc(100% - var(--page-gutter)));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #e7e7e7;
}

.site-masthead {
  background: var(--accent);
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  background: #fff;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 600;
}

.site-menu-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-soft);
}

.site-menu-bar .wrap {
  position: relative;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  min-height: 42px;
}

.nav-links a {
  position: relative;
  padding: 13px 0 12px;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: color 0.18s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* Common UI */
.actions,
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn:hover,
.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn.secondary,
.btn.ghost,
.button.secondary,
.button.ghost {
  background: #fff;
  border-color: #bdb7c7;
  color: #111;
}

.btn.secondary:hover,
.btn.ghost:hover,
.button.secondary:hover,
.button.ghost:hover {
  background: #f4f4f4;
  border-color: var(--accent);
  color: #111;
}

.label,
.tool-form .label,
.tool-page .label {
  display: block;
  margin: 14px 0 7px;
  color: #111;
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #96a0bc;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(139, 65, 119, 0.72);
  box-shadow: 0 0 0 3px rgba(139, 65, 119, 0.12);
}

.status {
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid #dedede;
  border-radius: 6px;
  background: var(--panel-soft);
  color: #444;
  font-size: 14px;
}

.status.ok {
  color: var(--ok);
  background: #f1faf5;
  border-color: #bcdcc9;
}

.status.err {
  color: var(--err);
  background: #fff4f6;
  border-color: #ecc5ce;
}

.note,
.muted,
.meta {
  color: var(--muted);
}

.muted {
  font-size: 14px;
}

.meta {
  font-size: 13px;
}

.code,
pre {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
  color: #222;
  white-space: pre-wrap;
  word-break: break-word;
}

.site-footer {
  padding: 18px 0 48px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .card,
.tool-panel,
.download-card,
.verify-command,
.service-option,
.service-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.site-footer .card {
  padding: 18px 20px;
  background: #f6f6f6;
  border-color: #e4e4e4;
}

/* Auth and paid services */
.auth-toggle-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.auth-toggle-btn {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel-soft);
  color: #111;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.auth-toggle-btn.active,
.tool-page .auth-toggle-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.auth-section,
.service-inline-panel {
  display: none;
}

.auth-section.active,
.service-inline-panel.open {
  display: block;
}

.service-grid,
.service-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

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

.service-option,
.service-row {
  padding: 16px;
}

.service-option.selected,
.service-row.selected {
  border-color: rgba(139, 65, 119, 0.56);
  box-shadow: inset 3px 0 0 var(--accent);
  background: #fbf7fa;
}

.service-option-head,
.service-row-main,
.service-row-controls,
.paid-manager-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.service-option-head {
  gap: 10px;
  margin-bottom: 10px;
}

.service-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111;
  font-weight: 700;
}

.service-check input,
.tool-page .service-check input,
.tool-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.price-chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.price-chip {
  padding: 6px 10px;
  border: 1px solid rgba(139, 65, 119, 0.24);
  background: #fbf7fa;
  color: var(--accent-dark);
}

.summary-total,
.service-inline-inner,
.service-buy-bar {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 16px;
}

.summary-total {
  margin-top: 16px;
}

.selected-services {
  margin: 10px 0 0;
  padding-left: 18px;
}

.selected-services li + li {
  margin-top: 6px;
}

.auth-note {
  margin-top: 12px;
}

.paid-layout {
  grid-template-columns: minmax(0, 1fr) 270px;
}

.paid-service-picker {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
}

.paid-subhead h2,
.paid-manager-head h2,
.service-inline-inner h2,
.paid-install h2 {
  margin: 0;
  color: #111;
  font-size: 18px;
  line-height: 1.2;
}

.paid-subhead p,
.service-option p,
.service-inline-inner p,
.service-row-desc {
  margin: 8px 0 0;
  color: #555;
  font-size: 14px;
  line-height: 1.55;
}

.service-option p {
  margin: 0;
}

.paid-summary,
.service-buy-bar.visible {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px 18px;
  align-items: start;
}

.paid-summary .selected-services,
.service-buy-bar .selected-services {
  margin-top: 0;
}

.paid-summary .auth-note {
  grid-column: 1 / -1;
  margin: 0;
}

.paid-manager {
  margin-top: 32px;
}

.paid-manager-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.paid-manager-head p {
  margin: 8px 0 0;
}

.service-list {
  margin-top: 18px;
}

.service-row {
  padding: 18px;
}

.service-kicker {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.service-row-title {
  margin: 0;
  color: #111;
  font-size: 19px;
  line-height: 1.2;
}

.service-row-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #d1d1d1;
  background: #f4f4f4;
  color: #555;
  text-transform: uppercase;
}

.status-pill.active {
  border-color: #bcdcc9;
  background: #f1faf5;
  color: var(--ok);
}

.status-pill.inactive {
  border-color: #d8d8d8;
  background: var(--panel-soft);
  color: #555;
}

.service-row-controls {
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.service-inline-inner {
  margin-top: 16px;
  border-color: #e2e2e2;
  padding: 18px;
}

.paid-install {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e2e2e2;
}

.service-buy-bar {
  display: none;
  margin-top: 18px;
  border-color: rgba(139, 65, 119, 0.26);
  background: #fbf7fa;
}

.service-buy-bar.visible {
  grid-template-columns: 150px minmax(0, 1fr) auto;
}

.service-buy-bar .auth-note {
  grid-column: 1 / 3;
  margin: 0;
}

.service-buy-actions {
  grid-row: 1 / span 2;
  grid-column: 3;
  align-self: center;
}

/* Home page */
.home-page {
  background: #fff;
}

.home-hero {
  padding: 54px 0 28px;
}

.home-hero-grid,
.home-intro-grid,
.home-feature-grid,
.home-steps,
.home-audience-grid,
.tool-layout,
.tool-field-grid,
.download-card-grid,
.verify-command-grid {
  display: grid;
}

.home-hero-grid {
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.mail-scene {
  height: 245px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mail-scene img {
  width: min(100%, 300px);
  height: auto;
}

.home-hero-copy h1 {
  max-width: 560px;
  margin: 0;
  color: #111;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.08;
}

.home-hero-copy h1 span {
  color: var(--accent);
  font-weight: 800;
}

.home-actions {
  gap: 9px;
}

.home-intro {
  padding: 18px 0 44px;
}

.home-intro-grid {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
}

.home-intro h2,
.home-section-head h2,
.home-feature h2,
.download-section-head h2,
.tool-hero h1,
.tool-note h2,
.download-card-head h3,
.verify-command h3,
.tool-form h2 {
  margin: 0;
  color: #111;
  line-height: 1.2;
}

.home-intro h2 {
  font-size: 22px;
  line-height: 1.14;
}

.home-intro p,
.home-feature p,
.home-steps p,
.audience-list p,
.tool-hero p,
.tool-note p,
.tool-note li,
.download-section-head p,
.download-card-head p,
.download-meta dd,
.verify-steps {
  color: #222;
  font-size: 14px;
  line-height: 1.55;
}

.home-intro p {
  margin: 0;
  font-size: 16px;
}

.home-feature-section {
  padding: 4px 0 60px;
}

.home-feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 68px;
  row-gap: 58px;
}

.home-feature h2 {
  margin-top: 14px;
  font-size: 18px;
}

.home-feature p {
  margin: 14px 0 0;
  line-height: 1.65;
}

.home-visual {
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-workflow {
  padding: 50px 0 52px;
  background: #f6f6f6;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.home-section-head h2 {
  font-size: 25px;
  line-height: 1.18;
}

.home-section-head p {
  margin: 10px 0 0;
  color: #333;
  font-size: 15px;
}

.home-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin-top: 28px;
}

.home-steps article {
  padding-top: 14px;
  border-top: 3px solid var(--accent);
}

.home-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.home-steps h3 {
  margin: 0;
  color: #111;
  font-size: 16px;
  line-height: 1.25;
}

.home-steps p {
  margin: 10px 0 0;
}

.home-audience {
  padding: 54px 0 72px;
}

.home-audience-grid {
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.audience-list {
  border-top: 1px solid #d9d9d9;
}

.audience-list p {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid #d9d9d9;
}

.audience-list strong {
  color: #111;
}

/* Shared utility pages */
.tool-page {
  padding: 48px 0 72px;
  background: #fff;
  color: #111;
}

.tool-hero {
  max-width: 690px;
  margin: 0 0 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}

.tool-hero h1 {
  font-size: 32px;
  line-height: 1.12;
}

.tool-hero p {
  margin: 10px 0 0;
  color: #333;
  font-size: 16px;
}

.tool-layout {
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 38px;
  align-items: start;
}

.tool-panel {
  padding: 24px;
}

.tool-form h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

.tool-page .actions {
  margin-top: 20px;
}

.tool-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.tool-page .auth-toggle-btn {
  flex: none;
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: var(--panel-soft);
  color: #111;
  font-size: 13px;
}

.tool-page .auth-toggle-btn:last-child {
  border-right: 0;
}

.tool-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tool-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #333;
  font-size: 14px;
}

.tool-small-note {
  margin: 12px 0 0;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
}

.tool-note {
  padding: 18px 0 0;
  border-top: 3px solid var(--accent);
}

.tool-note h2 {
  font-size: 18px;
}

.tool-note p {
  margin: 10px 0 0;
  color: #333;
}

.tool-note ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.tool-note li {
  color: #333;
}

.tool-note li + li {
  margin-top: 8px;
}

.hp-wrap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Download page */
.download-section {
  padding: 30px 0;
  border-top: 1px solid var(--border-soft);
}

.download-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.download-section-head {
  max-width: 700px;
  margin-bottom: 20px;
}

.download-section-head h2 {
  font-size: 24px;
  line-height: 1.18;
}

.download-section-head p {
  margin: 9px 0 0;
  color: #333;
  font-size: 15px;
}

.download-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.download-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px;
}

.download-card-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.download-card-head h3 {
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.download-card-head p {
  margin: 7px 0 0;
  color: #555;
  font-size: 13px;
}

.download-meta {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
}

.download-meta div,
.download-meta dd {
  min-width: 0;
}

.download-meta dt {
  margin: 0 0 5px;
  color: #555;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.download-meta dd {
  margin: 0;
  color: #111;
}

.download-meta code {
  display: block;
  max-width: 100%;
  margin-bottom: 10px;
  padding: 9px 10px;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: #f8f8f8;
  color: #222;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.download-page .actions {
  margin-top: auto;
  padding-top: 18px;
}

.download-page .compact {
  min-height: 32px;
  padding: 7px 10px;
}

.download-page [aria-disabled="true"] {
  opacity: 0.58;
  cursor: not-allowed;
}

.download-payment-card {
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid rgba(139, 65, 119, 0.26);
  border-radius: 8px;
  background: #fbf7fa;
}

.download-payment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.download-payment-head h3 {
  margin: 0;
  color: #111;
  font-size: 18px;
  line-height: 1.25;
}

.download-payment-head p {
  margin: 7px 0 0;
  color: #555;
  font-size: 14px;
}

.download-payment-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.download-payment-actions {
  margin-top: 14px;
  padding-top: 0;
}

.download-payment-action-wrap {
  position: relative;
  display: inline-flex;
}

.button.unavailable,
.button.unavailable:hover {
  background: #eceef1;
  border-color: #c7cbd1;
  color: #777f8b;
  cursor: not-allowed;
}

.coming-soon-bubble {
  position: absolute;
  z-index: 4;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, -4px);
  padding: 7px 12px;
  border: 1px solid #d4d8df;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
  color: #333;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.coming-soon-bubble::after {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 1px solid #d4d8df;
  border-left: 1px solid #d4d8df;
  background: #fff;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.coming-soon-bubble.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.download-payment-note {
  margin: 14px 0 0;
  color: #333;
  font-size: 14px;
  line-height: 1.55;
}

.paypal-payment-panel,
.curvy-payment-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(139, 65, 119, 0.18);
}

.paypal-payment-steps {
  margin: 0;
  padding-left: 20px;
  color: #333;
  font-size: 14px;
  line-height: 1.55;
}

.paypal-payment-steps li + li {
  margin-top: 6px;
}

.paypal-payment-submit {
  margin-top: 14px;
  padding-top: 0;
}

.curvy-network-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.curvy-network-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.curvy-network-option:hover,
.curvy-network-option.selected {
  border-color: rgba(139, 65, 119, 0.58);
  background: #fff;
  box-shadow: inset 3px 0 0 var(--accent);
}

.curvy-network-option span {
  min-width: 0;
}

.curvy-network-option strong,
.curvy-network-option small {
  display: block;
}

.curvy-network-option strong {
  font-size: 14px;
  line-height: 1.25;
}

.curvy-network-option small {
  margin-top: 3px;
  color: #555;
  font-size: 12px;
}

.curvy-network-token {
  justify-self: end;
}

.curvy-payment-submit {
  margin-top: 14px;
  padding-top: 0;
}

.verify-steps {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding-left: 21px;
}

.verify-command-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.flash-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.verify-command {
  min-width: 0;
  padding: 18px;
}

.verify-command h3 {
  margin-bottom: 14px;
  font-size: 16px;
}

.verify-command .meta {
  margin: 12px 0 6px;
  color: #555;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.verify-command pre {
  border-radius: 6px;
  background: #f8f8f8;
  border-color: #e2e2e2;
  color: #222;
  font-size: 12px;
  line-height: 1.5;
}

.download-warning {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  background: #f8f8f8;
}

.setup-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #111;
}

.video-card .actions {
  margin-top: 0;
}

.download-page .download-card-grid,
.download-page .verify-command-grid {
  grid-template-columns: 1fr;
}

.download-panel .download-section {
  padding: 0 0 28px;
}

.download-panel .download-section + .download-section {
  padding-top: 28px;
}

.download-panel .download-section:last-child {
  padding-bottom: 0;
}

.download-note {
  /* position: sticky; */
  top: 130px;
}

/* Responsive */
@media (max-width: 920px) {
  .service-grid,
  .download-card-grid,
  .verify-command-grid,
  .flash-guide-grid {
    grid-template-columns: 1fr;
  }

  .paid-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .paid-summary,
  .service-buy-bar.visible {
    grid-template-columns: 1fr;
  }

  .service-buy-bar .auth-note,
  .service-buy-actions {
    grid-column: auto;
    grid-row: auto;
  }

  .service-row-main,
  .service-row-controls,
  .download-payment-head {
    flex-direction: column;
    align-items: stretch;
  }

  .download-payment-badges {
    justify-content: flex-start;
  }

  .service-row-side {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  :root {
    --page-width: 680px;
    --page-gutter: var(--page-gutter-mobile);
  }

  .brand {
    font-size: 28px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    z-index: 1002;
    flex: 0 0 auto;
  }

  .nav-links {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      transform 0.25s ease,
      padding 0.25s ease;
  }

  .nav-links.open {
    max-height: 420px;
    padding: 10px 0;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-links a.active::after,
  .nav-links a:hover::after {
    left: 16px;
    right: 16px;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .home-hero {
    padding: 34px 0 22px;
  }

  .home-hero-grid,
  .home-intro-grid,
  .home-feature-grid,
  .home-steps,
  .home-audience-grid,
  .tool-layout,
  .tool-field-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-grid {
    gap: 18px;
  }

  .mail-scene {
    height: 218px;
    max-width: 330px;
  }

  .home-hero-copy h1 {
    font-size: 24px;
  }

  .home-intro-grid,
  .home-audience-grid,
  .tool-layout {
    gap: 20px;
  }

  .home-feature-grid {
    row-gap: 44px;
  }

  .home-visual {
    height: 170px;
  }

  .tool-page {
    padding: 34px 0 56px;
  }

  .tool-hero h1 {
    font-size: 28px;
  }

  .download-section-head h2 {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 36px;
    height: 36px;
  }

  .home-hero-copy h1 {
    font-size: 22px;
  }

  .home-actions,
  .download-page .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-actions .btn,
  .download-page .btn,
  .download-page .button {
    width: 100%;
  }

  .home-feature h2 {
    font-size: 18px;
  }

  .home-feature p,
  .home-steps p,
  .audience-list p {
    font-size: 14px;
  }

  .tool-panel {
    padding: 18px;
  }

  .tool-tabs {
    grid-template-columns: 1fr;
  }

  .tool-page .auth-toggle-btn {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .tool-page .auth-toggle-btn:last-child {
    border-bottom: 0;
  }

  .download-card,
  .verify-command,
  .download-payment-card {
    padding: 16px;
  }

  .curvy-network-option {
    grid-template-columns: 1fr;
  }

  .curvy-network-token {
    justify-self: start;
  }
}

.tool-panel .download-section {
  padding: 24px 0;
  border-top: 1px solid #ededed;
}

.tool-panel .download-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.tool-panel .download-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tool-panel .download-card {
  flex: 1 1 260px;
  min-width: 0;
  padding: 16px;
}

.tool-panel .download-card-head h3 {
  font-size: 16px;
}

.tool-panel .download-card-head p,
.tool-panel .download-meta dd,
.tool-panel .download-meta code {
  font-size: 12px;
}

.tool-panel .download-page .actions,
.tool-panel .download-card .actions {
  gap: 8px;
}

@media (max-width: 860px) {
  .tool-panel .download-card {
    flex-basis: 100%;
  }
}
