/* Sora — shared styles unified with MSK Developers design system. */
:root {
  --bg: hsl(var(--b1));
  --bg2: hsl(var(--b2));
  --panel: hsl(var(--b2));
  --panel-solid: hsl(var(--b2));
  --line: hsl(var(--bc) / 0.12);
  --text: hsl(var(--bc));
  --muted: hsl(var(--bc) / 0.72);
  --accent: #ff8a00;
  --accent2: #00e5ff;
  --ff: #ff5e3a;
  --canopy: #00e5ff;
  --climb: #9e9e9e;
  --ok: #34c759;
  --danger: #ff453a;
  --radius: 18px;
  --font: var(--msk-font-body, system-ui, -apple-system, sans-serif);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}

[data-theme="forest"] body,
[data-theme="dark"] body,
[data-theme="dracula"] body,
[data-theme="business"] body {
  background: linear-gradient(180deg, hsl(var(--b1)) 0%, #071936 60%, #0b2552 100%) fixed;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
h1, h2, h3, h4 { font-family: var(--msk-font-display, var(--font)); line-height: 1.25; margin: 0 0 0.5em; }

.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.big { width: 88px; height: 88px; }
.avatar.ph { display: inline-flex; align-items: center; justify-content: center; background: hsl(var(--b3)); color: hsl(var(--bc)); font-weight: 800; }
.ranks li { gap: 12px; }
.ranks .rank { width: 3.2em; font-weight: 800; color: var(--accent); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badges .badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 9999px; background: rgba(255, 201, 77, .12); border: 1px solid rgba(255, 201, 77, .35); font-weight: 600; font-size: .92rem; color: var(--text); }
.badges .badge .emo { font-size: 1.1rem; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 9999px; background: rgba(255, 210, 154, .14); color: var(--accent); font-weight: 700; font-size: .9rem; }
.jcard-ph .logo { border-radius: 24%; opacity: .9; }

/* Layout */
.wrap { max-width: 1100px; margin: 0 auto; padding: 32px 16px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 20px hsl(var(--n) / 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  box-shadow: 0 12px 36px hsl(var(--n) / 0.15);
}
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 9999px; border: 0; cursor: pointer;
  font: 700 1rem var(--font); color: #1b0f00; background: linear-gradient(90deg, #ff5e3a, #ff8a00 50%, #ffc233);
  text-decoration: none; transition: transform 0.25s var(--msk-ease), box-shadow 0.25s var(--msk-ease);
}
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 138, 0, 0.35); }
.btn.secondary { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.btn.secondary:hover { background: hsl(var(--b3)); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn:disabled { opacity: 0.5; cursor: default; }

/* Isolate and protect unified navbar from global .btn overrides */
#main-nav .btn {
  font: inherit !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}
#main-nav .btn-ghost {
  background: transparent !important;
  border: none !important;
  color: inherit !important;
  padding: 0 !important;
  min-height: 2.5rem !important;
  height: 2.5rem !important;
  width: 2.5rem !important;
}
#main-nav .btn-outline {
  background: transparent !important;
  border: 1px solid hsl(var(--bc) / 0.25) !important;
  color: hsl(var(--bc)) !important;
  min-height: 2rem !important;
  height: 2rem !important;
  padding: 0 0.85rem !important;
  font-size: 0.875rem !important;
  border-radius: 9999px !important;
}
#main-nav .btn-outline:hover {
  background: hsl(var(--bc) / 0.1) !important;
  border-color: hsl(var(--bc) / 0.4) !important;
}
#main-nav .btn-primary {
  background: hsl(var(--p)) !important;
  color: hsl(var(--pc)) !important;
  border: none !important;
  min-height: 2rem !important;
  height: 2rem !important;
  padding: 0 1rem !important;
  font-size: 0.875rem !important;
}

/* Landing */
.hero {
  display: grid !important;
  gap: 36px !important;
  align-items: center !important;
  place-items: initial !important;
  grid-template-columns: 1.1fr 0.9fr !important;
  padding: 48px 16px 32px !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
}
/* Crucial DaisyUI override: prevent hero children from stacking in cell (1, 1) */
.hero > * {
  grid-column-start: auto !important;
  grid-row-start: auto !important;
  max-width: none !important;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.025em; }
.hero h1 span { background: linear-gradient(90deg, #ff5e3a, #ffc233); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; line-height: 1.6; }
.hero .art { display: flex; justify-content: center; }
.features .card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.features .card p { color: var(--muted); margin: 0; font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr !important; padding-top: 24px !important; }
  .hero .art { order: -1; }
}

/* Jump cards */
.jcard {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  box-shadow: 0 4px 20px hsl(var(--n) / 0.08); transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}
.jcard:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(255, 138, 0, 0.2); }
.jcard img, .jcard-ph { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; display: flex; align-items: center; justify-content: center; background: hsl(var(--b3)); }
.jcard-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips span { font-size: 0.8rem; padding: 3px 12px; border-radius: 9999px; background: rgba(255, 138, 0, 0.15); color: var(--accent); font-weight: 600; }

/* Forms / lists */
input[type=text], select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: hsl(var(--b1)); color: var(--text); font: 1rem var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type=text]:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.25);
  outline: none;
}
label { display: block; font-weight: 600; margin: 12px 0 6px; font-size: 0.9rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list li > .grow { flex: 1 1 220px; min-width: 0; }
.notice { padding: 14px 18px; border-radius: 14px; background: rgba(0, 229, 255, 0.08); border: 1px solid rgba(0, 229, 255, 0.3); }
.prose h2 { margin-top: 1.8em; font-size: 1.4rem; }
.prose p, .prose li { color: var(--text); opacity: 0.9; line-height: 1.65; }
.center { text-align: center; }
.empty { padding: 56px 16px; text-align: center; }

/* Landing: screenshots, what's new, FAQ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.features .card h3 span { margin-right: 6px; }
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.shots img { height: min(520px, 70vh); width: auto; border-radius: 22px; border: 1px solid var(--line); scroll-snap-align: start; flex: none; background: #000; box-shadow: 0 8px 32px hsl(var(--n) / 0.2); }
.whatsnew h3 .small { font-weight: 400; margin-left: 6px; }
.whatsnew ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.whatsnew li { margin: 6px 0; }
.faq details { margin-bottom: 12px; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 16px hsl(var(--n) / 0.06); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; font-size: 1.2rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); line-height: 1.6; }
