/* BinThere marketing site (Eleventy)
   - Mobile-first
   - Light/dark via prefers-color-scheme + manual override
   - Based on TenancyKit website styling
*/

@font-face {
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/assets/fonts/material-symbols-rounded.woff2") format("woff2");
}

:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  --accent: #23c483;
  --accent-2: #5b7cff;
  --success: #23c483;

  --bg: #f7f8ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-2: rgba(245, 247, 255, 0.92);
  --card: #ffffff;

  --text: #0b1020;
  --muted: #4a5568;
  --border: rgba(17, 24, 39, 0.10);
  --shadow: 0 16px 50px rgba(17, 24, 39, 0.10);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 12px;

  --container: 1120px;
}

:root[data-theme="dark"] {
  --bg: #060812;
  --surface: rgba(12, 14, 28, 0.88);
  --surface-2: rgba(255, 255, 255, 0.07);
  --card: rgba(12, 14, 28, 0.94);

  --text: #eef2ff;
  --muted: rgba(238, 242, 255, 0.75);
  --border: rgba(255, 255, 255, 0.10);
  --shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060812;
    --surface: rgba(12, 14, 28, 0.88);
    --surface-2: rgba(255, 255, 255, 0.07);
    --card: rgba(12, 14, 28, 0.94);

    --text: #eef2ff;
    --muted: rgba(238, 242, 255, 0.75);
    --border: rgba(255, 255, 255, 0.10);
    --shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__logo {
  width: 48px;
  height: 48px;
  display: block;
}

.brand__name {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
}

.nav__links {
  grid-column: 1 / -1;
  display: none;
  list-style: none;
  padding: 0.5rem 0 0;
  margin: 0;
  gap: 0.25rem;
}

.nav__links[data-open="true"] { display: grid; }

.nav__link {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 700;
}

/* Reserve fixed space for the theme icon to avoid layout shift on load */
.nav__themeToggle {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
}

.nav__link.is-active {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
  text-decoration: none;
}

.hero {
  position: relative;
  padding: 3.4rem 0 1.6rem;
}

/* Top-only gradient background (avoid repeating/banding down the page) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(91,124,255,0.12), transparent 55%),
    radial-gradient(1000px 520px at 90% 0%, rgba(124,77,255,0.10), transparent 60%),
    radial-gradient(800px 500px at 60% 40%, rgba(35,196,131,0.08), transparent 55%);
}

@media (prefers-color-scheme: dark) {
  .hero::before {
    background:
      /* Fade the whole hero glow into the page background to avoid a visible edge line. */
      linear-gradient(to bottom, transparent 0%, var(--bg) 92%),
      radial-gradient(1200px 600px at 20% -10%, rgba(91,124,255,0.22), transparent 55%),
      radial-gradient(1000px 520px at 90% 0%, rgba(124,77,255,0.18), transparent 60%),
      radial-gradient(800px 500px at 60% 40%, rgba(35,196,131,0.10), transparent 55%);
  }
}

/* Explicit bottom fade to guarantee a smooth transition into the page background */
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.eyebrow {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero__tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero__glow {
  position: absolute;
  inset: -60px 0 auto 0;
  height: 260px;
  background: radial-gradient(
    closest-side,
    rgba(91, 124, 255, 0.16),
    transparent 70%
  );
  filter: blur(12px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  font-weight: 800;
  border: 1px solid var(--border);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border-color: rgba(255,255,255,0.14);
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--primary {
    /* Keep it primary, just darker in dark mode */
    background: linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent) 72%, var(--bg) 28%),
      color-mix(in srgb, var(--accent-2) 72%, var(--bg) 28%)
    );
    border-color: rgba(255, 255, 255, 0.16);
  }
}

:root[data-theme="dark"] .btn--primary {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 72%, var(--bg) 28%),
    color-mix(in srgb, var(--accent-2) 72%, var(--bg) 28%)
  );
  border-color: rgba(255, 255, 255, 0.16);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.main { padding: 1.25rem 0 3.5rem; }

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .nav__inner { grid-template-columns: 1fr auto auto; }
  .nav__links {
    display: flex;
    grid-column: auto;
    padding: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
  }
  .nav__toggle { display: none; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

/* Typography spacing inside cards */
.card h2,
.card h3 {
  margin-top: 1.15rem;
  margin-bottom: 0.55rem;
  line-height: 1.2;
}

.card h2:first-child,
.card h3:first-child {
  margin-top: 0;
}

.card p {
  margin: 0.6rem 0;
  color: var(--muted);
}

.card ul,
.card ol {
  margin: 0.6rem 0 0.8rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.card li { margin: 0.35rem 0; }

.card .small {
  margin: 0.4rem 0 0.8rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.footer__inner {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
}

.small {
  font-size: 0.92rem;
  color: var(--muted);
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Prevent a brief icon flash before JS initialises */
:root:not([data-theme-ready="true"]) [data-theme-icon] {
  visibility: hidden;
}
