/* =============================================================
   Foundd Territory Coming-Soon — main.css
   Shared stylesheet for UK, BE, ES and the generic fallback.
   Customer-facing. Photo hero. Waitlist-led.
   ============================================================= */

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

:root {
  --white: #FFFFFF;
  --snow: #F8FBFC;
  --ice: #F4F5F7;
  --ice-deep: #E9ECF0;
  --ink: #111318;
  --ink-soft: #2B2F36;
  --body: #505662;
  --caption: #7C8291;
  --muted: #B4BAC4;
  --rule: #E1E5EB;
  --teal: #0B7A96;
  --teal-vivid: #0993B4;
  --teal-hover: #07697F;
  --teal-ice: #E6F5F9;
  --teal-ice-deep: #CCF0F8;
  --teal-dark: #053E4D;
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'General Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max-content: 1060px;
  --pad: clamp(24px, 5vw, 72px);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background: var(--white);
  overflow-x: hidden;
}

a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-hover); }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

img, picture { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--teal); color: var(--white); padding: .75rem 1.25rem;
  font-weight: 600; border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- LANG BANNER (BE only) ---- */
.lang-banner {
  background: var(--ink);
  color: var(--muted);
  text-align: center;
  padding: .6rem 1rem;
  font-size: .8125rem;
}
.lang-banner a { color: var(--white); text-decoration: underline; }
.lang-banner a:hover { color: var(--teal-vivid); }

/* ---- TOP BAR (wordmark + partner CTA, sticky) ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--teal-ice);
}
.topbar__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.topbar__brand {
  display: flex; align-items: baseline; gap: .5rem;
  text-decoration: none;
}
.topbar__wordmark {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.375rem;
  color: var(--ink); letter-spacing: -.01em;
}
.topbar__wordmark .dd { color: var(--teal); }
.topbar__territory {
  font-family: var(--font-body);
  font-size: .8125rem; font-weight: 500;
  color: var(--caption);
}
.topbar__cta {
  display: inline-flex; align-items: center; gap: .375rem;
  font-family: var(--font-body);
  font-weight: 600; font-size: .875rem;
  color: var(--teal);
  padding: .5rem 1rem; border-radius: 100px;
  border: 1.5px solid var(--teal);
  background: transparent;
  transition: background .2s, color .2s;
}
.topbar__cta:hover { background: var(--teal); color: var(--white); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600; font-size: 1.0625rem;
  color: var(--white);
  background: var(--teal);
  border: 2px solid transparent;
  border-radius: 100px;
  padding: .9rem 2rem;
  cursor: pointer; text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--teal-hover); color: var(--white); transform: translateY(-1px); box-shadow: 0 8px 24px -12px rgba(11,122,150,.4); }
.btn:focus-visible { outline: 3px solid var(--teal-vivid); outline-offset: 3px; }
.btn .arrow-icon { transition: transform .2s; }
.btn:hover .arrow-icon { transform: translateX(3px); }

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

/* ---- HERO (full-bleed photo, text overlaid left) ---- */
.hero {
  position: relative;
  min-height: clamp(520px, 72vh, 720px);
  display: flex; align-items: center;
  overflow: hidden;
  background-color: var(--snow);
}
.hero__media {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}
/* Left-weighted snow scrim for text legibility. */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(248,251,252,0.98) 0%,
    rgba(248,251,252,0.94) 30%,
    rgba(248,251,252,0.72) 55%,
    rgba(248,251,252,0.25) 80%,
    rgba(248,251,252,0) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--pad);
}
.hero__content { max-width: 500px; }

.hero__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.375rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero__subtitle {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.hero__cta {
  display: flex; gap: .75rem; flex-wrap: wrap;
}

/* ---- SECTION LABEL (shared eyebrow pattern) ---- */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500; font-size: .6875rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 1rem;
}

/* ---- MODEL (4-step approach) ---- */
.model {
  padding: clamp(4rem, 8vw, 6rem) var(--pad);
  background: var(--white);
}
.model-inner {
  max-width: var(--max-content); margin: 0 auto;
  text-align: center;
}
.model-inner h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.75vw, 2.5rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
  max-width: 820px;
  margin-left: auto; margin-right: auto;
}
.model-inner h2 em {
  font-style: normal;
  color: var(--teal);
}
.model-inner > p {
  color: var(--body);
  max-width: 640px; margin: 0 auto 3rem;
  font-size: 1.0625rem;
}

.model-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  text-align: left;
}
.model-step {
  background: var(--snow);
  border: 1px solid var(--ice-deep);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: border-color .2s, transform .15s;
}
.model-step:hover { border-color: var(--teal); transform: translateY(-2px); }
.model-step__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--teal);
  letter-spacing: .02em;
}
.model-step__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.3;
}
.model-step__body {
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--body);
}
.model-step--accent {
  background: var(--teal);
  border-color: var(--teal);
}
.model-step--accent:hover { border-color: var(--teal-dark); }
.model-step--accent .model-step__num { color: var(--teal-ice-deep); }
.model-step--accent .model-step__name,
.model-step--accent .model-step__body { color: var(--white); }
.model-step--accent .model-step__body { opacity: .94; }

/* ---- SCANS (5 cards, unlinked) ---- */
.scans {
  padding: clamp(4rem, 8vw, 6rem) var(--pad);
  background: var(--snow);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.scans-inner {
  max-width: 1160px; margin: 0 auto;
  text-align: center;
}
.scans-inner h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.75vw, 2.5rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
  max-width: 820px;
  margin-left: auto; margin-right: auto;
}
.scans-inner h2 em {
  font-style: normal;
  color: var(--teal);
}
.scans-inner > p {
  color: var(--body);
  max-width: 640px; margin: 0 auto 3rem;
  font-size: 1.0625rem;
}

.scan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  text-align: left;
}
.scan-card {
  background: var(--white);
  border: 1px solid var(--ice-deep);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: .625rem;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.scan-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -12px rgba(11,122,150,.2);
}
.scan-card__name {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.25rem;
  color: var(--ink);
}
.scan-card__tagline {
  font-family: var(--font-heading);
  font-weight: 500; font-size: .9375rem;
  color: var(--teal);
  margin-bottom: .25rem;
}
.scan-card__desc {
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--body);
}

/* ---- WAITLIST (Pipedrive embed) ---- */
.waitlist {
  padding: clamp(4rem, 8vw, 6rem) var(--pad);
  background: var(--white);
  scroll-margin-top: 80px;
}
.waitlist-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.waitlist-inner h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.75vw, 2.5rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
}
.waitlist-inner > p {
  color: var(--body);
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.waitlist-form {
  text-align: left;
  background: var(--snow);
  border: 1px solid var(--ice-deep);
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 220px;
}
.pipedriveWebForms { width: 100%; }

/* ---- WHERE FOUNDD IS LIVE ---- */
.live {
  padding: clamp(3rem, 6vw, 4rem) var(--pad);
  background: var(--snow);
}
.live-inner {
  max-width: 720px; margin: 0 auto; text-align: center;
}
.live-inner h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  margin-bottom: 2rem;
}
.territory-links {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.territory-link {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 8px;
  border: 1px solid var(--ice-deep);
  background: var(--white);
  color: var(--ink); text-decoration: none;
  font-weight: 500;
  transition: border-color .2s, transform .15s;
}
.territory-link:hover { border-color: var(--teal); transform: translateY(-1px); color: var(--ink); }
.territory-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.territory-flag { font-size: 1.25rem; }

/* ---- FOOTER ---- */
footer {
  background: var(--ink);
  color: var(--muted);
  padding: 3rem var(--pad) 2rem;
  font-size: .875rem;
  line-height: 1.7;
}
.footer-inner {
  max-width: var(--max-content); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--white); }

/* Left brand block, matches the main territory site pattern (big wordmark,
   longer description, outline network CTA), restyled for the dark bg. */
.footer__brand { max-width: 440px; }
.footer__wordmark {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer__wordmark .dd { color: var(--teal-vivid); }
.footer__desc {
  font-size: .875rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600; font-size: .8125rem;
  color: var(--teal-vivid);
  padding: .5rem 1.125rem;
  border-radius: 100px;
  border: 1.5px solid var(--teal-vivid);
  background: transparent;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.footer__cta:hover {
  background: var(--teal-vivid);
  color: var(--white);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 600; font-size: 1rem;
  color: var(--white); margin-bottom: .5rem;
}
.footer-copy {
  max-width: var(--max-content); margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .8125rem;
  color: var(--caption);
}
.footer-copy a { color: var(--caption); }
.footer-copy a:hover { color: var(--white); }

/* ---- COOKIE BANNER ---- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--ink);
  color: var(--muted);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
  font-size: .875rem;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner a { color: var(--white); text-decoration: underline; }
.cookie-btn {
  font-family: var(--font-body);
  font-size: .875rem; font-weight: 600;
  padding: .5rem 1.25rem; border-radius: 4px;
  border: none; cursor: pointer; transition: opacity .2s;
}
.cookie-btn:hover { opacity: .85; }
.cookie-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.cookie-accept { background: var(--teal); color: var(--white); }
.cookie-decline { background: transparent; color: var(--muted); border: 1px solid var(--caption); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .model-steps { grid-template-columns: 1fr; }
  .scan-grid { grid-template-columns: 1fr; }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(248,251,252,0.96) 0%,
      rgba(248,251,252,0.82) 55%,
      rgba(248,251,252,0.55) 100%);
  }
  .hero__media img { object-position: 70% center; }
  .topbar__territory { display: none; }
  .topbar__cta { font-size: .8125rem; padding: .4rem .875rem; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
}
