/* Roboto variable, latin subset. OFL-1.1. From @fontsource-variable/roboto 5.2.5. */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/roboto-latin-wght.woff2") format("woff2");
}

:root {
  --blue: #0474bc;
  --blue-dark: #035a92;
  --tint: #e5f1f4;
  --ink: #0e1116;
  --muted: #4b5563;
  --line: #e5e7eb;
  --paper: #ffffff;
  --page: #fafaf8;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:hover { text-decoration: none; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

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

h1, h2, h3 { line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.04; margin: 0 0 0.4em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin: 0 0 0.6em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 1.5em 0 0.4em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(250 250 248 / 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand img { display: block; height: 34px; width: auto; }
.site-header nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 6px 14px; border-radius: 999px; }
.site-header nav a:hover { background: var(--tint); color: var(--blue-dark); }

/* Sections alternate page and tint backgrounds, so no divider lines. */
main > section { padding: 88px 0; }
main > section.alt { background: var(--tint); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(48rem 28rem at 85% 10%, rgb(4 116 188 / 0.16), transparent 70%),
    radial-gradient(30rem 18rem at 0% 45%, rgb(4 116 188 / 0.07), transparent 70%),
    var(--page);
  padding: 120px 0 112px;
}
.hero .lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--muted); max-width: 40em; margin: 0; }
.hero p:not(.lead) { color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px -6px rgb(4 116 188 / 0.6); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

/* Product cards: the whole card is the link target. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; margin-top: 40px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgb(4 116 188 / 0.35); box-shadow: 0 18px 40px -20px rgb(14 17 22 / 0.25); }
.card p { margin: 0 0 24px; }
.card p:last-child { margin: auto 0 0; }
.out { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.out::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }

/* How we build: the intro, then numbered steps. */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; margin: 40px 0 0; padding: 0; max-width: none; }
.steps li { counter-increment: step; background: var(--paper); border-radius: var(--radius); padding: 28px; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 999px; border: 1.5px solid var(--ink);
  font-weight: 600; font-size: 1.05rem;
}
.intro { font-size: 1.2rem; color: var(--muted); }

/* Company and contacts side by side. */
.company { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contacts li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.contacts strong { font-weight: 600; }
.company h2 + p { font-size: 1.2rem; }

/* FAQ: one open question at a time is up to the reader; no script. */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 300; line-height: 1; color: var(--blue); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover h3 { color: var(--blue-dark); }
.faq h3 { margin: 0; font-size: 1.15rem; }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 46em; }

/* Privacy page */
.legal-page { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
.legal-page article { max-width: 760px; min-width: 0; }
.legal-page h1 { font-size: clamp(2.25rem, 4vw, 3rem); }
.legal-page h2 { margin-top: 2em; font-size: 1.5rem; }
.toc ul { list-style: none; margin: 0; padding: 0; position: sticky; top: 88px; }
.toc a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.toc a:hover { color: var(--blue); }
section[id], .legal-page [id] { scroll-margin-top: 80px; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  main > section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .company { grid-template-columns: 1fr; gap: 24px; }
  .legal-page { grid-template-columns: 1fr; }
  .toc { display: none; }
  .card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Footer */
.site-footer { background: var(--ink); color: #9ca3af; padding: 56px 0 40px; font-size: 0.9rem; }
.site-footer a { color: #d1d5db; text-decoration: none; }
.site-footer a:hover { color: #ffffff; }
.site-footer .maker { color: #ffffff; font-size: 1.1rem; font-weight: 500; margin: 0 0 20px; }
.footer-links { list-style: none; margin: 0 0 24px; padding: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px 28px; border-bottom: 1px solid #262b33; }
.site-footer .legal { margin: 0; }

/* Product card icon */
.card .icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 14px; background: var(--tint); color: var(--blue); }
.card strong { font-weight: 600; }
