  :root {
    --bg: #edf1f7;
    --paper: #ffffff;
    --ink: #0e1b2c;
    --muted: #55627a;
    --line: #c9d3e3;
    --accent: #1f4bd8;
    --accent-ink: #ffffff;
    --stub: #ffd84d;
    --stub-ink: #0e1b2c;
    --focus: #1f4bd8;
    --display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
    --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #0b1220;
      --paper: #131d31;
      --ink: #eaf0fb;
      --muted: #9aa8c2;
      --line: #2a3855;
      --accent: #6e93ff;
      --accent-ink: #0b1220;
      --stub: #ffd84d;
      --stub-ink: #0e1b2c;
      --focus: #9db6ff;
    }
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 18px;
    line-height: 1.55;
  }
  .wrap { max-width: 880px; margin: 0 auto; padding: 32px 20px 64px; }

  header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
  h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    max-width: 16ch;
  }
  .lead { color: var(--muted); max-width: 52ch; margin: 0; }
  .lang {
    display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; flex: none;
  }
  .lang button {
    font: 600 14px var(--body); border: 0; background: transparent; color: var(--muted);
    padding: 6px 12px; border-radius: 999px; cursor: pointer;
  }
  .lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

  .disclosure {
    margin: 28px 0 8px;
    padding: 12px 16px;
    border-left: 4px solid var(--accent);
    background: var(--paper);
    font-size: 15px;
    color: var(--muted);
  }

  /* Tabs */
  .tabs-scroll { overflow-x: auto; margin: 24px -20px 0; padding: 0 20px; scrollbar-width: thin; }
  [role="tablist"] { display: flex; gap: 8px; min-width: max-content; padding-bottom: 14px; }
  [role="tab"] {
    font: 700 16px var(--display);
    color: var(--ink);
    background: transparent;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    white-space: nowrap;
  }
  [role="tab"]:hover { border-color: var(--ink); }
  [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

  /* Voucher */
  /* The notches are real cut-outs (mask), so the shadow follows the outline.
     Shadow lives on the wrapper because a mask would clip a box-shadow. */
  #panel { filter: drop-shadow(0 1px 0 var(--line)) drop-shadow(0 12px 14px rgba(14, 27, 44, .12)); }
  .voucher {
    --notch: 11px;
    --cut: calc(100% - 250px);
    display: grid;
    grid-template-columns: 1fr 250px;
    background: var(--paper);
    border-radius: 14px;
    -webkit-mask: radial-gradient(circle var(--notch) at var(--cut) 0, #0000 98%, #000),
                  radial-gradient(circle var(--notch) at var(--cut) 100%, #0000 98%, #000);
    mask: radial-gradient(circle var(--notch) at var(--cut) 0, #0000 98%, #000),
          radial-gradient(circle var(--notch) at var(--cut) 100%, #0000 98%, #000);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
  }

  .main { padding: 28px 28px 24px; border-right: 2px dashed var(--line); }
  .cat { color: var(--muted); font-size: 15px; margin: 0 0 4px; }
  .main h2 { font-family: var(--display); font-size: 1.9rem; line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.01em; text-wrap: balance; }
  .main p { margin: 0 0 14px; max-width: 46ch; }
  .steps { margin: 0 0 14px; padding-left: 1.2em; max-width: 46ch; }
  .steps li { margin-bottom: 4px; }
  .terms { font-size: 15px; color: var(--muted); margin: 0; }

  .stub {
    background: var(--stub); color: var(--stub-ink);
    border-radius: 0 14px 14px 0;
    padding: 28px 22px 24px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  }
  .stub .label { font-size: 15px; margin: 0 0 4px; font-weight: 600; }
  .stub .benefit { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; margin: 0; text-wrap: balance; }
  .actions { display: grid; gap: 8px; }
  .btn {
    display: block; text-align: center; text-decoration: none; cursor: pointer;
    font: 700 16px var(--display); padding: 12px 14px; border-radius: 10px; border: 2px solid var(--stub-ink);
  }
  .btn.primary { background: var(--stub-ink); color: #fff; }
  .btn.ghost { background: transparent; color: var(--stub-ink); }
  .btn:focus-visible { outline-color: var(--stub-ink); }

  @media (max-width: 640px) {
    .voucher { grid-template-columns: 1fr; }
    .voucher { -webkit-mask: none; mask: none; }
    .main { border-right: 0; border-bottom: 2px dashed var(--line); }
    .stub { border-radius: 0 0 14px 14px; }
  }

  footer { margin-top: 40px; color: var(--muted); font-size: 14px; max-width: 60ch; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .todo { background: #fff3c4; color: #5a4300; padding: 0 4px; border-radius: 3px; }

  @media (prefers-reduced-motion: no-preference) {
    .voucher { animation: rise .25s ease-out; }
    @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  }
