/* leitrvik.com — Horizon (fleet standard since 26.09.2026, Design_System DESIGN.md Register 8).
   Bright sky, navy type, cobalt→turquoise, white cards with soft blue shadows. Self-hosted fonts only.
   New file name on purpose: /assets/ is served "immutable" for a year, so every look change ships under a new name
   (-2: the app screenshots in the Product section, 26.09.2026). */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/Archivo-700.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/InstrumentSans-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/InstrumentSans-500.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/InstrumentSans-700.woff2") format("woff2"); }

:root {
  --navy: #0F2552; --ink: #33466B; --muted: #66779A; --line: #DCE7F4; --line-mid: #D2DEEE;
  --sky: #F5F9FE; --tint: #EAF3FC; --panel: #F3F8FE; --paper: #FFFFFF;
  --blue: #1F6FEB; --blue-deep: #1E4FC4; --cyan: #22C3E8; --teal: #2EE6D0;
  --grad: linear-gradient(90deg, #2EE6D0 0%, #22C3E8 45%, #1F6FEB 100%);
  --grad-btn: linear-gradient(90deg, #1FB5E3, #1F6FEB);
  --shadow: 0 1px 2px rgba(15, 37, 82, .06), 0 10px 30px rgba(31, 79, 196, .10);
  --shadow-lift: 0 2px 4px rgba(15, 37, 82, .06), 0 18px 40px rgba(31, 79, 196, .16);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4.5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 400 17px/1.6 var(--sans); background: var(--sky);
  background-image: linear-gradient(180deg, #F3F8FE 0%, #FFFFFF 30%, #F4F9FE 100%); }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--navy); letter-spacing: -.015em; line-height: 1.08; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(31, 111, 235, .45); outline-offset: 3px; border-radius: 8px; }
.page-shell { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.kicker { font: 500 .76rem/1.5 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink); margin: 0; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-heading { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-heading h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin-top: 12px; }
.section-heading > p:last-child { margin-top: 16px; font-size: 1.08rem; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; text-decoration: none;
  font: 600 .95rem/1 var(--sans); color: var(--navy); background: var(--paper); box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.pill:hover { color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.pill.solid { color: #fff; background: var(--grad-btn); box-shadow: 0 8px 20px rgba(31, 111, 235, .28); }
.pill.solid:hover { color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(245, 249, 254, .84); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(220, 231, 244, .8); }
.main-nav { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font: 700 1.2rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.wordmark:hover { color: var(--navy); }
.wordmark img { width: 34px; height: 34px; }
.nav-sections { display: flex; gap: 2px; margin-left: auto; }
.nav-sections a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--ink); text-decoration: none; }
.nav-sections a:hover { background: var(--tint); color: var(--navy); }

/* ---------- hero: headline + gateway ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-head { text-align: center; max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.hero h1 { margin-top: 18px; font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.02; }
.hero h1 span { display: block; background: linear-gradient(90deg, #1E4FC4, #1F6FEB 55%, #22A9E8); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero-lede { margin: 22px auto 0; max-width: 46em; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.receipts { margin: 22px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: .88rem; color: var(--muted); }
.receipts span { white-space: nowrap; }
.receipts span + span::before { content: "·"; margin-right: 14px; color: var(--line-mid); }

.gateway { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 360px) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 110px); align-items: center; width: min(1320px, 100% - 2 * var(--gutter)); margin: clamp(48px, 6vw, 76px) auto 0; }
.gateway .wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.wires > path { fill: none; stroke-width: 3.2; stroke-linecap: round; }
.wires > path.flow { stroke-dasharray: .1 26; stroke-width: 3; stroke: rgba(255, 255, 255, .9); animation: flow 1.8s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -52.2; } }
.gw-col { display: grid; gap: 12px; position: relative; z-index: 1; }
.gw-label { font: 500 .72rem/1.3 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.gw-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: center; padding: 11px 16px 11px 11px;
  border-radius: 16px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 9%, #fff), #fff 72%); box-shadow: var(--shadow); }
.gw-card .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 35%, transparent); }
.gw-card .ico svg { width: 21px; height: 21px; }
.gw-card b { display: block; font: 700 .98rem/1.2 var(--display); color: var(--navy); }
.gw-card small { display: block; margin-top: 2px; font-size: .82rem; line-height: 1.35; color: var(--muted); }
.gw-col.in .gw-card { background: var(--paper); }
.gw-col.in .gw-card .ico { background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--c); box-shadow: none; }
.hub { position: relative; z-index: 1; aspect-ratio: 1; border-radius: 50%; }
.hub::before { content: ""; position: absolute; inset: -22px; border-radius: 50%; border: 2px dotted rgba(31, 111, 235, .35); }
.hub::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 8px rgba(91, 212, 253, .16), 0 0 70px 10px rgba(34, 195, 232, .42), inset 0 0 40px rgba(34, 195, 232, .32); }
.hub .disc { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 45%, #fff 0%, #F2FAFE 55%, #DDF2FC 100%); }
.hub .disc video, .hub .disc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.hub .disc::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .42) 58%, rgba(255, 255, 255, 0) 80%); }
.hub .core { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; text-align: center; padding: 12%; }
.hub .core img { width: clamp(52px, 6vw, 80px); height: auto; }
.hub .core b { margin-top: 10px; font: 700 clamp(1.5rem, 2.5vw, 2.15rem)/1 var(--display); letter-spacing: .06em; color: var(--navy); }
.hub .core span { margin-top: 10px; font: 500 clamp(.82rem, 1.1vw, .98rem)/1.3 var(--sans); color: var(--navy); }
.hub .core i { display: block; width: 42%; height: 2px; margin: 13px auto; background: var(--grad); border-radius: 2px; }
.hub .core em { font: 700 clamp(.95rem, 1.35vw, 1.15rem)/1 var(--display); font-style: normal; color: var(--blue); }
.hub .note { position: absolute; left: 50%; top: calc(100% + 34px); transform: translateX(-50%); width: max-content; max-width: 88vw; margin: 0; text-align: center; font-size: .88rem; color: var(--muted); }

/* ---------- feature cards with images ---------- */
.editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.feature-card { background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.feature-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.feature-card__copy { padding: clamp(20px, 2.2vw, 28px); }
.feature-card__copy .kicker { color: var(--blue); font-size: .7rem; }
.feature-card__copy h3 { font-size: 1.2rem; margin: 10px 0 8px; }
.feature-card--compact .feature-card__copy h3 { margin-top: 0; }
.feature-card__copy p { font-size: .96rem; }

/* ---------- a look inside: the app in window frames (same frame as thrymvault.com / grounddeck.com) ---------- */
.app-shots { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); margin: clamp(40px, 5vw, 64px) 0 0; }
.shot { margin: 0; border-radius: 16px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 26px 60px -30px rgba(31, 79, 196, .45); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1; color: var(--muted); }
.shot-bar i { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--line-mid); }
.shot-bar span { margin-left: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.shot img { width: 100%; height: auto; }
/* the large window spans both rows and shows the top of its page, so its bottom edge meets the right column exactly */
.shot--main { grid-row: 1 / span 2; display: flex; flex-direction: column; }
.shot--main .shot-view { position: relative; flex: 1 1 auto; min-height: 240px; }
.shot--main .shot-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.app-shots figcaption { grid-column: 1 / -1; margin-top: 4px; text-align: center; font-size: .88rem; color: var(--muted); }

/* ---------- steps (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.steps li { background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); padding: clamp(22px, 2.4vw, 32px); position: relative; overflow: hidden; }
.steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.step-number { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font: 700 .95rem var(--display); color: #fff; background: var(--grad-btn); }
.steps h3 { font-size: 1.3rem; margin: 16px 0 8px; }
.steps p { font-size: .96rem; }
.section--tinted { background: linear-gradient(180deg, rgba(234, 243, 252, .6), rgba(234, 243, 252, 0)); }

/* ---------- sources ---------- */
.source-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.source-list li { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); padding: 20px 22px; font-size: .95rem; }
.source-list li span { display: block; margin-bottom: 8px; font: 700 1.05rem/1.2 var(--display); color: var(--navy); }

/* ---------- ethics: film band + commitments ---------- */
.band { position: relative; min-height: clamp(420px, 62vh, 680px); display: grid; place-items: end center; overflow: hidden; background: #DDEFFC; }
.band > video, .band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(245, 249, 254, 0) 40%, rgba(245, 249, 254, .9) 86%, #F5F9FE 100%); }
.band .say { position: relative; z-index: 1; text-align: center; padding: 0 var(--gutter) clamp(36px, 5vw, 64px); }
.band h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); max-width: 20ch; margin: 14px auto 0; }
.ethics { padding-top: clamp(24px, 3vw, 40px); }
.ethics ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.ethics li { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 20px; font-weight: 600; color: var(--navy); }
.ethics li svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--blue); margin-top: 1px; }
.ethics .more { margin-top: 22px; text-align: center; }

/* ---------- closing invitation ---------- */
.invite { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); }
.invite-card { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 4.4vw, 64px); background: var(--paper); box-shadow: var(--shadow-lift); text-align: center; }
.invite-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad); }
.invite-card h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-top: 12px; }
.invite-card p { margin: 14px auto 0; max-width: 46em; font-size: 1.05rem; }
.invite-card .hero-actions { margin-top: 24px; }

/* ---------- footer ---------- */
.marketing-footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .6); padding: clamp(44px, 6vw, 64px) 0 26px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px clamp(28px, 5vw, 80px); align-items: start; }
.footer-top p { margin-top: 14px; max-width: 32em; font-size: .95rem; color: var(--muted); }
.footer-links nav { display: flex; flex-wrap: wrap; gap: 0 22px; justify-content: flex-end; }
.footer-links nav a { display: inline-block; padding: 10px 0; color: var(--ink); text-decoration: none; font-size: .95rem; }
.footer-links nav a:hover { color: var(--blue); }
.footer-contact { display: inline-block; margin-top: 8px; padding: 8px 0; font: 700 1.05rem var(--display); float: right; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 22px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.reg-code { font-size: .8rem; letter-spacing: .08em; }
.attribution { display: inline-block; padding: 10px 0; margin: -10px 0; color: var(--navy); text-decoration-color: var(--cyan); }
.attribution b { font-weight: 700; }

/* ---------- legal pages: the document on a white sheet ---------- */
.legal-shell { width: min(920px, 100% - 2 * var(--gutter)); margin: clamp(24px, 5vw, 56px) auto clamp(56px, 8vw, 96px); padding: clamp(24px, 5vw, 60px);
  background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); }
.legal-header h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); margin: 10px 0 .3em; }
.legal-updated { color: var(--muted); font-size: .92rem; margin-bottom: 26px; }
.legal-copy h2 { font-size: clamp(1.25rem, 2.3vw, 1.55rem); margin: 1.9em 0 .55em; }
.legal-copy h3 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.legal-copy p, .legal-copy ul, .legal-copy ol { margin: 0 0 14px; max-width: 70ch; }
.legal-copy li { margin-bottom: 7px; }
.legal-copy p a, .legal-copy li a, .legal-copy a[href^="mailto:"] { display: inline-block; padding: 6px 0; margin: -6px 0; }
.legal-note { background: var(--panel); border-radius: 16px; padding: 18px 22px; margin: 0 0 16px; }
.legal-copy table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 0 18px; display: block; overflow-x: auto; }
.legal-copy th, .legal-copy td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .gateway { gap: 44px; grid-template-columns: minmax(0, 1fr) 250px minmax(0, 1fr); }
  .gw-card small { display: none; }
  .source-list, .ethics ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .gateway { grid-template-columns: minmax(0, 1fr); gap: 60px; max-width: 620px; }
  .gateway .wires { display: none; }
  .hub { width: min(300px, 76vw); justify-self: center; margin-bottom: 30px; }
  .gw-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gw-label { grid-column: 1 / -1; }
  .gw-card small { display: block; }
  .editorial-grid, .steps { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
  .app-shots { grid-template-columns: minmax(0, 1fr); }
  .shot--main { grid-row: auto; }
  .shot--main .shot-view { flex: none; min-height: 0; aspect-ratio: 1280 / 860; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-links nav { justify-content: flex-start; }
  .footer-contact { float: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-sections a:not(.keep) { display: none; }
  .gw-col, .source-list, .ethics ul { grid-template-columns: minmax(0, 1fr); }
  .receipts { gap: 6px 18px; }
  .receipts span + span::before { content: none; }
  .hero-actions { display: grid; justify-content: stretch; }
  .hero-actions .pill { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
