:root {
  color-scheme: dark;
  --ink: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.72);
  --soft: rgba(245, 241, 232, 0.54);
  --line: rgba(192, 224, 139, 0.22);
  --line-strong: rgba(192, 224, 139, 0.4);
  --canvas: #040805;
  --panel: rgba(13, 29, 18, 0.86);
  --panel-2: rgba(20, 39, 25, 0.92);
  --green: #92bd4a;
  --green-2: #c8e37d;
  --leaf: #1e6a3a;
  --terracotta: #c87442;
  --gold: #d7b166;
  --radius: 8px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
  --max: 1180px;
  --asset-leaf: url("https://gospodapp.com/wp-content/themes/blocksy/gospodapp-site/assets/brand/gospodapp-sick-leaf-macro-v74.png");
  --asset-hero: url("https://gospodapp.com/wp-content/themes/blocksy/gospodapp-site/assets/brand/gospodapp-sick-leaf-macro-v74.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(4, 8, 5, 0.18), #040805 68%),
    radial-gradient(circle at 78% 10%, rgba(146, 189, 74, 0.18), transparent 34%),
    linear-gradient(120deg, rgba(4, 8, 5, 0.92), rgba(4, 8, 5, 0.46)),
    var(--asset-leaf) center top / cover no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, #000, transparent 62%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: #07110a;
  padding: 10px 12px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(192, 224, 139, 0.18);
  background: rgba(4, 8, 5, 0.94);
  backdrop-filter: blur(10px);
}

.shell,
.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-size: 17px;
  font-weight: 720;
}

.brand small {
  color: var(--soft);
  font-size: 11.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.header-actions,
.store-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(245, 241, 232, 0.22);
  border-radius: 8px;
  background: rgba(245, 241, 232, 0.06);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 680;
  line-height: 1.05;
}

.store-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.store-button small {
  display: block;
  color: var(--soft);
  font-size: 10px;
  font-weight: 650;
}

.store-button.primary {
  border-color: rgba(200, 227, 125, 0.52);
  background: rgba(35, 96, 48, 0.92);
  box-shadow: 0 6px 16px rgba(56, 108, 44, 0.18);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 241, 232, 0.18);
  border-radius: 8px;
  background: rgba(245, 241, 232, 0.06);
  color: var(--ink);
}

.menu-button svg {
  width: 22px;
  height: 22px;
}

.hero {
  min-height: 704px;
  display: grid;
  align-items: center;
  padding: 42px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
  gap: 38px;
  align-items: center;
}

.hero-copy {
  padding: 24px 0 36px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 620px;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.06;
  font-weight: 700;
}

h3 {
  font-size: 20px;
  line-height: 1.14;
  font-weight: 720;
}

.lead {
  margin-top: 24px;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.38;
}

.hero .store-row {
  margin-top: 30px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--soft);
  font-size: 14px;
}

.hero-note svg {
  width: 18px;
  height: 18px;
  color: var(--green-2);
}

.hero-media {
  position: relative;
  min-height: 520px;
  display: grid;
  align-content: center;
}

.app-preview {
  position: relative;
  width: min(100%, 520px);
  justify-self: end;
  border: 1px solid rgba(192, 224, 139, 0.28);
  border-radius: 8px;
  background: rgba(10, 25, 14, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-preview-top {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(192, 224, 139, 0.16);
}

.app-preview-top strong {
  font-size: 16px;
}

.app-preview-top span,
.preview-result span,
.case-result span {
  color: var(--green-2);
  font-size: 12px;
  font-weight: 700;
}

.preview-photo {
  height: 214px;
  overflow: hidden;
}

.preview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-result {
  margin: -42px 16px 0;
  position: relative;
  padding: 16px;
  border: 1px solid rgba(245, 241, 232, 0.18);
  border-radius: 8px;
  background: rgba(7, 14, 8, 0.92);
}

.preview-result h3,
.case-result h3 {
  margin-top: 6px;
}

.preview-result p,
.case-result p {
  margin-top: 8px;
  color: var(--muted);
}

.preview-actions,
.workflow-strip,
.case-metrics {
  display: grid;
  gap: 10px;
}

.preview-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 16px;
}

.preview-actions div,
.workflow-strip div,
.case-metrics div {
  min-width: 0;
  border: 1px solid rgba(192, 224, 139, 0.16);
  border-radius: 8px;
  background: rgba(245, 241, 232, 0.04);
  padding: 12px;
}

.preview-actions strong,
.case-metrics strong {
  display: block;
  font-size: 16px;
}

.preview-actions span,
.case-metrics span {
  display: block;
  margin-top: 2px;
  color: var(--soft);
  font-size: 12px;
}

.workflow-strip {
  width: min(88%, 460px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0 0 auto;
}

.workflow-strip div {
  padding: 10px;
}

.workflow-strip span {
  display: block;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 720;
}

.workflow-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.15;
}

.section {
  border-top: 1px solid rgba(192, 224, 139, 0.18);
  padding: 68px 0;
  background: rgba(4, 8, 5, 0.7);
}

.section.tight {
  padding: 48px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 500px;
  color: var(--muted);
  font-size: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step {
  min-height: 196px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 31, 17, 0.72);
  display: grid;
  align-content: space-between;
  gap: 24px;
}

.step svg {
  width: 36px;
  height: 36px;
  color: var(--green-2);
}

.step p,
.card p,
.pricing-card p,
.legal-page p {
  color: var(--muted);
}

.recovery-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 28px;
  align-items: stretch;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.feature-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(192, 224, 139, 0.18);
  border-radius: 8px;
  background: rgba(245, 241, 232, 0.04);
}

.feature-row svg {
  width: 28px;
  height: 28px;
  color: var(--green-2);
}

.case-board {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  gap: 14px;
  min-height: 460px;
}

.case-snapshot {
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.case-side {
  display: grid;
  gap: 14px;
  align-content: center;
}

.case-snapshot > img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.case-result {
  padding: 16px;
}

.case-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 16px 16px;
}

.card,
.pricing-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.card {
  padding: 20px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.photo-grid img,
.photo-grid div {
  aspect-ratio: 1.2 / 1;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(245, 241, 232, 0.06);
}

.photo-grid div {
  display: grid;
  place-items: center;
  color: var(--green-2);
  font-size: 13px;
  border: 1px dashed rgba(192, 224, 139, 0.28);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pricing-card {
  padding: 24px;
}

.pricing-card.highlight {
  border-color: rgba(200, 227, 125, 0.72);
  background: linear-gradient(180deg, rgba(22, 54, 25, 0.96), rgba(9, 22, 12, 0.94));
}

.price {
  margin: 18px 0;
  font-size: 44px;
  line-height: 1;
  font-weight: 820;
}

.price span {
  color: var(--soft);
  font-size: 16px;
  font-weight: 650;
}

.check-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
}

.check-list li {
  display: flex;
  gap: 9px;
}

.check-list li::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--green-2);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(11, 28, 15, 0.82);
}

.faq-item summary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

.faq-item[open] summary svg {
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 18px 18px;
  color: var(--muted);
}

.final-cta {
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 20, 10, 0.92), rgba(7, 20, 10, 0.58)),
    var(--asset-leaf) center / cover no-repeat;
  padding: clamp(30px, 6vw, 64px);
}

.final-cta h2 {
  max-width: 760px;
}

.final-cta p {
  margin-top: 16px;
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.site-footer {
  border-top: 1px solid rgba(192, 224, 139, 0.18);
  background: rgba(3, 7, 4, 0.94);
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(140px, 1fr));
  gap: 28px;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.footer-col strong {
  color: var(--ink);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--green-2);
}

.legal-line {
  margin-top: 22px;
  color: rgba(245, 241, 232, 0.46);
  font-size: 12px;
}

.page-hero {
  padding: 86px 0 56px;
  border-bottom: 1px solid rgba(192, 224, 139, 0.18);
  background:
    linear-gradient(90deg, rgba(4, 8, 5, 0.95), rgba(4, 8, 5, 0.58)),
    var(--asset-hero) center / cover no-repeat;
}

.page-hero p {
  margin-top: 18px;
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-card {
  padding: 22px;
}

.legal-card h2,
.legal-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.notice {
  border: 1px solid rgba(200, 227, 125, 0.44);
  border-radius: 8px;
  padding: 18px;
  background: rgba(146, 189, 74, 0.12);
  color: var(--muted);
}

.mobile-panel {
  display: none;
}

@media (max-width: 1060px) {
  .nav,
  .header-actions {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .mobile-panel {
    display: none;
    position: fixed;
    inset: 64px 16px auto;
    z-index: 30;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(4, 8, 5, 0.96);
    padding: 16px;
    box-shadow: var(--shadow);
  }

  .mobile-panel.open {
    display: grid;
    gap: 12px;
  }

  .mobile-panel a:not(.store-button) {
    color: var(--ink);
    padding: 12px;
    border-radius: 6px;
    background: rgba(245, 241, 232, 0.05);
  }

  .hero-grid,
  .recovery-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: auto;
  }

  .steps,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell,
  .header-inner {
    width: min(100% - 28px, var(--max));
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 20px 0 32px;
  }

  .hero-copy {
    padding: 28px 0 18px;
  }

  .hero-grid {
    gap: 18px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .hero-media {
    min-height: auto;
  }

  .app-preview {
    width: 100%;
    justify-self: stretch;
  }

  .preview-photo {
    height: 128px;
  }

  .preview-result {
    margin: -26px 12px 0;
    padding: 14px;
  }

  .preview-result p {
    font-size: 14px;
    line-height: 1.35;
  }

  .preview-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px;
  }

  .preview-actions div {
    padding: 8px;
  }

  .preview-actions strong {
    font-size: 14px;
  }

  .preview-actions span {
    font-size: 11px;
  }

  .workflow-strip {
    display: none;
  }

  .section {
    padding: 54px 0;
  }

  .section-head {
    display: grid;
  }

  .steps,
  .case-board,
  .pricing-grid,
  .legal-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .case-board {
    min-height: auto;
  }

  .case-snapshot > img {
    height: 150px;
  }

  .case-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .case-metrics div {
    padding: 10px;
  }

  .store-button {
    flex: 1 1 190px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 220ms ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

}
