/* Linasoft Studio and CViser public pages: one stylesheet, no build step, no external files.
   The Content-Security-Policy in _headers allows styles only from this file (no inline styles). */
:root {
  --bg: #ffffff;
  --surface: #f4f7fb;
  --surface-2: #eaf2fe;
  --text: #0f172a;
  --muted: #526071;
  --border: #e2e8f0;
  --accent: #1667d9; /* links and buttons: 5.3:1 on white */
  --accent-soft: #e3eefc;
  --on-accent: #ffffff;
  --teal: #0f8f86;
  --shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 10px 30px rgb(15 23 42 / 8%);
  --radius: 18px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #111a2e;
    --surface-2: #13233f;
    --text: #e6edf6;
    --muted: #9fb0c6;
    --border: #22304a;
    --accent: #7ab4ff;
    --accent-soft: #16294a;
    --on-accent: #0b1120;
    --teal: #4fd1c5;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 35%);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 2px; }

a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

.wrap-wide {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 8px;
}

.skip:focus { left: 8px; z-index: 10; }

/* Header and footer */

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

header.site .wrap,
header.site .wrap-wide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }

nav.lang, nav.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }

nav.lang a, nav.menu a {
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--muted);
}

nav.lang a:hover, nav.menu a:hover { color: var(--accent); }

nav.lang a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

nav .sep { width: 1px; height: 16px; background: var(--border); }

nav.menu .lang { display: inline-flex; gap: 10px; }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 24px 0 36px;
  background: var(--surface);
}

footer.site p { margin: 0 0 0.6em; }

footer.site a { margin-right: 14px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 0.8em; }

/* Text pages (privacy, terms, support) */

main { padding: 24px 0 56px; }

h1 { font-size: 1.85rem; line-height: 1.2; margin: 0.4em 0 0.35em; letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 1.8em 0 0.5em; }
h3 { font-size: 1.05rem; margin: 1.4em 0 0.4em; }

p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

.updated { color: var(--muted); font-size: 0.9rem; }

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 1.2em;
}

.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }

th, td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

th { background: var(--surface); }

.cards { list-style: none; padding: 0; display: grid; gap: 12px; }

.cards a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.cards a:hover { border-color: var(--accent); }

.cards a span { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 400; }

details {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

summary { cursor: pointer; font-weight: 600; }

details p { margin-top: 0.6em; }

code { overflow-wrap: anywhere; }

/* Landing pages */

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero {
  padding: 48px 0 40px;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(32 138 239 / 16%), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, rgb(18 179 168 / 14%), transparent 60%);
}

.hero-grid { display: grid; gap: 32px; align-items: center; }

.hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }

.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 22px; max-width: 36em; }

.app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }

.app-head img { width: 64px; height: 64px; border-radius: 15px; box-shadow: var(--shadow); }

.app-head strong { display: block; font-size: 1.25rem; }

.app-head span { color: var(--muted); font-size: 0.95rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

.btn:hover { filter: brightness(1.08); }

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }

.pills li {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.88rem;
  color: var(--muted);
}

.pills li strong { color: var(--text); }

.hero-shot { justify-self: center; }

.phone {
  display: block;
  width: 270px;
  border-radius: 34px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.section { padding: 48px 0; }

.section.alt { background: var(--surface); }

.section h2 { margin-top: 0; font-size: clamp(1.4rem, 3.5vw, 2rem); letter-spacing: -0.01em; }

.section-intro { color: var(--muted); max-width: 40em; margin-bottom: 24px; }

.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x mandatory;
  list-style: none;
  margin: 0;
}

.shots li { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }

.shots img {
  display: block;
  width: 220px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); list-style: none; padding: 0; margin: 0; }

.cards.grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  margin: 0;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}

.section:not(.alt) .card { background: var(--surface); }

.card h3 { margin: 10px 0 6px; font-size: 1.05rem; }

.card p { margin: 0; color: var(--muted); }

.icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; }

.steps .card h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.9rem;
}

.prices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); list-style: none; padding: 0; margin: 0 0 16px; }

.price-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}

.price-card.free { background: transparent; border-style: dashed; }

.price-card h3 { margin: 0; font-size: 1.05rem; }

.price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }

.price small { font-size: 0.9rem; font-weight: 600; color: var(--muted); }

.price-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.fine { color: var(--muted); font-size: 0.9rem; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

.checks li { position: relative; padding-left: 30px; margin: 0; }

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.checks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: calc(0.2em + 4px);
  width: 6px;
  height: 10px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.feature-app {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.feature-app .phone { width: 230px; justify-self: center; }

.soon { color: var(--teal); font-weight: 700; font-size: 0.92rem; margin: 16px 0; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

@media (min-width: 860px) {
  .hero { padding: 72px 0 64px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .feature-app { grid-template-columns: 1.3fr 0.7fr; padding: 36px; }
  .shots { overflow: visible; justify-content: space-between; }
  .shots img { width: 240px; }
}

/* Linasoft Studio home: older app list (kept for the 404 page) */

.apps { list-style: none; padding: 0; display: grid; gap: 12px; }

.app {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
}

.app img { flex: none; border-radius: 14px; }

.app-text strong { display: block; font-size: 1.1rem; }

.app-text span { display: block; color: var(--muted); font-size: 0.95rem; }
