:root {
  --ink: #0F1B2D;
  --ink-2: #1B2A40;
  --coral: #D07A63;
  --coral-text: #A04A35;
  --ground: #F7F2EE;
  --card: #FCF9F6;
  --line: #E8DCD4;
  --line-strong: #8F7D72;
  --sand: #F2EBE5;
  --perf: #D9CBC1;
  --tint: #F4E2DA;
  --muted: #4A5566;
  --on-ink: #F7F2EE;
  --on-ink-muted: #B9C1CC;
  --ok: #2F6F55;
  --ok-tint: #E4EFE8;
  --warn: #8A5A12;
  --radius: 18px;
  --head: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--ground); line-height: 1.65; font-size: 16px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.25; margin: 0; }
a { color: var(--coral-text); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(247, 242, 238, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .word { font-family: var(--head); font-weight: 700; font-size: 24px; }
.brand .bar { width: 2px; height: 22px; background: var(--coral); }
.brand .tag { font-family: var(--head); font-weight: 500; font-size: 15px; color: var(--muted); white-space: nowrap; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 0; }
.nav a:hover { color: var(--coral-text); }
.lang { font: inherit; font-weight: 600; font-size: 14px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
@media (max-width: 860px) { .nav { display: none; } .lang { margin-inline-start: auto; } }
@media (max-width: 420px) { .brand .word { font-size: 21px; } .brand .tag { font-size: 13px; } .brand .mark { width: 34px; height: 34px; } .top-row { gap: 12px; } }

/* hero */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding-top: 32px; } }
.promo { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--ink); color: var(--on-ink); font-family: var(--head); font-weight: 600; font-size: 14px; padding: 9px 16px; }
.promo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(208,122,99,0.25); }
.official { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px 6px 14px; border-radius: 999px; background: var(--ok-tint); color: var(--ok); font-family: var(--head); font-weight: 600; font-size: 14px; }
.pass-case { margin-top: 6px; }
.field > .case-box {
  position: relative; display: block; min-height: 52px; padding: 10px 2px 10px 34px; margin: 0; font-size: inherit; color: inherit; border-bottom: 2px solid var(--line-strong); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230F1B2D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 20px; background-position: left 4px center;
}
[dir=ltr] .field > .case-box { padding: 10px 34px 10px 2px; background-position: right 4px center; }
.case-value { display: block; font-family: var(--head); font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.case-value.empty { font-family: var(--body); font-weight: 400; font-size: 16px; color: var(--muted); }
.case-box select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; }
.field > .case-box:focus-within { border-bottom-color: var(--coral-text); box-shadow: 0 2px 0 var(--coral-text); }
.pass .pass-case option, .pass .pass-case optgroup { color: var(--ink); font-family: var(--body); font-size: 16px; }
/* phones: keep the check button above the fold */
@media (max-width: 560px) { .hero .trust { display: none; } .hero { padding-top: 20px; } .official { margin-bottom: 10px; } .hero-sub { margin-bottom: 0; } }
.kicker { margin: 0 0 10px; font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--coral-text); letter-spacing: 0.02em; }
.kicker.light { color: var(--coral); }
.hero-title { font-size: clamp(34px, 5.6vw, 58px); font-weight: 700; white-space: pre-line; letter-spacing: -0.01em; }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin: 18px 0 24px; max-width: 560px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; }

/* boarding-pass card: a real ticket. The tear-off stub holds the action; the two
   notches are half circles cut out of the edges at the perforation (CSS mask), so the
   page ground shows through them. */
.pass-wrap { filter: drop-shadow(0 0 0.6px rgba(15,27,45,0.28)) drop-shadow(0 22px 26px rgba(15,27,45,0.13)); }
.pass {
  --stub: 104px; --notch: 15px;
  position: relative; background: var(--card); border-radius: 24px; overflow: hidden; scroll-margin-top: 90px;
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), #0000 97%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), #0000 97%, #000) right / 51% 100% no-repeat;
}
.pass-head { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: var(--on-ink); padding: 18px 26px; font-family: var(--head); font-weight: 600; font-size: 17px; }
.pass-title { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.pass-plane { color: var(--coral); flex: none; }
.pass-code { font-size: 13px; letter-spacing: 0.14em; color: var(--coral); white-space: nowrap; }
.pass-head { gap: 12px; }
.pass-body { padding: 24px 26px 8px; }
.pass-body .field > span, .pass-body legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.pass-fields { gap: 0 28px; }
.pass .pass-fields input {
  border: 0; border-bottom: 2px solid var(--line-strong); border-radius: 0; background: transparent;
  padding: 6px 2px 8px; min-height: 48px; font-family: var(--head); font-size: 22px; font-weight: 600; letter-spacing: 0.03em;
}
.pass .pass-fields input::placeholder { font-family: var(--body); font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.pass .pass-fields input:focus-visible { border-bottom-color: var(--coral-text); outline: none; box-shadow: 0 2px 0 var(--coral-text); }
.pass-stub { position: relative; height: var(--stub); display: flex; align-items: center; padding: 0 26px; background: var(--sand); }
.pass-stub::before { content: ""; position: absolute; top: 0; inset-inline: calc(var(--notch) + 10px); border-top: 2px dashed var(--perf); }
.pass-stub .cta { min-height: 56px; border-radius: 14px; }
/* issue picker as one segmented row, like the fare-class strip on a pass */
.pass .chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--line); border-radius: 14px; padding: 4px; background: #FFFDFB; }
.pass .chip { border: 0; border-radius: 10px; background: transparent; min-height: 44px; padding: 8px 6px; font-size: 15px; line-height: 1.25; }
.pass .chip[aria-checked=true] { background: var(--ink); color: var(--on-ink); }
.pass .pass-fields { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 480px) {
  .pass .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-value { font-size: 16px; }
  .pass .pass-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0 18px; }
  .pass .pass-fields input { font-size: 18px; }
}
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field > span, legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 6px; }
input[type=text], input:not([type]), input[type=date], input[type=number], input[type=datetime-local], textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #FFFDFB; color: var(--ink); min-height: 50px;
}
input:focus-visible, textarea:focus-visible { border-color: var(--coral-text); }
textarea { min-height: 260px; line-height: 1.75; resize: vertical; white-space: pre-wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 15px; font-weight: 500; padding: 10px 16px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: #FFFDFB; color: var(--ink); cursor: pointer; }
.chip[aria-checked=true] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.cta { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; border: 0; border-radius: 14px; background: var(--coral); color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 17px; cursor: pointer; text-decoration: none; padding: 0 22px; }
.cta:hover { background: #C66D56; }
.cta:disabled { opacity: .6; cursor: wait; }
.cta.dark { background: var(--ink); color: var(--on-ink); width: auto; }
.cta.dark:hover { background: var(--ink-2); }
.cta.inline { width: auto; margin-top: 24px; }
.ghost-btn { font: inherit; font-weight: 600; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.ghost-btn.wide { width: 100%; border-color: var(--line); margin-top: 18px; min-height: 50px; }
.error { color: #9B2C1F; font-weight: 600; margin: 0 0 12px; }

/* flow cards */
.flow { display: flex; flex-direction: column; gap: 18px; }
.flow:has(.card:not([hidden])) { padding-bottom: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; scroll-margin-top: 90px; }
.card h2 { font-size: 21px; margin-bottom: 12px; }
.card h3 { font-size: 16px; margin: 22px 0 8px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #FBEFD9; color: var(--warn); }
.muted { color: var(--muted); }
.regime { margin: -4px 0 14px; font-size: 14px; }
.tiny { font-size: 13px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 12px; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 600; }
details { margin: 4px 0 8px; }
summary { cursor: pointer; color: var(--coral-text); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.extra [data-issue] { display: none; }
.extra[data-active=delay] [data-issue~=delay],
.extra[data-active=cancellation] [data-issue~=cancellation],
.extra[data-active=denied_boarding] [data-issue~=denied_boarding],
.extra[data-active=baggage] [data-issue~=baggage] { display: block; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 6px 0 14px; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); }

/* result */
.result.ok h2 { color: var(--ok); }
.result.no h2 { color: var(--muted); }
.amount { display: flex; flex-direction: column; gap: 2px; background: var(--ink); color: var(--on-ink); border-radius: 16px; padding: 18px 20px; margin: 8px 0 14px; }
.result.ok .amount { box-shadow: inset 4px 0 0 var(--ok); }
.amount-label, .amount-sub { color: var(--on-ink-muted); font-size: 14px; }
.amount strong { font-family: var(--head); font-size: clamp(28px, 6vw, 38px); line-height: 1.2; }
.calc { background: var(--ok-tint); border-radius: 14px; padding: 16px 18px; margin: 0 0 14px; }
.calc h3 { margin: 0 0 8px; color: var(--ok); }
.calc-list { margin: 0 0 8px; padding-inline-start: 20px; }
.calc-list li { margin: 3px 0; }
.calc-list a { color: var(--ok); }
.src { font-size: 13px; color: var(--ok); }
.list { padding-inline-start: 20px; margin: 6px 0; }
.list li { margin: 4px 0; }
.notes li { color: var(--warn); }
.tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.tab { font: inherit; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); background: #FFFDFB; border-radius: 10px; cursor: pointer; }
.tab[aria-selected=true] { border-color: var(--ink); font-weight: 700; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pay { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--line); text-align: center; }
.pay p { margin: 0 0 10px; font-weight: 600; }

/* sections */
.band { padding: 72px 0; }
.band.alt { background: #F2EBE5; }
.band.ink { background: var(--ink); color: var(--on-ink); }
.section-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; margin-bottom: 28px; }
.section-title.light { color: var(--on-ink); }
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; } }
.how li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: s; }
.how li::before { content: counter(s); display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tint); color: var(--coral-text); font-family: var(--head); font-weight: 700; margin-bottom: 14px; }
.how h3 { font-size: 19px; margin-bottom: 6px; }
.how p { margin: 0; color: var(--muted); }
.rights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 14px; }
@media (max-width: 820px) { .rights { grid-template-columns: 1fr; } }
.right-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.right-card h3 { font-size: 19px; margin-bottom: 10px; }
.right-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px dashed var(--line); }
.right-row:first-of-type { border-top: 0; }
.right-row span:first-child { color: var(--muted); }
.right-row strong { font-family: var(--head); font-weight: 600; text-align: end; }
.right-row small { display: block; font-family: var(--body); font-weight: 400; color: var(--muted); font-size: 12px; }
.open-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
@media (max-width: 880px) { .open-grid { grid-template-columns: 1fr; } }
.open-sub { color: var(--on-ink-muted); font-size: 17px; margin: 0; }
.ledger { list-style: none; margin: 0; padding: 0; border: 1px solid rgba(247,242,238,0.16); border-radius: var(--radius); overflow: hidden; }
.ledger li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 22px; border-top: 1px dashed rgba(247,242,238,0.18); }
.ledger li:first-child { border-top: 0; }
.ledger li:last-child { background: rgba(208,122,99,0.14); }
@media (max-width: 520px) { .ledger li { grid-template-columns: 1fr; gap: 4px; } }
.ledger .k { color: var(--coral); font-family: var(--head); font-weight: 600; }
.ledger .v { font-family: var(--head); font-weight: 600; font-size: 18px; }
.ledger a { display: block; color: var(--on-ink-muted); font-size: 13px; margin-top: 4px; }
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) { .numbers { grid-template-columns: 1fr; } }
.num { border-top: 3px solid var(--coral); padding-top: 18px; }
.num .n { font-family: var(--head); font-weight: 700; font-size: clamp(38px, 5vw, 52px); line-height: 1; }
.num .u { font-family: var(--head); font-weight: 500; font-size: 18px; color: var(--muted); margin-inline-start: 6px; }
.num .riyal-u { font-size: clamp(38px, 5vw, 52px); line-height: 1; color: inherit; margin: 0; }
.money { white-space: nowrap; unicode-bidi: isolate; }
.money .riyal { height: 0.72em; width: auto; margin-right: 0.25em; vertical-align: -0.02em; }
.riyal-u .riyal { margin-right: 0.2em; }
.num p { margin: 10px 0 4px; }
.num a { font-size: 13px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin: 0 0 10px; }
.faq summary { color: var(--ink); font-family: var(--head); font-size: 17px; min-height: 56px; }
.faq p { margin: 0 0 16px; color: var(--muted); }

/* footer */
.foot { background: var(--ink); color: var(--on-ink-muted); padding: 40px 0 56px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--on-ink); margin: 0 0 8px; }
.foot-h { font-family: var(--head); font-weight: 600; color: var(--on-ink); margin: 0 0 8px; }
.foot-links { list-style: none; padding: 0; margin: 0 0 14px; }
.foot-links li { margin: 6px 0; }
.foot a { color: var(--on-ink); }

[hidden] { display: none !important; }
.print-only { display: none; }
@media print {
  body > *:not(#printLetter) { display: none !important; }
  body { background: #fff; }
  #printLetter { display: block !important; white-space: pre-wrap; font-family: var(--body); font-size: 12.5pt; line-height: 1.9; margin: 0; padding: 18mm 16mm; }
  @page { size: A4; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* result: a second ticket */
.result-area { display: grid; gap: 22px; max-width: 640px; margin: 0 auto; scroll-margin-top: 90px; }
.result-body { padding-bottom: 18px; }
.result-body h2 { font-family: var(--head); font-size: clamp(26px, 4.6vw, 34px); line-height: 1.25; margin: 0 0 10px; }
.result-pass[data-state=ok] .result-body h2 { color: var(--ink); }
.result-pass[data-state=no] .result-body h2, .result-pass[data-state=baseline] .result-body h2 { color: var(--muted); }
.result-amount { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 6px; }
.result-amount strong { font-family: var(--head); font-weight: 700; font-size: clamp(44px, 9vw, 64px); line-height: 1.05; color: var(--ok); }
.result-amount .amount-sub { color: var(--muted); font-size: 15px; font-weight: 500; }
.result-line { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.result-line:empty { display: none; }
.ts-slot { margin: 12px 0 0; }
.ts-float { position: absolute; z-index: 1000; display: flex; justify-content: center; }
.data-src { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.data-src a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
/* claim letter: a sheet of paper under the result ticket */
.letter-area { display: grid; gap: 14px; scroll-margin-top: 90px; }
.letter-fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.letter-fields .field { margin: 0; }
.letter-fields .field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.letter-fields input { font: inherit; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #FFFDFB; color: var(--ink); }
.letter-fields input:focus { outline: none; border-color: var(--coral-text); box-shadow: 0 0 0 3px var(--tint); }
.letter-tabs { margin: 0; }
.letter-paper { background: #FFFEFC; border: 1px solid var(--line); border-radius: 6px; padding: 28px 26px 30px;
  box-shadow: 0 1px 0 var(--line), 0 14px 30px -18px rgba(15, 27, 45, .28); font-size: 15px; line-height: 1.85; color: var(--ink);
  overflow-wrap: anywhere; }
.letter-paper p { margin: 0; }
.letter-paper p.gap { height: .9em; }
.letter-paper p.meta { font-family: var(--head); font-weight: 600; font-size: 14px; line-height: 1.6; }
.letter-paper p.meta + p.gap { height: 0; margin-bottom: 14px; border-bottom: 1px dashed var(--perf); padding-bottom: 14px; }
.letter-paper .ph { background: var(--tint); color: var(--coral-text); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.letter-paper[lang=en] { font-family: "Readex Pro", system-ui, sans-serif; }
.letter-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.letter-actions .cta { grid-column: 1 / -1; }
.letter-actions .ghost-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-color: var(--line-strong); }
.letter-hint { margin: 0; text-align: center; }
@media (max-width: 520px) {
  .letter-fields { grid-template-columns: 1fr; }
  .letter-paper { padding: 22px 18px 24px; font-size: 14.5px; }
}
.steps-mini { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; }
.steps-mini li { counter-increment: st; display: flex; align-items: flex-start; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 14px; font-weight: 500; line-height: 1.45; }
.steps-mini li::before { content: counter(st); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-family: var(--head); font-size: 13px; font-weight: 700; }
@media (max-width: 560px) { .steps-mini { grid-template-columns: 1fr; } }
.calc-details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.calc-details summary { cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 15px; padding: 12px 0; color: var(--ink); }
.calc-details[open] { padding-bottom: 14px; }
.calc-details .calc { margin: 8px 0; }
.pass-more { grid-template-columns: 1fr; }
.pass-more:not(:has(label:not([hidden]))) { display: none; }

/* letter page: order (receipt) then letter */
.order-main { padding: 28px 20px 56px; display: grid; gap: 22px; max-width: 640px; }
.order-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; align-items: center; justify-content: center; }
.order-steps li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--head); font-size: 14px; }
.order-steps li + li::before { content: ""; width: 34px; border-top: 2px dashed var(--perf); margin-inline-end: 2px; }
.order-steps span { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; border: 1.5px solid var(--line-strong); font-size: 13px; font-weight: 600; }
.order-steps li[aria-current] { color: var(--ink); }
.order-steps li[aria-current] span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.order-steps li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.order-empty { text-align: center; padding: 40px 0; }
.order-empty h1 { font-size: clamp(24px, 4.4vw, 32px); }
.receipt-body { padding-bottom: 22px; display: grid; gap: 18px; }
.receipt-rows { margin: 0; display: grid; gap: 12px; }
.receipt-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.receipt-rows dt { color: var(--muted); font-size: 14px; font-weight: 500; flex: none; }
.receipt-rows dd { margin: 0; font-family: var(--head); font-weight: 600; font-size: 16px; text-align: end; }
[dir=rtl] .receipt-rows dd[dir=ltr] { text-align: left; }
.receipt-rows > div.stack { flex-direction: column; align-items: stretch; gap: 4px; }
.receipt-rows > div.stack dt { text-align: start; }
.receipt-rows > div.stack dd { text-align: start; }
.receipt-rows dd.ok { color: var(--ok); font-size: 18px; }
.receipt-rows.fee { border-top: 2px dashed var(--perf); padding-top: 16px; }
.receipt-rows .total dt { color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 16px; }
.receipt-rows .total dd { font-size: 22px; font-weight: 700; }
.free-badge { display: inline-block; background: var(--ok-tint); color: var(--ok); border-radius: 999px; padding: 2px 12px; font-size: 14px; font-weight: 600; }
.receipt-locked { position: relative; border-radius: 10px; overflow: hidden; background: var(--sand); padding: 14px; }
.receipt-locked .sheet { background: #FFFEFC; border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; display: grid; gap: 9px; filter: blur(1.5px); }
.receipt-locked .sheet i { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.receipt-locked .sheet i.short { width: 55%; }
.receipt-locked .lock { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center;
  background: linear-gradient(rgba(252, 249, 246, .35), rgba(252, 249, 246, .85)); color: var(--ink); }
.receipt-locked .lock svg { color: var(--coral-text); margin-bottom: 4px; }
.receipt-locked .lock b { font-family: var(--head); font-size: 17px; }
.receipt-locked .lock span { color: var(--muted); font-size: 14px; }
.order-note { text-align: center; margin: 12px 0 0; }
.letter-ready { font-size: clamp(24px, 4.4vw, 30px); text-align: center; }
.again-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.letter-page .foot { padding: 22px 0; }
@media (max-width: 520px) {
  .letter-page .steps-mini { grid-template-columns: 1fr; }
}

/* approximate amounts: "~⃁ 763" plus one quiet note */
.money .approx { font-weight: inherit; margin-inline-end: .08em; opacity: .85; }
.result-amount .amount-note { color: var(--muted); font-size: 13px; font-weight: 400; }
.approx-note { margin: -10px 0 0; color: var(--muted); font-size: 12.5px; text-align: end; }

/* about page */
.about-hero { background: var(--ink); color: var(--on-ink); padding: 56px 0 60px; }
.about-kicker { color: var(--coral); font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: .02em; margin: 0 0 10px; }
.about-hero h1 { font-size: clamp(30px, 5.4vw, 46px); font-weight: 700; max-width: 18ch; }
.about-lead { color: var(--on-ink-muted); font-size: clamp(16px, 2.2vw, 18px); line-height: 1.8; margin: 16px 0 0; max-width: 54ch; }
.about-body { padding: 44px 20px 64px; display: grid; gap: 40px; }
.about-block h2 { font-size: clamp(22px, 3.2vw, 28px); font-weight: 700; margin-bottom: 12px; }
.about-block > p { font-size: 17px; line-height: 1.9; margin: 0; color: var(--ink); }
.about-vision { position: relative; background: var(--sand); border-radius: 18px; padding: 28px 28px 30px; }
.about-vision::before, .about-vision::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--ground); }
.about-vision::before { inset-inline-start: -11px; }
.about-vision::after { inset-inline-end: -11px; }
.about-tag { display: inline-block; font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--coral-text); margin-bottom: 8px; }
.about-vision p { margin: 0; font-family: var(--head); font-weight: 700; font-size: clamp(22px, 3.6vw, 30px); line-height: 1.45; }
.about-promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.about-promises li { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.about-promises li:last-child { border-bottom: 1px solid var(--line); }
.about-promises .pnum { grid-row: span 2; font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--coral-text); padding-top: 3px; }
.about-promises b { font-family: var(--head); font-size: 18px; font-weight: 600; }
.about-promises p { margin: 4px 0 0; color: var(--muted); line-height: 1.7; }
.about-cta { text-align: center; }
.about-page .foot { padding: 22px 0; }

/* brand patterns (brand/patterns): only in brand spaces, never behind the check, result or letter */
.ticket-band { height: 120px; background: var(--ink) url("/patterns/safr-stubcodes-dark.svg") repeat-x center / 560px 120px; }
.ticket-band + .foot { border-top: 0; }
.about-hero { background-color: var(--ink); background-image: linear-gradient(to left, var(--ink) 30%, rgba(15, 27, 45, .55) 72%, rgba(15, 27, 45, .15)), url("/patterns/safr-stubs-dark.svg"); background-size: auto, 112px 120px; }
[dir=ltr] .about-hero { background-image: linear-gradient(to right, var(--ink) 30%, rgba(15, 27, 45, .55) 72%, rgba(15, 27, 45, .15)), url("/patterns/safr-stubs-dark.svg"); }
@media (max-width: 640px) {
  .ticket-band { height: 60px; background-position: center -4px; }
  .about-hero, [dir=ltr] .about-hero { background-image: linear-gradient(rgba(15, 27, 45, .78), rgba(15, 27, 45, .78)), url("/patterns/safr-stubs-dark.svg"); }
}

/* header nav: five links stay on one line, tighter on mid widths, hidden below 980px */
.nav a { white-space: nowrap; }
@media (max-width: 1180px) { .nav { gap: 18px; } }
@media (max-width: 980px) { .nav { display: none; } .lang { margin-inline-start: auto; } }
