/* FireApp company site — shared stylesheet */
/* 0. Tokens & reset */
:root {
  --gold: #bb9e5d;
  --gold-light: #dccc8a;
  --brown: #9b743d;
  --purple: #2b1a40;
  --cream: #fbf8f1;
  --white: #ffffff;
  --text: #2b1a40;
  --muted: #5d5470;
  --radius: 20px;
  --shadow: 0 12px 32px rgba(43, 26, 64, 0.12);
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; background: var(--cream); color-scheme: light; }
body {
  overflow-x: clip;
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--purple); color: var(--white);
  padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; color: var(--white); }
.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }

/* 1. Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.scrolled { border-color: rgba(43, 26, 64, 0.12); box-shadow: 0 4px 16px rgba(43, 26, 64, 0.08); }
.header-inner { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 700; font-size: 1.25rem; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.main-nav ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; padding: 0; }
.main-nav a { text-decoration: none; padding: 0.5rem 0.75rem; border-radius: 10px; font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { background: rgba(43, 26, 64, 0.07); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.lang-switch { text-decoration: none; font-weight: 700; font-size: 0.85rem; border: 1px solid rgba(43, 26, 64, 0.25); border-radius: 999px; padding: 0.4rem 0.8rem; }
.lang-switch:hover { background: rgba(43, 26, 64, 0.07); }
.menu-toggle { display: none; background: none; border: 1px solid rgba(43, 26, 64, 0.25); border-radius: 10px; padding: 0.5rem 0.65rem; cursor: pointer; color: var(--text); }
.menu-toggle svg { display: block; }

/* 2. Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 0.95rem;
  border-radius: 999px; padding: 0.8rem 1.5rem; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--purple); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }
.btn-dark { background: var(--purple); color: var(--white); }
.btn-dark:hover { background: #3d2760; }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.88rem; }

/* 3. Hero */
.hero { background: var(--purple); color: var(--white); overflow: hidden; }
.hero-inner { display: grid; gap: 2.5rem; padding: 3.5rem 0 3rem; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-light);
  border: 1px solid rgba(220, 204, 138, 0.45); border-radius: 999px; padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.9rem); line-height: 1.2; font-weight: 700; margin-bottom: 1rem; }
.hero .sub { color: #d9d2e6; font-size: 1.08rem; font-weight: 300; max-width: 36rem; margin-bottom: 1.75rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.75rem; }
.fact-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; }
.fact-chips li {
  font-size: 0.85rem; font-weight: 600; color: var(--white);
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px; padding: 0.4rem 0.9rem;
}
/* Browser frame visual */
.browser {
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(1.2deg);
}
/* Hero visual: two overlapping browser frames */
.hero-visual { display: grid; gap: 0; align-items: start; }
.hero-visual .browser-back { transform: rotate(-2deg); width: 88%; opacity: 0.97; }
.hero-visual .browser-front { transform: rotate(1.2deg); width: 94%; justify-self: end; margin-top: -22%; }
.browser-bar { display: flex; align-items: center; gap: 0.4rem; background: #ece7f5; padding: 0.6rem 0.9rem; }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #c9c2da; }
.browser-bar span:first-child { background: var(--brown); }
.browser-bar span:nth-child(2) { background: var(--gold); }
.browser-bar span:nth-child(3) { background: var(--purple); }

/* 4. Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--white); }
.section h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.25; margin-bottom: 0.6rem; }
.section-lead { color: var(--muted); max-width: 44rem; margin-bottom: 2rem; }
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card {
  background: var(--cream); border: 1px solid rgba(43, 26, 64, 0.1);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow);
}
.section-alt .card { background: var(--cream); }
.card h3 { font-size: 1.1rem; margin: 0.8rem 0 0.4rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.8rem; }
.card ul { padding-left: 1.15rem; color: var(--text); font-size: 0.92rem; }
.card li + li { margin-top: 0.25rem; }
.icon-badge {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--purple); color: var(--gold-light);
}
.icon-badge svg { width: 24px; height: 24px; }

/* 5. How it works */
.steps { display: grid; gap: 1.25rem; grid-template-columns: 1fr; list-style: none; padding: 0; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid rgba(43, 26, 64, 0.1);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); position: relative;
}
.step-number {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--purple); color: var(--gold-light); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.8rem;
}
.step h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* 6. Features */
.feature-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; list-style: none; padding: 0; }
.feature {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: var(--white); border: 1px solid rgba(43, 26, 64, 0.1);
  border-radius: 16px; padding: 1.2rem;
}
.feature .icon-badge { width: 40px; height: 40px; flex-shrink: 0; }
.feature h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.feature p { color: var(--muted); font-size: 0.9rem; }

/* 7. CTA band */
.cta-band { background: var(--purple); color: var(--white); text-align: center; }
.cta-band .wrap { padding: 3.5rem 0; }
.cta-band h2 { margin-bottom: 0.6rem; }
.cta-band p { color: #d9d2e6; margin-bottom: 1.5rem; }

/* 8. Work */
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--brown); margin-bottom: 0.4rem;
}
.work-featured {
  display: grid; gap: 1.75rem; align-items: center;
  background: var(--cream); border: 1px solid rgba(43, 26, 64, 0.1);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.work-featured .browser { transform: none; box-shadow: var(--shadow); }
.work-featured-body h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.work-featured-body > p { color: var(--muted); font-size: 0.97rem; margin-bottom: 1rem; }
.parts { padding-left: 1.15rem; color: var(--text); font-size: 0.92rem; margin-bottom: 1rem; }
.parts li + li { margin-top: 0.25rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin-bottom: 1.25rem; }
.tags li {
  font-size: 0.78rem; font-weight: 600; color: var(--purple);
  border: 1px solid rgba(43, 26, 64, 0.3); border-radius: 999px; padding: 0.25rem 0.75rem;
}
.work-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.project-card .work-thumb { margin-bottom: 1rem; }
.work-thumb { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #ece7f5; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sham-tile {
  display: grid; place-items: center; align-content: center; gap: 0.6rem;
  background: linear-gradient(135deg, var(--purple) 0%, #5b3a8c 55%, var(--gold) 130%);
  color: var(--white);
}
.sham-tile span, .project-tile span { font-weight: 700; font-size: 1.2rem; letter-spacing: 0.02em; }
.project-tile { display: grid; place-items: center; align-content: center; gap: 0.6rem; color: var(--white); }
.fastcart-tile { background: linear-gradient(135deg, #6e4f24 0%, var(--brown) 45%, var(--purple) 120%); }
.text-link { font-weight: 700; color: var(--purple); text-underline-offset: 3px; }
.text-link:hover { color: #3d2760; }

/* 9. Contact */
.contact-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.contact-grid > * { min-width: 0; }
.contact-cards { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-card {
  display: block; text-decoration: none; background: var(--white);
  border: 1px solid rgba(43, 26, 64, 0.12); border-radius: 16px; padding: 1.1rem 1.25rem;
}
.contact-card:hover { border-color: var(--brown); }
.contact-card strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brown); }
.contact-card span { font-weight: 600; font-size: 1.05rem; }
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; border: 1px solid rgba(43, 26, 64, 0.1); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--cream);
  border: 1px solid rgba(43, 26, 64, 0.25); border-radius: 12px; padding: 0.7rem 0.9rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.75rem; }
/* Contact form: status, no-JS notices, honeypot, turnstile spacing. */
.form-status { font-size: 0.92rem; margin-top: 0.75rem; min-height: 1.4em; }
.form-status.is-success { color: #1e7e34; font-weight: 600; }
.form-status.is-error { color: #b3261e; font-weight: 600; }
.form-notice { display: none; margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: 12px; background: #e6f4ea; border: 1px solid #1e7e34; font-weight: 600; }
.form-notice-error { background: #fce8e6; border-color: #b3261e; }
.form-notice:target { display: block; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 1rem 0; }

/* 10. Footer */
.site-footer { background: var(--purple); color: #d9d2e6; }
.footer-inner { display: grid; gap: 2rem; padding: 3rem 0 2rem; grid-template-columns: 1fr; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--white); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.footer-brand img { width: 36px; height: 36px; border-radius: 9px; }
.footer-tag { font-size: 0.92rem; margin-top: 0.7rem; max-width: 22rem; }
.site-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gold-light); margin-bottom: 0.7rem; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.footer-links a { text-decoration: none; font-size: 0.93rem; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem;
  align-items: center; justify-content: space-between; font-size: 0.88rem;
}
.footer-bottom .lang-switch { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }

/* 11. Responsive */
@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; padding: 4.5rem 0 4rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-featured { grid-template-columns: 1.1fr 1fr; padding: 2rem; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1100px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .steps.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  /* No-JS fallback: nav is always visible, stacked. JS adds .js to <html>,
     which hides the nav behind the hamburger toggle instead. */
  .menu-toggle { display: none; }
  html.js .menu-toggle { display: block; }
  .main-nav { flex-basis: 100%; order: 5; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 0.25rem 0 0.5rem; }
  .main-nav a { display: block; padding: 0.6rem 0.25rem; }
  html.js .main-nav {
    display: none; flex-basis: auto;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid rgba(43, 26, 64, 0.12);
    box-shadow: 0 16px 32px rgba(43, 26, 64, 0.12);
  }
  html.js .main-nav.open { display: block; }
  html.js .main-nav ul { padding: 0.75rem 1.25rem 1.25rem; }
  html.js .main-nav a { padding: 0.75rem 0.5rem; }
  .site-header { position: sticky; }
  .header-inner { flex-wrap: wrap; }
  html.js .header-inner { flex-wrap: nowrap; }
  .browser { transform: none; }
  /* Narrow screens: hero shows a single frame to stay tidy. */
  .hero-visual .browser-back { display: none; }
  .hero-visual .browser-front { margin-top: 0; width: 100%; transform: none; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 2rem); }
  .form-card { padding: 1.1rem 0.75rem; }
  /* Header demo button would wrap the bar; the hero CTA sits right below. */
  .header-actions .btn-small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Very narrow phones: Turnstile has a fixed 300px width, so scale it down to fit. */
@media (max-width: 355px) {
  .cf-turnstile { transform: scale(0.85); transform-origin: left top; height: 56px; }
}
