/*
 * Theme "tiers" (magic-truffles.co.uk)
 * 1 Concept: a software pricing page where the plans are truffle strengths. Gentle, Moderate, Strong and a
 *   grow-kit plan; a First time / Been here before switch moves the recommendation; the legal line is a row
 *   every plan shares: legal for a stay in the Netherlands, Class A at the UK border.
 * 2 Type: Fustat (headings and text, variable 400-800) + Ubuntu Sans Mono (labels, specs, table heads).
 * 3 Palette: porcelain #f4f3ef, card #ffffff, ink #16151b, slate #5c5966, aubergine #5e2750 (accent),
 *   strength ramp sage #7fa58a / amber #c98a2b / aubergine, UK-line red #b4232c.
 * 4 Layout signature: segmented toggle over four plan cards with a moving "Recommended" flag, a feature
 *   comparison table with sticky header and a red UK row, FAQ accordion; articles open with a plan card.
 * 5 Detail: the four-step strength meter (signal bars) that marks every tier, card and table column.
 */
@font-face { font-family: "Fustat"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/fustat-latin.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: "Fustat"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/fustat-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Ubuntu Sans Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/ubuntu-sans-mono-latin.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: "Ubuntu Sans Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/ubuntu-sans-mono-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f4f3ef; --card: #fff; --ink: #16151b; --slate: #5c5966; --line: #e3e0d8; --line2: #d3cfc5;
  --plum: #5e2750; --plum-d: #47193c; --plum-t: #f3eaf0; --sage: #7fa58a; --amber: #c98a2b; --red: #b4232c; --red-t: #fbeeee; --green: #2c6b47;
  --sans: "Fustat", ui-sans-serif, system-ui, sans-serif; --mono: "Ubuntu Sans Mono", ui-monospace, monospace;
  --r: 18px; --bar: 64px; --ease: cubic-bezier(.3, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--plum-d); text-decoration-thickness: 2px; }
:focus-visible { outline: 2.5px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.022em; font-weight: 700; margin: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 10px; }
.wrap { width: min(1220px, 100% - 40px); margin-inline: auto; }
.eyebrow { font: 500 .78rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--plum); margin: 0 0 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; font: 600 .95rem/1.2 var(--sans); text-decoration: none; border: 1.5px solid transparent; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease); cursor: pointer; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--plum); color: #fff; }
.btn-plan { background: var(--card); color: var(--ink); border-color: var(--line2); width: 100%; }
.btn-plan:hover { border-color: var(--ink); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line2); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--plum); }
.btn-light:hover { background: var(--plum-t); color: var(--plum-d); }

/* strength meter */
.meter { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; vertical-align: middle; }
.meter i { width: 5px; border-radius: 2px; background: var(--line2); }
.meter i:nth-child(1) { height: 5px; } .meter i:nth-child(2) { height: 8px; } .meter i:nth-child(3) { height: 12px; } .meter i:nth-child(4) { height: 16px; }
.meter[data-level="1"] i.on { background: var(--sage); }
.meter[data-level="2"] i.on { background: var(--amber); }
.meter[data-level="3"] i.on, .meter[data-level="4"] i.on { background: var(--plum); }
.meter[data-level="0"] i { background: transparent; border: 1.5px dashed var(--line2); }
.mk { width: 18px; height: 18px; flex: none; padding: 2px; border-radius: 50%; }
.mk-yes { color: var(--green); background: #e6f0ea; }
.mk-no { color: var(--red); background: var(--red-t); }

/* header bar */
.bar { position: sticky; top: 0; z-index: 30; background: rgb(244 243 239 / .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { width: min(1220px, 100% - 40px); margin-inline: auto; height: var(--bar); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand-name { font-weight: 750; font-size: 1.08rem; letter-spacing: -.02em; line-height: 1.05; display: flex; flex-direction: column; }
.brand-name small { font: 400 .7rem/1.2 var(--mono); color: var(--slate); letter-spacing: .02em; margin-top: 2px; }
.nav { display: none; gap: 2px; margin-left: auto; }
.nav a { color: var(--slate); text-decoration: none; font-weight: 550; font-size: .94rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: #ebe9e3; }
.nav a[aria-current] { color: var(--ink); background: #e6e3db; }
.bar-cta { display: none; min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.menu { margin-left: auto; position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; cursor: pointer; border: 1px solid var(--line2); background: var(--card); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu nav { position: absolute; right: 0; top: 52px; width: min(300px, 86vw); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: grid; gap: 2px; box-shadow: 0 24px 50px -24px rgb(22 21 27 / .35); }
.menu nav a { padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 550; }
.menu nav a[aria-current] { background: var(--plum-t); }
.menu nav .btn { margin-top: 6px; color: #fff; }
@media (min-width: 1080px) {
  .nav { display: flex; }
  .bar-cta { display: inline-flex; }
  .menu { display: none; }
}

/* plan cards */
.plans { display: grid; gap: 16px; margin-top: clamp(30px, 5vw, 52px); align-items: stretch; }
@media (min-width: 700px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1120px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 20px; transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease); }
.plan-flag { height: 26px; margin: 0 0 10px; display: flex; gap: 6px; }
.rec, .kit-flag { display: none; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font: 500 .72rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.rec { background: var(--plum); color: #fff; }
.rec::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.kit-flag { display: inline-flex; border: 1px dashed var(--line2); color: var(--slate); }
.pricing:not(:has(#mode-been:checked)) .plan[data-rec-first], .pricing:has(#mode-been:checked) .plan[data-rec-been] { border: 1.5px solid var(--plum); box-shadow: 0 30px 60px -40px rgb(94 39 80 / .55); }
.pricing:not(:has(#mode-been:checked)) .rec-first, .pricing:has(#mode-been:checked) .rec-been { display: inline-flex; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { font-size: 1.55rem; font-weight: 750; letter-spacing: -.03em; margin: 0; }
.plan-rating { margin: 4px 0 14px; font-size: .95rem; color: var(--ink); font-weight: 550; }
.plan-rating span { font: 400 .74rem/1 var(--mono); color: var(--slate); text-transform: uppercase; letter-spacing: .05em; margin-right: 4px; }
.plan-product { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 14px; padding: 10px; margin: 0 0 14px; background: var(--paper); border-radius: 14px; color: var(--ink); text-decoration: none; }
.plan-product:hover { color: var(--ink); text-decoration: none; background: #eceae4; }
.plan-product img { width: 76px; height: 76px; object-fit: contain; background: #fff; border-radius: 10px; }
.plan-pname { font-weight: 650; line-height: 1.25; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 14px; }
.plan-price .amount { font-size: 2rem; font-weight: 760; letter-spacing: -.03em; }
.plan-price .per { font: 400 .78rem/1.3 var(--mono); color: var(--slate); }
.plan .btn-plan { margin-bottom: 18px; }
.pricing:not(:has(#mode-been:checked)) .plan[data-rec-first] .btn-plan, .pricing:has(#mode-been:checked) .plan[data-rec-been] .btn-plan, .doc-plan .btn-plan { background: var(--plum); border-color: var(--plum); color: #fff; }
.pricing:not(:has(#mode-been:checked)) .plan[data-rec-first] .btn-plan:hover, .pricing:has(#mode-been:checked) .plan[data-rec-been] .btn-plan:hover, .doc-plan .btn-plan:hover { background: var(--plum-d); }
.plan-summary { margin: 0 0 12px; font-size: .95rem; color: var(--slate); line-height: 1.5; padding-top: 16px; border-top: 1px solid var(--line); }
.plan-specs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 9px; font-size: .92rem; line-height: 1.4; }
.plan-specs li { display: flex; gap: 10px; align-items: flex-start; }
.plan-specs li.no { color: var(--red); font-weight: 600; }
.plan-specs .m-been { display: none; }
.pricing:has(#mode-been:checked) .plan-specs .m-first { display: none; }
.pricing:has(#mode-been:checked) .plan-specs .m-been { display: flex; }
.plan-specs .m { font-weight: 600; color: var(--ink); }
.plan-also { margin: auto 0 0; padding-top: 12px; border-top: 1px dashed var(--line2); font: 400 .8rem/1.5 var(--mono); color: var(--slate); }
.plan--kit { background: transparent; border-style: dashed; border-color: var(--line2); }
.plan--kit .plan-product { background: #ecebe6; }
.plan--kit .plan-specs li.no { font-weight: 600; }
.strongest-note { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; justify-content: center; color: var(--slate); font-size: .95rem; text-align: center; }

/* story + prose */
.prose { min-width: 0; }
.prose > * + * { margin-top: 1.05em; }
.prose p, .prose li { max-width: 68ch; text-wrap: pretty; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-top: 2.1em; padding-top: .3em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--plum); }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--plum); color: var(--slate); }
.prose code { font: .9em var(--mono); background: #ebe9e3; padding: 1px 5px; border-radius: 5px; }
.prose hr { border: 0; border-top: 1px solid var(--line2); margin: 2.4em 0; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: 14px; }
.prose .table { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 1.6em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.45; }
.prose th { text-align: left; font: 600 .74rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--slate); padding: 12px 14px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.prose td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.prose tr:first-child td { border-top: 0; }

/* product cards in text */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 1.8em 0; }
.product-feature { margin: 1.8em 0; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 12px; transition: border-color .3s, transform .3s var(--ease); }
.pcard:hover { border-color: var(--line2); transform: translateY(-2px); }
.pcard-img { display: block; background: var(--paper); border-radius: 10px; }
.pcard-img img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.pcard-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-tier { margin: 0; display: flex; align-items: center; gap: 8px; font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
.pcard-name { font-size: 1rem; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; margin: 0; }
.pcard-name a { color: var(--ink); text-decoration: none; }
.pcard-name a:hover { color: var(--plum); }
.pcard-price { margin: auto 0 4px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pcard-price .amount { font-size: 1.25rem; font-weight: 750; letter-spacing: -.02em; }
.pcard-price .shop { font: 400 .72rem/1.2 var(--mono); color: var(--slate); text-align: right; }
.pcard .btn { min-height: 40px; font-size: .88rem; }
.pcard--wide { flex-direction: row; align-items: center; max-width: 560px; }
.pcard--wide .pcard-img { width: 150px; flex: none; }

/* article head */
.doc-head { padding: clamp(28px, 5vw, 56px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.doc-head-in { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .doc-head-in { grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; } .doc-head--solo { grid-template-columns: 1fr; } }
.crumbs { display: flex; gap: 8px; font: 400 .8rem/1.4 var(--mono); color: var(--slate); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a { color: var(--slate); }
.doc-intro h1 { font-size: clamp(1.95rem, 4.2vw, 3.1rem); font-weight: 760; letter-spacing: -.033em; text-wrap: balance; max-width: 22ch; }
.doc-intro .lead { margin: 18px 0 0; max-width: 58ch; color: var(--slate); font-size: 1.12rem; }
.doc-meta { margin: 18px 0 0; font: 400 .8rem/1.4 var(--mono); color: var(--slate); }
.doc-plan { background: var(--card); border: 1.5px solid var(--plum); border-radius: var(--r); padding: 18px; box-shadow: 0 30px 60px -44px rgb(94 39 80 / .55); }
.doc-plan .rec { display: inline-flex; }
.doc-plan .plan-flag { margin-bottom: 8px; }
.doc-plan .plan-name { font-size: 1.3rem; }
.doc-plan .plan-product { margin-top: 12px; }
.doc-plan .plan-specs { margin: 0; }
.doc-mascot img { width: 200px; margin-inline: auto; }

/* article body */
.doc-body { display: grid; gap: 28px; padding: clamp(32px, 5vw, 60px) 0 clamp(40px, 6vw, 72px); }
@media (min-width: 1000px) { .doc-body { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; } .doc-body--solo { grid-template-columns: minmax(0, 760px); justify-content: center; } }
.toc { font-size: .9rem; }
.toc p { font: 600 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--slate); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line2); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--slate); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--plum); border-left-color: var(--plum); font-weight: 600; }
@media (max-width: 999px) { .toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; } }
@media (min-width: 1000px) { .toc { position: sticky; top: calc(var(--bar) + 28px); align-self: start; max-height: calc(100vh - var(--bar) - 56px); overflow: auto; } }

/* next steps + mini plans */
.next { padding: 0 0 clamp(36px, 5vw, 60px); }
.next h2 { font-size: 1.35rem; margin-bottom: 16px; }
.next-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .next-grid { grid-template-columns: repeat(3, 1fr); } }
.next-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 44px 18px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; transition: border-color .3s, transform .3s var(--ease); }
.next-card:hover { border-color: var(--plum); color: var(--ink); text-decoration: none; transform: translateY(-2px); }
.next-label { font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--plum); }
.next-title { font-weight: 650; line-height: 1.3; }
.next-arrow { position: absolute; right: 18px; top: 50%; translate: 0 -50%; color: var(--plum); }
.miniplans { border-top: 1px solid var(--line); padding: 22px 0; background: #efede8; }
.miniplans-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.miniplans-title { margin: 0 8px 0 0; font: 600 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--slate); }
.mini { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.mini:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.mini-name { font-weight: 650; }
.mini-p { color: var(--slate); }
.mini--all { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.mini--all:hover { background: var(--plum); color: #fff; }

/* footer */
.foot { background: var(--ink); color: #d9d6de; padding: clamp(40px, 6vw, 64px) 0 40px; font-size: .92rem; }
.foot a { color: #fff; }
.foot-in { display: grid; gap: 32px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; } }
.foot .brand, .foot .brand:hover { color: #fff; }
.foot .brand img { width: 30px; height: 30px; background: #f4f3ef; border-radius: 8px; padding: 3px; }
.foot-disc { margin: 16px 0 0; color: #bdb9c4; line-height: 1.6; max-width: 52ch; }
.foot-nav { display: grid; gap: 8px; align-content: start; }
.foot-nav a { text-decoration: none; color: #d9d6de; }
.foot-nav a:hover { color: #fff; text-decoration: underline; }
.foot-pub { display: flex; gap: 16px; align-items: flex-start; }
.foot-pub img { width: 72px; height: 72px; flex: none; background: #2a2830; border-radius: 16px; padding: 4px; }
.foot-pub p { margin: 0; line-height: 1.6; }
.foot-pub a { display: inline-block; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.doc-plan .btn-plan { margin-bottom: 16px; }
