/* Dropcast design system. One accent, near-black depth, editorial type. */
:root {
  --bg-primary: #0b0b0f;
  --bg-secondary: #12121a;
  --bg-elevated: #181822;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --accent: #f2b544;
  --accent-strong: #ffcf6a;
  --accent-muted: #8a6a2e;
  --accent-glow: rgba(242, 181, 68, 0.18);
  --accent-soft: rgba(242, 181, 68, 0.12);
  --text-primary: #f0ede6;
  --text-secondary: #8e8e9c;
  --text-tertiary: #5d5d6b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --danger: #ff6b6b;
  --success: #7fd28a;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Sora", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg-primary); color: var(--text-primary); font-family: var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(242, 181, 68, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(120, 90, 255, 0.07), transparent 60%),
    var(--bg-primary);
  color: var(--text-primary);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  overflow-x: clip;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #1a1205; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Layout */
.page { position: relative; display: flex; min-height: 100dvh; flex-direction: column; overflow-x: clip; }
.page > main { position: relative; z-index: 1; flex: 1; }
.wrap { position: relative; z-index: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.wrap-md { max-width: 880px; }
.wrap-sm { max-width: 640px; }
@media (min-width: 640px) { .wrap { padding-left: 24px; padding-right: 24px; } }

.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links .text-link { display: none; }
@media (min-width: 640px) { .nav-links { gap: 16px; } .nav-links .text-link { display: inline; } }
.logo { display: inline-flex; align-items: center; gap: 8px; transition: opacity 200ms; }
.logo:hover { opacity: 0.8; }
.logo-word { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.02em; }
.text-link { font-size: 0.9rem; color: var(--text-secondary); transition: color 200ms; }
.text-link:hover { color: var(--text-primary); }

.footer { padding-top: 64px; padding-bottom: 40px; }
.footer-row { display: flex; flex-direction: column; gap: 16px; font-size: 0.9rem; color: var(--text-secondary); }
.footer-row .legal { max-width: 560px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { transition: color 200ms; }
.footer-links a:hover { color: var(--text-primary); }
@media (min-width: 640px) { .footer-row { flex-direction: row; align-items: flex-start; justify-content: space-between; } }

/* Type */
.display-xl { font-size: clamp(2.4rem, 6vw, 5rem); }
.display-lg { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.display-md { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.h-xl { font-size: 1.25rem; }
.h-lg { font-size: 1.1rem; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--text-secondary); }
.faint { color: var(--text-tertiary); }
.accent { color: var(--accent); }
.danger { color: var(--danger); }
.success { color: var(--success); }
.small { font-size: 0.9rem; }
.xs { font-size: 0.78rem; }
.center { text-align: center; }
.balance { text-wrap: balance; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; }
.mb-8 { margin-bottom: 32px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-10 { padding-top: 40px; padding-bottom: 40px; }
.pb-8 { padding-bottom: 32px; }
.pb-16 { padding-bottom: 64px; }
.pt-6 { padding-top: 24px; }
.p-5 { padding: 20px; } .p-6 { padding: 24px; } .p-8 { padding: 32px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.start { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 20px; }
.gap-2 { gap: 8px; }
.grow { flex: 1; min-width: 0; }
.truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-full { width: 100%; }

/* Components */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow);
  transition: border-color 260ms var(--ease), transform 260ms var(--ease), background 260ms;
}
.card-hover:hover { border-color: var(--border-strong); background: var(--bg-card-hover); transform: translateY(-2px); }
.card-accent { box-shadow: var(--shadow), 0 0 0 1px rgba(242, 181, 68, 0.4); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.01em;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform 220ms var(--ease), box-shadow 220ms, background 220ms, border-color 220ms, color 220ms;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-primary { background: linear-gradient(135deg, var(--accent-strong), var(--accent)); color: #1a1205; box-shadow: 0 8px 28px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-1px) scale(1.01); box-shadow: 0 12px 36px rgba(242, 181, 68, 0.32); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border); color: var(--text-primary); }
.btn-ghost:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.07); transform: translateY(-1px); }
.btn-danger { background: transparent; border-color: rgba(255, 107, 107, 0.35); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 107, 107, 0.08); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.85rem; }
.input {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25); color: var(--text-primary); outline: none; font: inherit;
  transition: border-color 200ms, box-shadow 200ms;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border);
  font-size: 0.75rem; letter-spacing: 0.04em; color: var(--text-secondary); background: rgba(255, 255, 255, 0.03); cursor: default;
}
.pill-accent { color: var(--accent); border-color: rgba(242, 181, 68, 0.35); background: rgba(242, 181, 68, 0.08); }
.pill-btn { cursor: pointer; transition: color 200ms; }
.pill-btn:hover { color: var(--text-primary); }
.dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }
.list-divided > li { padding: 12px 0; border-top: 1px solid var(--border); }
.list-divided > li:first-child { border-top: 0; }
.play { display: inline-flex; width: 32px; height: 32px; flex: none; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.play svg { width: 12px; height: 12px; fill: currentColor; }
.progress { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; max-width: 320px; margin: 12px auto 0; }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-muted), var(--accent-strong)); transition: width 200ms ease-out; }
.dropzone { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 24px; text-align: center; transition: border-color 200ms, background 200ms, transform 200ms, opacity 200ms; }
.howto { counter-reset: step; display: grid; gap: 8px; }
.howto li { counter-increment: step; position: relative; padding-left: 30px; line-height: 1.5; }
.howto li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--accent); font-size: 11px; display: grid; place-items: center; }
.howto strong { color: var(--text-primary, inherit); font-weight: 500; }
.dropzone.active { border-color: var(--accent); background: rgba(242, 181, 68, 0.06); transform: scale(1.005); }
.dropzone.disabled { opacity: 0.6; }
.glow-orb { position: absolute; border-radius: 999px; filter: blur(60px); pointer-events: none; background: var(--accent-glow); }
.toast { position: fixed; bottom: 64px; left: 50%; z-index: 40; width: min(92vw, 420px); transform: translateX(-50%); padding: 12px 16px; font-size: 0.9rem; }
details.faq { padding: 16px 0; border-top: 1px solid var(--border); }
details.faq:first-of-type { border-top: 0; }
details.faq summary { display: flex; cursor: pointer; list-style: none; align-items: center; justify-content: space-between; gap: 16px; font-size: 1.1rem; transition: color 200ms; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary:hover { color: var(--accent); }
details.faq summary span { color: var(--text-tertiary); transition: transform 200ms; }
details.faq[open] summary span { transform: rotate(45deg); }
details.faq p { margin-top: 12px; max-width: 640px; font-size: 0.9rem; color: var(--text-secondary); }
article.legal section { margin-top: 24px; }
article.legal h2 { font-family: var(--font-body); font-weight: 500; font-size: 1.15rem; color: var(--text-primary); }
article.legal p, article.legal li { margin-top: 8px; color: var(--text-secondary); }
article.legal ul { list-style: disc; padding-left: 20px; }

/* Grids */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
.hero { display: grid; gap: 48px; padding-top: 40px; padding-bottom: 80px; }
.why { display: grid; gap: 40px; }
.dash-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.dash-grid > * { min-width: 0; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; align-items: center; padding-top: 80px; }
  .why { grid-template-columns: 0.8fr 1.2fr; }
  .dash-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .tilt { transform: rotate(-2deg); }
}
.hero h1 { max-width: 13ch; }
.hero .lead { max-width: 560px; font-size: 1.1rem; }
.mock { position: relative; width: 100%; max-width: 384px; margin: 0 auto; overflow: hidden; }
.mock li { display: flex; align-items: center; gap: 12px; padding: 12px; }
.pricing-badge { position: absolute; top: -12px; left: 24px; }

/* Motion */
.rise { opacity: 0; transform: translateY(14px); animation: rise 700ms var(--ease) forwards; }
.rise-1 { animation-delay: 60ms; } .rise-2 { animation-delay: 160ms; } .rise-3 { animation-delay: 260ms; } .rise-4 { animation-delay: 380ms; } .rise-5 { animation-delay: 500ms; }
.fade-in { animation: fade 320ms ease-out; }
.pulse-soft { animation: pulse-soft 1.6s ease-in-out infinite; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse-soft { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rise, .fade-in, .pulse-soft { animation: none; opacity: 1; transform: none; } }

/* Dev tools: live state panel and opt-in device preview (?dev=1) */
.debug { position: fixed; right: 12px; bottom: 12px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.debug pre { margin: 0; max-height: 50dvh; width: min(92vw, 380px); overflow: auto; padding: 12px; font-size: 11px; line-height: 1.4; color: var(--text-secondary); }
.preview-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; font-size: 0.78rem; border-bottom: 1px solid var(--border); background: rgba(18, 18, 26, 0.9); backdrop-filter: blur(8px); }
.preview-frame { margin: 0 auto; max-width: 100%; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--bg-primary); overflow: hidden; transition: width 300ms var(--ease); }
