/* ==========================================================================
   Build Remote Team Space — stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700;800&family=Work+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-light: #FAE8EB;
  --ink: #1C2518;
  --accent-primary: #FF6B6B;
  --accent-secondary: #5CDCFF;
  --deep: #0A014F;

  --white: #FFFDFC;
  --ink-soft: #4A5245;
  --border-soft: rgba(28, 37, 24, 0.12);

  --font-display: 'Unbounded', 'Segoe UI', sans-serif;
  --font-body: 'Work Sans', 'Segoe UI', sans-serif;

  --radius-md: 14px;
  --radius-lg: 24px;

  --shell-max: 1180px;
  --nav-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

/* Visible focus states everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep);
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-primary);
  color: var(--deep);
  box-shadow: 0 6px 0 0 #c94f4f;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 9px 0 0 #c94f4f; }
.btn-primary:active { transform: translateY(0); box-shadow: 0 3px 0 0 #c94f4f; }

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--bg-light); }

.btn-ghost-light {
  background: transparent;
  border-color: rgba(250, 232, 235, 0.4);
  color: var(--bg-light);
}
.btn-ghost-light:hover { background: var(--bg-light); color: var(--deep); border-color: var(--bg-light); }

.btn-sm { padding: 11px 20px; font-size: 0.88rem; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn-primary:hover, .btn-primary:active { transform: none; }
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(250, 232, 235, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.3s ease;
}
.navbar.is-scrolled { box-shadow: 0 8px 24px rgba(10, 1, 79, 0.08); }

.navbar .shell {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--deep);
}
.logo-mark {
  width: 34px;
  height: 34px;
  position: relative;
  flex-shrink: 0;
}
.logo-mark span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.logo-mark span:nth-child(1) { background: var(--accent-primary); top: 0; left: 0; }
.logo-mark span:nth-child(2) { background: var(--deep); top: 0; right: 0; }
.logo-mark span:nth-child(3) { background: var(--accent-secondary); bottom: 0; left: 7px; }
.logo-text-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: 0.94rem;
}
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent-secondary);
  transition: width 0.25s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { width: 100%; }

.nav-cta { display: none; }

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  padding: 0;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  margin-inline: auto;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg-light);
  z-index: 99;
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  padding: 16px 4px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu .btn { margin-top: 24px; width: 100%; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
  background: var(--bg-light);
}
.hero .shell {
  display: grid;
  gap: 48px;
  position: relative;
  z-index: 2;
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  color: var(--deep);
  margin-block: 18px 20px;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--accent-primary);
  background: linear-gradient(180deg, transparent 62%, rgba(255,107,107,0.35) 62%);
}
.hero-sub {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hero-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note svg { flex-shrink: 0; color: var(--accent-primary); }

/* Signature visual: assembling grid */
.hero-visual {
  position: relative;
  height: 320px;
  justify-self: center;
  width: 100%;
  max-width: 440px;
}
.assembly-grid {
  position: relative;
  width: 100%;
  height: 100%;
}
.assembly-node {
  position: absolute;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(30px) scale(0.85);
  animation: assemble 0.7s var(--ease-out) forwards;
}
@keyframes assemble {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .assembly-node { animation: none; opacity: 1; transform: none; }
}

/* ==========================================================================
   Metrics bar
   ========================================================================== */
.metrics {
  background: var(--deep);
  color: var(--bg-light);
  padding: 56px 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: left;
}
.metric-num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 2.8rem);
  color: var(--accent-secondary);
  font-weight: 700;
  display: block;
}
.metric-label {
  font-size: 0.92rem;
  color: rgba(250, 232, 235, 0.78);
  max-width: 26ch;
  margin-top: 6px;
}
.metric-item { border-left: 3px solid rgba(92, 220, 255, 0.3); padding-left: 18px; }

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

/* ==========================================================================
   Section shared
   ========================================================================== */
.section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  color: var(--deep);
  margin-top: 14px;
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-light { background: var(--bg-light); }
.section-white { background: var(--white); }

/* ==========================================================================
   Bento services grid
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.bento-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  overflow: hidden;
}
.bento-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-secondary);
  box-shadow: 0 20px 40px rgba(10, 1, 79, 0.12), 0 0 0 1px rgba(92, 220, 255, 0.4);
}
.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--bg-light);
  color: var(--deep);
}
.bento-card h3 {
  font-size: 1.28rem;
  color: var(--deep);
}
.bento-card p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.96rem; }
.bento-tag {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
  .bento-card--large { grid-column: span 4; grid-row: span 2; }
  .bento-card--medium { grid-column: span 2; grid-row: span 1; }
  .bento-card--wide { grid-column: span 4; grid-row: span 1; }
}
@media (min-width: 980px) {
  .bento-card--large { grid-column: span 2; grid-row: span 2; }
  .bento-card--medium { grid-column: span 1; grid-row: span 2; }
  .bento-card--wide { grid-column: span 4; grid-row: span 1; }
}

/* ==========================================================================
   Savings calculator
   ========================================================================== */
.calculator {
  background: var(--deep);
  border-radius: var(--radius-lg);
  padding: 40px 26px;
  color: var(--bg-light);
  display: grid;
  gap: 36px;
  position: relative;
  overflow: hidden;
}
.calculator::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(92,220,255,0.25), transparent 70%);
  top: -120px;
  right: -100px;
  pointer-events: none;
}
.calc-controls { display: flex; flex-direction: column; gap: 26px; position: relative; z-index: 1; }
.calc-field label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 0.92rem;
}
.calc-field .val { color: var(--accent-secondary); font-family: var(--font-display); }

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: rgba(250,232,235,0.2);
  outline-offset: 6px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid var(--bg-light);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid var(--bg-light);
  cursor: pointer;
}

select.calc-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(250,232,235,0.3);
  background: rgba(250,232,235,0.06);
  color: var(--bg-light);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
}
select.calc-select option { color: var(--ink); }

.calc-result {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(250,232,235,0.18);
  padding-top: 26px;
  text-align: left;
}
.calc-result-label { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250,232,235,0.65); }
.calc-result-figure {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  color: var(--accent-secondary);
  margin: 6px 0 10px;
}
.calc-result-detail { font-size: 0.9rem; color: rgba(250,232,235,0.75); }

@media (min-width: 860px) {
  .calculator { grid-template-columns: 1fr 1fr; padding: 52px; align-items: center; }
  .calc-result { border-top: none; border-left: 1px solid rgba(250,232,235,0.18); padding-top: 0; padding-left: 44px; }
}

/* ==========================================================================
   How it works — GSAP step-through
   ========================================================================== */
.hiw-pin {
  position: relative;
}
.hiw-stage {
  display: grid;
  gap: 32px;
  align-items: center;
}
.hiw-visual {
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg);
  background: var(--deep);
  overflow: hidden;
}
.hiw-visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hiw-node-cluster { position: relative; width: 200px; height: 160px; }
.hiw-node {
  position: absolute;
  border-radius: 12px;
  opacity: 0.18;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hiw-node.is-active { opacity: 1; transform: scale(1.08); }

.hiw-steps-list { display: flex; flex-direction: column; gap: 10px; }
.hiw-step {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--white);
  opacity: 0.55;
  transition: opacity 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.hiw-step.is-active {
  opacity: 1;
  border-color: var(--accent-primary);
  transform: translateX(6px);
  box-shadow: 0 10px 24px rgba(255,107,107,0.14);
}
.hiw-step h4 { font-size: 1.05rem; color: var(--deep); margin-bottom: 4px; }
.hiw-step p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.hiw-step-word { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-primary); display: block; margin-bottom: 6px; }

/* JS-driven pinned version only applies when .js-pinned present on section */
.hiw-pin.js-pinned .hiw-stage { min-height: 420px; }

@media (min-width: 860px) {
  .hiw-stage { grid-template-columns: 1fr 1fr; }
}

/* Static fallback (no-js / reduced motion) shown via CSS, hidden if JS enhances */
.hiw-fallback-note { display: none; }
.no-js .hiw-fallback-note,
.reduce-motion .hiw-fallback-note { display: block; margin-bottom: 20px; font-size: 0.85rem; color: var(--ink-soft); }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep);
}
.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; transition: transform 0.25s ease, opacity 0.25s ease; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-question[aria-expanded="true"] .faq-icon { border-color: var(--accent-primary); }
.faq-question[aria-expanded="true"] .faq-icon::before { background: var(--accent-primary); }

.faq-answer-wrap {
  height: 0;
  overflow: hidden;
  transition: height 0.32s var(--ease-out);
}
.faq-answer {
  padding: 0 22px 22px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ==========================================================================
   Verification banner
   ========================================================================== */
.verify-banner {
  background: var(--accent-secondary);
  color: var(--deep);
  padding: 22px 0;
}
.verify-banner .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.verify-banner a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* ==========================================================================
   Email signup strip
   ========================================================================== */
.signup-strip {
  background: var(--bg-light);
  padding: 64px 0;
  border-top: 1px dashed var(--border-soft);
  border-bottom: 1px dashed var(--border-soft);
}
.signup-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.signup-copy { max-width: 460px; }
.signup-copy .eyebrow { margin-bottom: 10px; }
.signup-copy h3 { font-size: 1.4rem; color: var(--deep); }
.signup-copy p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.94rem; }

.signup-form { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; max-width: 480px; }
.signup-form input[type="email"] {
  flex: 1 1 220px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border-soft);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
}
.signup-form input[type="email"]::placeholder { color: var(--ink-soft); }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.signup-status { font-size: 0.85rem; color: var(--ink-soft); min-height: 1.2em; }

@media (min-width: 860px) {
  .signup-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--bg-light);
  padding: 72px 0 32px;
}
.footer-top {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: var(--bg-light); margin-bottom: 14px; }
.footer-brand p { color: rgba(250,232,235,0.65); max-width: 34ch; font-size: 0.92rem; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col address { color: rgba(250,232,235,0.78); font-size: 0.94rem; font-style: normal; }
.footer-col a:hover { color: var(--accent-secondary); }
.footer-cta-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.footer-bottom {
  border-top: 1px solid rgba(250,232,235,0.14);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(250,232,235,0.55);
}

@media (min-width: 720px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

/* ==========================================================================
   AOS overrides (respect reduced motion handled in JS by disabling init)
   ========================================================================== */
[data-aos] { pointer-events: auto; }

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