/* EasyInvoice — "trusted local fintech" design system.
   Blue is the brand and the reward: it carries the app's identity and
   deepens the moment the Ministry of Revenues clears an invoice. */

@font-face {
  font-family: "Jakarta";
  src: url("/portalui/display.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* surfaces */
  --bg: #f4f6fb;
  --surface: #ffffff;
  --sunk: #eef1f8;
  --line: #e4e8f1;
  --line-strong: #d1d9e6;
  /* ink */
  --ink: #121a26;
  --ink-soft: #454f60;
  --muted: #77828f;
  /* brand blue */
  --brand: #1657cf;
  --brand-strong: #0f3f9c;
  --brand-bright: #2f74e6;
  --brand-soft: #e7eefc;
  --brand-line: #c4d7f7;
  /* semantics */
  --amber: #c9851a; --amber-soft: #fbf1dc;
  --red: #c23a2b;   --red-soft: #fbe9e6;
  --info: #0c8f8a;  --info-soft: #d9f2f0;
  /* effects */
  --ring: 0 0 0 3px rgba(22,87,207,.22);
  --shadow-sm: 0 1px 2px rgba(20,32,58,.06), 0 1px 3px rgba(20,32,58,.05);
  --shadow-md: 0 4px 14px rgba(20,38,66,.09), 0 2px 6px rgba(20,38,66,.06);
  --shadow-lg: 0 12px 34px rgba(16,40,80,.14);
  /* radii */
  --r-xs: 8px; --r-sm: 11px; --r: 16px; --r-lg: 22px; --r-pill: 999px;
  /* type */
  --display: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Ethiopic", sans-serif;
  --num: "Jakarta", ui-monospace, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Optical left-alignment: the display face carries left side-bearing, so
   headings need a small negative margin to make their visible ink line up
   with the sharp left edge of the cards/rows beneath them. */
h1 { font: 700 24px/1.2 var(--display); letter-spacing: -.02em; margin-left: -.055em; }
h2 { font: 650 16px/1.3 var(--display); letter-spacing: -.01em; margin: 26px 0 12px -.05em; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* ============ app shell ============ */
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }

/* desktop sidebar */
.rail {
  width: 240px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; height: 100dvh;
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 22px 16px 16px; display: flex; flex-direction: column; gap: 4px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font: 750 20px/1 var(--display); letter-spacing: -.02em; padding: 4px 8px 6px;
}
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--brand-bright), var(--brand-strong));
  display: grid; place-items: center; color: #fff; font-size: 16px; box-shadow: var(--shadow-sm);
}
/* The in-UI mark is the colored transparent logo (no tile) — the rounded
   green icon is reserved for the app/PWA launcher only. */
.brand .mark-img { width: 28px; height: 28px; flex-shrink: 0; }
.auth .brand .mark-img { width: 34px; height: 34px; }
.land-nav .brand .mark-img, .land-foot .brand .mark-img { width: 30px; height: 30px; }
.brand small { display: block; font: 500 10.5px/1 var(--sans); color: var(--muted); margin-top: 3px; letter-spacing: .3px; }
.rail nav { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; }
.rail nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink-soft); font-weight: 550;
}
.rail nav a .ic { width: 20px; text-align: center; font-size: 16px; opacity: .85; }
.rail nav a:hover { background: var(--sunk); text-decoration: none; }
.rail nav a.active { background: var(--brand-soft); color: var(--brand-strong); }
.rail nav a.active .ic { opacity: 1; }
.rail .foot { margin-top: auto; display: flex; gap: 12px; padding: 10px 8px 2px; font-size: 12.5px; }
.rail .foot button { background: none; border: none; color: var(--muted); padding: 0; font-weight: 550; }
.rail .foot button:hover { color: var(--ink); }

.main { flex: 1; min-width: 0; padding: 30px clamp(16px, 4vw, 46px) 46px; max-width: 1040px; }

/* mobile top bar + bottom tab bar (hidden on desktop) */
.topbar, .tabbar { display: none; }

/* ============ cards & surfaces ============ */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.muted { color: var(--muted); font-size: 13px; }
.hint { color: var(--muted); font-size: 12.5px; }
.mono { font-family: ui-monospace, monospace; font-size: 12.5px; word-break: break-all; }

/* ============ forms ============ */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 550; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .filterbar input, .filterbar select, .pos-search {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: var(--surface); transition: border-color .12s, box-shadow .12s;
}
.field input:focus, .field select:focus, .filterbar input:focus, .filterbar select:focus,
.pos-search:focus, button:focus-visible, a.btn:focus-visible {
  outline: none; border-color: var(--brand); box-shadow: var(--ring);
}
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  background: var(--brand); color: #fff; font-weight: 650; letter-spacing: -.01em;
  white-space: nowrap; box-shadow: var(--shadow-sm); transition: transform .05s, background .12s, box-shadow .12s;
}
.btn:hover { background: var(--brand-strong); text-decoration: none; box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn.secondary:hover { background: var(--sunk); border-color: var(--line-strong); }
.btn.danger { background: var(--surface); color: var(--red); border-color: var(--red); box-shadow: none; }
.btn.danger:hover { background: var(--red-soft); }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 18px; }

.error-box { background: var(--red-soft); color: var(--red); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 14px; font-size: 13.5px; }
.error-box ul { margin: 6px 0 0 18px; }

/* ============ auth screens ============ */
.auth { max-width: 400px; margin: 8vh auto; padding: 0 18px; }
.auth .brand { font-size: 26px; justify-content: center; margin-bottom: 8px; }
.auth .tagline { text-align: center; color: var(--muted); margin-bottom: 26px; font-size: 13.5px; }
.auth .card { padding: 24px; box-shadow: var(--shadow-md); border-radius: var(--r-lg); }

/* ============ money hero / stat tiles ============ */
.tiles { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px;
}
.tile.big {
  grid-row: span 1; color: #fff; border: none;
  background: linear-gradient(145deg, var(--brand-bright), var(--brand-strong));
  box-shadow: var(--shadow-md);
}
.tile.big .hint, .tile.big .muted { color: rgba(255,255,255,.82); }
.tile .amount { font: 800 30px/1.05 var(--num); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile .amount small { font: 600 13px/1 var(--sans); opacity: .8; margin-right: 5px; }
.tile .tileN { font: 750 30px/1 var(--num); letter-spacing: -.02em; }
.tile.warn { border-color: var(--amber); background: var(--amber-soft); }
.tile.bad { border-color: var(--red); background: var(--red-soft); }
.tile.link { text-decoration: none; color: inherit; transition: transform .06s, box-shadow .12s; }
.tile.link:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* ============ the clearance seal (signature) ============ */
.strip {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: 24px; margin-bottom: 18px;
  color: #fff; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; box-shadow: var(--shadow-md);
}
.strip.pending { background: linear-gradient(140deg, #e6a52c, #c9851a); }
.strip.cleared { background: linear-gradient(140deg, var(--brand-bright), var(--brand-strong)); }
.strip.rejected { background: linear-gradient(140deg, #d2503f, #a72c1f); }
.strip .amount { font: 800 34px/1 var(--num); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.strip .state { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; opacity: .9; margin-bottom: 6px; }
.strip img.qr { width: 96px; height: 96px; border-radius: var(--r-sm); background: #fff; padding: 6px; margin-left: auto; box-shadow: var(--shadow-sm); }
.strip .irn { width: 100%; font-family: ui-monospace, monospace; font-size: 11px; opacity: .8; word-break: break-all; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.2); margin-top: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .strip.cleared { animation: seal .5s cubic-bezier(.2,.7,.3,1); }
  @keyframes seal { from { transform: scale(.97); opacity: .5; } to { transform: none; opacity: 1; } }
}

/* ============ tables / lists ============ */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.filterbar .grow { flex: 1; min-width: 180px; }
.invlist { width: 100%; border-collapse: collapse; }
.invlist th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.invlist td { padding: 14px; border-bottom: 1px solid var(--line); }
.invlist tr:last-child td { border-bottom: none; }
.invlist tbody tr { transition: background .1s; }
.invlist tbody tr[data-id]:hover td { background: var(--brand-soft); cursor: pointer; }
.invlist .num { text-align: right; }

/* responsive invoice rows (replace tables that clipped on mobile) */
.irowlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.irow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .1s; }
.irow:last-child { border-bottom: none; }
.irow:hover { background: var(--brand-soft); }
.irow-num { font: 700 13px/1 var(--display); color: var(--muted); min-width: 34px; font-variant-numeric: tabular-nums; }
.irow-main { flex: 1; min-width: 0; }
.irow-main b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.irow-main span { color: var(--muted); font-size: 12px; }
.irow-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.irow-amt { font: 700 15px/1 var(--num); font-variant-numeric: tabular-nums; }
.sect { display: flex; align-items: center; justify-content: space-between; }
.sect a { color: var(--brand); font-size: 13px; font-weight: 600; }

/* invoice detail: item + totals as flex rows (no clipping table) */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.doc .drow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.doc .drow:last-child { border-bottom: none; }
.drow-item { min-width: 0; }
.drow-item b { display: block; font-weight: 600; font-size: 14px; }
.drow-item span { color: var(--muted); font-size: 12px; }
.drow-amt { font: 650 14px/1 var(--num); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.doc .drow.sub { padding: 9px 16px; color: var(--muted); font-size: 12.5px; }
.doc .drow.sub .num { font-variant-numeric: tabular-nums; }
.doc .drow.grand { background: var(--sunk); font-weight: 700; }
.doc .drow.grand b { font-family: var(--display); font-size: 16px; font-variant-numeric: tabular-nums; }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.CLEARED { background: var(--brand-soft); color: var(--brand-strong); }
.chip.PENDING_CLEARANCE { background: var(--amber-soft); color: var(--amber); }
.chip.NEEDS_ATTENTION { background: var(--red-soft); color: var(--red); }
.chip.CANCELLED { background: var(--sunk); color: var(--muted); }

.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-x .invlist { min-width: 560px; }
.scroll-x .lines { min-width: 880px; }

/* ============ sell (detailed) ============ */
.lines { width: 100%; border-collapse: collapse; }
.lines th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); padding: 0 6px 8px 0; }
.lines td { padding: 3px 6px 3px 0; }
.lines input, .lines select { width: 100%; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-xs); background: var(--surface); }
.lines .num input { text-align: right; font-variant-numeric: tabular-nums; }
.lines .rm { background: none; border: none; color: var(--muted); font-size: 18px; padding: 4px; }
.lines .rm:hover { color: var(--red); }
.totalbar { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; flex-wrap: wrap; gap: 12px; }
.amount { font: 800 30px/1 var(--num); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.amount small { font: 600 13px/1 var(--sans); color: var(--muted); margin-right: 6px; }

/* ============ POS ============ */
.pos-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pos-search { margin-bottom: 16px; font-size: 16px; }
.pos-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 12px; }
.pos-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  min-height: 96px; padding: 13px; text-align: left; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
  transition: transform .05s, border-color .12s, box-shadow .12s;
}
.pos-tile:hover { border-color: var(--brand-line); box-shadow: var(--shadow-md); }
.pos-tile:active { transform: scale(.97); }
.pos-name { font-weight: 650; line-height: 1.25; letter-spacing: -.01em; }
.pos-price { font: 700 15px/1 var(--num); color: var(--brand-strong); font-variant-numeric: tabular-nums; }
.pos-tag { align-self: flex-start; font-size: 9.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-pill); }
.pos-tag.goods { background: var(--brand-soft); color: var(--brand-strong); }
.pos-tag.service { background: var(--info-soft); color: var(--info); }
.pos-tile.blocked { opacity: .34; cursor: not-allowed; box-shadow: none; }
.pos-tile.blocked:hover { border-color: var(--line); box-shadow: none; }
.pos-cart { position: sticky; top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-sm); }
.pos-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pos-row-name { flex: 1; font-size: 14px; font-weight: 550; }
.pos-row-amt { font: 650 14px/1 var(--num); font-variant-numeric: tabular-nums; }
.pos-qty { display: flex; align-items: center; gap: 8px; }
.pos-qty button { width: 32px; height: 32px; border-radius: var(--r-xs); border: 1px solid var(--line-strong); background: var(--surface); font-size: 18px; line-height: 1; }
.pos-qty button:active { background: var(--sunk); }
.pos-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0; }
.pos-total b { font: 800 26px/1 var(--num); letter-spacing: -.02em; }
.pos-total small { color: var(--muted); font-size: 12px; margin-right: 4px; }

/* ============ products ============ */
.pos-head + .muted { margin-bottom: 12px; }

/* ============ responsive: mobile app frame ============ */
@media (max-width: 780px) {
  .rail { display: none; }
  .main { padding: 0 14px 84px; max-width: none; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 30; margin: 0 -14px 14px; padding: 12px 16px;
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .topbar .brand { font-size: 18px; padding: 0; }
  .topbar .brand small { display: none; }
  .topbar .tb-actions { display: flex; gap: 6px; }
  .topbar .tb-actions button { background: none; border: none; color: var(--muted); font-weight: 550; font-size: 13px; padding: 6px; }

  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(20,38,66,.05);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px; color: var(--muted); font-size: 10.5px; font-weight: 600; border-radius: var(--r-xs);
  }
  .tabbar a .ic { font-size: 20px; line-height: 1; }
  .tabbar a.active { color: var(--brand); }
  .tabbar a:hover { text-decoration: none; }

  h1 { font-size: 22px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .big { grid-column: 1 / -1; }
  .tile .amount, .tile .tileN { font-size: 28px; }
  .row { flex-direction: column; gap: 0; }
  .row > * { min-width: 0; }
  .card { padding: 16px; }
  .strip { padding: 18px; }
  .strip .amount { font-size: 28px; }
  .strip img.qr { width: 76px; height: 76px; }
  .pos-wrap { grid-template-columns: 1fr; }
  .pos-cart { position: static; order: -1; }
  .pos-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .actions .btn { flex: 1; }
}

/* ============ Annex-1 print (bilingual fiscal layout) ============ */
.annex { max-width: 820px; margin: 20px auto; padding: 28px 32px; background: #fff; border: 1px solid var(--line); color: #000; font-size: 12.5px; line-height: 1.55; }
.annex .am { display: block; font-size: 12px; }
.annex .en { display: block; font-size: 10.5px; color: #333; }
.annex .fill { display: inline-block; min-width: 120px; border-bottom: 1px dotted #555; padding: 0 4px; font-weight: 600; vertical-align: bottom; }
.ahead { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.atitle { font-size: 15px; font-weight: 700; text-align: center; flex: 1; }
.aqr { width: 96px; height: 96px; }
.aline { margin: 6px 0; display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.aline .am, .aline .en { display: inline; }
.parties { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 12px 0; }
.party { border: 1px solid #999; padding: 10px 12px; }
.party .pname { margin-bottom: 6px; }
.party .pname .am, .party .pname .en { display: inline; margin-right: 4px; }
.addr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; margin: 4px 0 8px; }
.addr .fill { min-width: 50px; }
.atable { width: 100%; border-collapse: collapse; margin: 10px 0; }
.atable th, .atable td { border: 1px solid #777; padding: 4px 6px; text-align: right; }
.atable th { font-weight: 500; text-align: center; background: #f4f5f3; }
.atable td.lft, .atable th.lft { text-align: left; }
.atable td:first-child { text-align: center; }
.atable tfoot td { border: 1px solid #777; }
.atable .grand td { font-weight: 700; }
.sigrow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0 10px; }
.authline { border-top: 1px solid #999; padding-top: 8px; font-size: 11px; }

@page { size: A4; margin: 8mm; }
@media print {
  .rail, .topbar, .tabbar, .btn, .no-print { display: none !important; }
  body { background: #fff; }
  .main { padding: 0; max-width: none; }
  .card, .strip { border: none; box-shadow: none; }
  .strip { color: var(--ink); background: none !important; padding: 0; }
  .strip .amount { color: var(--ink); }
  .annex { margin: 0; padding: 0; font-size: 11px; line-height: 1.3; border: none; }
  .annex .am, .annex .en { display: inline; }
  .annex .en { margin-left: 4px; }
  .annex .fill { min-width: 60px; }
  .parties { gap: 6px; margin: 4px 0; }
  .party { padding: 4px 8px; }
  .party > div { margin: 1px 0; }
  .addr { gap: 1px 8px; margin: 2px 0 4px; }
  .atable { margin: 6px 0; }
  .atable th, .atable td { padding: 2px 4px; }
  .ahead { margin-bottom: 4px; }
  .sigrow { margin: 6px 0 3px; gap: 8px; }
  .authline { padding-top: 4px; font-size: 10px; }
  .aqr { width: 76px; height: 76px; }
}
@media print and (max-width: 90mm) {
  .annex { padding: 2mm; border: none; font-size: 10px; }
  .parties, .sigrow { grid-template-columns: 1fr; gap: 6px; }
  .addr { grid-template-columns: 1fr 1fr; }
  .aqr { width: 70px; height: 70px; }
}

/* ============ landing (public marketing) ============ */
.land { max-width: 1080px; margin: 0 auto; padding: 0 22px 60px; }
.land-nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 16px; flex-wrap: wrap; }
.land-nav .brand { font-size: 21px; }
.land-nav-r { display: flex; align-items: center; gap: 10px; }
.land-lang { background: none; border: none; color: var(--muted); font-weight: 600; font-size: 13.5px; padding: 8px; }
.land-lang:hover { color: var(--ink); }

.land-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 48px 0 60px; }
.land-eyebrow { display: inline-block; font: 700 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-strong); background: var(--brand-soft); padding: 7px 12px; border-radius: var(--r-pill); margin-bottom: 20px; }
.land-hero h1 { font: 800 46px/1.04 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.land-sub { color: var(--ink-soft); font-size: 17px; line-height: 1.55; margin: 18px 0 26px; max-width: 40ch; }
.land-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.land-cta .btn { padding: 13px 24px; font-size: 15px; }
.land-trust { margin-top: 22px; color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.land-trust::before { content: "●"; color: var(--brand); font-size: 9px; }

.land-hero-art { display: flex; justify-content: center; }
.land-seal { width: 100%; max-width: 380px; transform: rotate(-1.5deg); }
.land-seal:hover { transform: none; transition: transform .3s ease; }

.land-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px 0 56px; }
.land-feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 18px; box-shadow: var(--shadow-sm); }
.land-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong);
  display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.land-feat b { font: 650 16px/1.2 var(--display); display: block; margin-bottom: 6px; }
.land-feat p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.land-steps { text-align: center; padding: 40px 0; }
.land-steps h2 { font: 750 30px/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 36px; }
.land-steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.land-step { position: relative; padding-top: 8px; }
.land-step span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(145deg, var(--brand-bright), var(--brand-strong)); color: #fff;
  font: 800 17px/1 var(--display); box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.land-step b { font: 650 18px/1.2 var(--display); display: block; margin-bottom: 6px; }
.land-step p { color: var(--muted); font-size: 14px; line-height: 1.5; }

.land-final { text-align: center; padding: 56px 24px; margin: 40px 0; border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--brand-bright), var(--brand-strong)); color: #fff; box-shadow: var(--shadow-md); }
.land-final h2 { font: 800 30px/1.15 var(--display); letter-spacing: -.02em; margin-bottom: 22px; text-wrap: balance; }
.land-final .btn { background: #fff; color: var(--brand-strong); padding: 14px 30px; font-size: 16px; }
.land-final .btn:hover { background: #fff; box-shadow: var(--shadow-lg); }

.land-foot { display: flex; align-items: center; justify-content: space-between; padding: 30px 0 10px; border-top: 1px solid var(--line); gap: 16px; flex-wrap: wrap; }
.land-foot .brand { font-size: 17px; }

@media (max-width: 820px) {
  .land-hero { grid-template-columns: 1fr; gap: 32px; padding: 24px 0 40px; }
  .land-hero h1 { font-size: 36px; }
  .land-hero-art { order: -1; }
  .land-seal { max-width: 340px; }
  .land-features { grid-template-columns: 1fr 1fr; }
  .land-steps-row { grid-template-columns: 1fr; gap: 18px; }
  .land-nav-r .btn.secondary { display: none; }
}
@media (max-width: 480px) {
  .land-features { grid-template-columns: 1fr; }
  .land-hero h1 { font-size: 30px; }
}


/* ============ share modal + public receipt ============ */
.modal-back { position: fixed; inset: 0; background: rgba(15,25,40,.5); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: var(--surface); border-radius: var(--r-lg); padding: 22px; width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-lg); }
.modal b { font: 650 16px/1.2 var(--display); margin-bottom: 4px; }
.modal .btn { width: 100%; }
.pubrcpt { max-width: 520px; margin: 20px auto 0; }
.pubrcpt-seller { text-align: center; font-weight: 600; margin-bottom: 14px; color: var(--ink-soft); }

/* Centered headings must not take the optical left nudge (it'd off-center them). */
.land-steps h2, .land-final h2 { margin-left: 0; }
