/* Budgely — budgely.pl. One stylesheet for every page, no build step. */

:root {
  color-scheme: light dark;
  --bg: #f2f5f3;
  --surface: #ffffff;
  --surface-alt: #e8edea;
  --text: #0f1a15;
  --muted: #56615c;
  --line: #dde4e0;
  --primary: #0b7a54;
  --primary-soft: #daf1e6;
  --hero-from: #0e7a55;
  --hero-to: #0a5440;
  --on-hero: #ffffff;
  --on-hero-muted: rgba(255, 255, 255, 0.82);
  --coin: #e2a11b;
  --coin-ring: #b9800f;
  --coin-hero: #ffc23d;
  --coin-hero-ring: #e8a21c;
  --shadow: 0 1px 2px rgba(15, 26, 21, 0.06), 0 8px 24px rgba(15, 26, 21, 0.06);
  --radius: 22px;
  --gutter: 16px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f0e;
    --surface: #161a18;
    --surface-alt: #212624;
    --text: #f1f5f3;
    --muted: #a3ada8;
    --line: #2a302d;
    --primary: #4ade9b;
    --primary-soft: #173327;
    --hero-from: #12805c;
    --hero-to: #0b3a2e;
    --coin: #ffc23d;
    --coin-ring: #e8a21c;
    --shadow: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.hero :focus-visible,
.contact :focus-visible {
  outline-color: #ffffff;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
}

p {
  margin: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
}

.skip:focus {
  left: 8px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

/* Wordmark: "Budgely" followed by the gold coin standing on the baseline. */
.wordmark {
  display: inline-block;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.coin {
  width: 0.55em;
  height: 0.55em;
  margin-left: 0.09em;
  display: inline;
  vertical-align: baseline;
  overflow: visible;
}

.coin .fill {
  fill: var(--coin);
}

.coin .ring {
  stroke: var(--coin-ring);
}

.hero .coin .fill,
.contact .coin .fill {
  fill: var(--coin-hero);
}

.hero .coin .ring,
.contact .coin .ring {
  stroke: var(--coin-hero-ring);
}

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 21px;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.nav {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav .wide {
  display: none;
}

@media (min-width: 640px) {
  .nav .wide {
    display: block;
  }
}

/* Hero */
.hero {
  background: linear-gradient(150deg, var(--hero-from), var(--hero-to));
  color: var(--on-hero);
  overflow: hidden;
}

.hero .container {
  display: grid;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 56px;
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr 340px;
    align-items: center;
    gap: 64px;
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.app-id {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.app-id img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.app-id .wordmark {
  font-size: 34px;
  line-height: 1;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero .eyebrow {
  color: var(--on-hero-muted);
  margin-top: 6px;
}

.hero h1 {
  font-size: clamp(40px, 10.5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.hero .lead {
  margin-top: 22px;
  max-width: 540px;
  font-size: 18px;
  color: var(--on-hero-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 6px 22px 7px;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  text-decoration: none;
  line-height: 1.15;
}

.store-badge small {
  font-size: 12px;
  font-weight: 500;
}

.store-badge strong {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-badge:hover {
  background: #1a1a1a;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: inherit;
  font-weight: 600;
}

.hero .text-link,
.contact .text-link {
  color: #ffffff;
}

.hero-shot {
  justify-self: center;
  width: min(72vw, 320px);
}

.hero-shot img,
.shots img {
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

/* Sections */
.section {
  padding: 64px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 96px 0;
  }
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-head h2,
.page-head h1 {
  margin-top: 12px;
  font-size: clamp(30px, 7vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.alt {
  background: var(--surface);
}

/* Features */
.features {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.features li {
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius);
}

.features h3 {
  font-size: 19px;
  font-weight: 750;
}

.features h3::before {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: var(--primary);
}

.features p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: 2px;
}

/* Screenshots: a swipeable row on phones, a grid on wide screens. */
.shots {
  display: flex;
  gap: 16px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 24px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots li {
  flex: 0 0 62vw;
  max-width: 260px;
  scroll-snap-align: center;
}

.shots img {
  border-radius: 22px;
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .shots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .shots li {
    max-width: none;
  }
}

/* Plus */
.plus-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .plus-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: start;
  }
}

.checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 32px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230b7a54' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}

@media (prefers-color-scheme: dark) {
  .checks li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%234ade9b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

.checks strong {
  font-weight: 700;
}

.checks span {
  color: var(--muted);
}

.prices {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius);
}

.price.best {
  border-color: var(--primary);
}

.price .label {
  font-weight: 700;
}

.price .note {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.price .amount {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.price .per {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.fine {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* Privacy teaser */
.privacy-points {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .privacy-points {
    grid-template-columns: repeat(2, 1fr);
  }
}

.privacy-points li {
  padding: 22px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.privacy-points strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.privacy-points span {
  color: var(--muted);
  font-size: 16px;
}

.more {
  margin-top: 28px;
}

/* Contact band */
.contact {
  background: linear-gradient(150deg, var(--hero-from), var(--hero-to));
  color: var(--on-hero);
  padding: 64px 0;
}

@media (min-width: 768px) {
  .contact {
    padding: 88px 0;
  }
}

.contact .eyebrow {
  color: var(--on-hero-muted);
}

.contact h2 {
  margin-top: 12px;
  font-size: clamp(28px, 6.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 640px;
}

.contact p {
  margin-top: 14px;
  max-width: 540px;
  color: var(--on-hero-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  background: #ffffff;
  color: #0a5440;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: #e9f6ef;
}

.contact .actions a:not(.button) {
  color: #ffffff;
}

.contact .publisher {
  margin-top: 28px;
  font-size: 14px;
}

/* Subpages */
.page-head {
  padding: 48px 0 8px;
}

@media (min-width: 768px) {
  .page-head {
    padding-top: 72px;
  }
}

.page-head .meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.narrow {
  max-width: 780px;
}

.faq {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.18s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}

.faq details p {
  padding-bottom: 22px;
  color: var(--muted);
}

.policy {
  padding-bottom: 72px;
}

.policy .intro {
  margin-top: 28px;
  font-size: 19px;
}

.policy section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.policy h2 {
  font-size: 23px;
  font-weight: 750;
}

.policy section p,
.policy section ul {
  margin-top: 14px;
  color: var(--muted);
}

.policy section ul {
  padding-left: 22px;
}

.policy section li + li {
  margin-top: 6px;
}

.policy strong {
  color: var(--text);
}

.back {
  margin-top: 48px;
}

/* Footer */
.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .wordmark {
  font-size: 18px;
  color: var(--text);
}

.faq-section {
  padding-top: 32px;
}
