:root {
  --bg: #eef2f7;
  --panel: #ffffff;
  --text: #172033;
  --muted: #68758a;
  --line: #d9e1ec;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --soft: #f8fafc;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.15), transparent 32rem),
    linear-gradient(135deg, #f8fafc 0%, var(--bg) 100%);
  font-family: Arial, Helvetica, "Segoe UI", sans-serif;
}

a { color: var(--accent); }

.quick-share-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.quick-share-topbar,
.quick-share-top-controls,
.quick-share-hero-actions,
.quick-share-requirements,
.quick-share-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.quick-share-topbar {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.quick-share-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

.quick-share-brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.quick-share-top-controls { justify-content: flex-end; }

.quick-share-language-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quick-share-language-label select {
  width: auto;
  min-width: 190px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel);
}

.quick-share-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 24px;
  align-items: center;
  overflow: hidden;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.88)),
    url("../icons/sharebysquare-icon-512.png") right -150px top -170px / 440px auto no-repeat;
  box-shadow: var(--shadow);
}

.quick-share-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 7px;
  font-size: 18px;
  line-height: 1.2;
}

.quick-share-lead,
.quick-share-copy {
  color: var(--muted);
  line-height: 1.6;
}

.quick-share-lead {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: 17px;
}

.quick-share-copy {
  margin-bottom: 0;
  font-size: 14px;
}

.quick-share-link-button,
button.quick-share-link-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font: 900 14px Arial, Helvetica, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.quick-share-link-button:hover,
button.quick-share-link-button:hover {
  color: #ffffff;
  background: var(--accent-dark);
}

.quick-share-secondary {
  border-color: var(--line);
  color: var(--text);
  background: var(--panel);
}

.quick-share-secondary:hover {
  color: var(--text);
  background: var(--soft);
}

.quick-share-requirements {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.quick-share-requirements li {
  padding: 7px 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(239, 246, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
}

.quick-share-hero-visual,
.quick-share-step-figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.quick-share-hero-visual {
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.quick-share-hero-visual img,
.quick-share-step-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.quick-share-hero-visual figcaption,
.quick-share-step-figure figcaption {
  padding: 10px 12px;
  color: var(--muted);
  background: var(--panel);
  font-size: 12px;
  line-height: 1.45;
}

.quick-share-note,
.quick-share-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(37, 99, 235, 0.08);
  font-size: 13px;
  line-height: 1.5;
}

.quick-share-note { border-left: 4px solid var(--accent); }

.quick-share-section {
  margin-top: 20px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.quick-share-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.quick-share-section-head .quick-share-copy { max-width: 520px; }

.quick-share-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-share-step {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.quick-share-step-number {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.quick-share-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-share-help-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.quick-share-help-card a {
  font-weight: 900;
  text-decoration: none;
}

.quick-share-help-card a:hover { text-decoration: underline; }

.quick-share-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.quick-share-legal-links {
  justify-content: center;
  width: min(1120px, 100%);
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 12.5px;
}

.quick-share-legal-links a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.quick-share-legal-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

html[data-theme="dark"] .quick-share-hero,
html[data-theme="dark"] .quick-share-section {
  background: rgba(32, 43, 61, 0.94);
}

html[data-theme="dark"] .quick-share-requirements li {
  background: rgba(37, 99, 235, 0.16);
}

@media (max-width: 850px) {
  .quick-share-hero,
  .quick-share-step,
  .quick-share-final {
    grid-template-columns: 1fr;
  }

  .quick-share-section-head { display: block; }
}

@media (max-width: 640px) {
  body { padding: 14px; }

  .quick-share-topbar,
  .quick-share-top-controls,
  .quick-share-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-share-top-controls .quick-share-language-switcher { flex: 0 1 auto; }

  .quick-share-brand,
  .quick-share-language-label,
  .quick-share-language-label select,
  .quick-share-link-button,
  button.quick-share-link-button {
    width: 100%;
  }

  .quick-share-help-grid { grid-template-columns: 1fr; }
}
