/* Shared by the static product pages (bemutato.html, en.html), so the two languages cannot drift
   apart in looks. The tokens are the default theme of the app (shared/theme.ts). */

:root {
  --brand: #0b4636;
  --brand-deep: #063326;
  --brand-text: #477a2b;
  --brand-0: #f0f8d5;
  --accent: #d2eb73;
  --on-accent: #063326;
  --on-brand: #fff;
  --on-brand-soft: rgba(255, 255, 255, 0.75);
  --on-brand-faint: rgba(255, 255, 255, 0.45);
  --on-brand-veil: rgba(255, 255, 255, 0.12);
  --paper: #f6f8f1;
  --surface: #fff;
  --ink: #17352d;
  --muted: #5d6e64;
  --line: rgba(11, 70, 54, 0.12);
  --shadow-card: 0 10px 28px rgba(11, 70, 54, 0.05);
  --shadow-float: 0 18px 40px rgba(6, 51, 38, 0.25);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--brand-text); }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.btn-accent { background: var(--accent); color: var(--on-accent); font-weight: 800; box-shadow: 0 10px 30px rgba(210, 235, 115, 0.25); }
.btn-accent:hover { color: var(--on-accent); background: #dcf08c; }
.btn-outline { border: 1px solid rgba(255, 255, 255, 0.3); color: var(--on-brand); }
.btn-outline:hover { color: var(--on-brand); background: var(--on-brand-veil); }
.btn svg { flex: none; }

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-text);
}
h2 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 620px; margin-bottom: 40px; }
.section-head p:last-child { margin: 0; font-size: 17px; color: var(--muted); }

/* Hero */

.hero {
  position: relative;
  background: var(--brand-deep);
  color: var(--on-brand);
  padding-bottom: 72px;
}
.hero-decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-decor span { position: absolute; transform: rotate(-6deg); }
.hero-decor .glow {
  right: -160px;
  top: -120px;
  width: 900px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(210, 235, 115, 0.22) 0%, transparent 62%);
  transform: none;
}
.hero-decor .docket-fill { left: -110px; bottom: 40px; width: 300px; height: 300px; border-radius: 60px 60px 60px 0; background: var(--on-brand-veil); }
.hero-decor .docket-line { right: 40px; top: 110px; width: 380px; height: 380px; border-radius: 76px 76px 76px 0; border: 2px solid var(--on-brand-veil); }

.site-header { position: relative; display: flex; align-items: center; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--on-brand); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.brand:hover { color: var(--on-brand); }
.brand img { width: 30px; height: 30px; transform: rotate(-6deg); }
.site-header .lang { display: grid; place-items: center; min-height: 44px; padding: 0 10px; color: var(--on-brand-soft); font-size: 14px; font-weight: 600; text-decoration: none; }
.site-header .lang:hover { color: var(--on-brand); }
.site-header .login { display: grid; place-items: center; min-height: 42px; padding: 0 18px; border-radius: 8px; background: var(--on-brand-veil); color: var(--on-brand); font-size: 14px; font-weight: 700; text-decoration: none; }
.site-header .login:hover { color: var(--on-brand); background: rgba(255, 255, 255, 0.2); }
.hero :focus-visible { outline-color: var(--accent); }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 56px;
  align-items: center;
  padding-top: 64px;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--on-brand-veil);
  color: var(--on-brand-soft);
  font-size: 13px;
  font-weight: 700;
}
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.03; font-weight: 800; letter-spacing: -0.04em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { margin: 0; max-width: 52ch; color: var(--on-brand-soft); font-size: clamp(16px, 1.6vw, 19px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

/* Screenshot slider. It drops 150px into the next section, which reserves the room for it. */

.showcase { position: relative; transform: translateY(150px); }
.frame { border-radius: 14px; overflow: hidden; background: var(--brand-deep); border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 40px 90px rgba(6, 51, 38, 0.3); }
/* The screen picker is drawn as the browser's own tabs, so it reads as part of the screenshot. */
.frame-tabs { display: flex; align-items: flex-end; gap: 14px; height: 44px; padding: 0 12px 0 16px; }
.frame-dots { display: flex; align-items: center; gap: 8px; height: 36px; }
.frame-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--on-brand-veil); }
.tab-strip { display: flex; gap: 2px; min-width: 0; }
.tab-strip button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 220px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--on-brand-soft);
  font: 600 13px 'Manrope', system-ui, sans-serif;
  cursor: pointer;
}
/* Only where there is a real pointer: on a touch screen :hover sticks after a tap. */
@media (hover: hover) {
  .tab-strip button:hover { background: var(--on-brand-veil); color: var(--on-brand); }
}
.tab-strip button[aria-selected='true'] { background: var(--brand); color: var(--on-brand); font-weight: 700; }
.tab-strip button:focus-visible { outline-color: var(--accent); outline-offset: -2px; }
.tab-strip img { flex: none; }
.tab-strip button[aria-selected='false'] img { opacity: 0.7; }
.tab-strip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  background: var(--brand);
  border-bottom: 1px solid var(--on-brand-veil);
}
.frame-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--on-brand-veil);
  color: var(--on-brand-soft);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.slides { position: relative; overflow: hidden; aspect-ratio: 2250 / 1410; touch-action: pan-y; }
.slides-track { display: flex; height: 100%; transition: transform 450ms var(--ease-out); }
.slide { display: block; flex: 0 0 100%; height: 100%; overflow: hidden; cursor: zoom-in; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
/* One button pinned to the frame's corner, outside the track, so it stays put while slides move. */
.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(6, 51, 38, 0.85);
  color: var(--on-brand);
  font: 700 12px 'Manrope', system-ui, sans-serif;
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.zoom-hint[hidden] { display: none; }
.slides:hover .zoom-hint, .zoom-hint:focus-visible, .slide:focus-visible ~ .zoom-hint { opacity: 1; transform: none; }
.zoom-hint:focus-visible { outline-color: var(--accent); }
.slide:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

.slide-arrows { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.slide-arrows[hidden] { display: none; }
.slide-arrows button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
@media (hover: hover) {
  .slide-arrows button:hover { border-color: var(--brand-text); color: var(--brand-text); }
}

.float-cards { display: contents; }
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-float);
  line-height: 1.35;
}
.float-card strong { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.float-card small { color: var(--muted); font-size: 13px; }
.float-number { right: -20px; top: 110px; }
.float-pdf { left: -32px; top: 250px; }
.docket-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 9px 9px 9px 0;
  font-weight: 800;
}
.docket-badge.dark { background: var(--brand); color: var(--accent); font-size: 18px; }
.docket-badge.lime { background: var(--accent); color: var(--on-accent); font-size: 12px; }

/* Features */

.features { padding-top: 96px; padding-bottom: 88px; }
.features .section-head { max-width: 520px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.feature-grid li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.feature-grid h3 { margin: 0; font-size: 17px; letter-spacing: -0.01em; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px 10px 10px 0;
  background: var(--brand-0);
  color: var(--brand-text);
}

/* Footer */

.site-footer { border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.footer-main { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-top: 48px; padding-bottom: 32px; }
.footer-about { flex: 999 1 320px; display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
.footer-about .brand { color: var(--ink); }
.footer-about p { margin: 0; color: var(--muted); }
.footer-col { flex: 1 1 180px; display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-text); }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--brand-text); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.maker-logo { display: block; height: 44px; width: auto; filter: grayscale(1); opacity: 0.55; transition: filter 160ms ease, opacity 160ms ease; }
.maker:hover .maker-logo, .maker:focus-visible .maker-logo { filter: none; opacity: 1; }

/* Zoomed screenshot */

.zoom {
  width: min(1320px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-brand);
}
.zoom::backdrop { background: rgba(6, 51, 38, 0.92); }
.zoom-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.zoom-bar strong { margin-right: auto; font-size: 16px; }
.zoom-bar span { margin-right: 8px; color: var(--on-brand-soft); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zoom-bar button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--on-brand-veil);
  color: var(--on-brand);
  cursor: pointer;
}
.zoom-bar .zoom-close { background: var(--accent); color: var(--on-accent); }
.zoom-bar button:focus-visible { outline-color: var(--accent); }
.zoom img { display: block; width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 10px; background: var(--surface); touch-action: pan-y; }

/* Phones and small tablets: one column, no floating cards, full-width buttons. */

@media (max-width: 900px) {
  .hero { padding-bottom: 32px; }
  .hero-grid { gap: 32px; padding-top: 32px; }
  .showcase { transform: none; display: flex; flex-direction: column; }
  .float-cards { display: none; }
  .features { padding-top: 48px; }
}

@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .site-header .login { min-height: 40px; padding: 0 14px; }
  .cta { flex-direction: column; align-items: stretch; width: 100%; }
  .slides { aspect-ratio: 4 / 3; }
  .slide img { width: 180%; max-width: none; }
  .frame-bar { height: 32px; }
  .frame-dots { display: none; }
  .frame-tabs { height: 48px; padding: 0 8px; }
  .tab-strip { flex: 1 1 auto; }
  .tab-strip button { flex: 1 1 0; justify-content: center; height: 42px; padding: 0 8px; }
  .zoom-hint { opacity: 1; transform: none; }
  .slide-arrows { display: none; }
  .footer-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .footer-about, .footer-legal { grid-column: 1 / -1; }
  .footer-col a { display: flex; align-items: center; min-height: 40px; }
  .footer-col { gap: 0; }
  .footer-col h2 { padding-bottom: 4px; }
  .maker-logo { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .slides-track, .zoom-hint, .maker-logo { transition: none; }
}
