/* DutyFreeks calculators — base styles copied from the live guide page + calculator UI */
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/2sDcZGJYnIjSi6H75xkzamW5O7w.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; } @font-face { font-family: 'Assistant'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/2sDcZGJYnIjSi6H75xkzaGW5.woff2) format('woff2'); 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; } @font-face { font-family: 'Assistant'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/2sDcZGJYnIjSi6H75xkzamW5O7w.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; } @font-face { font-family: 'Assistant'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/2sDcZGJYnIjSi6H75xkzaGW5.woff2) format('woff2'); 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; } @font-face { font-family: 'Assistant'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/2sDcZGJYnIjSi6H75xkzamW5O7w.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; } @font-face { font-family: 'Assistant'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/2sDcZGJYnIjSi6H75xkzaGW5.woff2) format('woff2'); 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; } @font-face { font-family: 'Heebo'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/NGS6v5_NC0k9P9H0TbFzsQ.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; } @font-face { font-family: 'Heebo'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/NGS6v5_NC0k9P9H2TbE.woff2) format('woff2'); 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; } @font-face { font-family: 'Heebo'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/NGS6v5_NC0k9P9H0TbFzsQ.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; } @font-face { font-family: 'Heebo'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/NGS6v5_NC0k9P9H2TbE.woff2) format('woff2'); 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; } @font-face { font-family: 'Heebo'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/NGS6v5_NC0k9P9H0TbFzsQ.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; } @font-face { font-family: 'Heebo'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/NGS6v5_NC0k9P9H2TbE.woff2) format('woff2'); 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; } @font-face { font-family: 'Heebo'; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/NGS6v5_NC0k9P9H0TbFzsQ.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; } @font-face { font-family: 'Heebo'; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/NGS6v5_NC0k9P9H2TbE.woff2) format('woff2'); 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 {
    --bg: #f3f1ec;
    --panel: rgba(22,35,61,0.035);
    --panel-border: #dde1e7;
    --neon: #1d63d1;
    --neon2: #c9972c;
    --amber: #c9822e;
    --text: #16233d;
    --text-dim: #5c6b80;
    /* type scale — every text element maps to one of these */
    --fs-hero: 34px;
    --fs-section: 24px;
    --fs-panel-title: 16px;
    --fs-body: 14px;
    --fs-small: 12px;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Assistant', 'Heebo', ui-sans-serif, system-ui, sans-serif;
    min-height: 100vh;
    position: relative;
  }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

  /* n8n background diagram layer — copied verbatim from dutyfreeks homepage */
  #n8nbg-layer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    background-image:
      linear-gradient(180deg,
        rgba(139,92,246,.11) 0%,
        rgba(99,102,241,.08) 10%,
        rgba(6,182,212,.09) 22%,
        rgba(255,138,0,.07) 34%,
        rgba(139,92,246,.09) 46%,
        rgba(6,182,212,.08) 58%,
        rgba(255,138,0,.08) 70%,
        rgba(99,102,241,.09) 82%,
        rgba(6,182,212,.07) 92%,
        rgba(139,92,246,.10) 100%),
      linear-gradient(rgba(255,138,0,0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,138,0,0.045) 1px, transparent 1px);
    background-size: 100% 100%, 42px 42px, 42px 42px;
  }
  #n8nbg-layer img { position: absolute; width: min(1050px, 92vw); opacity: 0.4; }
  #n8nbg-diagram-1 { top: 1%; left: -5%; }
  #n8nbg-diagram-2 { top: 44%; right: -6%; }
  #n8nbg-diagram-3 { top: 84%; left: -5%; }
  #n8nbg-diagram-4 { top: 110%; right: -8%; width: min(1250px, 95vw); }
  .n8nbg-line { position: absolute; height: 2.5px; background: linear-gradient(90deg, transparent, #ff8a00, transparent); opacity: .22; animation: n8nbg-pulse 2.6s ease-in-out infinite; }
  #n8nbg-seam-bridge { position: absolute; top: calc(100vh - 220px); left: 0; right: 0; height: 440px; background: radial-gradient(ellipse 1400px 320px at 50% 50%, rgba(139,92,246,.22), rgba(6,182,212,.10) 55%, transparent 80%); pointer-events: none; }
  .n8nbg-vline { position: absolute; width: 2.5px; background: linear-gradient(180deg, transparent, #ff8a00, transparent); opacity: .18; animation: n8nbg-pulse 3.2s ease-in-out infinite; }
  @keyframes n8nbg-pulse { 0%, 100% { opacity: .15; } 50% { opacity: .68; } }

  header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--panel-border);
  }
  header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
  .brand { display: flex; align-items: baseline; gap: 8px; }
  .brand-main { font-weight: 800; font-size: 20px; letter-spacing: .5px; color: var(--text); }
  .brand-sub { font-weight: 600; font-size: 12px; color: var(--text-dim); transition: color .2s; }
  .brand-sub-link:hover .brand-sub { color: var(--neon); }
  nav { display: flex; gap: 22px; align-items: center; }
  nav a { font-size: var(--fs-body); color: var(--text-dim); transition: color .2s; }
  nav a:hover { color: var(--neon); }
  footer {
    border-top: 1px solid var(--panel-border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-dim);
    font-size: var(--fs-small);
  }
  footer a { color: var(--neon); }

  @media (max-width: 640px) {
    nav { display: none; }
    .hero h1 { font-size: 26px; }
  }

  /* accessibility widget */
  #a11y-btn {
    position: fixed; bottom: 20px; left: 20px; z-index: 60;
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--neon), var(--neon2));
    color: #080c14; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(29,99,209,.35), 0 4px 15px rgba(0,0,0,.3);
    font-size: 20px;
  }
  #a11y-panel {
    position: fixed; bottom: 74px; left: 20px; z-index: 60;
    background: #ffffff; border: 1px solid var(--panel-border); border-radius: 14px;
    padding: 14px; width: 220px; display: none; flex-direction: column; gap: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
  }
  #a11y-panel.open { display: flex; }
  #a11y-panel button {
    background: rgba(22,35,61,0.05); border: 1px solid var(--panel-border); color: var(--text);
    padding: 8px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; text-align: right; font-family: inherit;
  }
  #a11y-panel button:hover { border-color: var(--neon); }
  body.a11y-contrast { background: #000; color: #fff; }
  body.a11y-contrast .panel { background: #111; border-color: #fff; }
  body.a11y-underline a { text-decoration: underline; }

/* ---- calculators page ---- */
.hero { text-align: center; padding: 48px 20px 18px; }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; margin: 0 0 12px; }
.hero p { color: var(--text-dim); font-size: 16px; line-height: 1.8; max-width: 720px; margin: 0 auto; }
.badge { display: inline-flex; background: rgba(232,134,46,.12); color: var(--amber); border: 1px solid rgba(232,134,46,.35); border-radius: 999px; padding: 5px 14px; font-size: var(--fs-small); font-weight: 700; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px auto 0; max-width: 900px; }
.chips a { font-size: 13px; border: 1px solid var(--panel-border); background: rgba(255,255,255,.7); border-radius: 999px; padding: 6px 12px; color: var(--text); }
.chips a:hover { border-color: var(--neon); color: var(--neon); }
.sec-title { font-size: var(--fs-section); font-weight: 800; margin: 34px 0 14px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.panel { position: relative; border: 1.8px solid transparent; border-radius: 16px; padding: 18px;
  background-image: linear-gradient(#fbfaf7, #fbfaf7), linear-gradient(120deg, rgba(232,134,46,.55), rgba(29,99,209,.55));
  background-origin: border-box; background-clip: padding-box, border-box; scroll-margin-top: 70px; }
.calc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.calc-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; background: rgba(29,99,209,.1); color: var(--neon); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.calc-head h2, .calc-head h3 { font-size: 17px; font-weight: 800; margin: 0; }
.calc-head small { display: block; font-size: var(--fs-small); color: var(--text-dim); }
.calc-link { margin-inline-start: auto; font-size: var(--fs-small); color: var(--neon); white-space: nowrap; }
.dfc-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.dfc-f { flex: 1 1 120px; min-width: 0; margin: 0; padding: 0; border: 0; }
.dfc-f.dfc-seg { flex-basis: 100%; }
.dfc-f > label, .dfc-f legend { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 4px; padding: 0; font-weight: 600; }
.dfc-in { display: flex; align-items: center; background: #fff; border: 1.5px solid #cfd8e3; border-radius: 10px; padding: 0 10px; }
.dfc-in:focus-within, .dfc-f select:focus { border-color: var(--neon); outline: 2px solid rgba(29,99,209,.2); }
.dfc-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 17px; padding: 10px 0; color: var(--text); direction: ltr; text-align: right; }
.dfc-in span { color: var(--text-dim); font-size: 13px; padding-inline-start: 6px; }
.dfc-f select { width: 100%; font: inherit; font-size: 16px; padding: 10px; border-radius: 10px; border: 1.5px solid #cfd8e3; background: #fff; color: var(--text); }
.dfc-seg > div { display: flex; flex-wrap: wrap; gap: 6px; }
.dfc-seg label { flex: 1 1 auto; position: relative; }
.dfc-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dfc-seg span { display: block; text-align: center; padding: 9px 8px; border-radius: 10px; border: 1.5px solid #cfd8e3; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.dfc-seg input:checked + span { background: var(--neon); border-color: var(--neon); color: #fff; }
.dfc-seg input:focus-visible + span { outline: 3px solid rgba(29,99,209,.35); }
.dfc-out { margin-top: 12px; background: rgba(29,99,209,.07); border-radius: 12px; padding: 8px 12px; }
.dfc-r { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; color: var(--text-dim); }
.dfc-r b { color: var(--text); font-weight: 700; direction: ltr; unicode-bidi: plaintext; text-align: left; }
.dfc-r.main { border-top: 1px solid rgba(29,99,209,.2); margin-top: 4px; padding-top: 9px; font-size: 16px; color: var(--text); font-weight: 700; }
.dfc-r.main b { font-size: 19px; color: var(--neon); }
.dfc-note { font-size: var(--fs-small); margin: 10px 0 0; }
.dfc-note a { color: var(--neon); text-decoration: underline; }
.single { max-width: 640px; margin: 0 auto; }
.explain { max-width: 640px; margin: 22px auto 0; font-size: 15px; line-height: 1.85; color: var(--text-dim); }
.more { margin: 34px auto 50px; max-width: 900px; text-align: center; }
.more h2 { font-size: 18px; margin: 0 0 10px; }
.disclaimer { text-align: center; color: var(--text-dim); font-size: var(--fs-small); margin: 30px auto 50px; max-width: 720px; line-height: 1.7; }
@media (max-width: 640px) { .calc-grid { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }
/* legal pages (terms / privacy) */
.legal { max-width: 820px; margin: 0 auto 50px; line-height: 1.8; font-size: 15px; }
.legal h2 { font-size: 18px; font-weight: 800; margin: 22px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin: 0 0 10px; }
.legal ul { padding-inline-start: 22px; }
.legal a { color: var(--neon); }
/* ---- hub grid: aligned rows, equal heights, results pinned to the bottom ---- */
.calc-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.calc-grid > .panel { grid-column: span 2; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(22,35,61,.04), 0 6px 18px rgba(22,35,61,.05); transition: box-shadow .2s, transform .2s; }
.calc-grid > .panel:hover { box-shadow: 0 2px 4px rgba(22,35,61,.06), 0 12px 28px rgba(22,35,61,.09); transform: translateY(-2px); }
.calc-grid > .panel > [data-calc] { flex: 1; display: flex; flex-direction: column; }
.calc-grid > .panel .dfc-out { margin-top: auto; }
.calc-grid > .panel .dfc-fields { margin-bottom: 14px; }
/* five cards: 3 on top, 2 wider below, so both rows end flush */
.calc-grid > .panel:nth-child(4):nth-last-child(2), .calc-grid > .panel:nth-child(5):nth-last-child(1) { grid-column: span 3; }
.calc-head { padding-bottom: 12px; border-bottom: 1px solid rgba(29,99,209,.12); margin-bottom: 14px; }
.sec-title { display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ""; width: 5px; height: 24px; border-radius: 3px; background: linear-gradient(180deg, var(--amber), var(--neon)); }
@media (max-width: 1000px) {
  .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-grid > .panel, .calc-grid > .panel:nth-child(4):nth-last-child(2), .calc-grid > .panel:nth-child(5):nth-last-child(1) { grid-column: span 1; }
  .calc-grid > .panel:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 640px) {
  .calc-grid { grid-template-columns: 1fr; gap: 16px; }
  .calc-grid > .panel, .calc-grid > .panel:last-child:nth-child(odd) { grid-column: auto; }
}
