/* NoJunk website: the app's "Play" design system, on the web. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("fonts/nunito-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
  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;
}

:root {
  --violet: #6b3cf0;
  --violet-top: #7d52f7;
  --violet-edge: #4520b8;
  --violet-deep: #3a1aa0;
  --violet-soft: #efe8ff;
  --lavender: #f4f0ff;
  --ink: #21124d;
  --ink-soft: #6f6791;
  --line: #e5ddfb;
  --line-edge: #d3c7f5;
  --yellow: #ffd23f;
  --yellow-edge: #dba400;
  --green: #2ccf7f;
  --green-edge: #1a9e5c;
  --red: #ff5a6a;
  --red-edge: #d23346;
  --white: #fff;

  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --radius: 26px;
  --edge: 6px;
  --wrap: 1160px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink);
  background: var(--lavender);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 12px;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 1000;
  font-size: 26px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
}
.brand .junk {
  position: relative;
  color: var(--yellow);
}
/* "JUNK" struck through, like the app wordmark */
.brand .junk::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 0.12em;
  border-radius: 2px;
  background: var(--red);
  transform: rotate(-6deg);
}
.brand--ink {
  color: var(--ink);
}
.brand--ink .junk {
  color: var(--violet);
}

/* ---------- Chunky buttons ---------- */

.btn {
  --face: var(--yellow);
  --edge-c: var(--yellow-edge);
  --fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 28px;
  border: 0;
  border-radius: 20px;
  background: var(--face);
  color: var(--fg);
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 var(--edge) 0 var(--edge-c);
  transform: translateY(0);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 calc(var(--edge) + 1px) 0 var(--edge-c);
}
.btn:active {
  transform: translateY(var(--edge));
  box-shadow: 0 0 0 var(--edge-c);
}
.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.btn--white {
  --face: var(--white);
  --edge-c: var(--line-edge);
  --fg: var(--violet);
}
.btn--violet {
  --face: var(--violet);
  --edge-c: var(--violet-edge);
  --fg: var(--white);
}
.btn--ghost {
  --face: rgba(255, 255, 255, 0.14);
  --edge-c: rgba(0, 0, 0, 0.16);
  --fg: var(--white);
}
.btn--sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: 15px;
  --edge: 4px;
}
.btn[aria-disabled="true"] {
  cursor: default;
}

.store-btn small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.75;
  line-height: 1;
}
.store-btn span {
  display: block;
  text-align: left;
  line-height: 1.1;
}

/* ---------- Cards, pills, labels ---------- */

.card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 var(--edge) 0 var(--line-edge);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}
.pill img {
  width: 20px;
  height: 20px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag--plus {
  background: var(--ink);
  color: var(--yellow);
}
.tag--free {
  background: #dcfbe9;
  color: var(--green-edge);
}

.sticker {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* ---------- Header / language toggle ---------- */

.lang-toggle {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
}
.lang-toggle button {
  min-width: 40px;
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--white);
  color: var(--violet);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}
.lang-toggle--light {
  background: var(--violet-soft);
}
.lang-toggle--light button {
  color: var(--ink-soft);
}
.lang-toggle--light button[aria-pressed="true"] {
  background: var(--violet);
  color: var(--white);
  box-shadow: 0 2px 0 var(--violet-edge);
}

/* ---------- FAQ accordions ---------- */
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-list details {
  border-radius: 18px;
  border: 2px solid var(--line);
  background: var(--white);
  box-shadow: 0 4px 0 var(--line-edge);
  overflow: hidden;
}
.faq-list summary {
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  font-weight: 900;
  font-size: 17px;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary img {
  width: 34px;
  height: 34px;
  flex: none;
}
.faq-list summary::after {
  content: "+";
  margin-left: auto;
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.25s var(--ease-spring);
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list .answer {
  padding: 0 20px 20px 66px;
}

@media (max-width: 640px) {
  .faq-list .answer {
    padding: 0 18px 18px;
  }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 40px;
  font-size: 15px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__tagline {
  margin-top: 12px;
  max-width: 300px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__links a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}
.footer__links a:hover {
  color: var(--yellow);
}
.footer__bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer__bottom a {
  color: rgba(255, 255, 255, 0.7);
}

/* Placeholder still to fill before publishing (legal identity, contact). */
.todo {
  background: #fff3bf;
  color: #8a5a00;
  border-radius: 6px;
  padding: 0 5px;
  font-weight: 800;
}

/* i18n: blocks written per language (legal pages). */
html[lang="fr"] [data-lang-block="en"],
html[lang="en"] [data-lang-block="fr"] {
  display: none !important;
}

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