/* VIT-VIT PAY website. Colors from the app (lib/core/theme/app_colors.dart). */
:root {
  --navy: #0d0683;
  --navy-end: #1f1675;
  --blue: #170bff;
  --wordmark: #01209f;
  --indigo-text: #1e1671;
  --tint: #daebff;
  --text: #171718;
  --body: #333333;
  --muted: #606061;
  --soft: #f2f2f7;
  --border: #e4e6ec;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(13, 6, 131, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: var(--wordmark);
}

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

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--white);
  padding: 8px 12px;
}

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

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

.brand img {
  height: 20px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--blue);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--soft) 0%, var(--white) 100%);
  padding: 64px 0 72px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--tint);
  color: var(--indigo-text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.lead {
  font-size: 1.15rem;
  color: var(--body);
  max-width: 34em;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.pills li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.92rem;
  color: var(--text);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.button {
  display: inline-block;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-end) 100%);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 14px;
}

.button:hover {
  filter: brightness(1.15);
}

.button.light {
  background: var(--white);
  color: var(--navy);
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 400px);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 669 / 1000;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.price-card {
  position: absolute;
  left: -28px;
  bottom: 32px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text);
  max-width: 250px;
}

.price-card strong {
  display: block;
  color: var(--wordmark);
}

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

.section.alt {
  background: var(--soft);
}

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

.section-head p {
  color: var(--muted);
}

.grid-2,
.grid-3,
.steps {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.icon svg {
  width: 24px;
  height: 24px;
}

.steps {
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* Support band */
.support {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-end) 100%);
  color: var(--white);
  padding: 64px 0;
}

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

.support h2 {
  color: var(--white);
  margin-bottom: 0.25em;
}

.support p {
  margin: 0;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer .container {
  display: grid;
  gap: 16px;
}

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

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

.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
}

/* Legal pages */
.legal {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}

.legal .updated {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.2em;
}

.legal li {
  margin-bottom: 0.4em;
}

/* Small screens */
@media (max-width: 900px) {
  .hero .container,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding: 40px 0 56px;
  }

  .hero-visual {
    width: min(100%, 360px);
  }

  .price-card {
    left: 12px;
    bottom: 16px;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 560px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a.optional {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .card,
  .steps li {
    padding: 22px;
  }
}
