/* ukcompaniesapp.com — design "Float, blue" (Website/proposals/a2-float-blue). System fonts only; no data: URLs (CSP is 'self'). */
:root {
  --bg: #F3F5F9;          /* page: light grey-blue */
  --surface: #FFFFFF;
  --ink: #0F1B3D;         /* navy from the app icon */
  --ink-2: #5B6478;       /* body secondary */
  --ink-3: #737C92;       /* headline second line (large text only) */
  --line: #E3E7EF;
  --line-strong: #C9D0DD;
  --accent: #1B6FD8;      /* icon blue, deepened: fills (white text 4.9:1) */
  --accent-text: #1664C4; /* links and small text (5.3:1 on the page) */
  --accent-soft: #EAF2FD;
  --ok: #1E7A4C;          /* status only: Active, ID verified */
  --ok-soft: #E6F4EC;
  --alert: #C40D18;
  --pending: #A35200;
  --nav: rgba(255, 255, 255, 0.78);
  --shadow-1: 0 1px 2px rgba(15, 27, 61, 0.06), 0 2px 8px rgba(15, 27, 61, 0.04);
  --shadow-2: 0 1px 2px rgba(15, 27, 61, 0.06), 0 16px 40px -12px rgba(15, 27, 61, 0.22);
  --wash: radial-gradient(60% 50% at 50% 70%, #E4EBF7 0%, rgba(243, 245, 249, 0) 70%);
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-pill: 999px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1020; --surface: #151B2E; --ink: #EEF1F7; --ink-2: #A3ABBE; --ink-3: #8C95AB;
    --line: #262E45; --line-strong: #3A4360; --accent: #1B6FD8; --accent-text: #5AA9FF; --accent-soft: #13284A; --ok: #3CC48A; --ok-soft: #10301F;
    --alert: #FF6B6B; --pending: #F0A04B; --nav: rgba(21, 27, 46, 0.8);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 40px -12px rgba(0, 0, 0, 0.7);
    --wash: radial-gradient(60% 50% at 50% 70%, #18213D 0%, rgba(11, 16, 32, 0) 70%);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--font); }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:focus-visible, .badge:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--s5); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* Nav: floating pill */
.nav { position: sticky; top: var(--s4); z-index: 10; margin: var(--s4) auto 0; max-width: 1160px; padding: 0 var(--s5); }
.nav-in { display: flex; align-items: center; gap: var(--s5); padding: 8px 8px 8px 12px; border-radius: var(--r-pill);
  background: var(--nav); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: var(--s5); }
.nav-links a:not(.badge) { color: var(--ink); text-decoration: none; font-size: 16px; padding: 8px 4px; }
.nav-links a:not(.badge):hover { text-decoration: underline; }
.nav-links a[aria-current] { font-weight: 600; }

/* App Store badge: Apple's official artwork, unmodified, only scaled. Clear space = 1/4 of its height. */
.badge { display: inline-block; line-height: 0; border-radius: 9px; }
.badge img { height: 54px; width: auto; }
.badge.sm img { height: 40px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s3) var(--s4); }
.cta-note { color: var(--ink-2); font-size: 15px; }

/* Hero */
.hero { text-align: center; padding: var(--s9) 0 0; background: var(--wash); }
.hero h1 { font: 700 clamp(40px, 6.4vw, 76px)/1.04 var(--font-display); letter-spacing: -0.035em; margin: 0 auto var(--s5); max-width: 20ch; text-wrap: balance; }
.hero h1 .l2 { display: block; color: var(--ink-3); }
.hero .sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 46ch; margin: 0 auto var(--s6); }

/* Stage: phone with floating cards */
.stage { position: relative; height: 560px; margin-top: var(--s8); overflow: hidden; }
.stage::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; z-index: 3; }
.stage .phone { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }
.phone { width: 300px; padding: 10px; border-radius: 52px; background: #1D1D1F; box-shadow: var(--shadow-2), inset 0 0 0 2px #3A3A3C; }
.phone img { border-radius: 42px; width: 100%; height: auto; aspect-ratio: 408 / 900; object-fit: cover; }
.phone.sm { width: 190px; padding: 8px; border-radius: 40px; }
.phone.sm img { border-radius: 32px; }
.float { position: absolute; z-index: 2; }
.f-alert { left: calc(50% + 120px); top: 64px; width: 330px; }
.f-id { right: calc(50% + 140px); top: 140px; width: 250px; }
.f-deadline { right: calc(50% + 120px); top: 330px; width: 280px; }
.f-owner { left: calc(50% + 150px); top: 290px; width: 290px; }

/* Floating card */
.card { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 14px 16px; text-align: left;
  font-size: 15px; line-height: 1.35; border: 1px solid var(--line); }
.card .meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.card .meta img { width: 22px; height: 22px; border-radius: 5px; }
.card .meta time { margin-left: auto; }
.card strong { display: block; font-weight: 650; color: var(--ink); }
.card .muted { color: var(--ink-2); font-size: 14px; }
.card .row { display: flex; gap: 12px; align-items: flex-start; }
.card .ico { flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.card .ico svg { width: 20px; height: 20px; }
.ok { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-size: 14px; font-weight: 500; margin-top: 4px; }
.ok svg { width: 16px; height: 16px; }
.chip { display: inline-block; margin-top: 8px; font-size: 13px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-text); font-weight: 500; }

/* Sections */
section { padding: var(--s9) 0; }
.section-head { text-align: center; max-width: 40ch; margin: 0 auto var(--s7); }
h2 { font: 700 clamp(30px, 3.6vw, 44px)/1.1 var(--font-display); letter-spacing: -0.025em; margin: 0 0 var(--s3); }
.section-head p { color: var(--ink-2); margin: 0; font-size: 18px; }
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.use { background: var(--surface); border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.use h3 { font-size: 21px; margin: var(--s4) 0 var(--s2); letter-spacing: -0.01em; }
.use p { margin: 0; color: var(--ink-2); }
.use .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.use .ico svg { width: 24px; height: 24px; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.flist { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; grid-template-columns: 1fr; gap: var(--s4) var(--s6); }
.flist li { padding-left: 30px; position: relative; color: var(--ink); }
.flist li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("img/check.svg") center/18px no-repeat; }
.shots { display: flex; justify-content: center; gap: var(--s4); }
.shots .phone:nth-child(2) { transform: translateY(-32px); }

.pro { background: var(--surface); border-radius: 40px; padding: var(--s8); display: grid; grid-template-columns: 1fr 340px; gap: var(--s7);
  align-items: center; box-shadow: var(--shadow-1); border: 1px solid var(--line); position: relative; }
.pro .tag { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: var(--s4); }
.pro p { color: var(--ink-2); max-width: 52ch; }
.pro ul { padding: 0; margin: var(--s5) 0; list-style: none; display: grid; gap: var(--s2); }
.pro li { padding-left: 30px; position: relative; }
.pro li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("img/check-white.svg") center/16px no-repeat; }
.pro .price { font-size: 15px; color: var(--ink-2); margin: 0 0 var(--s5); }
.pro .cta-row { justify-content: flex-start; }
.pro-visual { position: relative; }
.pro-visual .card { position: absolute; left: -60px; right: -20px; top: 90px; }

.source { text-align: center; max-width: 60ch; margin: 0 auto; color: var(--ink-2); font-size: 18px; }
.source h2 { font-size: 26px; color: var(--ink); }
.final { text-align: center; padding-bottom: var(--s10); }
.final h2 { margin-bottom: var(--s5); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: var(--s7) 0 var(--s8); font-size: 14px; color: var(--ink-2); }
.footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: var(--s4) var(--s6); }
.footer nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.footer nav a { color: var(--ink); font-size: 15px; }
.footer p { margin: 0; max-width: 70ch; }
.footer .brand { font-size: 15px; }
.footer .brand img { width: 24px; height: 24px; border-radius: 6px; }

/* Long-text template (support, privacy, terms) */
.page-head { padding: var(--s9) 0 var(--s6); }
.page-head h1 { font: 700 clamp(36px, 5vw, 56px)/1.05 var(--font-display); letter-spacing: -0.03em; margin: 0 0 var(--s3); }
.page-head p { color: var(--ink-2); font-size: 19px; margin: 0; max-width: 52ch; }
.longtext { display: grid; grid-template-columns: 220px minmax(0, 680px); gap: var(--s8); padding-bottom: var(--s9); }
.toc { position: sticky; top: 110px; align-self: start; font-size: 15px; }
.toc p { margin: 0 0 var(--s2); color: var(--ink-2); font-weight: 600; font-size: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--shadow-1); margin-bottom: var(--s7); }
.contact p { margin: 0 0 var(--s2); }
.contact .muted { color: var(--ink-2); margin: 0; }
.prose h2 { font-size: 28px; margin: var(--s7) 0 var(--s4); }
.prose h3 { font-size: 19px; margin: 0 0 var(--s2); letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--ink-2); }
.prose .faq { padding: var(--s5) 0; border-top: 1px solid var(--line); }
.prose .faq:last-of-type { border-bottom: 1px solid var(--line); }
.prose .faq p { margin: 0 0 var(--s2); }
.prose ul { margin: var(--s2) 0; padding-left: 20px; }
.prose .links { margin-top: var(--s6); }

@media (max-width: 1040px) {
  .f-owner, .f-deadline { display: none; }
  .features { grid-template-columns: 1fr; }
  .pro { grid-template-columns: 1fr; }
  .pro-visual { max-width: 340px; margin: 0 auto; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { top: var(--s2); padding: 0 var(--s3); }
  .nav-in { gap: var(--s3); padding: 6px 6px 6px 10px; }
  .brand span { font-size: 16px; }
  .nav-links { gap: var(--s3); }
  .nav-links .badge { display: none; }
  .hero { padding-top: var(--s8); }
  .stage { height: 480px; margin-top: var(--s7); }
  .phone { width: 260px; }
  .f-alert { left: 50%; transform: translateX(-50%); top: 40px; width: min(330px, calc(100% - 32px)); }
  .f-id { right: auto; left: 12px; top: 300px; width: 220px; }
  .uses { grid-template-columns: 1fr; }
  .flist { grid-template-columns: 1fr; }
  .shots .phone:nth-child(1), .shots .phone:nth-child(3) { display: none; }
  .shots .phone:nth-child(2) { transform: none; }
  .pro { padding: var(--s6) var(--s5); border-radius: var(--r-lg); }
  .pro-visual .card { left: -12px; right: -12px; }
  section { padding: var(--s8) 0; }
  .footer .wrap { grid-template-columns: 1fr; }
  .longtext { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; margin-bottom: var(--s6); }
}
@media (prefers-color-scheme: dark) { .flist li::before { background-image: url("img/check-dark.svg"); } }

/* Skip link */
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-2); }
.skip:focus { top: 16px; }

/* Inner pages */
.updated { color: var(--ink-2); font-size: 15px; margin: var(--s3) 0 0; }
.prose > h2:first-child { margin-top: 0; }
.prose h2 { scroll-margin-top: 100px; }
.prose .faq, .prose [id] { scroll-margin-top: 100px; }
.prose p { margin: 0 0 var(--s4); }
.prose li { margin-bottom: var(--s2); }
.prose b, .prose strong { color: var(--ink); }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--shadow-1); margin: var(--s7) 0; }
.callout h2 { margin-top: 0; }
.callout .cta-row { justify-content: flex-start; margin-top: var(--s4); }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
.button:hover { filter: brightness(1.08); }
.button:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.notfound { text-align: center; padding: var(--s10) 0; }
.notfound h1 { font: 700 clamp(36px, 5vw, 56px)/1.05 var(--font-display); letter-spacing: -0.03em; margin: 0 0 var(--s4); }
.notfound p { color: var(--ink-2); }
