/* ==========================================================================
   StayFree for Business — Landing Page
   Design tokens derived from stayfree.app
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #62b05e;
  --green-dark: #4d9549;
  --green-deep: #3c7a39;
  --green-tint: #eef7ed;
  --ink: #262626;
  --muted: #5c5c5c;
  --soft: #f7f7f7;
  --border: #e5e5e5;
  --white: #ffffff;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.14);
  --container: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
}

.section-intro {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(98, 176, 94, 0.35);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-white {
  background: var(--white);
  color: var(--green-deep);
}

.btn-white:hover {
  background: var(--green-tint);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.08rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

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

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

.brand-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-tint);
  padding: 4px 10px;
  border-radius: 999px;
}

.main-nav {
  display: none;
  gap: 26px;
  margin: 0 auto;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
}

.lang-switch a,
.lang-switch span {
  padding: 4px 6px;
  border-radius: 8px;
  color: var(--muted);
}

.lang-switch .active {
  color: var(--ink);
  background: var(--soft);
}

.lang-switch a:hover {
  color: var(--ink);
}

.header-actions .btn {
  padding: 11px 22px;
  font-size: 0.92rem;
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 64px;
    gap: 12px;
  }
  .brand img {
    height: 26px;
  }
  .brand-badge {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .btn {
    padding: 9px 14px;
    font-size: 0.82rem;
  }
  html {
    scroll-padding-top: 76px;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding: 140px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(10, 24, 12, 0.72) 0%,
    rgba(10, 24, 12, 0.45) 45%,
    rgba(10, 24, 12, 0.2) 100%
  );
}

.hero-content {
  max-width: 720px;
}

.promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 26px;
}

.promo-pill strong {
  font-weight: 800;
}

.promo-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ee08a;
  box-shadow: 0 0 0 4px rgba(142, 224, 138, 0.25);
  flex-shrink: 0;
}

.hero .eyebrow {
  color: #a9dfa6;
}

.hero p.sub {
  font-size: 1.15rem;
  max-width: 560px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 28px 56px;
  margin-top: 64px;
}

.stat .label {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.stat .value {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

@media (min-width: 720px) {
  .hero-stats {
    grid-template-columns: repeat(4, auto);
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 96px 0;
}

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

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

/* Audience cards */

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--green-tint);
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card .icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   Ad formats — phone mockups
   -------------------------------------------------------------------------- */

.format-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.format-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.format-visual {
  background: var(--green-tint);
  padding: 36px;
  display: flex;
  justify-content: center;
}

.phone-shot {
  width: 230px;
  border-radius: 32px;
  border: 6px solid var(--ink);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.phone-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.format-body {
  padding: 26px;
}

.format-body h3 {
  margin-bottom: 8px;
}

.format-body p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* --------------------------------------------------------------------------
   Platform — steps
   -------------------------------------------------------------------------- */

.platform-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 980px) {
  .platform-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.platform-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

/* dashboard mockup */

.dash {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.dash-bar {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--soft);
}

.dash-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dcdcdc;
}

.dash-body {
  padding: 26px;
}

.dash-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 18px;
}

.dash-title .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(98, 176, 94, 0.2);
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.dash-kpi {
  background: var(--soft);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.dash-kpi .k-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-kpi .k-value {
  font-size: 1.3rem;
  font-weight: 900;
  margin-top: 2px;
}

.dash-kpi .k-trend {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-deep);
}

.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 130px;
  padding-top: 8px;
}

.dash-chart span {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: var(--green-tint);
  min-height: 12%;
}

.dash-chart span.hi {
  background: var(--green);
}

@media (max-width: 480px) {
  .dash-kpis {
    grid-template-columns: 1fr;
  }
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 36px;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--green);
  flex-shrink: 0;
  width: 34px;
  padding-top: 2px;
}

.step h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.step p {
  color: var(--muted);
  font-size: 0.96rem;
}

.platform-cta {
  margin-top: 34px;
}

.check-list {
  list-style: none;
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.check-list svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Promo section
   -------------------------------------------------------------------------- */

.promo-card {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  border-radius: 32px;
  color: var(--white);
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.promo-card::before,
.promo-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.promo-card::before {
  width: 340px;
  height: 340px;
  top: -140px;
  right: -100px;
}

.promo-card::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: -80px;
}

.promo-card > * {
  position: relative;
  z-index: 1;
}

.promo-card .eyebrow {
  color: #d3ecd1;
}

.promo-amount {
  font-size: clamp(3.2rem, 9vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.promo-card h2 {
  margin-top: 6px;
}

.promo-card p {
  max-width: 560px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
}

.countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 26px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
}

.countdown strong {
  font-size: 1.3rem;
  font-weight: 900;
}

.promo-card .btn {
  margin-top: 30px;
}

.promo-note {
  display: block;
  margin-top: 22px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   Partners
   -------------------------------------------------------------------------- */

.partner-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: center;
}

@media (min-width: 720px) {
  .partner-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.partner-strip .partner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border);
  height: 84px;
}

.partner-strip img {
  max-height: 44px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.2s ease;
}

.partner-strip .partner:hover img {
  filter: none;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  max-width: 780px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--green);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

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

.faq-list details p {
  padding: 0 24px 20px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.final-cta {
  position: relative;
  color: var(--white);
  text-align: center;
  padding: 120px 0;
  overflow: hidden;
}

.final-cta .bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.final-cta .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 24, 12, 0.62);
}

.final-cta p {
  max-width: 560px;
  margin: 20px auto 0;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

.final-cta .btn {
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
}

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

.footer-brand img {
  height: 30px;
  width: auto;
}

.footer-brand p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-meta {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
