/* =============================================
       TOKENS
    ============================================= */
    :root {
      --bg:          #EEECEA;
      --bg-card:     #FFFFFF;
      --bg-subtle:   #F5F4F1;

      --green-logo:  #3EDE7A;   /* ESGeneo brand green */
      --green-deep:  #1A3D1A;
      --green-btn:   #215C28;
      --green-btn-h: #2A7534;
      --green-icon:  #1E4D26;
      --green-soft:  #E4F0E6;
      --green-bar:   #3A7D44;

      --gold:        #D4941C;
      --gold-soft:   #FEF3DC;
      --sage:        #5A7A62;
      --sage-soft:   #EAF0EC;

      --text:        #1A3D1A;
      --text-body:   #3D5440;
      --text-muted:  #6B7F6E;
      --text-dim:    #9AAD9C;

      --border:      #D8E6DA;
      --border-up:   #B8D0BC;

      --sh-sm:  0 1px 4px rgba(20,50,20,.07);
      --sh-md:  0 4px 24px rgba(20,50,20,.09);
      --sh-lg:  0 8px 40px rgba(20,50,20,.13);

      --r-sm:   8px;
      --r-md:   14px;
      --r-lg:   20px;
      --r-xl:   28px;
      --r-pill: 100px;
    }

    /* =============================================
       RESET & BASE
    ============================================= */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; overflow-x: hidden; }
    body { overflow-x: hidden; touch-action: pan-y; }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--bg);
      color: var(--text-body);
    }

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

    /* =============================================
       APP SHELL
    ============================================= */
    .app {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 0 16px 36px;
    }

    /* =============================================
       NAVBAR
    ============================================= */
    .navbar {
      width: 100%;
      max-width: 680px;
      margin-top: 16px;
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--r-pill);
      padding: 10px 14px 10px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: var(--sh-sm);
    }

    /* ESGeneo brand logo (CSS) */
    .nav-logo-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .nav-logo-wrap img {
      height: 28px;
      width: auto;
    }

    .esgeneo-logo {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 18px;
      font-weight: 800;
      letter-spacing: -0.5px;
      line-height: 1;
    }

    .esgeneo-logo .esg { color: var(--green-logo); }
    .esgeneo-logo .eneo { color: var(--green-deep); }

    .collab-divider {
      width: 1px;
      height: 20px;
      background: var(--border);
    }

    .carbonfree-logo {
      display: flex;
      align-items: center;
      gap: 5px;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 13px;
      font-weight: 700;
      color: var(--text-muted);
      letter-spacing: -0.2px;
    }

    .carbonfree-logo .cf-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--green-btn);
      flex-shrink: 0;
    }

    .nav-back {
      display: none;
      align-items: center;
      gap: 5px;
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text-muted);
      font-family: 'DM Sans', sans-serif;
      font-size: 13px;
      font-weight: 500;
      padding: 8px 14px;
      border-radius: var(--r-pill);
      cursor: pointer;
      transition: border-color .2s, color .2s;
      white-space: nowrap;
    }

    .nav-back:hover { border-color: var(--green-btn); color: var(--green-deep); }
    .nav-back.show { display: flex; }
    .lang-btn {
      display: flex;
      align-items: center;
      background: var(--green-soft);
      border: 1.5px solid var(--border-up);
      color: var(--green-btn);
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 12px;
      font-weight: 800;
      padding: 7px 13px;
      border-radius: var(--r-pill);
      cursor: pointer;
      letter-spacing: 0.04em;
      transition: background .2s, border-color .2s;
      margin-right: 8px;
    }
    .lang-btn:hover { background: #d0e8d4; border-color: var(--green-btn); }

    /* =============================================
       PROGRESS
    ============================================= */
    .progress-wrap {
      width: 100%;
      max-width: 680px;
      margin-top: 14px;
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--r-md);
      padding: 14px 18px;
      box-shadow: var(--sh-sm);
      opacity: 0;
      transform: translateY(-6px);
      transition: opacity .35s, transform .35s;
    }

    .progress-wrap.show { opacity: 1; transform: translateY(0); }

    .p-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }

    .p-section {
      display: flex;
      align-items: center;
      gap: 7px;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 13px;
      font-weight: 700;
      color: var(--green-deep);
    }

    .p-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: var(--green-btn);
      transition: background .4s;
    }

    .p-step { font-size: 12px; color: var(--text-dim); font-weight: 500; }

    .p-segs { display: flex; gap: 5px; }

    .seg {
      flex: 1;
      height: 5px;
      border-radius: 3px;
      background: var(--bg);
      transition: background .4s;
    }

    .seg.e-done   { background: rgba(58,125,68,.28); }
    .seg.e-active { background: var(--green-bar); }
    .seg.s-done   { background: rgba(212,148,28,.30); }
    .seg.s-active { background: var(--gold); }
    .seg.g-done   { background: rgba(90,122,98,.28); }
    .seg.g-active { background: var(--sage); }

    /* =============================================
       SCREENS
    ============================================= */
    .screens {
      position: relative;
      width: 100%;
      max-width: 680px;
      margin-top: 20px;
      overflow: hidden;
    }

    .screen {
      position: absolute;
      width: 100%;
      top: 0; left: 0;
      opacity: 0;
      transform: translateX(28px);
      transition: opacity .4s cubic-bezier(.4,0,.2,1), transform .4s cubic-bezier(.4,0,.2,1);
      pointer-events: none;
      padding-bottom: 8px;
    }

    .screen.active {
      opacity: 1; transform: translateX(0);
      pointer-events: all;
      position: relative;
    }

    .screen.out { opacity: 0; transform: translateX(-28px); pointer-events: none; }

    /* =============================================
       TYPOGRAPHY
    ============================================= */
    .display {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: clamp(28px, 6.5vw, 46px);
      font-weight: 800;
      line-height: 1.08;
      letter-spacing: -1.5px;
      color: var(--green-deep);
    }

    .display em { font-style: italic; font-family: 'DM Sans', sans-serif; color: var(--green-btn); }

    .h2 {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: clamp(20px, 4vw, 24px);
      font-weight: 800;
      letter-spacing: -.6px;
      color: var(--green-deep);
    }

    .subtitle { font-size: 15px; line-height: 1.65; color: var(--text-muted); }

    /* =============================================
       PILL BADGE
    ============================================= */
    .pill {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--r-pill);
      padding: 6px 14px 6px 8px;
      box-shadow: var(--sh-sm);
    }

    .pill-icon {
      width: 22px; height: 22px;
      background: var(--green-soft);
      border-radius: 6px;
      display: grid;
      place-items: center;
      font-size: 11px;
      flex-shrink: 0;
    }

    .pill-text {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 12px;
      font-weight: 700;
      color: var(--green-deep);
    }

    .pill-s .pill-icon { background: var(--gold-soft); }
    .pill-g .pill-icon { background: var(--sage-soft); }

    /* =============================================
       BUTTONS
    ============================================= */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 15px;
      font-weight: 700;
      padding: 13px 24px;
      border-radius: var(--r-pill);
      border: none;
      cursor: pointer;
      transition: background .2s, transform .15s, box-shadow .2s, opacity .2s;
      letter-spacing: -.2px;
      white-space: nowrap;
    }

    .btn-primary { background: var(--green-btn); color: white; }
    .btn-primary:hover:not(:disabled) {
      background: var(--green-btn-h);
      transform: translateY(-1px);
      box-shadow: 0 8px 28px rgba(33,92,40,.28);
    }

    .btn-gold { background: var(--gold); color: white; }
    .btn-gold:hover:not(:disabled) {
      background: #C2860F;
      transform: translateY(-1px);
      box-shadow: 0 8px 28px rgba(212,148,28,.28);
    }

    .btn-outline {
      background: white;
      color: var(--green-deep);
      border: 1.5px solid var(--border-up);
    }
    .btn-outline:hover:not(:disabled) { border-color: var(--green-btn); color: var(--green-btn); }

    .btn:disabled { opacity: .4; cursor: not-allowed; }
    .btn:active:not(:disabled) { transform: translateY(0) !important; }
    .btn-full { width: 100%; justify-content: center; }

    /* =============================================
       INTRO SCREEN
    ============================================= */
    .intro-badge { margin-bottom: 24px; }

    .intro-sub { margin: 14px 0 30px; max-width: 500px; }

    /* Pillar cards */
    .pillar-row {
      display: grid;
      grid-template-columns: repeat(3,1fr);
      gap: 10px;
      margin-bottom: 28px;
    }

    .pillar-card {
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--r-md);
      padding: 12px 8px;
      box-shadow: var(--sh-sm);
      transition: box-shadow .2s, transform .2s;
      min-width: 0;
    }

    .pillar-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }

    @media(max-width:480px){
      .pillar-row { gap: 6px; }
      .pillar-card { padding: 10px 6px; }
      .p-icon { width: 30px; height: 30px; font-size: 14px; border-radius: 8px; margin-bottom: 7px; }
      .p-label { font-size: 10px; }
      .p-count { font-size: 10px; }
    }

    .p-icon {
      width: 38px; height: 38px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      font-size: 18px;
      margin-bottom: 12px;
    }

    .p-icon-e { background: var(--green-soft); }
    .p-icon-s { background: var(--gold-soft); }
    .p-icon-g { background: var(--sage-soft); }

    .p-label {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 3px;
    }

    .p-e { color: var(--green-btn); }
    .p-s { color: var(--gold); }
    .p-g { color: var(--sage); }

    .p-count { font-size: 11px; color: var(--text-dim); }

    /* Meta chips */
    .meta-strip {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 28px;
    }

    .meta-chip {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--r-pill);
      padding: 9px 13px;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-muted);
      box-shadow: var(--sh-sm);
      white-space: nowrap;
      width: 100%;
    }

    @media(min-width:600px){
      .meta-strip { grid-template-columns: repeat(4,auto); justify-content: start; }
      .meta-chip { width: auto; }
    }

    /* Team section */
    .team-section {
      margin-top: 44px;
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--r-xl);
      overflow: hidden;
      box-shadow: var(--sh-md);
    }

    .team-photo-wrap {
      width: 100%;
      height: 280px;
      overflow: hidden;
      position: relative;
    }

    @media(max-width:480px){ .team-photo-wrap { height: 220px; } }

    .team-photo-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
    }

    .team-photo-placeholder {
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, #1A3D1A 0%, #2D6A4F 40%, #1B5E20 70%, #0D2B1A 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 48px;
    }

    .team-text {
      padding: 28px 28px 32px;
    }

    @media(max-width:480px){ .team-text { padding: 22px 20px 26px; } }

    .team-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--green-soft);
      border-radius: var(--r-pill);
      padding: 5px 12px;
      margin-bottom: 16px;
    }

    .team-badge-text {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--green-btn);
    }

    .team-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: clamp(18px, 3.5vw, 22px);
      font-weight: 800;
      color: var(--green-deep);
      line-height: 1.25;
      margin-bottom: 10px;
    }

    .team-title em { font-style: italic; color: var(--green-btn); }

    .team-desc {
      font-size: 14px;
      line-height: 1.7;
      color: var(--text-muted);
    }

    /* =============================================
       LEAD FORM
    ============================================= */
    .form-card {
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--r-lg);
      padding: clamp(22px,5vw,32px);
      box-shadow: var(--sh-md);
    }

    .form-head { margin-bottom: 24px; }
    .form-head .h2 { margin-bottom: 6px; }

    .field { margin-bottom: 16px; }

    .field-lbl {
      display: block;
      font-size: 11px;
      font-weight: 700;
      color: var(--text-dim);
      letter-spacing: .07em;
      text-transform: uppercase;
      margin-bottom: 7px;
    }

    .field-inp {
      width: 100%;
      background: var(--bg-subtle);
      border: 1.5px solid var(--border);
      border-radius: var(--r-sm);
      color: var(--text);
      font-family: 'DM Sans', sans-serif;
      font-size: 15px;
      padding: 13px 15px;
      outline: none;
      transition: border-color .2s, background .2s, box-shadow .2s;
      -webkit-appearance: none;
    }

    .field-inp::placeholder { color: var(--text-dim); }
    .field-inp:focus {
      border-color: var(--green-btn);
      background: white;
      box-shadow: 0 0 0 3px rgba(33,92,40,.10);
    }

    /* Size picker */
    .size-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    /* size-grid always stays 2 columns side by side */
    .size-card {
      background: var(--bg-subtle);
      border: 1.5px solid var(--border);
      border-radius: var(--r-md);
      padding: 16px;
      cursor: pointer;
      transition: border-color .2s, background .2s, box-shadow .2s;
      user-select: none;
      display: block;
    }

    @media(max-width:420px){
      .size-card { padding: 12px 10px; }
      .size-name { font-size: 12px; }
    }

    .size-card:hover { border-color: var(--green-btn); background: var(--green-soft); }
    .size-card.selected {
      border-color: var(--green-btn);
      background: var(--green-soft);
      box-shadow: 0 0 0 3px rgba(33,92,40,.10);
    }

    .size-card input { display: none; }
    .size-emoji { font-size: 20px; margin-bottom: 8px; display: block; }
    .size-name { font-family:'Plus Jakarta Sans',sans-serif; font-size:14px; font-weight:700; color:var(--green-deep); margin-bottom:3px; }
    .size-sub  { font-size:11px; color:var(--text-dim); }

    /* GDPR */
    .gdpr-wrap {
      background: var(--bg-subtle);
      border: 1.5px solid var(--border);
      border-radius: var(--r-md);
      padding: 14px 15px;
      display: flex;
      align-items: flex-start;
      gap: 12px;
      cursor: pointer;
      transition: border-color .2s, background .2s;
      user-select: none;
    }

    .gdpr-wrap:hover { border-color: var(--border-up); }
    .gdpr-wrap.on { border-color: var(--green-btn); background: var(--green-soft); }
    .gdpr-wrap input { display: none; }

    .check-box {
      width: 20px; height: 20px; min-width: 20px;
      border-radius: 6px;
      border: 2px solid var(--border-up);
      background: white;
      display: grid;
      place-items: center;
      margin-top: 1px;
      transition: all .2s;
      flex-shrink: 0;
    }

    .gdpr-wrap.on .check-box { background: var(--green-btn); border-color: var(--green-btn); }
    .check-box svg { opacity: 0; transition: opacity .15s; }
    .gdpr-wrap.on .check-box svg { opacity: 1; }

    .gdpr-txt { font-size: 13px; line-height: 1.55; color: var(--text-muted); }
    .gdpr-txt a { color: var(--green-btn); text-decoration: none; font-weight: 600; }

    .form-actions { margin-top: 22px; display: flex; justify-content: flex-end; }

    /* =============================================
       QUESTION SCREENS
    ============================================= */
    .q-header { margin-bottom: 18px; }

    .q-blocks-card {
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--r-lg);
      padding: clamp(18px,4vw,26px);
      box-shadow: var(--sh-md);
    }

    .q-block { margin-bottom: 22px; }
    .q-block:last-of-type { margin-bottom: 0; }

    .q-num {
      font-size: 11px; font-weight: 700;
      color: var(--text-dim);
      letter-spacing: .07em;
      text-transform: uppercase;
      margin-bottom: 5px;
    }

    .q-text {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 15px; font-weight: 700;
      color: var(--green-deep);
      line-height: 1.45;
      margin-bottom: 11px;
    }

    .answers { display: flex; flex-direction: column; gap: 7px; }

    .ans {
      display: flex; align-items: center; gap: 11px;
      padding: 12px 14px;
      background: var(--bg-subtle);
      border: 1.5px solid var(--border);
      border-radius: var(--r-sm);
      cursor: pointer;
      transition: all .18s;
      font-size: 14px; font-weight: 500;
      color: var(--text-muted);
      user-select: none;
      min-height: 44px;    /* accessible tap target */
    }

    .ans:hover { border-color: var(--green-btn); background: var(--green-soft); color: var(--green-deep); }
    .ans.sel-yes     { border-color: var(--green-btn); background: var(--green-soft); color: var(--green-deep); }
    .ans.sel-partial { border-color: var(--gold); background: var(--gold-soft); color: #7A4A08; }
    .ans.sel-no      { border-color: var(--border-up); background: white; color: var(--text-muted); }

    .rdot {
      width: 18px; height: 18px; min-width: 18px;
      border-radius: 50%;
      border: 2px solid var(--border-up);
      background: white;
      display: grid; place-items: center;
      transition: all .18s;
      flex-shrink: 0;
    }

    .rdot::after {
      content: ''; width: 7px; height: 7px;
      border-radius: 50%; opacity: 0; transition: opacity .15s;
    }

    .ans.sel-yes .rdot    { background: var(--green-btn); border-color: var(--green-btn); }
    .ans.sel-partial .rdot { background: var(--gold); border-color: var(--gold); }
    .ans.sel-no .rdot     { background: var(--border-up); border-color: var(--border-up); }

    .ans.sel-yes .rdot::after,
    .ans.sel-partial .rdot::after,
    .ans.sel-no .rdot::after { background: white; opacity: 1; }

    .ans-pts {
      margin-left: auto; font-size: 11px; font-weight: 700; color: var(--text-dim);
      flex-shrink: 0;
    }

    .q-divider { height: 1px; background: var(--border); margin: 18px 0; }

    .q-actions { display: flex; justify-content: flex-end; margin-top: 20px; }

    /* =============================================
       RESULTS SCREEN
    ============================================= */
    .result-header {
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--r-lg);
      padding: clamp(22px,5vw,32px);
      text-align: center;
      box-shadow: var(--sh-md);
      margin-bottom: 14px;
    }

    #r-badge { margin-bottom: 20px; display: inline-flex; }

    /* Gauge */
    .gauge-wrap { display: flex; justify-content: center; margin-bottom: 18px; }

    .gauge { position: relative; width: 152px; height: 152px; }
    .gauge svg { transform: rotate(-90deg); }

    .gauge-inner {
      position: absolute; inset: 0;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
    }

    .gauge-pct {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 42px; font-weight: 800;
      color: var(--green-deep);
      letter-spacing: -2px; line-height: 1;
    }

    .gauge-sub {
      font-size: 11px; color: var(--text-dim);
      margin-top: 4px; font-weight: 600;
      text-transform: uppercase; letter-spacing: .06em;
    }

    .r-title { margin-bottom: 8px; color: var(--green-deep); }

    .r-desc {
      max-width: 440px; margin: 0 auto;
      color: var(--text-muted); font-size: 15px; line-height: 1.65;
    }

    /* Informative disclaimer */
    .result-disclaimer {
      margin-top: 18px;
      padding: 12px 16px;
      background: var(--gold-soft);
      border: 1px solid rgba(212,148,28,.20);
      border-radius: var(--r-sm);
      font-size: 12px;
      font-style: italic;
      color: #7A5510;
      line-height: 1.55;
      text-align: left;
    }

    /* Breakdown */
    .breakdown-card {
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--r-lg);
      padding: clamp(18px,4vw,24px);
      box-shadow: var(--sh-sm);
      margin-bottom: 14px;
    }

    .bd-title {
      font-size: 11px; font-weight: 700;
      text-transform: uppercase; letter-spacing: .10em;
      color: var(--text-dim); margin-bottom: 18px;
    }

    .bd-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
    .bd-row:last-child { margin-bottom: 0; }

    .bd-icon {
      width: 32px; height: 32px; border-radius: 9px;
      display: grid; place-items: center; font-size: 14px; flex-shrink: 0;
    }

    .bd-icon-e { background: var(--green-soft); }
    .bd-icon-s { background: var(--gold-soft); }
    .bd-icon-g { background: var(--sage-soft); }

    .bd-info { flex: 1; min-width: 0; }

    .bd-label {
      font-size: 13px; font-weight: 700;
      color: var(--green-deep); margin-bottom: 6px;
    }

    .bd-track { width: 100%; height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
    .bd-fill { height: 100%; border-radius: 3px; width: 0%; transition: width 1.1s cubic-bezier(.4,0,.2,1) .4s; }
    .fill-e { background: var(--green-bar); }
    .fill-s { background: var(--gold); }
    .fill-g { background: var(--sage); }

    .bd-pct {
      font-size: 13px; font-weight: 800;
      color: var(--green-deep);
      width: 40px; text-align: right; flex-shrink: 0;
    }

    /* CTA card */
    .cta-card {
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--r-lg);
      padding: clamp(20px,4vw,28px);
      box-shadow: var(--sh-md);
      margin-bottom: 14px;
    }

    .cta-card-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 18px; font-weight: 800;
      color: var(--green-deep); margin-bottom: 8px;
    }

    .cta-card-desc {
      font-size: 14px; line-height: 1.65;
      color: var(--text-muted); margin-bottom: 18px;
    }

    /* Certificate open button (in results) */
    .cert-open-btn {
      display: flex; align-items: center; gap: 9px;
      width: 100%; justify-content: center;
      background: var(--green-soft);
      border: 1.5px solid rgba(33,92,40,.22);
      color: var(--green-deep);
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 14px; font-weight: 700;
      padding: 13px 20px;
      border-radius: var(--r-pill);
      cursor: pointer;
      margin-top: 14px;
      transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
      letter-spacing: -.2px;
    }
    .cert-open-btn:hover {
      background: #d3ecda;
      border-color: var(--green-btn);
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(33,92,40,.15);
    }

    /* =============================================
       CERTIFICATE MODAL
    ============================================= */
    .modal-overlay {
      position: fixed; inset: 0;
      background: rgba(8,22,8,.55);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      z-index: 1000;
      display: flex; align-items: center; justify-content: center;
      padding: 16px;
      opacity: 0; pointer-events: none;
      transition: opacity .35s cubic-bezier(.4,0,.2,1);
    }
    .modal-overlay.open { opacity: 1; pointer-events: all; }

    .modal-box {
      width: 100%; max-width: 520px;
      max-height: 92vh; overflow-y: auto;
      border-radius: var(--r-xl);
      background: white;
      box-shadow: 0 32px 90px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.08);
      transform: translateY(24px) scale(.96);
      transition: transform .4s cubic-bezier(.34,1.56,.64,1);
      position: relative;
      scrollbar-width: thin;
    }
    .modal-overlay.open .modal-box { transform: translateY(0) scale(1); }

    .modal-close {
      position: absolute; top: 14px; right: 14px;
      width: 32px; height: 32px; border-radius: 50%;
      background: rgba(255,255,255,.12);
      border: 1px solid rgba(255,255,255,.2);
      cursor: pointer;
      display: grid; place-items: center;
      color: rgba(255,255,255,.7);
      transition: background .2s, color .2s;
      z-index: 10; flex-shrink: 0;
    }
    .modal-close:hover { background: rgba(255,255,255,.2); color: white; }

    /* ─── Dark certificate card (top section) ─── */
    .cert-card {
      background: linear-gradient(150deg, #0D2B12 0%, #1A5022 55%, #0A2010 100%);
      border-radius: var(--r-xl) var(--r-xl) 0 0;
      padding: clamp(26px,6vw,38px);
      position: relative; overflow: hidden;
    }

    .cert-card::before {
      content: '';
      position: absolute; top: -80px; right: -80px;
      width: 260px; height: 260px; border-radius: 50%;
      border: 1.5px solid rgba(62,222,122,.10);
    }
    .cert-card::after {
      content: '';
      position: absolute; bottom: -50px; left: -50px;
      width: 180px; height: 180px; border-radius: 50%;
      border: 1.5px solid rgba(62,222,122,.07);
    }
    .cert-deco-dot {
      position: absolute; top: 60px; right: 40px;
      width: 6px; height: 6px; border-radius: 50%;
      background: rgba(62,222,122,.35);
    }

    .cert-top-row {
      display: flex; align-items: center; justify-content: flex-start;
      margin-bottom: 20px; position: relative; z-index: 2;
    }

    .cert-esgeneo-logo {
      display: inline-flex; align-items: center;
    }
    .cert-esgeneo-logo img {
      height: 26px; width: auto; display: block;
      mix-blend-mode: screen;
      filter: brightness(1.15) contrast(1.05);
    }

    .cert-cf-primary {
      display: inline-flex; align-items: center;
    }
    .cert-cf-primary img {
      height: 28px !important;
      width: auto !important;
      max-width: 140px !important;
      display: block;
      mix-blend-mode: screen;
      filter: brightness(1.15) contrast(1.05);
    }

    /* ─── PDF download row ─── */
    .modal-pdf-row {
      padding: 16px clamp(20px,5vw,28px) 0;
      display: flex; justify-content: center;
    }
    .modal-pdf-btn {
      display: inline-flex; align-items: center; gap: 7px;
      background: transparent;
      border: 1.5px solid var(--green-btn);
      color: var(--green-btn);
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 13px; font-weight: 700;
      padding: 10px 20px; border-radius: var(--r-pill);
      cursor: pointer; white-space: nowrap;
      transition: background .2s, color .2s, transform .15s, box-shadow .2s;
      width: 100%; justify-content: center;
    }
    .modal-pdf-btn:hover:not(:disabled) {
      background: var(--green-btn); color: white;
      transform: translateY(-1px);
      box-shadow: 0 5px 18px rgba(33,92,40,.22);
    }
    .modal-pdf-btn:disabled { opacity: .55; cursor: not-allowed; }

    .cert-headline {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 9px; font-weight: 700; letter-spacing: .22em;
      text-transform: uppercase; color: rgba(62,222,122,.65);
      margin-bottom: 8px; position: relative; z-index: 2;
    }

    .cert-company-name {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: clamp(22px,5.5vw,34px); font-weight: 800;
      color: white; line-height: 1.12; margin-bottom: 22px;
      letter-spacing: -1px; position: relative; z-index: 2;
    }

    .cert-scores-row {
      display: flex; align-items: stretch; gap: 14px;
      position: relative; z-index: 2; flex-wrap: wrap;
    }

    .cert-main-score {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.14);
      border-radius: var(--r-lg);
      padding: 16px 22px; min-width: 94px;
    }
    .cert-score-num {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 44px; font-weight: 800; color: white;
      line-height: 1; letter-spacing: -2px;
    }
    .cert-score-lbl {
      font-size: 9px; font-weight: 700; color: rgba(255,255,255,.45);
      text-transform: uppercase; letter-spacing: .12em; margin-top: 5px;
    }

    .cert-pillars {
      flex: 1; min-width: 150px;
      display: flex; flex-direction: column; justify-content: center; gap: 9px;
    }
    .cert-pillar-row { display: flex; align-items: center; gap: 9px; }
    .cert-pillar-icon { font-size: 12px; width: 18px; text-align: center; flex-shrink: 0; }
    .cert-pillar-track {
      flex: 1; height: 5px; background: rgba(255,255,255,.10); border-radius: 3px; overflow: hidden;
    }
    .cert-pillar-fill {
      height: 100%; border-radius: 3px; width: 0%;
      transition: width 1.1s cubic-bezier(.4,0,.2,1) .6s;
    }
    .cert-pf-e { background: #5DD87A; }
    .cert-pf-s { background: #F5B93A; }
    .cert-pf-g { background: #8CBFA0; }
    .cert-pillar-pct {
      font-size: 11px; font-weight: 700; color: rgba(255,255,255,.65);
      width: 32px; text-align: right; flex-shrink: 0;
    }

    .cert-level-row {
      display: flex; align-items: center; justify-content: space-between;
      margin-top: 18px; position: relative; z-index: 2;
    }
    .cert-level-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: rgba(62,222,122,.14);
      border: 1px solid rgba(62,222,122,.28);
      border-radius: var(--r-pill);
      padding: 6px 14px;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 12px; font-weight: 700; color: #7AFFA0;
    }
    .cert-meta-right { text-align: right; }
    .cert-id   { font-size: 9px; color: rgba(255,255,255,.28); font-family: monospace; }
    .cert-date { font-size: 9px; color: rgba(255,255,255,.28); margin-top: 2px; }

    /* ─── Bottom send section ─── */
    .modal-send {
      padding: clamp(20px,5vw,28px);
      border-top: 1px solid var(--border);
    }
    .modal-send-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 16px; font-weight: 800; color: var(--green-deep); margin-bottom: 5px;
    }
    .modal-send-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px; }

    .modal-input-row { display: flex; gap: 8px; }

    .modal-email-inp {
      flex: 1; background: var(--bg-subtle);
      border: 1.5px solid var(--border); border-radius: var(--r-pill);
      color: var(--text); font-family: 'DM Sans', sans-serif;
      font-size: 14px; padding: 12px 18px;
      outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
      min-width: 0; -webkit-appearance: none;
    }
    .modal-email-inp::placeholder { color: var(--text-dim); }
    .modal-email-inp:focus {
      border-color: var(--green-btn); background: white;
      box-shadow: 0 0 0 3px rgba(33,92,40,.10);
    }

    .modal-send-btn {
      background: var(--green-btn); color: white; border: none;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 14px; font-weight: 700;
      padding: 12px 22px; border-radius: var(--r-pill);
      cursor: pointer; white-space: nowrap; flex-shrink: 0;
      transition: background .2s, transform .15s, box-shadow .2s;
    }
    .modal-send-btn:hover {
      background: var(--green-btn-h);
      transform: translateY(-1px);
      box-shadow: 0 6px 22px rgba(33,92,40,.28);
    }

    .modal-cert-ok {
      display: none; align-items: center; gap: 8px;
      font-size: 13px; font-weight: 600; color: var(--green-btn); margin-top: 12px;
    }
    .modal-cert-ok.show { display: flex; }

    @media(max-width:520px){
      /* Overlay: scroll as page so modal is always accessible */
      .modal-overlay {
        align-items: flex-start;
        overflow-y: auto;
        padding: 16px 12px 32px;
      }
      .modal-box {
        max-height: none;
        overflow-y: visible;
        margin: auto;
        border-radius: 20px;
      }
      /* Cert card padding tighter */
      .cert-card { padding: 22px 18px 20px; }

      /* Stack score + pillars vertically */
      .cert-scores-row { flex-direction: column; gap: 12px; }
      .cert-main-score {
        flex-direction: row; align-items: center;
        gap: 14px; padding: 13px 18px;
        min-width: 0; width: 100%;
      }
      .cert-score-num { font-size: 38px; }

      .cert-pillars { min-width: 100%; }

      .cert-level-row { flex-wrap: wrap; gap: 8px; }
      .cert-meta-right { text-align: left; }

      /* Send section */
      .modal-send { padding: 18px 16px; }
      .modal-input-row { flex-direction: column; }
      .modal-send-btn { width: 100%; justify-content: center; }

      /* Hide guarantor text on tiny screens */
      .cert-cf-badge span { display: none; }
    }

    /* Footer note */
    .result-foot {
      text-align: center; font-size: 13px; font-style: italic;
      color: var(--text-dim); line-height: 1.6; padding: 0 8px;
    }

    .result-foot a { color: var(--green-btn); text-decoration: none; font-weight: 600; }

    /* =============================================
       ANIMATIONS
    ============================================= */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(14px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .fu { opacity: 0; animation: fadeUp .5s cubic-bezier(.4,0,.2,1) forwards; }
    .d0 { animation-delay:   0ms; }
    .d1 { animation-delay:  80ms; }
    .d2 { animation-delay: 160ms; }
    .d3 { animation-delay: 240ms; }
    .d4 { animation-delay: 320ms; }
    .d5 { animation-delay: 400ms; }

    /* =============================================
       MISC RESPONSIVE
    ============================================= */
    @media(max-width:600px){
      .navbar { padding: 9px 12px; }
      .carbonfree-logo span { display: none; }   /* show only dot on tiny screens */
    }

/* =============================================
   PRIVACY PAGE
   ============================================= */
  .page {
    min-height: 100vh;
    background: var(--bg);
    font-family: 'DM Sans', Arial, sans-serif;
  }

  /* Back link in navbar */
  .nav-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px; font-weight: 600;
    color: var(--green-btn); text-decoration: none;
    background: var(--green-soft);
    border: 1.5px solid rgba(33,92,40,.15);
    border-radius: var(--r-pill);
    padding: 7px 14px;
    transition: background .2s, box-shadow .2s;
  }
  .nav-back-link:hover {
    background: #d4e8d6;
    box-shadow: 0 2px 10px rgba(33,92,40,.12);
  }

  /* Hero */
  .hero {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px 28px;
  }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--green-soft);
    border: 1px solid rgba(33,92,40,.18);
    border-radius: var(--r-pill);
    padding: 5px 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px; font-weight: 700;
    color: var(--green-btn); letter-spacing: .04em;
    margin-bottom: 16px;
  }
  .hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(26px, 5vw, 38px); font-weight: 800;
    color: var(--green-deep); line-height: 1.15;
    letter-spacing: -1px; margin: 0 0 10px;
  }
  .hero-meta {
    font-size: 13px; color: var(--text-muted); margin: 0;
  }

  /* Content card */
  .content-card {
    max-width: 680px;
    margin: 0 auto 60px;
    padding: 0 20px;
  }

  /* Section */
  .section { padding: 28px 0; }

  .section-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--green-btn); opacity: .65;
    margin-bottom: 8px;
  }
  .section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px; font-weight: 800;
    color: var(--green-deep); margin: 0 0 14px;
    letter-spacing: -.4px;
  }
  .section p {
    font-size: 14px; color: var(--text-muted);
    line-height: 1.75; margin: 0 0 12px;
  }
  .section ul {
    padding-left: 0; list-style: none; margin: 0 0 14px;
  }
  .section ul li {
    font-size: 14px; color: var(--text-muted);
    line-height: 1.7; padding: 4px 0 4px 22px;
    position: relative;
  }
  .section ul li::before {
    content: '';
    position: absolute; left: 0; top: 12px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green-btn); opacity: .45;
  }

  /* Divider */
  .divider {
    border: none;
    border-top: 1px solid var(--border);
  }

  /* Info box */
  .info-box {
    background: #EFF7F1;
    border: 1px solid rgba(33,92,40,.14);
    border-radius: var(--r-lg);
    padding: 12px 16px;
    margin-top: 4px;
  }
  .info-box p {
    font-size: 13px !important; color: var(--green-btn) !important;
    margin: 0 !important; line-height: 1.6 !important;
  }

  /* Contact block */
  .contact-block {
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 18px;
    margin-top: 14px;
  }
  .contact-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
  .contact-label {
    font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--text-dim); margin-bottom: 3px;
  }
  .contact-value a {
    font-size: 15px; font-weight: 700;
    color: var(--green-btn); text-decoration: none;
  }
  .contact-value a:hover { text-decoration: underline; }

  /* Rights grid */
  .rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 4px;
  }
  .right-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 16px;
  }
  .right-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px; font-weight: 700;
    color: var(--green-deep); margin-bottom: 5px;
  }
  .right-card-desc {
    font-size: 12px; color: var(--text-muted);
    line-height: 1.6;
  }

  @media (max-width: 520px) {
    .hero { padding: 28px 16px 20px; }
    .content-card { padding: 0 16px; }
    .rights-grid { grid-template-columns: 1fr 1fr; }
  }