/* Lasevi company site. No inline styles or scripts: the CSP in firebase.json allows only this file. */
:root {
  --bg: #FCFBF8;
  --surface: #FFFFFF;
  --line: rgba(20, 20, 20, 0.10);
  --text: #171717;
  --text-2: rgba(23, 23, 23, 0.64);
  --brand: #FF5800;
  --brand-text: #C24100; /* darker orange for text, 4.6:1 on --bg */
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --surface: #1A1A1A;
    --line: rgba(255, 255, 255, 0.12);
    --text: #F5F5F3;
    --text-2: rgba(245, 245, 243, 0.68);
    --brand: #FF6A1A;
    --brand-text: #FF8A4D;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-text); text-underline-offset: 3px; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.hero { text-align: center; padding: 72px 0 56px; }
.logo { display: block; width: 168px; height: auto; margin: 0 auto 8px; overflow: visible; }
.wordmark { margin: 0; font-size: clamp(40px, 9vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.tagline { margin: 12px auto 0; max-width: 32em; color: var(--text-2); }

/* Logo animation: the stroke draws itself, then the dot emerges from the end of the stroke one second later,
   overshoots its final position a little and settles. */
.logo .stroke {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.1s cubic-bezier(.65, 0, .35, 1) .2s forwards;
}
.logo .dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: emerge 1.1s linear 2.3s both;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes emerge {
  0%    { opacity: 0; transform: translateY(90px) scale(.9); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  .1%   { opacity: 1; transform: translateY(90px) scale(.9); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  58%   { opacity: 1; transform: translateY(-16px) scale(1.04); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  82%   { transform: translateY(3px) scale(.99); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  100%  { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .logo .stroke { animation: none; stroke-dashoffset: 0; }
  .logo .dot { animation: none; }
}

/* Apps */
.apps { flex: 1; padding-bottom: 64px; }
.apps h2 { margin: 0 0 20px; font-size: 22px; letter-spacing: -0.01em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.app {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.app-icon { width: 56px; height: 56px; border-radius: 14px; }
.app h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.app p { margin: 0; color: var(--text-2); font-size: 16px; }
.stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.store {
  display: inline-flex;
  flex-direction: column;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}
.store small { font-weight: 400; color: var(--text-2); font-size: 12px; }
.store[aria-disabled="true"] { opacity: .55; cursor: default; }

/* Footer */
footer { padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* 404 */
.notfound { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 20px; }
.notfound h1 { margin: 0 0 8px; font-size: 32px; }
