:root {
  --fg-bg: #fbf8f4;
  --fg-paper: #fff;
  --fg-sand: #f4ebe1;
  --fg-line: #e3d5c7;
  --fg-ink: #2a2124;
  --fg-ink-2: #5b4f52;
  --fg-red: #cf1732;
  --fg-red-2: #a3122a;
  --fg-hl: rgba(207, 23, 50, .17);
  --fg-ok: #1d6b40;
  --fg-r: 20px;
  --fg-sketch: 255px 16px 225px 16px / 16px 225px 16px 255px;
  --fg-sx: 1;
  --fg-font: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fg-hand: "Caveat", "Cairo", cursive;
  --fg-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23cf1732' stroke-opacity='.08' stroke-width='1.2'%3E%3Crect x='16' y='16' width='24' height='24'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
  --fg-pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.08' stroke-width='1.2'%3E%3Crect x='16' y='16' width='24' height='24'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
[dir="rtl"] { --fg-sx: -1; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--fg-font); color: var(--fg-ink); background: var(--fg-bg); }
body.noscroll { overflow: hidden; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--fg-red-2); text-underline-offset: .2em; }
a:hover { color: var(--fg-red); }
:focus-visible { outline: 3px solid var(--fg-red); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, .fg-h3, .fg-h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
[dir="rtl"] :is(h1, h2, h3, .fg-h3, .fg-h4) { letter-spacing: 0; line-height: 1.4; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.2rem); }
h3, .fg-h3 { font-size: 1.2rem; }
.fg-h4 { font-size: 1rem; margin-bottom: .2em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
code { font-size: .9em; padding: .1em .35em; background: var(--fg-sand); border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.fg-wrap { width: min(100% - 2 * clamp(1rem, 4vw, 2.5rem), 1180px); margin-inline: auto; }
.fg-narrow { max-width: 820px; }
.fg-skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100; padding: .6em 1em; border-radius: 10px; background: var(--fg-ink); color: #fff; }
.fg-skip:focus { top: 12px; color: #fff; }

/* Header */
.fg-top { position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 244, .95); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1.5px dashed var(--fg-line); }
.fg-top__bar { display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.25rem); min-height: 72px; }
.fg-logo { display: inline-flex; align-items: center; gap: .55rem; margin-inline-end: auto; color: var(--fg-ink); text-decoration: none; }
.fg-logo:hover { color: var(--fg-ink); }
.fg-logo__mark { flex: none; color: var(--fg-red); transition: transform .3s ease; }
.fg-logo:hover .fg-logo__mark { transform: rotate(45deg); }
.fg-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.fg-logo__lat { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.fg-logo__lat b { color: var(--fg-red); }
.fg-logo__ar { font-size: .82rem; font-weight: 600; color: var(--fg-ink-2); }
.fg-nav { display: none; }
.fg-nav ul { display: flex; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.fg-nav a { display: block; padding: .4em .8em; border-radius: 999px; color: var(--fg-ink); font-weight: 600; font-size: .97rem; text-decoration: none; transition: background-color .15s; }
.fg-nav a:hover { background: var(--fg-sand); color: var(--fg-ink); }
.fg-nav a[aria-current="page"] { background: var(--fg-hl); }
.fg-top__cta { display: none; }
.fg-burger { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--fg-ink); border-radius: 12px; background: var(--fg-paper); color: var(--fg-ink); cursor: pointer; }
@media (min-width: 600px) { .fg-top__cta { display: inline-flex; } }
@media (min-width: 1000px) { .fg-nav { display: block; } .fg-burger { display: none; } }
@media (max-width: 400px) { .fg-logo__ar { display: none; } .fg-logo__mark { width: 34px; height: 34px; } }

/* Language switch */
.fg-lang { display: inline-flex; gap: 2px; padding: 3px; border: 1.5px solid var(--fg-ink); border-radius: var(--fg-sketch); background: var(--fg-paper); }
.fg-lang a { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .15em .6em; border-radius: 999px; color: var(--fg-ink); font-weight: 700; font-size: .88rem; text-decoration: none; transition: background-color .15s; }
.fg-lang img { width: 22px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(42, 33, 36, .18); object-fit: cover; }
.fg-lang a[aria-current] { background: var(--fg-ink); color: #fff; }
.fg-lang a:not([aria-current]):hover { background: var(--fg-sand); }
@media (max-width: 380px) {
  .fg-top .fg-lang__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .fg-top .fg-lang a { padding-inline: .45em; }
}

/* Drawer */
.fg-drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility 0s linear .25s; }
.fg-drawer.is-open { visibility: visible; opacity: 1; transition: opacity .25s ease; }
.fg-drawer__backdrop { position: absolute; inset: 0; background: rgba(42, 33, 36, .5); }
.fg-drawer__panel { position: absolute; inset-block: 0; inset-inline-end: 0; display: flex; flex-direction: column; gap: 1.5rem; width: min(86vw, 360px); padding: 1rem 1.25rem 2rem; overflow-y: auto; background: var(--fg-pattern), var(--fg-bg); border-inline-start: 2px solid var(--fg-ink); transform: translateX(calc(100% * var(--fg-sx))); transition: transform .3s ease; }
.fg-drawer.is-open .fg-drawer__panel { transform: none; }
.fg-drawer__close { align-self: flex-end; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--fg-ink); border-radius: 12px; background: var(--fg-paper); color: var(--fg-ink); cursor: pointer; }
.fg-drawer nav ul { margin: 0; padding: 0; list-style: none; }
.fg-drawer nav a { display: block; padding: .8rem .25rem; border-bottom: 1.5px dashed var(--fg-line); color: var(--fg-ink); font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.fg-drawer nav a[aria-current="page"] { color: var(--fg-red-2); }
.fg-drawer .fg-lang { align-self: flex-start; }

/* Buttons & links */
.fg-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .7em 1.5em; border: 2px solid var(--fg-ink); border-radius: 14px; background: var(--fg-red); color: #fff; font: 800 1.05rem/1.2 var(--fg-font); text-align: center; text-decoration: none; cursor: pointer; box-shadow: calc(4px * var(--fg-sx)) 4px 0 var(--fg-ink); transition: transform .15s ease, box-shadow .15s ease, background-color .15s; }
.fg-btn:hover { background: var(--fg-red-2); color: #fff; transform: translate(calc(-1px * var(--fg-sx)), -1px) rotate(calc(-.6deg * var(--fg-sx))); box-shadow: calc(6px * var(--fg-sx)) 6px 0 var(--fg-ink); }
.fg-btn:active { transform: translate(calc(2px * var(--fg-sx)), 2px); box-shadow: calc(1px * var(--fg-sx)) 1px 0 var(--fg-ink); }
.fg-btn--sm { min-height: 42px; padding: .4em 1em; font-size: .95rem; box-shadow: calc(3px * var(--fg-sx)) 3px 0 var(--fg-ink); }
.fg-btn--ghost { background: var(--fg-paper); color: var(--fg-ink); }
.fg-btn--ghost:hover { background: var(--fg-sand); color: var(--fg-ink); }
.fg-btn--block { width: 100%; }
.fg-link { color: var(--fg-ink); font-weight: 700; text-decoration: underline wavy var(--fg-red) 1.5px; text-underline-offset: .35em; }
.fg-link:hover { color: var(--fg-red-2); }

/* Sketch accents */
.fg-hl { padding-inline: .08em; background: linear-gradient(100deg, transparent .2em, var(--fg-hl) .3em, var(--fg-hl) calc(100% - .3em), transparent calc(100% - .2em)) no-repeat 0 88% / 100% .5em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.fg-squiggle::after { content: ""; display: block; width: 110px; height: 10px; margin-top: .4rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 10'%3E%3Cpath d='M2 6c9-5 18 4 27 0s18-5 27 0 18 4 27 0 18-4 25 0' fill='none' stroke='%23cf1732' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat; }
.fg-hand { font-family: var(--fg-hand); font-size: 1.55rem; font-weight: 600; line-height: 1.1; color: var(--fg-red-2); }
[dir="rtl"] .fg-hand { font-family: var(--fg-font); font-size: 1.1rem; font-weight: 700; }
[dir="rtl"] .fg-flip { transform: scaleX(-1); }
.fg-eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .9rem; color: var(--fg-red-2); font-weight: 700; font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; }
[dir="rtl"] .fg-eyebrow { letter-spacing: 0; font-size: .95rem; }
.fg-eyebrow::before { content: ""; width: 14px; height: 14px; background: var(--fg-red); clip-path: polygon(50% 0, 64% 21%, 85% 15%, 79% 36%, 100% 50%, 79% 64%, 85% 85%, 64% 79%, 50% 100%, 36% 79%, 15% 85%, 21% 64%, 0 50%, 21% 36%, 15% 15%, 36% 21%); }
.fg-lead { max-width: 60ch; color: var(--fg-ink-2); font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); }

/* Hero */
.fg-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); background: var(--fg-pattern), linear-gradient(180deg, var(--fg-bg) 0%, var(--fg-sand) 100%); overflow: hidden; }
.fg-hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.fg-hero h1 { max-width: 15ch; }
.fg-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 1.75rem; }
.fg-note { display: flex; align-items: flex-end; gap: .4rem; margin: .6rem 0 0; padding-inline-start: .5rem; color: var(--fg-red-2); }
@media (min-width: 880px) { .fg-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }

.fg-arch { position: relative; justify-self: center; width: min(100%, 400px); margin: 0; }
.fg-arch::before { content: ""; position: absolute; inset: -14px; border: 1.5px dashed var(--fg-ink-2); border-radius: 999px 999px 30px 30px; transform: rotate(-2.5deg); pointer-events: none; }
.fg-arch__frame { aspect-ratio: 4 / 5; overflow: hidden; border: 2px solid var(--fg-ink); border-radius: 999px 999px var(--fg-r) var(--fg-r); background: var(--fg-pattern), var(--fg-sand); box-shadow: calc(10px * var(--fg-sx)) 10px 0 var(--fg-red); }
.fg-arch__frame img { width: 100%; height: 100%; object-fit: cover; }
.fg-arch__tag { position: absolute; bottom: 10%; inset-inline-start: -6%; padding: .3em .9em; border: 2px solid var(--fg-ink); border-radius: var(--fg-sketch); background: var(--fg-paper); font-family: var(--fg-hand); font-size: 1.5rem; font-weight: 600; transform: rotate(-6deg); box-shadow: 3px 3px 0 var(--fg-ink); }
.fg-arch--sm { width: min(100%, 300px); }
.fg-arch--sm .fg-arch__frame { aspect-ratio: 1; box-shadow: calc(7px * var(--fg-sx)) 7px 0 var(--fg-red); }

/* Sections */
.fg-sec { padding-block: clamp(3rem, 7vw, 5.5rem); }
.fg-sec--sand { background: var(--fg-sand); }
.fg-sec--tight { padding-block: clamp(1.5rem, 4vw, 3rem) 0; }
.fg-sec--form { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.fg-sec__head { max-width: 62ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.fg-sec__head p { color: var(--fg-ink-2); }

.fg-card { padding: clamp(1.25rem, 3vw, 1.75rem); border: 1.5px solid var(--fg-ink); border-radius: var(--fg-sketch); background: var(--fg-paper); }

/* Steps staircase */
.fg-steps { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.fg-step { position: relative; padding: 1.4rem 1.4rem 1.5rem; border: 1.5px solid var(--fg-ink); border-radius: var(--fg-sketch); background: var(--fg-paper); transition: transform .2s ease; }
.fg-step:hover { transform: rotate(calc(-.8deg * var(--fg-sx))); }
.fg-step p { color: var(--fg-ink-2); }
.fg-step__num { position: relative; isolation: isolate; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: .9rem; color: #fff; font-weight: 800; font-size: 1.15rem; }
.fg-step__num::before, .fg-step__num::after { content: ""; position: absolute; inset: 8px; z-index: -1; border-radius: 4px; background: var(--fg-red); }
.fg-step__num::after { transform: rotate(45deg); }
.fg-step__arrow { display: none; position: absolute; top: 1.4rem; inset-inline-end: -2.9rem; z-index: 1; width: 3.2rem; height: auto; color: var(--fg-red); }
@media (min-width: 720px) {
  .fg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fg-step:nth-child(even) { margin-top: 2.5rem; }
}
@media (min-width: 1100px) {
  .fg-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.75rem; }
  .fg-step:nth-child(2) { margin-top: 1.75rem; }
  .fg-step:nth-child(3) { margin-top: 3.5rem; }
  .fg-step:nth-child(4) { margin-top: 5.25rem; }
  .fg-step__arrow { display: block; }
}

/* Plans */
.fg-duo { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .fg-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fg-plan:nth-child(2) { transform: translateY(1.5rem); } }
.fg-plan { box-shadow: calc(6px * var(--fg-sx)) 6px 0 var(--fg-ink); }
.fg-plan__icon { color: var(--fg-red); margin-bottom: .75rem; }
.fg-plan p { color: var(--fg-ink-2); }
.fg-ticks { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; font-weight: 600; }
.fg-ticks li { display: flex; gap: .55rem; align-items: baseline; }
.fg-ticks li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--fg-red); transform: rotate(45deg) translateY(-1px); }

/* Need */
.fg-need { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 880px) { .fg-need { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); } }
.fg-checks { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.fg-checks li { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.15rem; border: 1px solid var(--fg-line); border-radius: 14px; background: var(--fg-paper); }
.fg-checks svg { flex: none; color: var(--fg-red); margin-top: .15rem; }
.fg-sticker { padding: 1.5rem; border: 2px solid var(--fg-ink); border-radius: var(--fg-sketch); background: var(--fg-sand); transform: rotate(calc(2deg * var(--fg-sx))); box-shadow: 4px 5px 0 rgba(42, 33, 36, .85); }
.fg-sticker .fg-hand { margin-bottom: .4rem; }
@media (min-width: 880px) { .fg-sticker { margin-top: 4.5rem; } }

/* Facts */
.fg-facts { margin: 0; border-top: 1.5px dashed var(--fg-ink-2); }
.fg-facts > div { display: grid; gap: .25rem 2rem; padding: 1.1rem 0; border-bottom: 1.5px dashed var(--fg-ink-2); }
.fg-facts dt { font-weight: 800; }
.fg-facts dd { margin: 0; color: var(--fg-ink-2); }
@media (min-width: 720px) { .fg-facts > div { grid-template-columns: 240px 1fr; } }

/* FAQ */
.fg-qa-teaser { display: grid; gap: 1rem 3rem; }
@media (min-width: 900px) { .fg-qa-teaser { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.fg-qa details { border-bottom: 1.5px dashed var(--fg-line); }
.fg-qa details:first-child { border-top: 1.5px dashed var(--fg-line); }
.fg-qa summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 700; font-size: 1.08rem; list-style: none; cursor: pointer; }
.fg-qa summary::-webkit-details-marker { display: none; }
.fg-qa summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1.5px solid var(--fg-ink); border-radius: 50%; color: var(--fg-red); font-size: 1.3rem; line-height: 1; transition: transform .2s ease; }
.fg-qa details[open] summary::after { transform: rotate(45deg); }
.fg-qa details p { padding-bottom: 1.2rem; color: var(--fg-ink-2); }
.fg-after { margin-top: 2rem; font-weight: 600; }

/* CTA band */
.fg-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 28px; background: var(--fg-pattern-light), var(--fg-ink); color: #fff; }
.fg-band h2 { margin-bottom: .25em; }
.fg-band p { color: #e5dadd; }
.fg-band .fg-btn { border-color: #fff; box-shadow: calc(4px * var(--fg-sx)) 4px 0 #fff; }

/* Inner pages */
.fg-phead { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.25rem); background: var(--fg-pattern), var(--fg-bg); border-bottom: 1.5px dashed var(--fg-line); }
.fg-split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) {
  .fg-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); }
  .fg-split--rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}
.fg-aside { display: grid; gap: 1.5rem; justify-items: center; }
.fg-aside > .fg-card { width: 100%; }
.fg-aside__help { justify-self: stretch; color: var(--fg-ink-2); font-size: .95rem; }
.fg-mini-steps { display: grid; gap: .6rem; margin: 0; padding-inline-start: 1.25rem; color: var(--fg-ink-2); }
.fg-mini-steps li::marker { color: var(--fg-red); font-weight: 800; }

/* Forms */
.fg-form { display: grid; gap: 1.4rem; }
.fg-field { display: grid; gap: .4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.fg-field > label, .fg-field > legend { font-weight: 700; }
.fg-field > legend { margin-bottom: .45rem; padding: 0; }
.fg-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) { width: 100%; min-height: 52px; padding: .7em .9em; border: 1.5px solid var(--fg-ink-2); border-radius: 12px; background: var(--fg-paper); color: var(--fg-ink); font: inherit; transition: border-color .15s; }
.fg-form textarea { min-height: 140px; resize: vertical; }
.fg-form :is(input, select, textarea):focus-visible { border-color: var(--fg-red); outline-offset: 1px; }
.fg-form select { appearance: none; padding-inline-end: 2.6rem; background: var(--fg-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6c2 1.5 3.5 3 5 4.5C9.5 9 11 7.5 13 6' fill='none' stroke='%232a2124' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .9rem center / 16px; }
[dir="rtl"] .fg-form select { background-position: left .9rem center; }
[dir="rtl"] .fg-form input[dir="ltr"]:not(.fg-phone input) { text-align: right; }
.fg-form [aria-invalid="true"], .fg-phone:has([aria-invalid="true"]) { border-color: var(--fg-red); }
.fg-hint { margin: 0; color: var(--fg-ink-2); font-size: .9rem; }
.fg-err { margin: 0; color: var(--fg-red-2); font-size: .92rem; font-weight: 700; }
.fg-err[hidden] { display: none; }
.fg-phone { display: flex; direction: ltr; overflow: hidden; border: 1.5px solid var(--fg-ink-2); border-radius: 12px; background: var(--fg-paper); }
.fg-phone:focus-within { border-color: var(--fg-red); outline: 3px solid var(--fg-red); outline-offset: 1px; }
.fg-phone__cc { display: grid; place-items: center; padding-inline: .9rem; border-right: 1.5px solid var(--fg-line); background: var(--fg-sand); font-weight: 800; }
.fg-form .fg-phone input { flex: 1; min-width: 0; border: 0; border-radius: 0; outline: 0; letter-spacing: .04em; }

.fg-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 520px) { .fg-chips { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 960px) and (max-width: 1120px) { .fg-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fg-chip { position: relative; display: grid; place-items: center; min-height: 56px; padding: .35rem; border: 1.5px solid var(--fg-ink); border-radius: var(--fg-sketch); background: var(--fg-paper); font-weight: 800; font-size: 1.1rem; line-height: 1.1; text-align: center; cursor: pointer; transition: background-color .15s, color .15s, transform .15s, box-shadow .15s; }
.fg-chip small { display: block; font-size: .72rem; font-weight: 700; color: var(--fg-ink-2); }
.fg-chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.fg-chip:hover { background: var(--fg-sand); }
.fg-chip:has(input:checked), .fg-chip.is-on { background: var(--fg-red); border-color: var(--fg-red-2); color: #fff; transform: rotate(calc(-1.5deg * var(--fg-sx))); box-shadow: calc(3px * var(--fg-sx)) 3px 0 var(--fg-ink); }
.fg-chip:has(input:checked) small, .fg-chip.is-on small { color: #fff; }
.fg-chip:has(input:focus-visible) { outline: 3px solid var(--fg-red); outline-offset: 3px; }
.fg-other { margin-top: .8rem; font-weight: 600; }
.fg-check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.fg-check input { flex: none; width: 22px; height: 22px; margin: .2rem 0 0; accent-color: var(--fg-red); }
.fg-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem; padding: 1rem 1.15rem; border: 1.5px dashed var(--fg-ink-2); border-radius: 14px; background: var(--fg-sand); font-weight: 600; }
.fg-total output { font-size: 1.3rem; font-weight: 800; direction: ltr; unicode-bidi: isolate; }
.fg-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Status & history */
.fg-result { margin-top: 1.25rem; padding: 1.1rem 1.25rem; border: 1.5px solid var(--fg-line); border-radius: 14px; background: var(--fg-paper); }
.fg-result.is-ok { border-color: var(--fg-ok); background: #eef7f1; }
.fg-result strong { display: block; margin-bottom: .2rem; }
.fg-timeline { display: grid; gap: 1rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.fg-timeline li { position: relative; display: grid; gap: .15rem; padding-inline-start: 1.75rem; }
.fg-timeline li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45rem; width: 12px; height: 12px; border: 2px solid var(--fg-red); border-radius: 3px; transform: rotate(45deg); }
.fg-timeline li:first-child::before { background: var(--fg-red); }
.fg-timeline span { color: var(--fg-ink-2); }

.fg-empty { display: grid; justify-items: center; gap: .5rem; padding: 2.5rem 1.25rem; border: 2px dashed var(--fg-line); border-radius: var(--fg-sketch); background: var(--fg-paper); text-align: center; }
.fg-empty svg { color: var(--fg-red); margin-bottom: .5rem; }
.fg-empty p { color: var(--fg-ink-2); margin-bottom: 1rem; }
.fg-history__tools { margin-top: 1.25rem; }
.fg-table-wrap { border: 1.5px solid var(--fg-ink); border-radius: 16px; background: var(--fg-paper); overflow: hidden; }
.fg-table { width: 100%; border-collapse: collapse; }
.fg-table th, .fg-table td { padding: .8rem 1rem; border-bottom: 1px dashed var(--fg-line); text-align: start; vertical-align: top; }
.fg-table th { background: var(--fg-sand); font-size: .9rem; }
.fg-table tr:last-child td { border-bottom: 0; }
.fg-table bdi { white-space: nowrap; }
@media (max-width: 640px) {
  .fg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .fg-table, .fg-table tbody, .fg-table tr, .fg-table td { display: block; }
  .fg-table tr { padding: .5rem 0; border-bottom: 1.5px dashed var(--fg-line); }
  .fg-table tr:last-child { border-bottom: 0; }
  .fg-table td { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; padding: .35rem 1rem; border: 0; }
  .fg-table td::before { content: attr(data-label); font-weight: 700; color: var(--fg-ink-2); }
}

/* Contact */
.fg-info { display: grid; gap: 1rem; }
.fg-info__item { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; border: 1.5px solid var(--fg-ink); border-radius: var(--fg-sketch); background: var(--fg-paper); }
.fg-info__item svg { flex: none; color: var(--fg-red); margin-top: .2rem; }
.fg-info__item p { color: var(--fg-ink-2); }
.fg-info__item a { font-weight: 700; }

/* Prose */
.fg-prose { max-width: 74ch; }
.fg-prose h2 { margin-top: 2.25rem; font-size: 1.35rem; }
.fg-prose h2:first-child { margin-top: 0; }
.fg-prose ul { display: grid; gap: .4rem; margin: 0 0 1em; padding-inline-start: 1.25rem; }
.fg-prose li::marker { color: var(--fg-red); }
.fg-prose .fg-table-wrap { margin-bottom: 1rem; }
.fg-callout { margin-block: 2rem; padding: 1.25rem 1.4rem; border: 2px solid var(--fg-ink); border-inline-start-width: 6px; border-inline-start-color: var(--fg-red); border-radius: 14px; background: var(--fg-sand); }
.fg-callout h2 { margin-top: 0; }

/* 404 */
.fg-404__code { margin: 0; font-family: var(--fg-hand); font-size: clamp(4rem, 12vw, 7rem); line-height: 1; color: var(--fg-red); transform: rotate(-4deg); display: inline-block; }
.fg-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.fg-links a { display: inline-flex; align-items: center; min-height: 44px; padding: .4em 1em; border: 1.5px solid var(--fg-ink); border-radius: var(--fg-sketch); background: var(--fg-paper); color: var(--fg-ink); font-weight: 700; text-decoration: none; }
.fg-links a:hover { background: var(--fg-sand); }

/* Footer */
.fg-foot { margin-top: clamp(3rem, 7vw, 5rem); padding-block: 3rem 1.5rem; background: var(--fg-pattern-light), var(--fg-ink); color: #ece3e5; }
.fg-foot a { color: #fff; text-decoration: none; }
.fg-foot a:hover { color: #fff; text-decoration: underline; }
.fg-foot .fg-logo { margin-bottom: 1rem; color: #fff; }
.fg-foot .fg-logo__ar { color: #d9ced1; }
.fg-foot .fg-logo__mark { color: #ff6b7d; }
.fg-foot__grid { display: grid; gap: 2rem; }
.fg-foot h2 { margin-bottom: .9rem; color: #fff; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
[dir="rtl"] .fg-foot h2 { letter-spacing: 0; font-size: 1rem; }
.fg-foot ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.fg-foot address { display: grid; gap: .55rem; font-style: normal; }
.fg-disclaimer { padding-inline-start: .9rem; border-inline-start: 3px solid var(--fg-red); color: #d9ced1; font-size: .88rem; }
.fg-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px dashed rgba(255, 255, 255, .22); color: #d0c5c8; font-size: .88rem; }
@media (min-width: 620px) { .fg-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fg-foot__brand { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .fg-foot__grid { grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr)) 1.4fr; } .fg-foot__brand { grid-column: auto; } }

/* Cookie */
.fg-cookie { position: fixed; inset-inline: 1rem; bottom: 1rem; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1rem 1.15rem; border: 1.5px solid var(--fg-ink); border-radius: 18px; background: var(--fg-paper); box-shadow: calc(4px * var(--fg-sx)) 4px 0 var(--fg-ink); font-size: .92rem; }
.fg-cookie[hidden] { display: none; }
.fg-cookie p { flex: 1 1 260px; }
@media (min-width: 640px) { .fg-cookie { inset-inline-end: auto; max-width: 480px; } }

/* Modal */
.fg-modal { width: min(92vw, 440px); padding: 0; border: 2px solid var(--fg-ink); border-radius: 24px; background: var(--fg-paper); color: var(--fg-ink); box-shadow: calc(8px * var(--fg-sx)) 8px 0 var(--fg-red); }
.fg-modal::backdrop { background: rgba(42, 33, 36, .55); }
.fg-modal[open] { animation: fg-pop .25s ease; }
.fg-modal__body { display: grid; justify-items: center; gap: .5rem; padding: 2rem 1.75rem 1.75rem; text-align: center; }
.fg-modal__body h2 { font-size: 1.5rem; margin: .25rem 0 0; }
.fg-modal__body p { color: var(--fg-ink-2); }
.fg-modal__icon { color: var(--fg-red); }
.fg-modal__ref { padding: .35em .85em; border-radius: 10px; background: var(--fg-sand); color: var(--fg-ink) !important; font-weight: 800; }
.fg-modal__ref[hidden] { display: none; }
.fg-modal .fg-btn { margin-top: .75rem; min-width: 160px; }
@keyframes fg-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
