:root {
  --bg: #eef4f8;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-muted: #f5f8fb;
  --text: #143042;
  --text-soft: #496172;
  --line: rgba(20, 48, 66, 0.12);
  --line-strong: rgba(20, 48, 66, 0.22);
  --brand: #0e7490;
  --brand-dark: #0f4c5c;
  --accent: #f59e0b;
  --accent-soft: #fff2d6;
  --danger-soft: #fef1ef;
  --danger: #cc5a4d;
  --success-soft: #e8f8ef;
  --success: #1f8a59;
  --shadow: 0 24px 60px rgba(15, 76, 92, 0.16);
  --shadow-soft: 0 16px 36px rgba(15, 76, 92, 0.1);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --site-width: min(1180px, calc(100vw - 32px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Aptos", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(14, 116, 144, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 32%),
    linear-gradient(180deg, #f6fbfd 0%, #eef4f8 42%, #e7eef4 100%);
  line-height: 1.7;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand);
}

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(238, 244, 248, 0.82);
  border-bottom: 1px solid rgba(20, 48, 66, 0.08);
}

.site-header-inner,
.page-wrap,
.site-footer-inner {
  width: var(--site-width);
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-copy small {
  display: block;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav-links a,
.mobile-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.mobile-links a:hover,
.mobile-links a[aria-current="page"] {
  background: rgba(14, 116, 144, 0.1);
  color: var(--brand-dark);
}

.mobile-nav {
  display: none;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-links {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.mobile-links a {
  display: flex;
  border-radius: 12px;
}

.page-wrap {
  padding: 36px 0 72px;
}

.hero,
.panel,
.article-layout,
.legal-panel,
.contact-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 46px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% auto auto 56%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.24), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -28% -12%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.2), transparent 72%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.1);
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.16;
  font-family: "Aptos Display", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
}

h1 {
  font-size: clamp(1.35rem, 2.2vw, 2.2rem);
}

.homepage .hero h1 {
  font-size: clamp(1.35rem, 2.2vw, 2.2rem);
  line-height: 1.08;
}

.homepage .stat-card strong {
  font-size: 1.6rem;
}

h2 {
  font-size: clamp(1.7rem, 2.2vw, 2.4rem);
}

h3 {
  font-size: 1.28rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 72ch;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  box-shadow: 0 18px 34px rgba(14, 116, 144, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border: 1px solid var(--line);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.hero-grid,
.grid-3,
.grid-2,
.card-grid,
.article-grid {
  display: grid;
  gap: 22px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
  align-items: center;
}

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

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

.panel {
  padding: 34px;
  margin-top: 26px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}

.muted {
  color: var(--text-soft);
}

.stat-card,
.info-card,
.article-card,
.faq-card,
.resource-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.stat-card strong,
.info-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--brand-dark);
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-card .meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.1);
  color: var(--brand-dark);
  font-weight: 700;
}

.pill.accent {
  background: var(--accent-soft);
  color: #9a5d00;
}

.pill.success {
  background: var(--success-soft);
  color: var(--success);
}

.article-card h3 {
  margin-bottom: 4px;
}

.article-card p:last-child,
.info-card p:last-child,
.faq-card p:last-child {
  margin-bottom: 0;
}

.article-layout {
  padding: 34px;
}

.article-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.article-side {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.08), rgba(14, 116, 144, 0.02));
  border: 1px solid rgba(14, 116, 144, 0.14);
}

.article-side h3 {
  margin-bottom: 12px;
}

.article-side ul,
.checklist,
.step-list,
.toc-list,
.resource-list {
  margin: 0;
  padding-left: 18px;
}

.article-side li,
.checklist li,
.step-list li,
.toc-list li,
.resource-list li {
  margin-bottom: 10px;
}

.step-list li::marker {
  font-weight: 800;
  color: var(--brand-dark);
}

.callout,
.warning,
.success-box {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.callout {
  background: rgba(14, 116, 144, 0.08);
  border: 1px solid rgba(14, 116, 144, 0.16);
}

.warning {
  background: var(--danger-soft);
  border: 1px solid rgba(204, 90, 77, 0.2);
}

.success-box {
  background: var(--success-soft);
  border: 1px solid rgba(31, 138, 89, 0.2);
}

.screenshot {
  margin: 28px 0;
}

.screenshot-frame {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f7fafc, #ffffff);
  box-shadow: var(--shadow-soft);
}

.screenshot-frame img {
  width: 100%;
  height: auto;
}

.screenshot figcaption {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.split-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.split-note > div {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 16px;
}

.visitor-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.visitor-stat {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.07), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(14, 116, 144, 0.14);
  box-shadow: var(--shadow-soft);
}

.visitor-stat .label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}

.visitor-stat .value {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
  font-weight: 800;
  color: var(--brand-dark);
}

.visitor-counter-note {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.faq-card h3 {
  margin-bottom: 8px;
}

.toc-list a {
  font-weight: 700;
}

.legal-panel,
.contact-panel {
  padding: 34px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 22px;
  align-items: start;
}

.support-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.support-form {
  display: grid;
  gap: 14px;
}

.support-form label {
  font-weight: 700;
}

.support-form input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font: inherit;
  color: var(--text);
}

.support-help {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.paypal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.paypal-submit img {
  display: block;
  max-width: min(100%, 240px);
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.support-disclaimer {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  font-weight: 700;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font: inherit;
  color: var(--text);
}

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-form input[type="submit"] {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.contact-form input[type="submit"][disabled] {
  opacity: 0.76;
  cursor: wait;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand);
}

.checkbox-row span {
  font-weight: 600;
  line-height: 1.5;
}

.form-note {
  margin: -2px 0 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.contact-form #url,
.contact-form #website {
  position: absolute;
  left: -9999px;
}

.site-footer {
  padding: 0 0 38px;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  color: var(--text-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.site-footer a {
  color: var(--brand-dark);
}

.footer-credit {
  flex: 1 1 100%;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(14, 116, 144, 0.12);
  text-align: right;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.footer-credit strong {
  color: var(--text);
}

.footer-credit-email {
  color: var(--brand-dark);
  font-weight: 700;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
}

.compact-list li {
  margin-bottom: 6px;
}

@media (max-width: 960px) {
  .site-header-inner {
    align-items: start;
    flex-direction: column;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav {
    display: block;
    width: 100%;
  }

  .hero,
  .panel,
  .article-layout,
  .legal-panel,
  .contact-panel {
    padding: 26px;
  }

  .hero-grid,
  .article-top,
  .grid-3,
  .grid-2,
  .card-grid,
  .article-grid,
  .visitor-stats-grid,
  .split-note,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .page-wrap {
    padding: 22px 0 48px;
  }

  .site-footer-inner {
    padding: 20px;
  }

  .hero {
    padding: 24px;
  }

  .button,
  .button-secondary {
    width: 100%;
  }
}
