/* Lino Rides website v2: shared styles (tokens, base, header, buttons, device frame, footer). Plain CSS, no build step.
   Font: Plus Jakarta Sans (SIL OFL), self-hosted. */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-800.woff2") format("woff2"); }

:root {
  --blue: #0066FF;
  --blue-dark: #0052D9;
  --navy: #0A2A66;
  --navy-deep: #061A44;
  --ink: #0B1B3A;
  --grey: #4B5C76;
  --surface: #F3F6FC;
  --border: #E3E8F2;
  --blue-tint: #E6F0FF;
  --yellow: #FFC107;
  --yellow-hot: #FFD04D;
  --on-navy: #C9D7F5;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 76px;
  --section-y: clamp(5rem, 11vw, 9.5rem);

  /* layered, blue-tinted shadows (never plain grey) */
  --sh-1: 0 1px 2px rgba(10, 42, 102, 0.06), 0 6px 16px -6px rgba(10, 42, 102, 0.12);
  --sh-2: 0 2px 4px rgba(10, 42, 102, 0.05), 0 12px 24px -8px rgba(10, 42, 102, 0.14), 0 32px 64px -24px rgba(10, 42, 102, 0.22);

  /* z-index scale */
  --z-bg: 0; --z-content: 1; --z-ticker: 3; --z-header: 50; --z-menu: 60; --z-skip: 100;

  --focus: var(--blue);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
picture { display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue-dark); text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--yellow); color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: var(--z-skip); background: var(--yellow); color: var(--ink); font-weight: 600; padding: 12px 18px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 12px; outline: 3px solid var(--ink); }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

h2 { font-weight: 800; font-size: clamp(2.125rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
h3 { font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -0.02em; }
.section-lede { margin-top: 20px; font-size: clamp(1.0625rem, 1.8vw, 1.25rem); line-height: 1.55; color: var(--grey); max-width: 34em; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0 1.5rem; border-radius: 16px; font: 800 1rem/1 var(--font); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; border: 0; transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out); will-change: transform; }
.btn--sm { min-height: 44px; padding: 0 1.15rem; font-size: 0.9375rem; border-radius: 14px; }
.btn--lg { min-height: 60px; padding: 0 2.25rem; font-size: 1.125rem; border-radius: 18px; }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 10px 24px -10px rgba(255, 193, 7, 0.9), 0 6px 14px -6px rgba(4, 18, 60, 0.5); }
.btn--yellow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 255, 255, 0.28); opacity: 0; transition: opacity 0.25s var(--ease-out); }
.btn--yellow:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 16px 30px -10px rgba(255, 193, 7, 0.95), 0 10px 20px -8px rgba(4, 18, 60, 0.5); }
.btn--yellow:hover::after { opacity: 1; }
.btn--yellow:active { transform: translateY(1px) scale(0.985); }

/* ---------- Header: glass, condenses on scroll ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); height: 0; --focus: #fff; color: #fff; }
.bar { position: absolute; inset: 0 0 auto 0; display: flex; align-items: center; gap: 12px; height: var(--header-h); max-width: none; padding-inline: max(var(--gutter), calc((100% - 1240px) / 2 + var(--gutter))); transition: height 0.35s var(--ease-out); }
.bar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(6, 26, 68, 0.88); border-bottom: 1px solid rgba(255, 255, 255, 0.1); transition: opacity 0.35s var(--ease-out); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .bar::before { background: rgba(6, 26, 68, 0.82); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); }
}
.bar::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6, 26, 68, 0.5), rgba(6, 26, 68, 0)); transition: opacity 0.35s var(--ease-out); }
.site-header.is-top .bar::before { opacity: 0; }
.site-header.is-top .bar::after { opacity: 1; }
.site-header.is-scrolled .bar { height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-tile { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.3); transition: transform 0.35s var(--ease-out); }
.site-header.is-scrolled .brand-tile { transform: scale(0.88); }
.brand-word { white-space: nowrap; font-weight: 800; font-size: 1.375rem; letter-spacing: -0.03em; line-height: 1; }
.brand-word b { color: var(--yellow); font-weight: 800; }
.nav { display: none; margin-left: auto; gap: 6px; }
.nav a { color: #fff; font-weight: 600; font-size: 0.9688rem; text-decoration: none; padding: 10px 14px; border-radius: 12px; transition: background-color 0.2s; }
.nav a:hover { background: rgba(255, 255, 255, 0.14); }
.bar > .bar-cta { display: none; }
.bar > .menu { margin-left: auto; }
.menu-panel .btn { display: flex; margin: 8px; }
@media (min-width: 640px) { .bar > .bar-cta { display: inline-flex; margin-left: auto; } .bar > .menu { margin-left: 0; } }
.menu { position: relative; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.45); font-weight: 600; font-size: 0.9375rem; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before { display: block; width: 16px; height: 2px; border-radius: 2px; background: #fff; }
.menu-icon { position: relative; top: -3px; }
.menu-icon::before { content: ""; position: absolute; top: 6px; left: 0; }
.menu[open] summary { background: rgba(255, 255, 255, 0.16); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 14px); z-index: var(--z-menu); min-width: 230px; padding: 8px; background: #fff; border-radius: 22px; box-shadow: var(--sh-2); --focus: var(--blue); }
.menu-panel a:not(.btn) { display: block; padding: 14px 16px; border-radius: 14px; color: var(--ink); font-weight: 600; text-decoration: none; }
.menu-panel a:not(.btn):hover { background: var(--surface); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu { display: none; }
  .bar > .bar-cta { margin-left: 10px; }
}

/* ---------- Device frame (Android, punch-hole). All sizes in em: set --ds on the element or an ancestor ---------- */
.device { --ds: 13px; position: relative; width: 20em; font-size: var(--ds); padding: 0.5em; border-radius: 2.85em; background: linear-gradient(150deg, #3a4560 0%, #0d1424 38%, #1c2539 100%); box-shadow: inset 0 0 0 0.09em rgba(255, 255, 255, 0.2), inset 0 0 0 0.2em #070b16, 0 0.12em 0 0.02em rgba(255, 255, 255, 0.25), 0 2.4em 3.4em -1.2em rgba(2, 12, 44, 0.6), 0 1em 1.6em -0.6em rgba(2, 12, 44, 0.45); }
.device::before, .device::after { content: ""; position: absolute; right: -0.16em; width: 0.22em; border-radius: 0 0.1em 0.1em 0; background: linear-gradient(90deg, #1a2338, #4a5572); }
.device::before { top: 8.4em; height: 2.6em; }
.device::after { top: 12em; height: 4.6em; }
.device-screen { position: relative; overflow: hidden; aspect-ratio: 9 / 20; border-radius: 2.35em; background: #0b1020; isolation: isolate; }
.device-screen img { width: 100%; height: 100%; object-fit: cover; }
.device-screen::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.04) 28%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0) 74%, rgba(255, 255, 255, 0.07) 100%); }
.device-screen::after { content: ""; position: absolute; z-index: 4; top: 1.05em; left: 50%; width: 0.95em; height: 0.95em; margin-left: -0.475em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #26304a 0 14%, #050810 40%); box-shadow: 0 0 0 0.12em #050810; }
.device--sm { --ds: 12.5px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-deep); color: #fff; padding-block: 64px 48px; --focus: #fff; }
.foot { display: grid; gap: 32px; }
.foot-brand p { margin-top: 14px; color: var(--on-navy); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-content: start; }
.foot-links a { color: #fff; font-weight: 600; padding: 6px 0; }
.copy { color: var(--on-navy); font-size: 0.9375rem; }
@media (min-width: 820px) { .foot { grid-template-columns: 1fr auto; align-items: start; } .copy { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.14); } }

/* ---------- Scroll-driven reveals: progressive, default is fully visible ---------- */
@keyframes rise { from { opacity: 0; translate: 0 36px; } to { opacity: 1; translate: 0 0; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 4% entry 44%; }
  }
}

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