/* ==========================================================================
   ReviewQR by The Strange Labs: shared design system.
   Light is the default theme; dark is opt-in via <html data-theme="dark">.
   Tokens follow thestrangelabs.in so the product reads as part of the family.
   ========================================================================== */

/* ---------- Fonts (self-hosted variable fonts) ---------- */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-tight-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-tight-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/geist-mono-latin-wght-normal.woff2) format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #FBFBFD;
  --bg-sunk: #F3F3F7;
  --surface: #FFFFFF;
  --surface-2: #F7F7FA;
  --surface-3: #EFEFF5;
  --border: #E7E7EF;
  --border-strong: #D6D6E2;
  --text: #0B0B12;
  --text-2: #3B3B48;
  --muted: #6C6C7C;
  --faint: #9A9AAB;
  --ghost: #E2E2EA;

  --accent: #6D28D9;
  --accent-2: #7C3AED;
  --accent-hover: #5B21B6;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(109, 40, 217, 0.07);
  --accent-line: rgba(109, 40, 217, 0.22);
  --pink: #EC4899;
  --grad: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);

  --ink-btn: #0B0B12;
  --ink-btn-text: #FFFFFF;
  --ink-btn-hover: #24242F;

  --ok: #047857;  --ok-soft: rgba(5, 150, 105, 0.09);
  --warn: #B45309; --warn-soft: rgba(217, 119, 6, 0.10);
  --bad: #DC2626; --bad-soft: rgba(220, 38, 38, 0.08);
  --star: #F5A524;

  --series-1: #6D28D9;
  --series-2: #EB6834;
  --grid: #EEEEF4;

  --shadow-sm: 0 1px 2px rgba(16, 16, 40, 0.05);
  --shadow-md: 0 4px 14px -4px rgba(16, 16, 40, 0.10), 0 2px 5px -2px rgba(16, 16, 40, 0.05);
  --shadow-lg: 0 18px 48px -16px rgba(16, 16, 40, 0.18), 0 6px 16px -8px rgba(16, 16, 40, 0.08);
  --shadow-accent: 0 12px 32px -10px rgba(109, 40, 217, 0.45);
  --nav-bg: rgba(251, 251, 253, 0.74);
  --dots: rgba(11, 11, 18, 0.07);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display-weight: 650;
  --display-tracking: -0.035em;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-c: cubic-bezier(0.48, 0.05, 0.35, 0.99);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08080B;
  --bg-sunk: #0C0C11;
  --surface: #121218;
  --surface-2: #16161D;
  --surface-3: #1D1D26;
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #FAFAFC;
  --text-2: #C7C7D3;
  --muted: #8C8C9D;
  --faint: #6A6A7A;
  --ghost: #24242C;

  --accent: #8B5CF6;
  --accent-2: #A78BFA;
  --accent-hover: #A78BFA;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(139, 92, 246, 0.13);
  --accent-line: rgba(139, 92, 246, 0.30);

  --ink-btn: #FAFAFC;
  --ink-btn-text: #0B0B12;
  --ink-btn-hover: #E4E4EC;

  --ok: #34D399;  --ok-soft: rgba(52, 211, 153, 0.12);
  --warn: #FBBF24; --warn-soft: rgba(251, 191, 36, 0.12);
  --bad: #F87171; --bad-soft: rgba(248, 113, 113, 0.12);

  --series-1: #8B5CF6;
  --series-2: #E8692F;
  --grid: rgba(255, 255, 255, 0.06);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 16px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  --shadow-accent: 0 12px 36px -10px rgba(124, 58, 237, 0.55);
  --nav-bg: rgba(18, 18, 24, 0.74);
  --dots: rgba(255, 255, 255, 0.07);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.022em; line-height: 1.15; color: var(--text); }
p { margin: 0; }
a { color: inherit; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--font-mono); font-size: 0.86em; letter-spacing: -0.01em; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Smooth colour change while switching theme (when View Transitions are unavailable) */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), fill .35s var(--ease) !important;
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Logo lockup: The Strange Labs mark | ReviewQR ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-family: var(--font-display); font-weight: 680; font-size: 17px; letter-spacing: -0.025em; white-space: nowrap; }
.logo .mark { width: 24px; height: auto; flex: none; transition: transform .5s var(--spring); }
.logo:hover .mark { transform: rotate(-8deg) scale(1.06); }
.logo .sep { width: 1px; height: 18px; background: var(--border-strong); flex: none; }
.logo .name b { font-weight: 680; }
.logo .name span { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--text); --b-bd: var(--border-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg); font-weight: 560; font-size: 14px; letter-spacing: -0.005em;
  cursor: pointer; text-decoration: none; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .3s var(--ease), transform .2s var(--ease), color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.primary { --b-bg: var(--accent); --b-fg: var(--accent-ink); --b-bd: var(--accent); box-shadow: var(--shadow-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ink { --b-bg: var(--ink-btn); --b-fg: var(--ink-btn-text); --b-bd: var(--ink-btn); }
.btn.ink:hover { background: var(--ink-btn-hover); border-color: var(--ink-btn-hover); }
.btn.ghost { --b-bg: transparent; --b-bd: transparent; }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.danger { color: var(--bad); }
.btn.danger.solid { --b-bg: var(--bad); --b-fg: #fff; --b-bd: var(--bad); }
.btn.pill { border-radius: 999px; }
.btn.sm { min-height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn.lg { min-height: 48px; padding: 0 22px; font-size: 15px; border-radius: 13px; }
.btn.icon { padding: 0; width: 40px; }
.btn.sm.icon { width: 32px; }
.btn.block { width: 100%; }
.btn svg.i { width: 17px; height: 17px; }
/* Label roll on hover (Samvad-style) */
.btn .roll { display: inline-grid; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.btn .roll > span { grid-area: 1 / 1; transition: transform .45s var(--ease); }
.btn .roll > span + span { transform: translateY(110%); }
.btn:hover .roll > span:first-child { transform: translateY(-110%); }
.btn:hover .roll > span + span { transform: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Theme toggle ---------- */
.theme-btn { position: relative; width: 38px; height: 38px; border-radius: 999px; border: 0; background: transparent;
  color: var(--text-2); display: grid; place-items: center; cursor: pointer; transition: background-color .2s; }
.theme-btn:hover { background: var(--accent-soft); color: var(--text); }
.theme-btn svg { position: absolute; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--spring), opacity .25s; }
.theme-btn .sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
:root[data-theme="dark"] .theme-btn .moon { opacity: 0; transform: rotate(90deg) scale(.4); }
:root[data-theme="dark"] .theme-btn .sun { opacity: 1; transform: none; }

/* ---------- Icons ---------- */
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
