/* Veteran Che — public landing, terms and privacy pages.
   Ported from design/ui_kits/landing/{index,terms}.html. This file is loaded
   only by the "landing" layout (it lives in vendor/assets so it is excluded
   from the admin's `stylesheet_link_tag :app` bundle). Home-page and document-
   page rules are namespaced under .lp-home / .lp-doc because the two source
   designs reuse class names (e.g. .wrap) with different values. */

/* e-Ukraine — official typeface of the Ukrainian state (Diia). Only the three
   weights the pages actually use are shipped: Light 300, Regular 400, Medium 500. */
@font-face {
  font-family: "e-Ukraine";
  src: url("/assets/e-Ukraine-Light-df3516a6.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "e-Ukraine";
  src: url("/assets/e-Ukraine-Regular-7ecaead6.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "e-Ukraine";
  src: url("/assets/e-Ukraine-Medium-e3a1284a.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --navy: #091D4F;
  --red: #FF3939;
  --squeeze: #E2ECF4;
  --blue-light: #EFF7FE;
  --border: #C9D8E7;
  --ink60: rgba(0,0,0,0.6);
  --ink40: rgba(0,0,0,0.4);
}

html, body { margin: 0; }
body {
  font-family: 'e-Ukraine', -apple-system, system-ui, sans-serif;
  color: #000; background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* shared header brand lockup (identical on both page types) */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font: 500 17px/1 'e-Ukraine', sans-serif; color: var(--navy); letter-spacing: -0.2px; }

/* ============================================================= HOME ===== */

.lp-home .wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* header */
.lp-home header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px; padding-bottom: 22px;
}
.lp-home .nav { display: flex; align-items: center; gap: 28px; }
.lp-home .nav a { font: 300 13.5px/1 'e-Ukraine', sans-serif; color: var(--ink60); text-decoration: none; }
.lp-home .nav a:hover { color: var(--navy); }

/* hero */
.lp-home .hero { background: var(--squeeze); border-radius: 32px; overflow: hidden; }
.lp-home .hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  padding: 72px 64px 0;
}
.lp-home .region {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px 8px 11px; border-radius: 999px; background: #fff;
  font: 400 12.5px/1 'e-Ukraine', sans-serif; color: var(--ink60);
}
.lp-home .region i { width: 7px; height: 7px; border-radius: 999px; background: var(--red); }
.lp-home h1 {
  margin: 26px 0 18px;
  font: 400 52px/1.12 'e-Ukraine', sans-serif; letter-spacing: -1px; color: var(--navy);
  text-wrap: pretty;
}
.lp-home .lede { margin: 0 0 34px; font: 300 17px/1.5 'e-Ukraine', sans-serif; color: var(--ink60); max-width: 440px; }
.lp-home .stores { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 64px; }
.lp-home .store {
  display: inline-flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 24px; border-radius: 999px;
  background: var(--navy); color: #fff; text-decoration: none;
  transition: transform .1s ease, background .15s ease;
}
.lp-home .store:hover { background: #0C2666; }
.lp-home .store:active { transform: scale(0.98); }
.lp-home .store small { display: block; font: 300 10.5px/1.3 'e-Ukraine', sans-serif; color: rgba(255,255,255,0.6); }
.lp-home .store b { display: block; font: 400 15px/1.2 'e-Ukraine', sans-serif; font-weight: 400; }
.lp-home .store svg { flex-shrink: 0; }

/* phone mock */
.lp-home .phone-col { display: flex; justify-content: center; align-self: end; }
.lp-home .phone {
  width: 300px; height: 400px; border-radius: 44px 44px 0 0;
  background: #fff; border: 8px solid var(--navy); border-bottom: none;
  box-shadow: 0 30px 60px rgba(9,29,79,0.25);
  overflow: hidden; position: relative;
}
.lp-home .phone .screen { padding: 40px 22px 0; }
.lp-home .phone .p-region {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px 6px 8px; border-radius: 999px; background: var(--squeeze);
  font: 400 9px/1 'e-Ukraine', sans-serif; color: var(--ink60);
}
.lp-home .phone .p-region i { width: 5px; height: 5px; border-radius: 999px; background: var(--red); }
.lp-home .phone .p-title { display: flex; align-items: center; gap: 9px; margin: 16px 0 5px; }
.lp-home .phone .p-title img { width: 30px; height: 30px; }
.lp-home .phone .p-title span { font: 400 24px/1.1 'e-Ukraine', sans-serif; letter-spacing: -0.4px; color: var(--navy); }
.lp-home .phone .p-sub { font: 300 10.5px/1.4 'e-Ukraine', sans-serif; color: var(--ink60); max-width: 210px; }
.lp-home .phone .p-search {
  margin-top: 14px; height: 38px; border-radius: 14px; border: 1.5px solid var(--border);
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  font: 400 11px/1 'e-Ukraine', sans-serif; color: var(--ink40);
}
.lp-home .phone .p-h2 { margin: 16px 0 8px; font: 400 13.5px/1.2 'e-Ukraine', sans-serif; }
.lp-home .phone .p-row {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  border: 1px solid var(--border); border-radius: 14px; margin-bottom: 7px;
}
.lp-home .phone .p-ic {
  width: 28px; height: 28px; border-radius: 999px; background: var(--squeeze);
  display: flex; align-items: center; justify-content: center; color: var(--navy); flex-shrink: 0;
}
.lp-home .phone .p-name { font: 400 10.5px/1.25 'e-Ukraine', sans-serif; }
.lp-home .phone .p-meta { font: 300 8.5px/1.3 'e-Ukraine', sans-serif; color: var(--ink40); margin-top: 2px; }

/* features */
.lp-home .features { padding: 88px 0 8px; }
.lp-home .features h2, .lp-home .coop h2 { margin: 0 0 12px; font: 400 32px/1.2 'e-Ukraine', sans-serif; color: var(--navy); letter-spacing: -0.4px; }
.lp-home .features .sub { margin: 0 0 40px; font: 300 15px/1.5 'e-Ukraine', sans-serif; color: var(--ink60); max-width: 520px; }
.lp-home .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-home .card {
  border: 1px solid var(--border); border-radius: 24px; padding: 26px;
  box-shadow: 0 4px 16px rgba(23,33,46,0.05);
}
.lp-home .card .ic {
  width: 46px; height: 46px; border-radius: 999px; background: var(--squeeze);
  display: flex; align-items: center; justify-content: center; color: var(--navy); margin-bottom: 16px;
}
.lp-home .card h3 { margin: 0 0 8px; font: 400 17px/1.3 'e-Ukraine', sans-serif; }
.lp-home .card p { margin: 0; font: 300 13.5px/1.55 'e-Ukraine', sans-serif; color: var(--ink60); }

/* cooperation */
.lp-home .coop { padding: 72px 0 88px; }
.lp-home .coop-box {
  background: var(--blue-light); border-radius: 24px; padding: 34px 38px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.lp-home .coop-box p { margin: 0; font: 300 13.5px/1.6 'e-Ukraine', sans-serif; color: var(--ink60); max-width: 560px; }
.lp-home .coop-box p a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.lp-home .coop-logos { display: flex; align-items: center; gap: 18px; font: 400 13px/1.3 'e-Ukraine', sans-serif; color: var(--navy); }
.lp-home .coop-logos .x { color: var(--ink40); font-weight: 300; }

/* footer */
.lp-home footer { border-top: 1px solid var(--border); }
.lp-home footer .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 26px; padding-bottom: 34px;
}
.lp-home footer span, .lp-home footer a { font: 300 12px/1.5 'e-Ukraine', sans-serif; color: var(--ink40); }
.lp-home footer a { text-decoration: none; }
.lp-home footer a:hover { color: var(--navy); }
.lp-home footer .links { display: flex; gap: 22px; }

@media (max-width: 900px) {
  .lp-home .hero-inner { grid-template-columns: 1fr; padding: 48px 32px 0; }
  .lp-home .phone-col { display: none; }
  .lp-home .stores { padding-bottom: 48px; }
  .lp-home h1 { font-size: 38px; }
  .lp-home .grid { grid-template-columns: 1fr; }
}

/* ==================================================== TERMS / PRIVACY ===== */

.lp-doc .wrap { max-width: 760px; margin: 0 auto; padding: 0 32px; }

.lp-doc header { border-bottom: 1px solid var(--border); }
.lp-doc header .inner {
  max-width: 1120px; margin: 0 auto; padding: 22px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.lp-doc .back { font: 300 13.5px/1 'e-Ukraine', sans-serif; color: var(--ink60); text-decoration: none; }
.lp-doc .back:hover { color: var(--navy); }

.lp-doc article { padding: 56px 0 88px; }
.lp-doc h1 { margin: 0 0 10px; font: 400 36px/1.2 'e-Ukraine', sans-serif; letter-spacing: -0.5px; color: var(--navy); }
.lp-doc .updated { font: 300 12.5px/1.5 'e-Ukraine', sans-serif; color: var(--ink40); margin-bottom: 40px; }
.lp-doc h2 { margin: 36px 0 12px; font: 400 19px/1.3 'e-Ukraine', sans-serif; color: var(--navy); }
.lp-doc p, .lp-doc li { font: 300 14.5px/1.65 'e-Ukraine', sans-serif; color: var(--ink60); }
.lp-doc p { margin: 0 0 12px; }
.lp-doc ul { margin: 0 0 12px; padding-left: 22px; }
.lp-doc li { margin-bottom: 6px; }
.lp-doc a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
/* the underlined-link rule above is scoped, so it outranks the shared
   `.brand` rule; re-assert no underline on the header wordmark. */
.lp-doc .brand { text-decoration: none; }
.lp-doc .note {
  margin: 40px 0 0; padding: 18px 20px; border-radius: 16px; background: #EFF7FE;
  font: 300 12.5px/1.6 'e-Ukraine', sans-serif; color: var(--ink60);
}

.lp-doc footer { border-top: 1px solid var(--border); }
.lp-doc footer .inner {
  max-width: 1120px; margin: 0 auto; padding: 26px 32px 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.lp-doc footer span, .lp-doc footer a { font: 300 12px/1.5 'e-Ukraine', sans-serif; color: var(--ink40); }
.lp-doc footer a { text-decoration: none; }
.lp-doc footer a:hover { color: var(--navy); }
.lp-doc footer .links { display: flex; gap: 22px; }
