/* Stellar TimeLock landing — visual identity from stellartimelock-web. */

:root {
  --bg: #05070d;
  --surface: #0d1525;
  --surface-elev: #151f32;
  --border: rgba(255,255,255,0.08);
  --text: #e7ebf3;
  --text-secondary: #a0a9bc;
  --text-tertiary: #5a6478;
  --teal: #14b8a6;
  --teal-glow: rgba(20,184,166,0.35);
  --gold: #d4af37;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif, "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol";
  --font-mono: "SF Mono", Menlo, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #0e1a2b 0%, var(--bg) 60%) fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: #4ecdc4; }

/* ---------------- Nav ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(5,7,13,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-brand-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 32px 16px;
}
.nav-links-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 32px 14px;
  border-top: 1px solid var(--border);
  background: rgba(13, 21, 37, 0.55);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}
.brand:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 8px;
}
.brand-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px var(--teal-glow));
}
.brand-name {
  min-width: 0;
  font-size: 18px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 6px 4px;
  transition: color 160ms ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle:hover {
  border-color: var(--teal);
  background: rgba(20, 184, 166, 0.08);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.nav-toggle-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.site-header.is-open .nav-toggle-icon { background: transparent; }
.site-header.is-open .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}
.site-header.is-open .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-link-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px !important;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text) !important;
  transition: border-color 160ms ease, background 160ms ease;
}
.nav-link-github:hover {
  border-color: var(--teal);
  background: rgba(20, 184, 166, 0.08);
}
.nav-link-github-icon {
  color: var(--text);
}

/* ---------------- Hero ---------------- */

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px 60px;
  text-align: center;
}
.hero-logo {
  width: 96px; height: 96px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 40px var(--teal-glow));
}
.title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  min-height: 1.1em;
}
.cursor {
  display: inline-block;
  color: var(--teal);
  animation: blink 1s infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.tagline {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin: 0 0 32px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.tagline.visible { opacity: 1; transform: translateY(0); }

.lede {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 40px;
}
.lede strong { color: var(--text); }

.cta-row {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800; font-size: 14px;
  letter-spacing: 0.2px;
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease;
}
.cta-primary {
  background: var(--teal);
  color: var(--bg);
  box-shadow: 0 8px 32px -8px var(--teal-glow);
}
.cta-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 40px -8px var(--teal-glow); color: var(--bg); }
.cta-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.cta-ghost:hover { background: var(--surface); color: var(--text); }
.cta-store-icon { margin-right: 8px; }

/* ---------------- Features ---------------- */

.features, .security {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 32px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
  text-align: center;
}
.section-title-secondary {
  font-size: clamp(22px, 3vw, 30px);
  margin-top: 64px;
}
.section-lede {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto 32px;
}
.feature-grid {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.feature:hover {
  border-color: rgba(20,184,166,0.4);
  transform: translateY(-2px);
}
.feature-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: rgba(20,184,166,0.12);
  border-radius: 10px;
  margin-bottom: 16px;
}
.feature h3 {
  color: var(--text);
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 800;
}
.feature .soon-badge,
.feature .now-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.feature .soon-badge {
  color: #c9a227;
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.4);
}
.feature .now-badge {
  color: var(--teal);
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(20, 184, 166, 0.4);
}
.feature p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

/* ---------------- Security ---------------- */

.security-bar {
  background: linear-gradient(180deg, rgba(20,184,166,0.04) 0%, rgba(20,184,166,0) 100%),
              var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.security-bar.security {
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.security-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 32px;
}
.security-header {
  margin-bottom: 32px;
}
.security-eyebrow {
  display: inline-block;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 12px;
  background: rgba(20, 184, 166, 0.12);
  border-radius: 999px;
  margin-bottom: 14px;
}
.security-title {
  margin: 0 0 16px;
}
.security-copy {
  max-width: 640px;
  margin: 0 auto 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}
.security-list {
  max-width: 560px;
  margin: 0 auto 32px;
  padding: 0;
  list-style: none;
  text-align: left;
}
.security-list li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  position: relative;
}
.security-list li:before {
  content: "\2713";
  color: var(--teal);
  position: absolute; left: 0;
  font-weight: 800;
}
.security-list code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface-elev);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gold);
}
.security-cta {
  margin-top: 8px;
}

/* ---------------- Footer ---------------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-social,
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 120ms ease;
}
.footer-link-btn:hover {
  border-color: var(--teal);
  background: rgba(20, 184, 166, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  margin: 4px 0 0;
}

.footer-copyright {
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
  max-width: 640px;
}

.hero-follow {
  margin-top: 28px;
}
.footer-follow {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.follow-label {
  margin: 0 0 10px;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 120ms ease;
}
.social-link:hover {
  border-color: var(--teal);
  background: rgba(20, 184, 166, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}
.social-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.social-link svg {
  display: block;
}

@media (max-width: 768px) {
  .site-header .brand {
    min-height: 44px;
  }
  .nav-js .nav-brand-bar {
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px 8px 16px;
  }
  .nav-js .nav-brand-bar .brand {
    flex: 1 1 auto;
    justify-content: flex-start;
  }
  .nav-js .nav-toggle {
    display: inline-flex;
  }
  .nav-js .nav-links-bar {
    display: none;
    justify-content: stretch;
    padding: 4px 12px 12px;
  }
  .nav-js .site-header.is-open .nav-links-bar {
    display: flex;
  }
  .nav-js .site-header.is-open .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }
  .nav-js .site-header.is-open .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    white-space: nowrap;
  }
  .nav-js .site-header.is-open .nav-links a.nav-link-github {
    align-self: flex-start;
    min-height: 44px;
    padding: 0 16px !important;
  }
}

@media (max-width: 640px) {
  .nav-brand-bar { padding: 10px 16px; }
  .brand-name { font-size: 16px; }
  .brand-logo { width: 30px; height: 30px; }
  .hero { padding: 40px 20px 40px; }
  .features { padding: 40px 20px; }
  .security-inner { padding: 48px 20px; }
}

/* ---------------- FAQ accordion ---------------- */

.faq {
  padding: 56px 32px;
  border-top: 1px solid var(--border);
}
.faq-inner {
  max-width: 820px;
  margin: 0 auto;
}
.faq-title {
  margin: 0 0 24px;
  text-align: center;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 160ms ease;
}
.faq-item[open] {
  border-color: var(--teal);
  background: rgba(0, 209, 178, 0.05);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }
.faq-chev {
  color: var(--teal);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  transition: transform 200ms ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-chev {
  transform: rotate(45deg);
}
.faq-body {
  padding: 0 18px 18px;
}
.faq-body p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}
.faq-body a {
  color: var(--teal);
  font-weight: 700;
}

@media (max-width: 640px) {
  .faq { padding: 40px 20px; }
}

/* ---------------- Pricing ---------------- */
.pricing {
  padding: 64px 32px 72px;
  border-top: 1px solid var(--border);
}
.pricing-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pricing-eyebrow {
  display: inline-block;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 12px;
  background: rgba(20, 184, 166, 0.12);
  border-radius: 999px;
  margin-bottom: 14px;
}
.pricing-title {
  margin: 0 0 16px;
  text-align: center;
}
.pricing-banner {
  width: 100%;
  max-width: 620px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(20, 184, 166, 0.4);
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}
.pricing-lede {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 28px;
  text-align: center;
}
.pricing-muted {
  max-width: 560px;
  margin: 0 auto 8px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.55;
  text-decoration: line-through;
  text-decoration-color: rgba(148, 163, 184, 0.55);
}
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 32px;
  max-width: 460px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.pricing-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
.pricing-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.15);
  color: var(--teal);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.pricing-cta {
  margin: 8px auto 0;
}

@media (max-width: 640px) {
  .pricing { padding: 48px 20px 56px; }
  .pricing-list li { font-size: 14px; }
}

/* ---------------- Security & Authenticity Banners ---------------- */
.banners {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px 0;
}
.security-banner,
.authenticity-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
}
.security-banner {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  margin-bottom: 16px;
}
.security-banner-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.security-banner-text {
  color: var(--text-secondary);
  margin: 0;
}
.security-banner-title {
  font-weight: 800;
  color: var(--gold);
}
.authenticity-banner {
  background: rgba(20, 184, 166, 0.06);
  border: 1px solid rgba(20, 184, 166, 0.15);
  margin-bottom: 32px;
}
.authenticity-banner-icon {
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}
.authenticity-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.authenticity-title {
  font-weight: 800;
  color: var(--text);
  font-size: 14px;
  margin: 0 0 4px;
}
.authenticity-item {
  color: var(--text-secondary);
  margin: 0;
  font-size: 13px;
}

@media (max-width: 640px) {
  .banners {
    padding: 32px 20px 0;
  }
  .security-banner,
  .authenticity-banner {
    padding: 14px 18px;
  }
}

  font-weight: 800;
  color: var(--gold);
}
.authenticity-banner {
  background: rgba(20, 184, 166, 0.06);
  border: 1px solid rgba(20, 184, 166, 0.15);
  margin-bottom: 32px;
}
.authenticity-banner-icon {
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}
.authenticity-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.authenticity-title {
  font-weight: 800;
  color: var(--text);
  font-size: 14px;
  margin: 0 0 4px;
}
.authenticity-item {
  color: var(--text-secondary);
  margin: 0;
  font-size: 13px;
}

@media (max-width: 640px) {
  .banners {
    padding: 32px 20px 0;
  }
  .security-banner,
  .authenticity-banner {
    padding: 14px 18px;
  }
}

/* ---------------- Legal subpages ---------------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}
.legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 12px;
}
.legal .legal-lede {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 32px;
}
.legal h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 32px 0 12px;
}
.legal p, .legal li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}
.legal ul,
.legal ol {
  padding-left: 20px;
}
.legal strong {
  color: var(--text);
}

@media (max-width: 640px) {
  .legal { padding: 32px 20px 64px; }
}

/* ---------------- Survey quiz (/survey/) ---------------- */

.survey {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 28px 20px 80px;
  scroll-margin-top: 96px;
}
.survey-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.survey h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 8vw, 40px);
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.15;
}
.survey h1:focus {
  outline: none;
}
#survey-results-title {
  font-size: clamp(28px, 7vw, 36px);
}
.survey-lede,
.survey-results-lede {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.5;
}
.survey-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  overflow: hidden;
}
.survey-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, var(--teal));
  transition: width 180ms ease;
}
.survey-step {
  margin: 10px 0 16px;
  color: var(--text-tertiary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.survey-card {
  padding: 22px 18px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.survey-question {
  margin: 0 0 18px;
  font-size: clamp(24px, 6.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.25;
  scroll-margin-top: 96px;
}
.survey-question:focus {
  outline: none;
}
.survey-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.survey-option {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 56px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-elev);
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 120ms ease;
}
.survey-option:hover {
  border-color: rgba(20, 184, 166, 0.45);
}
.survey-option:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.survey-option.is-selected {
  border-color: var(--teal);
  background: rgba(20, 184, 166, 0.14);
}
.survey-back,
.survey-retake {
  display: block;
  margin: 14px auto 0;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.survey-back:hover,
.survey-retake:hover { color: #4ecdc4; }
.survey-back:focus-visible,
.survey-retake:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 8px;
}
.survey-apps {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.survey-app {
  padding: 18px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.survey-app-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.survey-app-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 14px;
  background: var(--surface-elev);
}
.survey-app-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-top: 2px;
}
.survey-app-name {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}
.survey-app-desc {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.45;
}
.survey-replaces {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
}
.survey-replaces-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-secondary);
}
.survey-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.35);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.survey-store {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--teal);
  color: var(--bg);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.survey-store:hover { color: var(--bg); }
.survey-store:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.survey-badge {
  display: inline-block;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #c9a227;
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.4);
}
.survey-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.survey-form label {
  font-size: 18px;
  font-weight: 800;
}
.survey-email {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 17px;
}
.survey-email:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-color: var(--teal);
}
.survey-mail-hint,
.survey-mail-status,
.survey-sent {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.45;
}
.survey-sent {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--text);
  font-weight: 700;
}
.survey-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  cursor: pointer;
  font-size: 17px;
}
.survey-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}
.survey-privacy {
  margin: 28px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}
.survey-privacy strong {
  color: var(--gold);
}
.survey-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#survey-quiz[hidden],
#survey-results[hidden],
#survey-form[hidden],
#survey-sent[hidden],
#survey-back[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .survey-progress-fill { transition: none; }
  .survey-option { transition: none; }
}

@media (min-width: 720px) {
  .survey { padding-top: 48px; }
}
