/* ==========================================================================
   PrestoBiz — Brand tokens
   ========================================================================== */
:root {
  --red: #D2103E;
  --red-dark: #A50D32;
  --red-light: #FCE9EE;
  --gray: #797677;
  --gray-dark: #4A4849;
  --gray-light: #F6F6F7;
  --border: #E3E2E3;
  --black: #111214;
  --white: #FFFFFF;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(17, 18, 20, 0.06), 0 4px 16px rgba(17, 18, 20, 0.06);
  --shadow-lg: 0 8px 24px rgba(17, 18, 20, 0.12);

  --header-h: 72px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--gray-dark); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(210, 16, 62, 0.28);
}
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 8px 20px rgba(210, 16, 62, 0.36); }

.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: #000; }

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--black); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline-light:hover { border-color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--black);
  padding: 10px 4px;
}
.btn-ghost:hover { color: var(--red); }

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }

.main-nav { flex: 1; }
.main-nav ul { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-dark);
  padding: 8px 0;
  position: relative;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--black); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.mobile-login-btn { display: none; }
.header-actions .help-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-dark);
}
.header-actions .help-link:hover { color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: -8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--white);
  z-index: 90;
  overflow-y: auto;
  padding: 8px 24px 40px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav li { border-bottom: 1px solid var(--border); }
.mobile-nav a {
  display: block;
  padding: 18px 4px;
  font-size: 1.05rem;
  font-weight: 700;
}
.mobile-nav .mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(210, 16, 62, 0.10), transparent 60%),
    radial-gradient(700px 400px at 8% 110%, rgba(121, 118, 119, 0.14), transparent 60%),
    var(--white);
}
.hero .container { text-align: center; }

/* Photo hero: rotating Ken-Burns background carousel */
.hero-photo {
  padding: 132px 0 140px;
  background: var(--black);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroBgCycle 24s infinite;
  will-change: opacity, transform;
}
.hero-bg-layer:nth-child(1) { animation-delay: 0s; }
.hero-bg-layer:nth-child(2) { animation-delay: 6s; }
.hero-bg-layer:nth-child(3) { animation-delay: 12s; }
.hero-bg-layer:nth-child(4) { animation-delay: 18s; }
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(17,18,20,0.58) 0%, rgba(17,18,20,0.72) 65%, rgba(17,18,20,0.85) 100%),
    linear-gradient(90deg, rgba(17,18,20,0.35) 0%, rgba(17,18,20,0.05) 55%);
}
.hero-photo .container { position: relative; z-index: 2; }
.hero-photo .eyebrow { color: #FF8FA8; }
.hero-photo h1 { color: var(--white); }
.hero-photo .hero-rotator { color: #FF6B8F; }
.hero-photo .hero-sub { color: rgba(255,255,255,0.82); }
.hero-photo .hero-note { color: rgba(255,255,255,0.65); }
.hero-photo .hero-badges {
  color: rgba(255,255,255,0.85);
  border-top-color: rgba(255,255,255,0.18);
}
.hero-photo .hero-badges svg { color: #FF6B8F; }

@keyframes heroBgCycle {
  0%   { opacity: 0; transform: scale(1.0); }
  2%   { opacity: 1; }
  23%  { opacity: 1; }
  25%  { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-layer { animation: none; opacity: 0; transform: none; }
  .hero-bg-layer:nth-child(1) { opacity: 1; }
}
.hero-headline {
  max-width: 840px;
  margin-inline: auto;
}
.hero-rotator {
  display: inline-block;
  color: var(--red);
  position: relative;
}
.hero-sub {
  max-width: 560px;
  margin: 24px auto 0;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--gray);
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--gray-dark);
  font-weight: 600;
  font-size: 0.9rem;
}
.hero-badges span { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { color: var(--red); flex-shrink: 0; }

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 88px 0; }
.section-alt { background: var(--gray-light); }

/* ==========================================================================
   Feature / category grid
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card, .category-card, .product-card, .value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.category-card { display: flex; flex-direction: column; height: 100%; }
.category-card:hover, .product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

.icon-tile {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-light);
  color: var(--red);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile.dark { background: var(--black); color: var(--white); }

.feature-card p, .category-card p { color: var(--gray-dark); margin-top: 10px; }
.category-card .card-link {
  margin-top: 20px;
  font-weight: 700;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.category-card .card-products {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gray-light);
  color: var(--gray-dark);
}

/* value / trust band */
.value-band { background: var(--black); color: var(--white); }
.value-band .section-head h2 { color: var(--white); }
.value-band .section-head .lede { color: rgba(255,255,255,0.7); }
.value-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.value-card h3 { color: var(--white); }
.value-card p { color: rgba(255,255,255,0.7); }
.value-card .icon-tile { background: rgba(210,16,62,0.18); color: #FF6B8F; }

/* ==========================================================================
   Product / Pricing cards
   ========================================================================== */
.product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.product-card h3 { font-size: 1.35rem; }
.product-tagline { color: var(--gray); font-size: 0.9rem; margin-top: 4px; }
.badge-trial {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--red-light);
  color: var(--red);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 20px;
}
.price-amount { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; }
.price-period { color: var(--gray); font-size: 0.95rem; font-weight: 600; }
.price-alt { color: var(--gray); font-size: 0.85rem; margin-top: 4px; }
.product-features {
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-dark);
}
.product-features svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gray-light);
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 12px;
}
.pricing-toggle button {
  border: none;
  background: transparent;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray-dark);
}
.pricing-toggle button.active {
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow);
}
.pricing-toggle-wrap { text-align: center; margin-bottom: 48px; }
.pricing-save { display: block; margin-top: 10px; font-size: 0.8rem; color: var(--gray); }

.grid-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.shared-features {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.shared-features .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.shared-features .value-card-lite {
  text-align: center;
}
.shared-features .icon-tile { margin-inline: auto; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-weight: 700;
  font-size: 1rem;
}
.faq-question .plus {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
}
.faq-question .plus::before, .faq-question .plus::after {
  content: "";
  position: absolute;
  background: var(--gray-dark);
  transition: transform 0.2s ease;
}
.faq-question .plus::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-question .plus::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.faq-item.open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding-bottom: 22px; color: var(--gray-dark); }
.faq-item.open .faq-answer { max-height: 400px; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--black);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: rgba(255,255,255,0.7); margin-top: 14px; }
.cta-band .hero-actions { margin-top: 32px; }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero {
  padding: 64px 0 72px;
  background: var(--gray-light);
}
.page-hero .eyebrow { }
.page-hero .lede { max-width: 640px; margin-top: 16px; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--red); }

/* ==========================================================================
   About page
   ========================================================================== */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.stat { text-align: center; }
.stat .num { font-size: 2.25rem; font-weight: 800; color: var(--red); letter-spacing: -0.02em; }
.stat .label { color: var(--gray); font-size: 0.9rem; margin-top: 4px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--red) 0%, #8a0c2b 100%);
  position: relative;
  overflow: hidden;
}
.split-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(280px 280px at 20% 20%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(200px 200px at 85% 80%, rgba(255,255,255,0.14), transparent 60%);
}
.split-visual img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-card .row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-card .row:last-child { border-bottom: none; }
.contact-card .row .icon-tile { margin: 0; width: 40px; height: 40px; border-radius: 10px; }
.contact-card .row .icon-tile svg { width: 18px; height: 18px; }
.contact-card .row .label { font-size: 0.8rem; color: var(--gray); }
.contact-card .row .value { font-weight: 700; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-body {
  max-width: 780px;
  margin-inline: auto;
}
.legal-body h2 { font-size: 1.35rem; margin-top: 40px; margin-bottom: 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--gray-dark); margin-bottom: 16px; }
.legal-body .updated { color: var(--gray); font-size: 0.85rem; margin-bottom: 40px; }
.legal-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-nav a { font-weight: 700; color: var(--gray-dark); font-size: 0.9rem; }
.legal-nav a[aria-current="page"] { color: var(--red); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.72);
  padding: 72px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 56px;
}
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { max-width: 260px; font-size: 0.9rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.825rem;
  flex-wrap: wrap;
}
.footer-bottom a:hover { color: var(--white); }
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .grid-3, .grid-pricing, .shared-features .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav, .header-actions .help-link, .header-actions .btn { display: none; }
  .header-actions .btn.mobile-login-btn { display: inline-flex; }
  .nav-toggle { display: flex; }
  .header-actions { gap: 8px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .grid-3, .grid-2, .grid-pricing, .shared-features .grid-4, .about-stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-badges { gap: 16px 24px; }
}
