/* AppZifron — appzifron.com
   Static site, no build step. Fonts are self-hosted (no calls to Google),
   and the site sets no cookies.

   Layout: a "cipher grid" page. Each band is a full-width stripe with a
   centred column; the hero pairs the headline with a live-looking phone.
   Colour: cool paper + deep ink, teal for structure, amber for the one spark. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrainsmono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #f3f6f5;
  --surface: #ffffff;
  --band: #e6eeec;
  --ink: #10232a;
  --muted: #4f6369;
  --line: #cfdcd9;
  --teal: #0f5e6b;
  --teal-soft: #d5e9e8;
  --amber: #d98a1c;
  --amber-ink: #3a2405;
  --phone: #10232a;
  --phone-screen: #f7faf9;
  --grid: rgba(15, 94, 107, 0.07);
  --contact-bg: #10232a;
  --contact-fg: #eef3f2;
  --contact-muted: #b5c6c8;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --max: 1120px;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1a1f;
    --surface: #11262c;
    --band: #0f2228;
    --ink: #e4eeed;
    --muted: #9db2b5;
    --line: #23404a;
    --teal: #5cc2c6;
    --teal-soft: #163a41;
    --amber: #f0b04e;
    --amber-ink: #2a1a03;
    --phone: #02090b;
    --phone-screen: #12272d;
    --grid: rgba(92, 194, 198, 0.06);
  --contact-bg: #050f12;
  --contact-fg: #e4eeed;
  --contact-muted: #9db2b5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1a1f;
  --surface: #11262c;
  --band: #0f2228;
  --ink: #e4eeed;
  --muted: #9db2b5;
  --line: #23404a;
  --teal: #5cc2c6;
  --teal-soft: #163a41;
  --amber: #f0b04e;
  --amber-ink: #2a1a03;
  --phone: #02090b;
  --phone-screen: #12272d;
  --grid: rgba(92, 194, 198, 0.06);
  --contact-bg: #050f12;
  --contact-fg: #e4eeed;
  --contact-muted: #9db2b5;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ─── Top bar ─────────────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bg);
}
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.brand .z { color: var(--teal); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--ink); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface);
}
.lang-toggle button {
  font: 500 12.5px/1 var(--font-mono);
  letter-spacing: 0.06em;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-toggle button.active { background: var(--ink); color: var(--bg); }

/* ─── Hero ────────────────────────────────────────── */
.hero {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 56px;
  align-items: center;
  padding-block: 84px 72px;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 {
  font-size: clamp(40px, 6.6vw, 80px);
  font-weight: 800;
}
.hero h1 .cipher {
  color: var(--teal);
  font-variant-ligatures: none;
}
.hero .lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 34em;
}
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--ink); }

/* Phone mock-up of BookATrainer, drawn in CSS */
.phone {
  justify-self: center;
  width: min(300px, 100%);
  aspect-ratio: 9 / 18.5;
  max-width: 100%;
  background: var(--phone);
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 30px 60px -25px rgba(16, 35, 42, 0.45);
  transform: rotate(3deg);
}
.screen {
  height: 100%;
  background: var(--phone-screen);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 14px 14px;
  font-size: 12px;
  color: var(--ink);
}
.screen .app-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
}
.screen .app-title span { color: #1d4ed8; }
.screen .search {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--muted);
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 600;
}
.chip.on { background: #1d4ed8; color: #fff; }
.slot-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.slot-card .who { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal-soft);
  display: grid; place-items: center;
  font-size: 11px; color: var(--teal); font-weight: 700;
}
.slot-card .meta { color: var(--muted); font-size: 11px; }
.times { display: flex; gap: 5px; }
.times span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 6px;
}
.times span.pick { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.screen .book {
  margin-top: auto;
  text-align: center;
  background: #1d4ed8;
  color: #fff;
  border-radius: 10px;
  padding: 10px;
  font-weight: 700;
}

/* ─── Sections ────────────────────────────────────── */
.section { padding-block: 88px; }
.section.band { background: var(--band); border-block: 1px solid var(--line); }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 44rem;
  margin-bottom: 48px;
}
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 18px; }

/* What we do */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.service {
  padding: 28px 28px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.service + .service { padding-left: 28px; border-left: 1px solid var(--line); }
.service .code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
}
.service h3 { font-size: 24px; font-weight: 700; }
.service p { color: var(--muted); }

/* Product feature */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.product-card .logo-bat {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.02em;
}
.product-card .logo-bat span { color: #2f6cf0; }
.product-card p { color: var(--muted); }
.status {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts li {
  background: var(--bg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.facts .big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.facts .small { color: var(--muted); font-size: 15px; }

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 56px;
}
.principle { display: flex; gap: 18px; min-width: 0; }
.principle .glyph {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
}
.principle h3 { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.principle p { color: var(--muted); }

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  position: relative;
}
.timeline li {
  position: relative;
  padding: 34px 28px 0 0;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: -8px; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink);
}
.band .timeline li::before { background: var(--band); }
.timeline li.now::before { background: var(--amber); border-color: var(--amber); }
.timeline li.next { border-top-style: dashed; }
.timeline .when { font-family: var(--font-mono); font-size: 13px; color: var(--teal); letter-spacing: 0.05em; }
.timeline h3 { font-size: 21px; font-weight: 700; }
.timeline p { color: var(--muted); }

/* Contact */
.contact {
  background: var(--contact-bg);
  color: var(--contact-fg);
}
.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: end;
  padding-block: 96px;
}
.contact h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; }
.contact p { color: var(--contact-muted); font-size: 18px; margin-top: 18px; max-width: 32em; }
.contact .label { color: var(--amber); }
.mail {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--amber);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  overflow-wrap: anywhere;
}
.contact-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); }
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 32px;
  font-size: 14px;
  color: var(--muted);
}
footer address { font-style: normal; }
footer .tiny { font-family: var(--font-mono); font-size: 12px; }

/* ─── Language switching ─────────────────────────── */
.lang-da [data-lang="en"] { display: none !important; }
.lang-en [data-lang="da"] { display: none !important; }

/* ─── Motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ─── Small screens ───────────────────────────────── */
@media (max-width: 880px) {
  .hero .wrap, .product, .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-block: 56px; gap: 48px; }
  .phone { width: min(260px, 100%); }
  .services, .timeline { grid-template-columns: minmax(0, 1fr); }
  .service, .service + .service { padding: 24px 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .timeline { gap: 28px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .nav .nav-link { display: none; }
  .section { padding-block: 64px; }
}
@media (max-width: 420px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .product-card { padding: 24px; }
}
