:root {
  /* OpenAvisio corporate design (business/corporate-design): warm ivory, petrol
     from the logo, clay as the warm second accent. */
  --fg: #2b2926;
  --muted: #6b6a61;
  --bg: #f5f4ee;
  --card: #fbfaf7;
  --accent: #165a67;
  --on-accent: #ffffff;
  --warm: #a34e2f;
  --line: #e4e0d4;
  --muted-bg: #eeece4;
  --grain: 0.07;
  --grain-blend: multiply;
  --radius: .625rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --muted-bg: #34332f;
    --grain: 0.12;
    --grain-blend: overlay;
    --fg: #ded9c9;
    --muted: #a3a097;
    --bg: #262624;
    --card: #30302e;
    --accent: #6fb3bf;
    --on-accent: #1f1e1d;  /* white on the lifted petrol is only ~2:1 */
    --warm: #d3764f;
    --line: #45443e;
  }
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/caveat-latin-700-normal.woff2") format("woff2");
}
* { box-sizing: border-box; }
body {
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  max-width: 42rem;
  font: 16px/1.65 "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 .5rem; font-weight: 700; letter-spacing: -0.02em; }
h1 em, h2 em {
  /* the human half of a headline, as on openavisio.org (corporate-design) */
  font-family: "Caveat", "Segoe Print", cursive;
  font-style: normal;
  font-weight: 700;
  font-size: 1.3em;
  line-height: 1;
  letter-spacing: 0;
  color: var(--warm);
}
h2 { font-size: 1.2rem; margin: 2.5rem 0 .5rem; }
h3 { font-size: 1rem; margin: 1.75rem 0 .25rem; }
p, li { color: var(--fg); }
a { color: var(--accent); }
a:focus-visible, .buy:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  text-decoration: none;
}
.brand img { width: 2.5rem; height: 2.5rem; }
.lead { font-size: 1.1rem; color: var(--muted); margin-top: 0; }
nav { margin-bottom: 2.5rem; font-size: .9rem; }
nav a { margin-right: 1rem; }
footer {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--muted);
}
footer a { margin-right: 1rem; }
.price {
  border: 1px solid var(--line);
  border-radius: .6rem;
  padding: 1.5rem;
  margin: 2rem 0;
  background: var(--card);
}
.price .amount { font-size: 2rem; font-weight: 600; }
.price .per { color: var(--muted); }
.buy {
  display: inline-block;
  margin-top: 1rem;
  padding: .7rem 1.4rem;
  border-radius: .4rem;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
}
.note { color: var(--muted); font-size: .9rem; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }
.box {
  border: 1px solid var(--line);
  border-radius: .5rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--card);
}

.notice {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .4rem .75rem;
  background: var(--card); border-top: 1px solid var(--line);
  font-size: .8rem; line-height: 1.3; color: var(--muted);
}
.notice p { margin: 0; }
.notice button {
  flex: none; padding: .2rem .6rem; border-radius: 4px; cursor: pointer; font: inherit; font-weight: 600;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
}
.notice button.secondary { background: transparent; color: var(--accent); border-color: transparent; padding-inline: .2rem; text-decoration: underline; font-weight: 400; }

form label { display: block; font-weight: 600; margin-top: 1rem; }
form input[type=email] { width: 100%; padding: .6rem; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: .4rem; }
form label.check { font-weight: 400; font-size: .9rem; color: var(--muted); }
form label.check input { margin-right: .5rem; }
form .hp { position: absolute; left: -9999px; }
button.buy { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.buy.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.price .buy { margin-right: .5rem; }

/* ── The order page: the sections of openavisio.org (website/src/pages/index.module.css),
   so a visitor from an ad gets the whole story here ── */
body.home { max-width: none; padding: 0; }
body.home::before {
  /* paper grain, as on openavisio.org */
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: var(--grain); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.home main { background: linear-gradient(to bottom, color-mix(in oklab, var(--accent) 4%, var(--bg)) 0, var(--bg) 620px); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
@media (max-width: 40rem) { .container { padding: 0 1rem; } }

.bar { padding: .75rem 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bar .brand { margin: 0; }

.home h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 600; letter-spacing: -0.025em; margin: 0 0 2.5rem; max-width: 22ch; }
.home h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 .35rem; }
.home p { margin: 0; }
.home .lead { font-size: 1.05rem; line-height: 1.7; color: var(--muted); max-width: 62ch; margin: -1.5rem 0 2.5rem; }

.hero { padding: 6rem 0 6.5rem; overflow: hidden; }
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 1.25rem; }
.hero-sub { font-size: 1.15rem; line-height: 1.6; color: var(--muted); max-width: 460px; margin-bottom: 2rem !important; }
.hero-price { font-size: .95rem; max-width: 460px; margin: 1rem 0 0 !important; color: var(--muted); }
.hero-trust { display: flex; gap: .5rem; align-items: start; margin: 1.5rem 0 0 !important; font-size: .95rem; color: var(--accent); }
.hero-trust svg { flex: none; margin-top: .2em; }
.hero-visual { position: relative; }
/* the paper stack is a drawing, not a screenshot: no stacked-card shadow behind it */
.hero-papier::before, .hero-papier::after { display: none; }
.hero-visual.hero-papier img { border: 0; border-radius: 0; box-shadow: none; background: none; }
.hero-visual img { position: relative; z-index: 1; }
.hero-visual::before, .hero-visual::after {
  /* the stack of paper behind the screenshot */
  content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.hero-visual::before { transform: translate(9px, 11px) rotate(.7deg); }
.hero-visual::after { transform: translate(18px, 21px) rotate(1.5deg); opacity: .6; }
@media (max-width: 900px) {
  .hero { padding: 3.5rem 0 4rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 0 1rem; }
  .hero-visual::before, .hero-visual::after { display: none; }
  /* phone: the picture right under the headline, so the first screen shows what it does */
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-inner > div:first-child { display: contents; }
  .hero h1 { order: 1; }
  .hero-papier { order: 2; margin-bottom: 1.5rem; }
  .hero-inner > div:first-child > :not(h1) { order: 3; }
}

.ctas { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.cta, .cta-outline {
  display: inline-block; padding: .65rem 1.5rem; border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
}
.cta { background: var(--accent); color: var(--on-accent); border: 0; }
.cta-outline { border: 1.5px solid var(--accent); color: var(--accent); padding: calc(.65rem - 1.5px) 1.5rem; }
.cta:hover, .cta-outline:hover { opacity: .88; }

.home picture img, .shot img, .hero-visual img {
  display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 4px 24px oklch(0 0 0 / 0.08);
}

.sheet { position: relative; padding: 5.5rem 0; box-shadow: 0 -16px 30px -22px rgb(0 0 0 / 0.35); }
.sheet::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: color-mix(in oklab, #fff 55%, var(--line)); }
.tinted { background: var(--muted-bg); }
@media (prefers-color-scheme: dark) { .sheet::before { background: color-mix(in oklab, #fff 8%, var(--line)); } }
@media (max-width: 40rem) { .sheet { padding: 3.5rem 0; } }

.row3, .row2 { display: grid; gap: 2.5rem; }
.row3 { grid-template-columns: repeat(3, 1fr); }
.row2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .row3, .row2 { grid-template-columns: 1fr; gap: 1.75rem; } }
.ruled { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.ruled p, .card p { font-size: .925rem; line-height: 1.65; color: var(--muted); }

.icon {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .7rem; margin-bottom: .9rem;
  color: var(--tint, var(--accent)); background: color-mix(in oklab, var(--tint, var(--accent)) 15%, transparent);
}
.icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* the tints of openavisio.org, so a row never repeats a hue */
:root { --tint-1: #4a6cb3; --tint-2: #3f7d5c; --tint-3: #b05470; --tint-4: #6b56a8; --tint-5: #a9722c; --tint-6: #3d7b80; }
@media (prefers-color-scheme: dark) { :root { --tint-1: #8aa8e8; --tint-2: #7bc79b; --tint-3: #e691a8; --tint-4: #a894e0; --tint-5: #e0ab63; --tint-6: #79bcc1; } }
.row3 > :nth-child(1) { --tint: var(--tint-1); }
.row3 > :nth-child(2) { --tint: var(--tint-2); }
.row3 > :nth-child(3) { --tint: var(--tint-3); }
.cards > :nth-child(1) { --tint: var(--tint-4); }
.cards > :nth-child(2) { --tint: var(--tint-6); }
.cards > :nth-child(3) { --tint: var(--tint-5); }
.cards > :nth-child(4) { --tint: var(--tint-3); }

.step { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3.5rem; align-items: center; margin-top: 3.5rem; }
.step:first-of-type { margin-top: 0; }
/* the screenshot always gets the wider column */
.step.flipped { grid-template-columns: 1.4fr 1fr; }
.step.flipped .step-text { order: 2; }
.step h3 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: .5rem; }
.step p { font-size: .95rem; line-height: 1.7; color: var(--muted); }
.step-num { display: flex; align-items: center; gap: .75rem; font-size: .75rem; font-weight: 600; letter-spacing: .14em; color: var(--accent); margin-bottom: 1rem; }
.step-num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 860px) {
  .step, .step.flipped { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem; }
  .step.flipped .step-text { order: 0; }
}

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { padding: 1.75rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

.quote { margin-top: 1.75rem !important; padding-left: 1rem; border-left: 2px solid var(--accent); line-height: 1.7; max-width: 62ch; }

.badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 560px) { .badges { grid-template-columns: 1fr; } }
.badges li { display: flex; gap: .9rem; align-items: flex-start; min-width: 0; padding: 1.25rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem; line-height: 1.6; color: var(--muted); }
.badges strong { display: block; font-size: .95rem; color: var(--fg); margin-bottom: .15rem; }
.badges .icon { flex: none; margin: 0; width: 2.25rem; height: 2.25rem; }

.price-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }
.home .price { margin: 0; background: var(--card); border-radius: var(--radius); }
.home .price .cta, .home .price .cta-outline { margin: 1rem .5rem 0 0; }
.home .price .note { margin-top: 1rem; }
.setup { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.setup .note { margin-top: .5rem; }

.home form { max-width: 34rem; }
.home form .cta { margin-top: 1rem; }

footer.dark { margin: 0; padding: 2rem 0; border: 0; background: #201e1b; color: #a8a294; }
footer.dark a { color: #ece7db; margin-right: 1.25rem; text-decoration: none; }
footer.dark a:hover { color: #e0916b; }
