/* Paystub Generator landing
   v1 (2026-11-21): initial. Palette from the app screenshots and icon. */

:root {
  --ink: #1f2a24;
  --navy: #05355a;
  --muted: #55606b;
  --line: #dfe3ee;
  --bg: #ffffff;
  --bg-alt: #f3f5fc;
  --lav: #e6eaf8;
  --sky: #c9eaf8;
  --orange: #e55a33;
  --green: #2ba84a;
  --blue: #3b5bdb;
  --coin: #ffcc2e;
  --radius: 18px;
  --wrap: 1120px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.15; color: var(--ink); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 850; margin: 0.2em 0 0.4em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; margin: 0 0 0.8em; }
h3 { font-size: 1.15rem; font-weight: 750; margin: 0 0 0.35em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 8px; }
nav[aria-label="Main"] { display: flex; align-items: center; gap: 22px; }
nav[aria-label="Main"] a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
nav[aria-label="Main"] a:hover { color: var(--blue); }
.btn { display: inline-block; background: var(--navy); color: #fff !important; border-radius: 999px; padding: 10px 18px; font-weight: 700; text-decoration: none; }
.btn-small { padding: 7px 14px; }

/* store badge */
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none; border-radius: 12px; padding: 9px 16px; font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.store-badge small { display: block; font-size: 0.7rem; font-weight: 500; opacity: 0.85; }
.store-badge.big { padding: 12px 22px; font-size: 1.25rem; }
.store-badge:hover { color: #fff; background: var(--navy); }

/* hero */
.hero { background: linear-gradient(170deg, var(--lav) 0%, var(--sky) 100%); padding: 56px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.eyebrow { font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin: 0; }
.lead { font-size: 1.15rem; color: #34404a; max-width: 38em; }
.checks { list-style: none; padding: 0; margin: 18px 0 26px; }
.checks li { position: relative; padding-left: 30px; margin: 8px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.2' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-shot { margin: 0; justify-self: center; max-width: 340px; }
.hero-shot img { border-radius: 28px; box-shadow: 0 30px 60px -20px rgba(5, 53, 90, 0.45); }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section > .wrap > h2 { text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; background: #fff; }
.feature h3::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--orange); margin-right: 10px; vertical-align: 2px; }
.feature p { margin: 0; color: #3b4651; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.shots figure { margin: 0; }
.shots img { border-radius: 20px; box-shadow: 0 14px 30px -16px rgba(5, 53, 90, 0.45); }
.shots figcaption { text-align: center; font-size: 0.9rem; color: var(--muted); margin-top: 10px; }

.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--coin); color: var(--ink); font-weight: 800; margin-bottom: 12px; }
.steps p { margin: 0; color: #3b4651; font-size: 0.97rem; }

/* guide cards */
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.guide-grid.three { grid-template-columns: repeat(3, 1fr); }
.guide-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform 0.15s, box-shadow 0.15s; }
.guide-card:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(5, 53, 90, 0.4); color: var(--ink); }
.guide-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.guide-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.guide-card-body strong { font-size: 1.02rem; line-height: 1.3; }
.guide-card-body span { color: var(--muted); font-size: 0.92rem; }

/* faq */
.faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 30px 14px 0; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--blue); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 16px; color: #3b4651; }

/* cta */
.cta-callout { display: flex; align-items: center; gap: 18px; background: linear-gradient(135deg, var(--lav), var(--sky)); border-radius: var(--radius); padding: 22px 24px; margin: 32px 0; }
.cta-callout img { border-radius: 14px; flex: none; }
.cta-callout div { flex: 1; }
.cta-callout strong { font-size: 1.08rem; }
.cta-callout p { margin: 4px 0 0; color: #3b4651; font-size: 0.95rem; }

/* article */
.article { padding: 34px 0 70px; }
.crumbs { font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.feature-wrap { max-width: 980px; margin: 10px auto 26px; }
.feature-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; }
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.prose p.answer { font-size: 1.2rem; color: var(--ink); border-left: 4px solid var(--orange); padding-left: 18px; }
.prose ul, .prose ol { padding-left: 1.4em; list-style: revert; }
.prose li { margin: 6px 0; }
.howto-box { background: var(--bg-alt); border-radius: var(--radius); padding: 18px 24px 10px; margin: 24px 0; }
.howto-box h2 { margin-top: 0.3em; font-size: 1.2rem; }
.screen-fig { margin: 26px auto; max-width: 300px; }
.screen-fig img { border-radius: 22px; box-shadow: 0 18px 36px -18px rgba(5, 53, 90, 0.45); }
.screen-fig figcaption { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 10px; }
.related-h { text-align: center; margin-top: 60px; }
.back-links { margin-top: 28px; }

/* footer */
.site-footer { background: var(--navy); color: #d9e2ec; padding: 56px 0 24px; }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .muted { color: #b9c6d4; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.6fr 0.8fr; gap: 36px; }
.footer-h { font-size: 1rem; color: #fff; margin: 4px 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; font-size: 0.95rem; }
.fine-print { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 36px; padding-top: 18px; font-size: 0.85rem; color: #a9b8c8; }

/* responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { max-width: 280px; }
  .shots, .steps, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-grid.three { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  nav[aria-label="Main"] a:not(.btn) { display: none; }
  .hero { padding: 32px 0 44px; }
  .feature-grid, .steps, .guide-grid, .guide-grid.three, .footer-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cta-callout { flex-direction: column; align-items: flex-start; }
  .section { padding: 52px 0; }
}
