/* Receipt Office — light page, soft brand gradient wash, frosted cards */

:root {
  --g-start: #0d47a1;
  --g-mid: #1565c0;
  --g-end: #1976d2;
  --page-bg: #e6edf6;
  --surface: rgba(255, 255, 255, 0.58);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --text: rgba(15, 23, 42, 0.94);
  --text-muted: rgba(15, 23, 42, 0.66);
  --border-light: rgba(15, 23, 42, 0.1);
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.07);
  --radius: 20px;
  --radius-sm: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--1: clamp(0.875rem, 0.82rem + 0.2vw, 0.9375rem);
  --step-0: clamp(1rem, 0.92rem + 0.35vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.05rem + 0.85vw, 1.5rem);
  --step-2: clamp(1.75rem, 1.35rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.25rem, 1.65rem + 2.4vw, 3rem);
  --space: clamp(1rem, 0.6rem + 1.5vw, 2rem);
  --space-lg: clamp(2rem, 1.2rem + 3vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

/* Subtle transparent brand gradient (no solid blue full-bleed) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 71, 161, 0.16) 0%,
    rgba(21, 101, 192, 0.12) 45%,
    rgba(25, 118, 210, 0.1) 100%
  );
}

.page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space);
  padding: 0.5rem 1rem;
  background: #fff;
  color: var(--g-start);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus { top: var(--space); outline: 2px solid var(--g-mid); outline-offset: 2px; }

.site-header {
  padding: var(--space) clamp(1rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.52);
}

.logo {
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo:hover, .logo:focus-visible { color: var(--g-start); text-decoration: none; }

.nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; }
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--step--1);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav a:hover, .nav a:focus-visible {
  color: var(--g-start);
  border-bottom-color: rgba(13, 71, 161, 0.35);
}
.nav a[aria-current="page"] { color: var(--g-start); border-bottom-color: var(--g-mid); }

main {
  flex: 1;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: var(--space-lg) var(--space);
}

main.home {
  max-width: min(72rem, 100%);
  display: flex;
  flex-direction: column;
  gap: var(--space);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

h1 { margin: 0 0 0.75em; font-size: var(--step-3); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: var(--text); }
h2 { margin: 1.75em 0 0.5em; font-size: var(--step-1); font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
h2:first-child { margin-top: 0; }

p { margin: 0 0 1em; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--step-1); color: var(--text); line-height: 1.55; }

ul { margin: 0 0 1em; padding-left: 1.25em; color: var(--text-muted); }
li { margin-bottom: 0.5em; }
li::marker { color: rgba(13, 71, 161, 0.45); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 1.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:focus-visible { outline: 2px solid var(--g-mid); outline-offset: 3px; }
.btn--primary { background: linear-gradient(135deg, var(--g-mid) 0%, var(--g-end) 100%); color: #fff; box-shadow: 0 4px 14px rgba(13, 71, 161, 0.25); }
.btn--primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn--ghost { background: var(--surface-strong); color: var(--text); border-color: var(--border-light); }
.btn--ghost:hover { background: #fff; }

.site-footer {
  margin-top: auto;
  padding: var(--space) clamp(1rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: var(--step--1);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(10px);
}
.site-footer a { color: var(--g-start); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { text-decoration: none; }

.prose { max-width: 65ch; }
.prose h1 { font-size: var(--step-2); }
.meta { font-size: var(--step--1); color: var(--text-muted); margin-bottom: 1.5rem; }

.hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--g-start);
}

.hero h1 { margin-bottom: 0.5em; }

.hero__promo {
  margin: 1em 0 0;
  color: var(--text-muted);
  font-size: var(--step-0);
  line-height: 1.6;
}

.screenshots__title {
  margin: 0 0 1rem;
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.screenshots__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: start;
}

.screenshots__grid li {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}

.screenshots__grid img {
  display: block;
  width: 100%;
  height: auto;
}

.content-block h2:first-of-type { margin-top: 0; }

.steps {
  margin: 0 0 1em;
  padding-left: 1.35em;
  color: var(--text-muted);
}

.steps li { margin-bottom: 0.65em; }
.steps li::marker { font-weight: 600; color: rgba(13, 71, 161, 0.5); }

.closing {
  margin-top: 1.25em !important;
  color: var(--text) !important;
  font-size: var(--step-1);
}

@media (max-width: 52rem) {
  .screenshots__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 32rem) {
  .screenshots__grid {
    grid-template-columns: 1fr;
  }
}

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

.logo.logo--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo__img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 22%;
  flex-shrink: 0;
  pointer-events: none;
}
