:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #5f6368;
  --subtle: #80868b;
  --line: #e0e3e7;
  --surface: #ffffff;
  --surface-soft: #f8fafd;
  --surface-blue: #eef4ff;
  --blue: #2563eb;
  --blue-dark: #1749b0;
  --green: #16a34a;
  --green-soft: #eaf8ef;
  --yellow: #f5a524;
  --yellow-soft: #fff7e6;
  --red: #dc2626;
  --red-soft: #fff0f0;
  --shadow-small: 0 1px 2px rgba(32, 33, 36, 0.08), 0 2px 8px rgba(32, 33, 36, 0.06);
  --shadow-large: 0 18px 60px rgba(32, 33, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(224, 227, 231, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  width: min(1200px, calc(100% - 40px));
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand-symbol {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}

.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a,
.site-footer nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.site-footer nav a:hover {
  color: var(--ink);
}

.nav-links .nav-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 17px;
  background: #fff;
  color: var(--blue);
  box-shadow: var(--shadow-small);
}

.nav-links .nav-button:hover {
  border-color: #c5d4f8;
  background: var(--surface-blue);
  color: var(--blue-dark);
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 28%, rgba(37, 99, 235, 0.065), transparent 30%),
    linear-gradient(#fff, #fff 78%, var(--surface-soft));
}

.hero-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-glow-blue {
  top: 130px;
  right: -180px;
  background: var(--surface-blue);
  animation: glowDriftBlue 11s ease-in-out infinite alternate;
}

.hero-glow-yellow {
  bottom: 80px;
  left: -190px;
  background: var(--yellow-soft);
  animation: glowDriftYellow 13s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0 76px;
  text-align: center;
}

.product-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  border: 1px solid #dce6fb;
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-small);
  animation: heroRise 620ms 80ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.product-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
  animation: liveDot 2.2s ease-in-out infinite;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1200px;
  margin: 0 auto 22px;
  font-size: clamp(1.8rem, 6.55vw, 5.75rem);
  font-weight: 650;
  letter-spacing: -0.058em;
  line-height: 0.99;
  white-space: nowrap;
}

h1 span,
h1 em {
  display: block;
  animation: headlineReveal 760ms 160ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

h1 em {
  background: linear-gradient(100deg, var(--blue-dark) 0%, var(--blue) 48%, #5b8cff 72%, var(--blue) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-style: normal;
  background-size: 220% 100%;
  animation:
    headlineReveal 760ms 250ms cubic-bezier(0.16, 1, 0.3, 1) backwards,
    headlineColor 7s 1.1s ease-in-out infinite;
}

.hero-text {
  max-width: 680px;
  margin: 0 auto 38px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: -0.012em;
  animation: heroRise 680ms 340ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.download-form {
  max-width: 920px;
  margin: 0 auto;
  animation: heroRise 720ms 430ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.input-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 78px;
  border: 1px solid #d6d9de;
  border-radius: 24px;
  padding: 9px 10px 9px 22px;
  background: #fff;
  box-shadow: var(--shadow-large);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.input-shell:focus-within {
  border-color: #9ab5f5;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), var(--shadow-large);
  transform: translateY(-1px);
}

.link-symbol {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-blue);
  color: var(--blue);
  font-size: 1rem;
  font-weight: 700;
}

input[type="url"] {
  min-width: 0;
  min-height: 56px;
  border: 0;
  outline: 0;
  padding: 0 8px;
  background: transparent;
  color: var(--ink);
  font-size: 1.03rem;
}

input[type="url"]::placeholder {
  color: #9aa0a6;
}

.paste-button,
.primary-button,
.save-button,
.source-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.paste-button {
  padding: 0 14px;
  background: transparent;
  color: var(--blue);
}

.paste-button:hover {
  background: var(--surface-blue);
}

.paste-button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.primary-button,
.save-button {
  gap: 14px;
  padding: 0 21px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.24);
}

.primary-button:hover,
.save-button:hover {
  background: var(--blue-dark);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-arrow {
  font-size: 1.15rem;
  transition: transform 160ms ease;
}

.primary-button:hover .button-arrow {
  transform: translateX(4px);
}

.form-message {
  min-height: 21px;
  margin: 13px 0 0;
  color: var(--subtle);
  font-size: 0.84rem;
}

.form-message.error {
  color: var(--red);
}

.trust-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.84rem;
  list-style: none;
  animation: heroRise 680ms 520ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.trust-dot-blue { background: var(--blue); }
.trust-dot-green { background: var(--green); }
.trust-dot-yellow { background: var(--yellow); }

.status-panel {
  max-width: 920px;
  margin: 42px auto 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-small);
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  animation: heroRise 720ms 610ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.status-panel[data-state="working"] {
  border-color: #bfd0fa;
  box-shadow: 0 14px 42px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.status-panel[data-state="success"] {
  border-color: #a9dfbd;
}

.status-panel[data-state="error"] {
  border-color: #f2b8b5;
  background: #fffafa;
}

.status-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.status-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--subtle);
}

[data-state="working"] .status-indicator {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.11);
  animation: pulse 1.6s ease-in-out infinite;
}

[data-state="success"] .status-indicator {
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
}

[data-state="error"] .status-indicator {
  background: var(--red);
  box-shadow: 0 0 0 5px var(--red-soft);
}

.status-topline h2 {
  margin-bottom: 4px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.025em;
}

.status-topline p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-percent {
  color: var(--blue);
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}

[data-state="success"] .status-percent { color: var(--green); }
[data-state="error"] .status-percent { color: var(--red); }

.progress-track {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  background: #e8eaed;
  appearance: none;
  -webkit-appearance: none;
}

.progress-track::-webkit-progress-bar {
  border-radius: inherit;
  background: #e8eaed;
}

.progress-track::-webkit-progress-value,
.progress-track::-moz-progress-bar {
  border-radius: inherit;
  background: var(--blue);
  transition: width 220ms ease;
}

[data-state="success"] .progress-track::-webkit-progress-value { background: var(--green); }
[data-state="success"] .progress-track::-moz-progress-bar { background: var(--green); }
[data-state="error"] .progress-track::-webkit-progress-value { background: var(--red); }
[data-state="error"] .progress-track::-moz-progress-bar { background: var(--red); }

.progress-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
  color: var(--subtle);
  font-size: 0.7rem;
}

.progress-steps span:nth-child(2) { text-align: center; }
.progress-steps span:nth-child(3) { text-align: right; }
.progress-steps span.active { color: var(--blue); font-weight: 700; }
.progress-steps span.done { color: var(--green); font-weight: 700; }

.status-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.status-stats div {
  padding: 0 22px;
}

.status-stats div:first-child { padding-left: 0; }
.status-stats div + div { border-left: 1px solid var(--line); }

.status-stats dt {
  margin-bottom: 4px;
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-stats dd {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 700;
}

.status-stats small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.result-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 22px;
  border-radius: 20px;
  padding: 16px;
  background: var(--green-soft);
}

.result-panel[hidden] {
  display: none;
}

.result-copy {
  display: flex;
  align-items: center;
  gap: 13px;
}

.result-check {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.result-copy strong {
  display: block;
}

.result-copy p {
  margin: 2px 0 0;
  color: #376744;
  font-size: 0.82rem;
}

.save-button {
  min-height: 46px;
  border-radius: 14px;
  background: var(--green);
  box-shadow: none;
  white-space: nowrap;
}

.save-button:hover {
  background: #117e38;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.22);
}

.log-panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.log-panel summary {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}

#download-log {
  max-height: 180px;
  overflow: auto;
  margin: 13px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
}

.benefit-strip {
  display: grid;
  width: min(1200px, calc(100% - 40px));
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.benefit-strip article {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 32px;
}

.benefit-strip article:first-child { padding-left: 0; }
.benefit-strip article + article { border-left: 1px solid var(--line); }

.benefit-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  font-size: 0.72rem;
  font-weight: 800;
}

.benefit-icon-blue { background: var(--surface-blue); color: var(--blue); }
.benefit-icon-green { background: var(--green-soft); color: var(--green); }
.benefit-icon-yellow { background: var(--yellow-soft); color: #9a6500; }

.benefit-strip strong {
  display: block;
  font-size: 0.94rem;
}

.benefit-strip p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.section-shell,
.open-source-section,
.site-footer {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.section-shell {
  padding: 112px 0;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-heading h2,
.privacy-copy h2,
.open-source-section h2 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  font-weight: 620;
  letter-spacing: -0.052em;
  line-height: 1.04;
}

.section-heading > p:last-child,
.privacy-copy > p,
.open-source-section > div > p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  min-height: 292px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.step-card:hover {
  box-shadow: 0 14px 40px rgba(32, 33, 36, 0.08);
  transform: translateY(-3px);
}

.step-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 62px;
  border-radius: 15px;
  font-weight: 800;
}

.step-blue { background: var(--surface-blue); color: var(--blue); }
.step-yellow { background: var(--yellow-soft); color: #9a6500; }
.step-green { background: var(--green-soft); color: var(--green); }

.step-card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.step-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.privacy-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  border-top: 1px solid var(--line);
}

.privacy-visual {
  position: relative;
  min-height: 430px;
  border-radius: 36px;
  padding: 58px 44px;
  background: var(--surface-soft);
  overflow: hidden;
}

.privacy-visual::before,
.privacy-visual::after {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  content: "";
}

.privacy-visual::before {
  top: -100px;
  left: -80px;
  background: var(--surface-blue);
}

.privacy-visual::after {
  right: -70px;
  bottom: -100px;
  background: var(--green-soft);
}

.flow-node {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 13px;
  align-items: center;
  max-width: 250px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 17px;
  background: #fff;
  box-shadow: var(--shadow-small);
}

.flow-node > span {
  display: grid;
  width: 38px;
  height: 38px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 12px;
  font-weight: 800;
}

.flow-node small {
  color: var(--muted);
}

.flow-browser > span { background: var(--surface-blue); color: var(--blue); }
.flow-kommodo { margin-left: auto; }
.flow-kommodo > span { background: var(--yellow-soft); color: #9a6500; }

.flow-line {
  position: relative;
  z-index: 1;
  width: calc(100% - 160px);
  margin: 38px auto;
  color: var(--blue);
  text-align: center;
}

.flow-line span {
  position: relative;
  z-index: 1;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface-soft);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.flow-line i {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  border-top: 2px dashed #9ab5f5;
}

.privacy-visual > p {
  position: relative;
  z-index: 1;
  margin: 42px 0 0;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.privacy-copy > p {
  margin-bottom: 26px;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.91rem;
}

.check-list span {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 800;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: clamp(44px, 8vw, 120px);
  border-top: 1px solid var(--line);
}

.compact-heading {
  margin-bottom: 0;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary span {
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 160ms ease;
}

.faq-list details[open] summary span { transform: rotate(45deg); }

.faq-list details p {
  max-width: 680px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-more,
.section-link a,
.all-guides-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.faq-more {
  padding-top: 22px;
}

.section-link {
  margin: 28px 0 0;
}

.resource-section {
  border-top: 1px solid var(--line);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.resource-grid > a {
  position: relative;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.resource-grid > a:hover {
  border-color: #c5d4f8;
  box-shadow: 0 14px 40px rgba(32, 33, 36, 0.08);
  transform: translateY(-3px);
}

.resource-grid span {
  display: block;
  margin-bottom: 62px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.resource-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.resource-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.resource-grid i {
  position: absolute;
  right: 28px;
  bottom: 24px;
  color: var(--blue);
  font-size: 1.2rem;
  font-style: normal;
}

.all-guides-link {
  margin-top: 26px;
}

.open-source-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 96px;
  border-radius: 36px;
  padding: 60px;
  background: var(--ink);
  color: #fff;
}

.open-source-section .eyebrow { color: #a9c2ff; }
.open-source-section h2 { margin-bottom: 12px; }
.open-source-section > div > p:last-child { margin-bottom: 0; color: #bdc1c6; }

.source-button {
  flex: 0 0 auto;
  gap: 14px;
  padding: 0 22px;
  background: #fff;
  color: var(--ink);
}

.source-button:hover {
  background: var(--surface-blue);
  transform: translateY(-1px);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: 38px 0;
}

.site-footer nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-brand strong,
.footer-brand small {
  display: block;
}

.footer-brand small,
.legal {
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-brand small a {
  text-underline-offset: 2px;
}

.legal {
  grid-column: 1 / -1;
  margin: 0;
}

/* Resource and policy pages */

.article-page {
  background: #fff;
}

.article-main {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 26px 0 0;
  color: var(--subtle);
  font-size: 0.78rem;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a[aria-current="page"] {
  color: var(--blue);
}

.article-hero {
  max-width: 980px;
  padding: 76px 0 68px;
}

.article-page h1 {
  max-width: 980px;
  margin: 0 0 28px;
  font-size: clamp(3.1rem, 7vw, 6rem);
  line-height: 0.98;
  white-space: normal;
}

.article-intro {
  max-width: 800px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  color: var(--subtle);
  font-size: 0.78rem;
}

.article-byline span + span::before {
  margin-right: 22px;
  color: #c7c9cc;
  content: "•";
}

.article-byline a {
  color: var(--blue);
  text-underline-offset: 2px;
}

.article-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  gap: clamp(54px, 9vw, 130px);
  justify-content: start;
  border-top: 1px solid var(--line);
  padding: 64px 0 108px;
}

.article-toc {
  position: sticky;
  top: 28px;
  align-self: start;
}

.article-toc > strong {
  display: block;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.article-toc nav {
  display: grid;
  gap: 12px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.article-toc nav a {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.article-toc nav a:hover {
  color: var(--blue);
}

.toc-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--surface-blue);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.article-content {
  min-width: 0;
}

.article-content section {
  margin-bottom: 58px;
  scroll-margin-top: 28px;
}

.article-content section:last-child {
  margin-bottom: 0;
}

.article-content h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.article-content h3 {
  margin: 32px 0 12px;
  font-size: 1.15rem;
}

.article-content p,
.article-content li {
  color: #45484d;
  font-size: 1rem;
  line-height: 1.78;
}

.article-content p {
  margin-bottom: 19px;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 11px;
  margin: 0 0 24px;
  padding-left: 23px;
}

.article-content a {
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content code {
  border-radius: 6px;
  padding: 2px 6px;
  background: var(--surface-soft);
  color: #394457;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
}

.article-note {
  margin: 28px 0;
  border-left: 4px solid var(--blue);
  border-radius: 0 16px 16px 0;
  padding: 20px 22px;
  background: var(--surface-blue);
  color: #394457;
  font-size: 0.92rem;
  line-height: 1.65;
}

.article-steps {
  counter-reset: article-step;
  padding-left: 0 !important;
  list-style: none;
}

.article-steps li {
  position: relative;
  min-height: 42px;
  padding-left: 58px;
  counter-increment: article-step;
}

.article-steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-blue);
  color: var(--blue);
  content: counter(article-step);
  font-size: 0.8rem;
  font-weight: 800;
}

.tech-flow {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 18px;
  padding: 20px;
  background: var(--surface-soft);
}

.tech-flow span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #394457;
  font-size: 0.72rem;
  font-weight: 700;
}

.tech-flow i {
  color: var(--blue);
  font-style: normal;
}

.table-scroll {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.data-table caption {
  padding: 13px 15px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.data-table th,
.data-table td {
  padding: 13px 15px;
  color: #45484d;
  font-size: 0.77rem;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--surface-soft);
  color: var(--ink);
}

.data-table th + th,
.data-table td + td {
  border-left: 1px solid var(--line);
}

.data-table tbody tr {
  border-top: 1px solid var(--line);
}

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

.guide-card {
  position: relative;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  background: #fff;
  color: inherit !important;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.guide-card:hover {
  border-color: #c5d4f8;
  box-shadow: 0 12px 32px rgba(32, 33, 36, 0.08);
  transform: translateY(-2px);
}

.guide-card > span {
  display: block;
  margin-bottom: 38px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
}

.guide-card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 1.08rem;
}

.guide-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.guide-card i {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: var(--blue);
  font-style: normal;
}

.article-faq {
  border-top: 1px solid var(--line);
}

.article-faq details {
  border-bottom: 1px solid var(--line);
}

.article-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary span { color: var(--blue); font-size: 1.4rem; font-weight: 400; transition: transform 160ms ease; }
.article-faq details[open] summary span { transform: rotate(45deg); }
.article-faq details p { margin: 0 0 22px; font-size: 0.92rem; }

.related-section {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding: 74px 0 96px;
}

.related-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
}

.related-grid {
  display: grid;
  gap: 10px;
}

.related-grid a {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.related-grid a:hover {
  border-color: #c5d4f8;
  background: var(--surface-blue);
}

.related-grid span {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.related-grid strong {
  font-size: 0.88rem;
}

.related-grid i {
  color: var(--blue);
  font-style: normal;
}

.article-footer {
  width: min(1200px, calc(100% - 40px));
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.38);
  outline-offset: 3px;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.03); }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headlineReveal {
  from {
    opacity: 0;
    transform: translateY(0.38em);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes headlineColor {
  0%, 30%, 100% { background-position: 0% 50%; }
  60%, 80% { background-position: 100% 50%; }
}

@keyframes liveDot {
  0%, 100% { box-shadow: 0 0 0 4px var(--green-soft); }
  50% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.08); }
}

@keyframes glowDriftBlue {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-34px, 28px, 0) scale(1.12); }
}

@keyframes glowDriftYellow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(36px, -24px, 0) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  .hero-content { padding-top: 68px; }
  .benefit-strip { grid-template-columns: 1fr; }
  .benefit-strip article { padding: 20px 0; }
  .benefit-strip article + article { border-top: 1px solid var(--line); border-left: 0; }
  .step-grid { grid-template-columns: 1fr; }
  .step-card { min-height: auto; }
  .step-number { margin-bottom: 42px; }
  .privacy-section,
  .faq-section { grid-template-columns: 1fr; }
  .privacy-visual { order: 2; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-grid > a { min-height: 220px; }
  .article-layout { grid-template-columns: 1fr; gap: 42px; }
  .article-toc { position: static; }
  .article-toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc-download { max-width: 260px; }
  .related-section { grid-template-columns: 1fr; }
  .open-source-section { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
  .nav-shell { width: min(100% - 28px, 1200px); min-height: 64px; }
  .nav-links > a:not(.nav-button) { display: none; }
  .brand { font-size: 0.94rem; }
  .brand-symbol { width: 33px; height: 33px; }
  .nav-links .nav-button { min-height: 36px; padding: 7px 14px; }
  .hero-content,
  .benefit-strip,
  .section-shell,
  .open-source-section,
  .site-footer,
  .article-main,
  .article-footer { width: min(100% - 28px, 1200px); }
  .hero { min-height: auto; }
  .hero-content { padding: 58px 0 62px; }
  h1 { font-size: clamp(1.8rem, 8vw, 3.8rem); }
  .hero-text { margin-bottom: 28px; font-size: 1rem; }
  .input-shell {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-radius: 22px;
    padding: 8px 9px 8px 16px;
  }
  .link-symbol { display: none; }
  .paste-button { padding: 0 10px; }
  .primary-button { grid-column: 1 / -1; width: 100%; margin-top: 1px; }
  .trust-list { align-items: flex-start; flex-direction: column; gap: 9px; width: max-content; margin: 20px auto 0; }
  .status-panel { margin-top: 30px; border-radius: 22px; padding: 21px; }
  .status-topline { gap: 14px; }
  .status-percent { font-size: 1.55rem; }
  .status-stats { grid-template-columns: repeat(2, 1fr); }
  .status-stats div { padding: 0 14px; }
  .status-stats div:nth-child(3) { display: none; }
  .result-panel { align-items: stretch; flex-direction: column; }
  .save-button { width: 100%; }
  .section-shell { padding: 78px 0; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2,
  .privacy-copy h2,
  .open-source-section h2 { font-size: clamp(2.2rem, 11vw, 3.35rem); }
  .article-page h1 { font-size: clamp(2.65rem, 13vw, 4.4rem); }
  .article-hero { padding: 54px 0 46px; }
  .article-layout { padding: 44px 0 76px; }
  .article-toc nav { grid-template-columns: 1fr; }
  .article-content h2 { font-size: clamp(1.75rem, 8vw, 2.35rem); }
  .guide-grid { grid-template-columns: 1fr; }
  .data-table { min-width: 620px; }
  .tech-flow { margin-right: -14px; margin-left: -14px; border-radius: 0; }
  .related-grid a { grid-template-columns: 58px 1fr auto; }
  .article-byline span + span::before { display: none; }
  .step-card { border-radius: 22px; padding: 25px; }
  .privacy-visual { min-height: 370px; border-radius: 28px; padding: 42px 24px; }
  .flow-node { max-width: 220px; }
  .flow-line { width: calc(100% - 80px); }
  .open-source-section { margin-bottom: 64px; border-radius: 28px; padding: 38px 28px; }
  .source-button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { flex-wrap: wrap; justify-content: flex-start; gap: 18px; }
  .legal { grid-column: auto; }
}

@media (max-width: 430px) {
  .brand > span:last-child { max-width: 112px; line-height: 1.08; }
  .input-shell { grid-template-columns: minmax(0, 1fr) auto; }
  input[type="url"] { padding-left: 4px; font-size: 0.94rem; }
  .progress-steps { font-size: 0.62rem; }
  .status-stats dd { font-size: 0.92rem; }
}
