/*
 * cookie consent — public website styles.
 *
 * Near-white paper with deep green accents, a light version of the palette and
 * geometry approved in consent_extension_research/ui-mockup.html: content sits
 * directly on the page, and the few filled blocks are soft tints without
 * outlines. One file, no external fonts or scripts: the font stack starts with
 * Inter when the system has it and otherwise falls back to the platform UI
 * face, so nothing is fetched.
 */
:root {
  color-scheme: light;
  --bg: #fff;
  --tint: #f1f5ee;
  --paper: #fff;
  --ink: #243a32;
  --text: #33433b;
  --muted: #5c6a62;
  --green: #286049;
  --green-dark: #1c4936;
  --green-soft: #edf4eb;
  --lime: #dfeabf;
  --line: #e4e8df;
  --amber: #925d1d;
  --amber-bg: #faf1df;
  --shadow: 0 18px 44px rgba(35, 71, 46, 0.07);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 16px;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  font-weight: 650;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(32px, 4.4vw, 54px);
  letter-spacing: -1.6px;
  margin: 16px 0 20px;
}

h2 {
  font-size: clamp(22px, 2.3vw, 29px);
  letter-spacing: -0.7px;
}

h3 {
  font-size: 16px;
  letter-spacing: -0.2px;
}

p {
  margin: 0 0 14px;
}

a {
  color: var(--green);
}

a:hover {
  color: var(--green-dark);
}

:focus-visible {
  outline: 3px solid #94b69d;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 5;
  padding: 10px 15px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 18px;
}

.symbol-bank {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon-small {
  width: 16px;
  height: 16px;
}

.icon-large {
  width: 38px;
  height: 38px;
  stroke-width: 2;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

.wrap.narrow {
  max-width: 780px;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

/* Welcome keeps the brand and the language picker and drops the navigation. */
.site-header-minimal {
  border-bottom: 0;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 16px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.4px;
  text-decoration: none;
  white-space: nowrap;
}

.logo {
  display: block;
  width: 34px;
  height: 34px;
  flex: none;
}

.logo-small {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 14px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
}

.nav a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.languages {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.languages select {
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--paper, #fff);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 32px 9px 12px;
  min-height: 40px;
  max-width: 170px;
  cursor: pointer;
}
.languages select:focus-visible,
.language-apply:focus-visible {
  outline: 3px solid #94b69d;
  outline-offset: 3px;
}
.language-apply {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  background: white;
  color: var(--green);
  cursor: pointer;
}
.language-enhanced .language-apply {
  display: none;
}

/* Buttons and inline links ------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 120ms ease,
    border-color 120ms ease;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.primary:hover {
  background: var(--green-dark);
  color: #fff;
}

.button.primary:disabled {
  background: var(--green-soft);
  color: var(--green);
  cursor: default;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 26px 0 16px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.lead {
  max-width: 56ch;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

/* Hero -------------------------------------------------------------------- */

.hero {
  padding: 30px 0 12px;
}

.hero-inner {
  display: grid;
  gap: 34px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
}

.hero-copy h1 {
  max-width: 22ch;
}

.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-art {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  gap: 18px;
  min-width: 0;
  min-height: 340px;
  padding: 20px 0;
  isolation: isolate;
}

.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  max-width: 100%;
  border-radius: 50%;
  background: #e5ebd9;
}

.browser-art {
  position: relative;
  width: 340px;
  max-width: 100%;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 13px;
  border-bottom: 1px solid #edf0e8;
}

.browser-chrome i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd4c8;
}

.browser-chrome::after {
  content: "";
  width: 150px;
  height: 11px;
  margin-left: 16px;
  border-radius: 3px;
  background: #f3f5ef;
}

.browser-body {
  display: grid;
  gap: 9px;
  padding: 20px 22px 30px;
}

.art-title {
  height: 12px;
  width: 60%;
  border-radius: 4px;
  background: #dce5d3;
}

.art-line {
  height: 6px;
  border-radius: 3px;
  background: #eef1e8;
}

.art-line-short {
  width: 70%;
}

.art-picture {
  height: 58px;
  margin: 10px 0;
  border-radius: 8px;
  background: linear-gradient(130deg, #dae6bf, #edf2e3);
}

/* Translated copy stays in flow; longer labels grow rows instead of overlapping. */
.banner-ghost {
  min-width: 0;
  margin: 0 16px 16px;
  padding: 14px;
  border-radius: 12px;
  background: #f7f9f4;
  color: var(--muted);
}

.banner-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.banner-heading strong {
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.banner-lines {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.banner-lines span {
  display: block;
  height: 5px;
  border-radius: 2px;
  background: #e8eee2;
}

.banner-ghost .banner-short {
  width: 60%;
}

.banner-cross {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #8b9b82;
}

.art-tag {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 340px;
  max-width: 100%;
  min-width: 0;
  padding: 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

.art-tag > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.check-orb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--green);
  color: var(--lime);
}

.check-orb .icon-large {
  width: 26px;
  height: 26px;
}

/* Sections ---------------------------------------------------------------- */

.section {
  padding: 52px 0;
}

.section-tinted {
  background: var(--tint);
}

.section-lead {
  max-width: 62ch;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.benefits {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit {
  display: grid;
  gap: 8px;
  align-content: start;
}

.benefit-icon {
  display: inline-flex;
  color: var(--green);
}

.icon-benefit {
  width: 24px;
  height: 24px;
}

.benefit h3 {
  margin: 0;
  font-size: 16px;
}

.benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* The landing page keeps its privacy boundary beside the benefits. */
.privacy-line {
  max-width: 68ch;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.privacy-link {
  margin: 12px 0 0;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}

.checklist .icon {
  margin-top: 3px;
  color: var(--green);
}

.faq-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.faq {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  color: var(--green);
  transition: transform 120ms ease;
}

.faq[open] summary .icon {
  transform: rotate(180deg);
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Interior pages ---------------------------------------------------------- */

.page {
  padding: 44px 0 60px;
}

.page h1 {
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -1.2px;
}

.page p {
  color: var(--text);
  line-height: 1.75;
}

.page .lead {
  color: var(--muted);
}

.block {
  margin: 32px 0;
}

.block h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}

.block p:last-child {
  margin-bottom: 0;
}

.privacy-policy .block p + p {
  margin-top: 14px;
}
.privacy-list {
  padding-inline-start: 1.4em;
  line-height: 1.75;
  color: var(--text);
}
.privacy-list li + li {
  margin-top: 6px;
}
.privacy-list + p {
  margin-top: 14px;
}

.disclosure summary {
  cursor: pointer;
  color: var(--green);
  font-size: 15px;
  font-weight: 600;
}

.disclosure[open] > summary {
  margin-bottom: 14px;
}

.note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.callout {
  margin: 26px 0 10px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--green-soft);
}

.callout h2 {
  font-size: 19px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout .button {
  margin-top: 16px;
}

.callout-ready h2 {
  color: var(--green);
}

.welcome {
  padding: 24px 0 56px;
  text-align: center;
}

.welcome .wrap {
  max-width: 1040px;
}

.welcome h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.6vw, 44px);
}

.welcome .lead {
  max-width: 56ch;
  margin: 0 auto;
}

/* Two borderless illustrations: side by side, stacked on narrow screens. */
.welcome-pair {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
  margin: 24px auto 0;
}

.welcome-figure {
  margin: 0;
}

/* The approved crop trims the white margins of both 1536×1024 canvases. */
.welcome-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.9;
  object-fit: cover;
  object-position: center 30%;
}

.welcome-figure figcaption {
  max-width: 42ch;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.welcome-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

/*
 * The one action on Welcome: what the extension does with other pop-ups, and
 * the button that closes this tab. A compact centered text block — no frame, no
 * tint, no settings control — matching the approved Welcome mockup.
 */
.welcome-finish {
  max-width: 590px;
  margin: 22px auto 0;
}

.finish-title {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.finish-explanation {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.finish-button {
  margin-top: 16px;
  min-width: 220px;
}

/* Shown when the tab could not close itself, and in place of a dead button. */
.finish-note {
  margin: 16px auto 0;
  max-width: 50ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.not-found {
  padding: 70px 0 96px;
}

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

.site-footer {
  margin-top: 40px;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 22px;
  padding: 0 22px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 46ch;
}

.footer-about {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer-nav {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.footer-heading {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-notes {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 0 22px;
}

.footer-contact {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-contact a {
  color: var(--green);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-legal {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* Responsive -------------------------------------------------------------- */

@media (min-width: 641px) {
  .wrap,
  .header-inner,
  .footer-inner,
  .footer-notes {
    padding-left: 38px;
    padding-right: 38px;
  }

  .section {
    padding: 66px 0;
  }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art {
    min-height: 300px;
  }

  .hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    font-size: 15px;
  }

  .header-inner {
    gap: 8px 14px;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 2px 14px;
    font-size: 13px;
  }

  .languages {
    margin-left: auto;
    font-size: 11px;
  }

  .languages select {
    max-width: 145px;
    font-size: 12px;
  }

  h1 {
    letter-spacing: -1px;
  }

  .section {
    padding: 44px 0;
  }

  .welcome-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .welcome-finish {
    margin-top: 32px;
  }

  .finish-button {
    width: 100%;
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
