/* QuizzyyAI landing — minimal download funnel */

:root {
  --bg: #06130e;
  --bg-elevated: #0b1d16;
  --card: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-strong: rgba(255, 255, 255, 0.16);
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.68);
  --muted-2: rgba(255, 255, 255, 0.48);
  --brand: #2ed47a;
  --brand-dark: #1ea35e;
  --brand-glow: rgba(46, 212, 122, 0.28);
  --accent: #a3ff7a;
  --danger: #f87171;
  --ok: #4ade80;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 980px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(46, 212, 122, 0.16), transparent 60%),
    radial-gradient(600px 400px at 100% 20%, rgba(163, 255, 122, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg), #040a08 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--stroke);
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

/* Header */
.site-header {
  padding: 20px 0 8px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--brand-glow);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 150ms ease;
}

.header-links a:hover,
.header-links a[aria-current='page'] {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(46, 212, 122, 0.15);
}

.hero h1 {
  margin: 0 auto 16px;
  max-width: 14ch;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero .lead {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  color: var(--text);
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 212, 122, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(46, 212, 122, 0.12);
  background: linear-gradient(180deg, rgba(46, 212, 122, 0.14), rgba(255, 255, 255, 0.04));
}

.store-btn svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-btn small {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  line-height: 1.2;
}

.store-btn span {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  text-align: left;
}

.hero-foot {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  color: var(--muted-2);
  font-size: 14px;
}

.hero-foot a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.22);
}

.hero-foot a:hover {
  color: var(--text);
}

/* Features */
.section {
  padding: 20px 0 64px;
}

.section-label {
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

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

.feature-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  background: var(--card);
  transition: background 160ms ease, border-color 160ms ease;
}

.feature-card:hover {
  background: var(--card-hover);
  border-color: var(--stroke-strong);
}

.feature-card h3 {
  margin: 14px 0 8px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(46, 212, 122, 0.28), rgba(163, 255, 122, 0.12));
  border: 1px solid rgba(46, 212, 122, 0.25);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
}

.disclaimer {
  margin-top: 48px;
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.6;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

/* Page layouts */
.page-hero {
  padding: 36px 0 10px;
}

.page-hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.page-hero .lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 58ch;
}

.crumb {
  color: var(--muted-2);
  font-size: 13px;
}

.content-panel {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  background: var(--card);
}

.support-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

/* Forms */
form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

label,
.legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke-strong);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}

textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(46, 212, 122, 0.55);
  box-shadow: 0 0 0 4px rgba(46, 212, 122, 0.12);
}

.hint {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.45;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.checkbox-row input {
  margin-top: 3px;
  flex-shrink: 0;
}

.char-count {
  color: var(--muted-2);
  font-size: 12px;
  text-align: right;
}

.pill-toggle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.18);
}

.pill-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 11px 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.pill-toggle button[aria-pressed='true'] {
  background: linear-gradient(135deg, rgba(46, 212, 122, 0.85), rgba(30, 163, 94, 0.9));
  color: #04140d;
  box-shadow: 0 8px 24px var(--brand-glow);
}

.attach-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--stroke-strong);
  background: rgba(0, 0, 0, 0.16);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.file-btn:hover:not(:disabled) {
  border-color: rgba(46, 212, 122, 0.45);
  background: rgba(46, 212, 122, 0.08);
}

.file-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.file-btn input {
  display: none;
}

.attachment-list {
  display: grid;
  gap: 8px;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.18);
}

.attachment-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.attachment-thumb.video {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.attachment-meta {
  flex: 1;
  min-width: 0;
}

.attachment-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attachment-size {
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 2px;
}

.remove-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

.remove-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  border-color: rgba(46, 212, 122, 0.35);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #04140d;
  box-shadow: 0 14px 40px var(--brand-glow);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 18px 48px rgba(46, 212, 122, 0.35);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.alert {
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.2);
}

.alert[hidden] {
  display: none;
}

.alert.ok {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.1);
}

.alert.bad {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
}

.alert b {
  display: block;
  margin-bottom: 4px;
}

.alert p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.tip-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.14);
  margin-bottom: 12px;
}

.tip-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.tip-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Legal */
.prose {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.prose h2 {
  color: var(--text);
  margin: 28px 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.prose h2:first-of-type {
  margin-top: 18px;
}

.prose h3 {
  color: var(--text);
  margin: 20px 0 8px;
  font-size: 16px;
}

.prose ul,
.prose ol {
  padding-left: 20px;
}

.prose li {
  margin: 8px 0;
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--stroke);
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.18);
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

  .header-links {
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .store-btn {
    width: 100%;
    min-width: 0;
  }

  .attach-row {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}
