/* Diava - white, airy and calm, in the navy of the Diava stamp. Layout: hero with floating documents, then the order card, then the details. */
:root {
  --bg: #ffffff; --tint: #f4f6fa; --ink: #0c1a2e; --muted: #5a6577; --line: #e2e7ef;
  --brand: #17396b; --brand-soft: #e9eff8; --stamp: #0f2a4f;
  --warn-bg: #fff7e8; --warn-line: #f1d9a6; --warn-ink: #6b4a0f;
  --good: #1f7a4d; --bad: #b42335;
  --f-display: "Sora", "Noto Sans Arabic", system-ui, sans-serif;
  --f-body: "Noto Sans", "Noto Sans Arabic", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: var(--brand); }
[hidden] { display: none !important; }
.g { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.in { max-width: 1080px; margin: 0 auto; }

/* Top bar: logo and page links on the left, language and account on the right */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled, .app-page .top, .legal-page .top { border-bottom-color: var(--line); }
nav.bar { display: flex; align-items: center; gap: 18px; padding-block: 12px; }
.logo { font-family: var(--f-display); font-weight: 700; font-size: 19px; display: flex; align-items: center; gap: 9px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; flex: none; }
.logo-mark { width: 42px; height: auto; flex: none; display: block; }
.navlinks { display: flex; align-items: center; gap: 2px; min-width: 0; }
.navlinks a, .navbtn { font: 500 14px var(--f-body); color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; background: none; border: 0; cursor: pointer; width: auto; white-space: nowrap; }
.navlinks a:hover, .navbtn:hover { background: var(--tint); }
.navlinks a.on { color: var(--brand); background: var(--brand-soft); }
.navright { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.navcta { padding: 8px 14px; font-size: 14px; }
.menu-btn { display: none; width: 40px; height: 40px; padding: 0; border-radius: 10px; background: none; color: var(--ink); border: 1px solid var(--line); }
.menu-only { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .navlinks { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-left, 0px)) 14px; box-shadow: 0 18px 30px -24px rgba(12,26,46,.35); }
  .menu-open .navlinks { display: flex; }
  .navlinks a, .navlinks .navbtn { padding: 12px 10px; font-size: 15px; text-align: start; }
  .menu-only:not([hidden]) { display: block; }
}
@media (max-width: 560px) {
  nav.bar { gap: 10px; }
  .navright { gap: 4px; }
  #navSignOut { display: none; }
  .navbtn { padding: 8px 8px; font-size: 13.5px; }
  .ui-lang { padding: 6px 8px; max-width: 98px; }
  .logo { font-size: 17px; }
  .logo-mark { width: 36px; }
}
@media (max-width: 420px) { #navSignUp { display: none; } }
select, input, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; }
textarea { resize: vertical; min-height: 44px; line-height: 1.45; }
select:focus, input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ui-lang { width: auto; padding: 7px 10px; font-size: 13px; border-radius: 999px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 70% 30%, #edf2f9 0%, #fff 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding-block: 24px 36px; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 5.2vw, 54px); line-height: 1.05; letter-spacing: -.03em; margin: 10px 0 14px; text-wrap: balance; }
h1 em { font-style: normal; color: var(--brand); }
.lede { color: var(--muted); font-size: 17px; max-width: 46ch; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 6px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.cta-row a, .cta-row button { width: auto; }
.stage { position: relative; height: 380px; min-width: 0; }
@media (max-width: 820px) { .stage { height: 230px; } }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Buttons */
button, .btn { font: inherit; font-weight: 600; border: 0; border-radius: 12px; padding: 13px 18px; cursor: pointer; width: 100%; transition: transform .15s, opacity .2s, background .2s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button:active, .btn:active { transform: scale(.98); }
.primary { background: var(--ink); color: #fff; }
.primary:disabled { opacity: .35; cursor: not-allowed; }
.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.ghost:hover { border-color: var(--brand); }
.small { padding: 8px 12px; font-size: 13.5px; border-radius: 10px; width: auto; }
.link { background: none; color: var(--brand); padding: 4px 0; width: auto; font-weight: 600; }
.danger { color: var(--bad); }

/* Sections */
section.block { padding-block: 48px; }
.tinted { background: var(--tint); }
h2 { font-family: var(--f-display); font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.02em; margin: 0 0 6px; text-wrap: balance; }
h3 { font-family: var(--f-display); font-size: 18px; margin: 0; letter-spacing: -.01em; }
.sub { color: var(--muted); margin: 0 0 22px; max-width: 62ch; }
.two { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }

/* App card */
#app { scroll-margin-top: 70px; }
.app-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .app-wrap { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 1px 2px rgba(12,26,46,.04), 0 20px 50px -24px rgba(23,57,107,.25); min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; display: block; margin-bottom: 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.side { display: flex; flex-direction: column; gap: 14px; }
.note { display: flex; gap: 12px; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 14px; padding: 14px; color: var(--warn-ink); font-size: 14px; }
.note .ico { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--warn-line); display: grid; place-items: center; font: 700 13px var(--f-display); }
.note b { color: var(--ink); display: block; margin-bottom: 2px; }
.muted { color: var(--muted); }
.error-box { background: #fdecee; border: 1px solid #f3c2c8; color: var(--bad); padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.ok-box { background: var(--brand-soft); border: 1px solid #c9d7ec; color: var(--brand); padding: 12px 14px; border-radius: 12px; font-size: 14px; }

/* Location picker */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .where { grid-template-columns: 1fr; } }
.place { flex-direction: column; align-items: flex-start; gap: 2px; text-align: start; background: var(--tint); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-weight: 500; color: var(--ink); }
.place:hover { border-color: var(--brand); }
.place .label { margin: 0; }
.pv { font-family: var(--f-display); font-weight: 600; font-size: 16px; line-height: 1.3; }
.chg { font-size: 12.5px; color: var(--brand); font-weight: 600; }
.picker { display: flex; flex-direction: column; gap: 12px; }
.pk-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs button { width: auto; padding: 5px 12px; border-radius: 999px; background: var(--tint); color: var(--ink); font-weight: 500; font-size: 13px; }
.crumbs button:last-child { background: var(--ink); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; max-height: 380px; overflow-y: auto; padding: 2px; }
.tile { background: #fff; border: 1px solid var(--line); color: var(--ink); text-align: start; padding: 12px; border-radius: 12px; font-weight: 600; flex-direction: column; align-items: flex-start; gap: 4px; }
.tile:hover { border-color: var(--brand); background: #eef3fa; }
.tile small { color: var(--muted); font-weight: 400; font-size: 12px; }
.tile .fl { font-size: 22px; line-height: 1; }

/* Basket */
.docs { display: flex; flex-direction: column; gap: 10px; }
.doc { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.doc .icon { width: 40px; height: 48px; border-radius: 6px; background: var(--tint); border: 1px solid var(--line); display: grid; place-items: center; font: 600 10px var(--f-mono); color: var(--muted); }
.doc .name { font-weight: 600; overflow-wrap: anywhere; }
.doc .meta { font-size: 13px; color: var(--muted); }
.doc .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.doc .opts select { padding: 8px 10px; font-size: 13.5px; }
@media (max-width: 520px) { .doc .opts { grid-template-columns: 1fr; } }
.doc .x { width: 32px; height: 32px; padding: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 20px; }
.doc .x:hover { background: #fdecee; color: var(--bad); }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; background: var(--brand); width: 0; transition: width .2s; }
.add-row { display: flex; gap: 10px; flex-wrap: wrap; }
.add-row label.btn { flex: 1; min-width: 160px; }
.drop { border: 1.5px dashed #c7d1df; border-radius: 14px; padding: 20px; text-align: center; color: var(--muted); }
.drop.over { border-color: var(--brand); background: #eef3fa; }
.drop strong { display: block; color: var(--ink); }
.quote { display: flex; flex-direction: column; gap: 8px; background: var(--tint); border-radius: 14px; padding: 14px; }
.ql { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ql span:last-child { font-family: var(--f-mono); font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; }
.ql.total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 600; font-size: 18px; }
.ql.good span { color: var(--good); }
.promo { display: flex; gap: 8px; }
.promo input { text-transform: uppercase; }
.promo button { width: auto; white-space: nowrap; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: auto; margin-top: 3px; accent-color: var(--brand); }

/* Orders */
.orders { display: flex; flex-direction: column; gap: 10px; }
.order-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; color: var(--ink); text-align: start; font-weight: 500; }
.order-row:hover { border-color: var(--brand); }
.order-row .ref { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.pill { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 10px; white-space: nowrap; background: var(--tint); color: var(--muted); }
.pill.work { background: #eaf1fb; color: #2456a6; }
.pill.act { background: var(--warn-bg); color: var(--warn-ink); }
.pill.done { background: var(--brand-soft); color: var(--brand); }
.pill.bad { background: #fdecee; color: var(--bad); }
.steps-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps-line div { height: 4px; border-radius: 2px; background: var(--line); }
.steps-line div.on { background: var(--brand); }
.doc-status { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; flex-wrap: wrap; }
.doc-status:first-of-type { border-top: 0; padding-top: 0; }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Review */
.entity { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.entity:first-child { border-top: 0; }
@media (max-width: 560px) { .entity { grid-template-columns: 1fr; } }
.entity .orig { font-size: 15px; overflow-wrap: anywhere; }
.entity .kind { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.entity.need input { border-color: var(--warn-line); background: var(--warn-bg); }
.seg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); align-items: start; }
@media (max-width: 640px) { .seg { grid-template-columns: 1fr; gap: 4px; } }
.seg .src { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; padding-top: 10px; }
.page-head { font: 600 12px var(--f-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; padding-top: 14px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--brand); padding: 8px 0; }
.sticky-foot { position: sticky; bottom: 0; background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0)); padding-top: 18px; padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Marketing bits */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
@media (max-width: 720px) { .how { grid-template-columns: 1fr; } }
.how li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; counter-increment: s; }
.how li::before { content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 13px var(--f-mono); margin-bottom: 10px; }
.how b { display: block; font-family: var(--f-display); margin-bottom: 2px; }
.how span { color: var(--muted); font-size: 14px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.plan.hot { border-color: var(--brand); box-shadow: 0 20px 50px -28px rgba(23,57,107,.45); }
.plan .label { margin: 0; }
.amt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-family: var(--f-display); font-weight: 700; font-size: 34px; letter-spacing: -.02em; }
.amt small { font: 500 13px var(--f-body); color: var(--muted); letter-spacing: 0; }
.amt > span { white-space: nowrap; }
.plan p { margin: 0; color: var(--muted); font-size: 14px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .trust { grid-template-columns: 1fr; } }
.trust div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.trust b { font-family: var(--f-display); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.trust span { color: var(--muted); font-size: 13.5px; }
.trust b span { color: inherit; font-size: inherit; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--f-display); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.partner-band { background: var(--ink); color: #fff; border-radius: 20px; padding: 28px; }
.partner-band h2 { color: #fff; }
.partner-band p { color: #c5d0e0; margin: 0; max-width: 56ch; }
.partner-band .btn { background: #fff; color: var(--ink); width: auto; margin-top: auto; align-self: flex-start; }
.pb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 720px) { .pb-cols { grid-template-columns: 1fr; } }
.pb-cols > div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.pb-cols b { font-family: var(--f-display); font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }
.stats div { background: var(--tint); border-radius: 12px; padding: 12px; }
.stats b { display: block; font: 700 20px var(--f-display); font-variant-numeric: tabular-nums; }
.stats span { font-size: 12.5px; color: var(--muted); }
table.simple { width: 100%; border-collapse: collapse; font-size: 14px; }
table.simple th, table.simple td { text-align: start; padding: 8px 6px; border-top: 1px solid var(--line); }
table.simple td.num { font-family: var(--f-mono); text-align: end; }
.table-wrap { overflow-x: auto; }
.copy { display: flex; gap: 8px; }
.copy input { font-family: var(--f-mono); font-size: 13.5px; }
.copy button { width: auto; }
.uk { display: inline-flex; align-items: center; gap: 6px; }
.flag { width: 22px; height: 11px; border-radius: 2px; flex: none; display: inline-block; vertical-align: middle; }
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 14px max(16px, env(safe-area-inset-left, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(0,0,0,.3); }
.cookie .in { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 14px; }
.cookie .btns { display: flex; gap: 8px; }
.cookie button { width: auto; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 50; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.legal { max-width: 760px; margin: 0 auto; padding-block: 32px 64px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); }
.legal h2 { font-size: 21px; margin-top: 30px; }
.legal p, .legal li { color: #2b3546; }
/* Prices in the visitor's currency */
.cur-switch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -8px 0 16px; font-size: 14px; color: var(--muted); }
.cur-switch button { width: auto; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.cur-switch button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.amt-alt { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 0; }
.amt-alt:empty { display: none; }
.cur-note { margin-top: 12px; max-width: 70ch; }
.ql-sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* Trust section stamp */
.trust-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.trust-stamp { width: 150px; height: auto; flex: none; transform: rotate(-8deg); margin: -10px 8px 8px 0; }
@media (max-width: 640px) { .trust-stamp { width: 96px; margin: 0; } }

/* Partner options */
.opts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .opts3 { grid-template-columns: 1fr; } }
.opts3 .plan { padding: 14px; }
.opts3 .plan p { font-size: 13.5px; }

/* Translator account */
.credit-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--brand-soft); border-radius: 16px; padding: 16px 18px; }
.credit-hero .big { font: 700 40px/1.1 var(--f-display); color: var(--brand); font-variant-numeric: tabular-nums; }
.credit-hero .btn { width: auto; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.pack { flex-direction: column; align-items: flex-start; gap: 2px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-align: start; padding: 14px; }
.pack:hover { border-color: var(--brand); }
.pack .pk-price { font: 700 22px var(--f-display); letter-spacing: -.01em; }
.pack small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.brand-form { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.brand-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .brand-imgs { grid-template-columns: 1fr; } }
.img-box { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.img-box .label { margin: 0; }
.img-frame { height: 110px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: repeating-conic-gradient(#f1f4f9 0% 25%, #fff 0% 50%) 0 0 / 16px 16px; }
.img-frame img { max-width: 92%; max-height: 96px; object-fit: contain; }
.small-note { font-size: 12.5px; margin: 6px 0 0; }
.cert { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin-top: 8px; box-shadow: 0 12px 30px -20px rgba(12,26,46,.35); font: 12.5px/1.5 Arial, Helvetica, sans-serif; color: #1c1c1c; }
.cert-head { display: flex; justify-content: flex-end; align-items: center; gap: 8px; min-height: 18px; }
.cert-logo { max-height: 46px; max-width: 170px; object-fit: contain; }
.cert-biz { font-size: 11px; color: #555; }
.cert-title { font-weight: 700; font-size: 18px; margin: 10px 0 8px; }
.cert-meta { margin-bottom: 10px; }
.cert-st { margin: 0 0 14px; }
.cert-sign { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cert-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cert-who span { color: #444; font-size: 11.5px; overflow-wrap: anywhere; }
.cert-who .pre { white-space: pre-line; color: #666; }
.cert-lbl { color: #777 !important; font-size: 11px !important; }
.cert-sig { max-height: 46px; max-width: 170px; object-fit: contain; align-self: flex-start; }
.cert-sig-space { height: 34px; }
.cert-line { width: 170px; max-width: 100%; border-top: 1px solid #999; margin: 2px 0 6px; }
.cert-stamp { width: 96px; flex: none; transform: rotate(-6deg); }
.cert-edit { border-top: 1px solid var(--line); padding-top: 12px; }

/* Footer on every page */
.site-foot { border-top: 1px solid var(--line); padding-block: 36px 28px; font-size: 14px; color: var(--muted); background: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand p { margin: 10px 0 0; max-width: 34ch; }
.foot-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.foot-col b { color: var(--ink); font-family: var(--f-display); font-size: 14px; }
.foot-col a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-col span { font-size: 12.5px; }
.foot-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 10px 14px; align-items: flex-start; flex-wrap: wrap; font-size: 12.5px; }
.foot-legal .flag { margin-top: 3px; }
.foot-legal p { margin: 0; flex: 1; min-width: 220px; }
.foot-legal .foot-copy { flex: none; min-width: 0; }

/* Inner pages */
.page-top { padding-block: 40px 44px; }
.page-h { font-size: clamp(30px, 4.6vw, 46px); margin: 8px 0 10px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 6px 16px; flex-wrap: wrap; }
.sec-head .btn { margin-bottom: 22px; }
.price-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .price-strip { grid-template-columns: 1fr; } }
.ps { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--ink); transition: border-color .2s; }
.ps:hover, .ps.hot { border-color: var(--brand); }
.ps .label { margin: 0; }
.ps b { font: 700 28px/1.2 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ps small { color: var(--muted); font-size: 13px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 30px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2317396b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--tint); border-radius: 20px; padding: 24px; }
.cta-band h2 { margin-bottom: 4px; }
.cta-band p { margin: 0; color: var(--muted); max-width: 56ch; }
.cta-band .btn { width: auto; }
.tr-line { margin-top: 14px; }

/* Partners page */
.pp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .pp-grid { grid-template-columns: 1fr; } }
.pp-card { border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; background: #fff; scroll-margin-top: 90px; min-width: 0; }
.pp-card h2 { font-size: 22px; margin: 0; }
.pp-card p { margin: 0; color: var(--muted); }
.pp-card .btn { width: auto; align-self: flex-start; margin-top: auto; }
.pp-card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.pp-card.dark p { color: #c5d0e0; }
.pp-card.dark .btn { background: #fff; color: var(--ink); }
.pp-card.dark .ticks li::before { background-color: rgba(255,255,255,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pack-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pack-list:empty { display: none; }
.pack-chip { border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 8px 12px; font-size: 12.5px; color: #c5d0e0; }
.pack-chip b { display: block; font: 600 15px var(--f-display); color: #fff; }
.pp-contact { margin: 18px 0 0; }

/* About and contact pages */
.about { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.about-lead { min-width: 0; }
.about-stamp { width: 170px; height: auto; flex: none; transform: rotate(-8deg); }
@media (max-width: 640px) { .about-stamp { width: 96px; } }
.co-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.co-card h2 { font-size: 20px; margin: 0; }
.co-card .btn { width: auto; align-self: flex-start; }
.co-list { margin: 0; }
.co-list div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.co-list div:first-child { border-top: 0; padding-top: 0; }
.co-list dt { color: var(--muted); font-size: 13.5px; }
.co-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 480px) { .co-list div { grid-template-columns: 1fr; gap: 2px; } }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.ct-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: #fff; min-width: 0; }
.ct-card h2 { font-size: 18px; margin: 4px 0 0; }
.ct-card p { margin: 0; color: var(--muted); font-size: 14px; }
.ct-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.ct-mail { font-weight: 600; margin-top: auto; padding-top: 6px; overflow-wrap: anywhere; }
address.post { font-style: normal; line-height: 1.75; }
.legal-en { margin-bottom: 16px; }
.nf { text-align: center; }
.nf .sub { margin-inline: auto; }
.nf .cta-row { justify-content: center; }

/* Account area */
.app-top { padding-block: 22px 52px; }
.app-tabs { display: flex; gap: 2px; margin-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.app-tabs a { padding: 10px 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.app-tabs a:hover { color: var(--ink); }
.app-tabs a.on { color: var(--ink); border-bottom-color: var(--brand); }
.app-tabs .ts { display: none; }
/* three tabs do not fit a phone with the long names, so partners get the short ones */
@media (max-width: 560px) {
  .app-tabs:has(#tabPartner:not([hidden])) .tl { display: none; }
  .app-tabs:has(#tabPartner:not([hidden])) .ts { display: inline; }
}
.help-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.help-box span { color: var(--muted); }
.help-box a { font-weight: 600; overflow-wrap: anywhere; }

/* Sign in, sign up and password pages: one calm card in the middle of the page */
body.auth { background: radial-gradient(90% 60% at 50% 0%, #eef3fa 0%, var(--tint) 55%) fixed, var(--tint); min-height: 100vh; display: flex; flex-direction: column; }
.auth-top { padding-block: 12px; }
.auth-top-in { max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-home { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 2px; }
.auth-home:hover { color: var(--ink); }
.auth-main { flex: 1; }
.auth-box { width: 100%; max-width: 360px; margin: 0 auto; padding-block: 12px 32px; }
.auth-mark { display: block; width: 72px; margin: 4px auto 14px; }
.auth-mark img { display: block; width: 100%; height: auto; }
.auth-h { font-size: 24px; font-weight: 600; text-align: center; letter-spacing: -.01em; margin: 0 0 6px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 1px 2px rgba(12,26,46,.04), 0 16px 40px -28px rgba(23,57,107,.35); margin-top: 14px; }
.auth-card #authMsg:empty { display: none; }
#authBody { display: flex; flex-direction: column; gap: 16px; }
.auth-form { display: grid; gap: 8px; }
.auth-form label { font-size: 14px; font-weight: 600; }
.auth-form input { padding: 10px 12px; border-radius: 8px; }
.auth-form > input, .auth-form .pw { margin-bottom: 6px; }
.auth-form .primary { margin-top: 6px; padding: 12px 16px; border-radius: 10px; }
.auth-note { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.gbtn { padding: 11px 16px; border-radius: 10px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.small-link { font-size: 12.5px; font-weight: 600; text-decoration: none; }
.small-link:hover { text-decoration: underline; }
.pw { position: relative; }
.pw input { padding-inline-end: 66px; }
.pw-toggle { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: auto; padding: 6px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 600; background: none; color: var(--brand); }
.pw-toggle:hover { background: var(--tint); }
.pw-toggle:active { transform: translateY(-50%) scale(.97); }
.hint { margin: -2px 0 0; color: var(--muted); font-size: 12.5px; }
.auth-terms { margin: 4px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.auth-alt { border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; margin-top: 16px; background: #fff; font-size: 14px; }
.auth-alt a { font-weight: 600; }
.auth-done { display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center; }
.auth-done .mail-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.auth-done p { margin: 0; color: var(--muted); font-size: 14px; }
.auth-done p b { color: var(--ink); overflow-wrap: anywhere; }
.auth-done .btn, .auth-done button { width: 100%; }
.auth-foot { text-align: center; font-size: 12.5px; color: var(--muted); padding-block: 8px 28px; }
.auth-foot nav { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.auth-foot a { color: var(--muted); }
.auth-foot p { margin: 0; }
.nw { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
