/* Shared stylesheet of the /idee gift guides. Tokens are the app theme's
   (lib/theme/theme.ts), the same values public/scopri.html inlines. */
@font-face {
  font-family: Inter;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Inter_400Regular.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Inter_600SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Inter_700Bold.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/Inter_800ExtraBold.woff2') format('woff2');
}

:root {
  --bg: #faf5ff;
  --surface: #fff;
  --text: #2e1065;
  --text2: #6d28d9;
  --int: #7c3aed;
  --on-int: #fff;
  --acc: #c2410c;
  --acc-soft: #ffedd5;
  --border: #ddd6fe;
  --shadow: 0 2px 10px rgba(46, 16, 101, 0.14);
  --hero: linear-gradient(160deg, #8b5cf6 0%, #6d28d9 55%, #4c1d95 100%);
  --gut: max(22px, calc(50% - 340px));
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1625;
    --surface: #241d33;
    --text: #f3e8ff;
    --text2: #c4b5fd;
    --int: #a78bfa;
    --on-int: #1b1625;
    --acc: #fb923c;
    --acc-soft: rgba(251, 146, 60, 0.18);
    --border: #3d2f5c;
    --shadow: none;
    --hero: linear-gradient(160deg, #6d28d9 0%, #4c1d95 60%, #2e1065 100%);
  }
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: var(--int);
}
.muted {
  color: var(--text2);
}

/* Header */
.hero {
  background: var(--hero);
  color: #fff;
  border-radius: 0 0 32px 32px;
  padding: 0 var(--gut) 32px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.topbar nav a {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  margin-left: 18px;
}
.crumbs {
  margin-top: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #ede9fe;
}
.crumbs a {
  color: #fff;
  text-decoration: none;
}
.hero h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 34px 0 14px;
}
.crumbs + h1 {
  margin-top: 10px;
}
.lead {
  font-size: 17px;
  color: #ede9fe;
}

/* Article */
main {
  padding: 8px var(--gut) 0;
}
main > section {
  margin-top: 40px;
}
h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
main p + p {
  margin-top: 12px;
}
main ul.tips {
  margin: 12px 0 0;
  padding-left: 20px;
}
main ul.tips li + li {
  margin-top: 8px;
}
.ideas {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.idea {
  padding: 16px 18px;
}
.idea-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.idea h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.price {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--acc-soft);
  color: var(--acc);
  white-space: nowrap;
}
.idea p {
  margin-top: 6px;
  font-size: 15px;
}
.shop {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.disclosure {
  margin-top: 14px;
  font-size: 13px;
}

/* Call to action into the app */
.cta {
  padding: 22px;
  text-align: center;
}
.cta h2 {
  font-size: 21px;
}
.btn {
  display: inline-block;
  margin-top: 14px;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  background: var(--int);
  color: var(--on-int);
}

/* FAQ, related guides, index */
.faq .card {
  padding: 16px 18px;
  margin-top: 10px;
}
.faq h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.faq p {
  font-size: 15px;
}
.guides {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.guides a {
  display: block;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
}
.guides strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}
.guides span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--text2);
}
footer {
  padding: 40px var(--gut) 44px;
  text-align: center;
  font-size: 13px;
}
footer p + p {
  margin-top: 8px;
}
footer a {
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .hero {
    border-radius: 0 0 40px 40px;
    padding-bottom: 48px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .lead {
    font-size: 19px;
    max-width: 620px;
  }
  main > section {
    margin-top: 56px;
  }
  h2 {
    font-size: 30px;
  }
  .ideas,
  .guides {
    grid-template-columns: 1fr 1fr;
  }
  .guides a:hover,
  .shop:hover {
    text-decoration: underline;
  }
}

/* The page-view counter (/v): one pixel, out of the layout and invisible. */
.beacon {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
