/* ==========================================================================
   Stikqr — landing page
   Standalone stylesheet. Deliberately NOT part of the `application` manifest:
   the welcome layout loads this file on its own so the marketing page is
   completely isolated from Bootstrap 3 and the logged-in app's CSS.

   Every selector is namespaced `lp-` so nothing can ever leak either way.

   Design language: flat. No gradients, no drop shadows (one hairline on the
   sticky header). Depth comes from hard colour blocks, thick orange rules and
   the rounded-square motif borrowed from the logo mark.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */


:root {
  /* Brand orange. Used for fills, icons, borders and rules — never for small
     text on a light background, where it only reaches 2.63:1. */
  --sq-orange:       #f77f00;

  /* Same hue, stepped down for text. WCAG AA contrast on our backgrounds:
       --sq-orange-ink   3.37:1 on white  -> large display text only (>=24px)
       --sq-orange-text  5.26:1 on white, 4.84 on wash, 4.83 on grey -> body text
       --sq-orange-lift  4.95:1 on --sq-ink -> text on the dark band */
  --sq-orange-ink:   #d96f00;
  --sq-orange-text:  #a85600;
  --sq-orange-lift:  #ffa04a;

  --sq-orange-wash:  #fff4e8;
  --sq-orange-line:  #ffd9b0;

  --sq-ink:          #3f4154;
  --sq-ink-soft:     #707070;
  --sq-ink-faint:    #6e7079;

  --sq-white:        #ffffff;
  --sq-grey:         #f5f5f7;
  --sq-grey-deep:    #ebebef;
  --sq-line:         #e8e8ec;

  /* Toulouse accent, lifted to 4.65:1 against --sq-ink in the footer. */
  --sq-accent:       #ff90a0;

  --sq-r:            0.75rem;
  --sq-r-lg:         1.25rem;
  --sq-r-xl:         2rem;
  --sq-r-pill:       999px;

  --sq-bw:           2px;

  --sq-wrap:         1200px;
  --sq-gut:          1.5rem;

  --sq-pad-y:        clamp(4rem, 9vw, 7.5rem);
  --sq-pad-y-sm:     clamp(3rem, 6vw, 5rem);

  --sq-ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body.lp {
  margin: 0;
  padding: 0;
  background: var(--sq-white);
  color: var(--sq-ink);
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 100%;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* These element resets are deliberately NOT scoped under `.lp`.
   This stylesheet is only ever loaded by the landing page, so the scoping
   bought nothing — but it cost specificity: `.lp ul` (0,1,1) outranks a
   component class like `.lp-trust` (0,1,0) and silently ate its margins.
   Bare element selectors (0,0,1) always lose to a class, which is correct. */

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--sq-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.lp-skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--sq-ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--sq-r);
  font-weight: 700;
  transition: top 0.2s var(--sq-ease);
}
.lp-skip:focus { top: 1rem; }

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.lp-wrap {
  width: 100%;
  max-width: var(--sq-wrap);
  margin: 0 auto;
  padding: 0 var(--sq-gut);
}

.lp-section {
  padding: var(--sq-pad-y) 0;
  position: relative;
}

.lp-section.is-tight { padding: var(--sq-pad-y-sm) 0; }

.lp-bg-white  { background: var(--sq-white); }
.lp-bg-grey   { background: var(--sq-grey); }
.lp-bg-wash   { background: var(--sq-orange-wash); }
.lp-bg-orange { background: var(--sq-orange); color: #fff; }
.lp-bg-ink    { background: var(--sq-ink); color: #fff; }

/* Section heading group ---------------------------------------------------- */

.lp-head { max-width: 46rem; }
.lp-head.is-centred { margin-inline: auto; text-align: center; }

.lp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sq-orange-text);
  margin-bottom: 1rem;
}
.lp-kicker::before {
  content: "";
  width: 1.5rem;
  height: 3px;
  background: var(--sq-orange);
  border-radius: 2px;
}
.is-centred .lp-kicker::after {
  content: "";
  width: 1.5rem;
  height: 3px;
  background: var(--sq-orange);
  border-radius: 2px;
}
.lp-bg-orange .lp-kicker { color: #fff; }
.lp-bg-orange .lp-kicker::before,
.lp-bg-orange .lp-kicker::after { background: rgba(255, 255, 255, 0.75); }
.lp-bg-ink .lp-kicker { color: var(--sq-orange-lift); }

.lp-h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lp-h2 em {
  font-style: normal;
  color: var(--sq-orange-ink);
}
.lp-bg-orange .lp-h2 em,
.lp-bg-ink .lp-h2 em { color: #fff; }

.lp-lead {
  margin-top: 1.125rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--sq-ink-soft);
}
.lp-bg-orange .lp-lead { color: #fff; }
.lp-bg-ink .lp-lead { color: rgba(255, 255, 255, 0.72); }

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

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9375rem 1.75rem;
  border-radius: var(--sq-r);
  border: var(--sq-bw) solid transparent;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s var(--sq-ease),
              border-color 0.18s var(--sq-ease),
              color 0.18s var(--sq-ease),
              transform 0.18s var(--sq-ease);
}
.lp-btn:hover { transform: translateY(-2px); }
.lp-btn:active { transform: translateY(0); }

.lp-btn-primary {
  background: var(--sq-orange);
  border-color: var(--sq-orange);
  color: #fff;
}
.lp-btn-primary:hover {
  background: var(--sq-orange-ink);
  border-color: var(--sq-orange-ink);
  color: #fff;
}

.lp-btn-ghost {
  background: transparent;
  border-color: var(--sq-line);
  color: var(--sq-ink);
}
.lp-btn-ghost:hover {
  border-color: var(--sq-orange);
  color: var(--sq-orange-text);
}

.lp-btn-invert {
  background: #fff;
  border-color: #fff;
  color: var(--sq-orange-text);
}
.lp-btn-invert:hover {
  background: var(--sq-ink);
  border-color: var(--sq-ink);
  color: #fff;
}

.lp-btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.lp-btn-outline-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--sq-orange-text);
}

.lp-btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.0625rem;
}

.lp-btn-block { width: 100%; }

/* Scroll reveal ------------------------------------------------------------ */

.lp-js .lp-reveal {
  opacity: 0;
  transform: translateY(18px);
}
.lp-js .lp-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s var(--sq-ease), transform 0.55s var(--sq-ease);
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */

.lp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--sq-ease), background-color 0.2s var(--sq-ease);
}
.lp-header.is-stuck { border-bottom-color: var(--sq-line); }

.lp-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.lp-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: auto;
}
.lp-brand img {
  height: 2.25rem;
  width: auto;
}

.lp-nav { display: flex; align-items: center; gap: 0.25rem; }

/* `:not(.lp-btn)` is load-bearing, not cosmetic: `.lp-nav a` (0,1,1) outranks
   `.lp-btn-primary` (0,1,0), so without it the drawer CTA loses its colour
   and its hover state to the plain nav-link rules. */
.lp-nav a:not(.lp-btn) {
  padding: 0.5rem 0.875rem;
  border-radius: var(--sq-r);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sq-ink-soft);
  transition: color 0.16s var(--sq-ease), background-color 0.16s var(--sq-ease);
}
.lp-nav a:not(.lp-btn):hover { color: var(--sq-orange-text); background: var(--sq-orange-wash); }

/* The nav carries a duplicate CTA that only surfaces inside the mobile
   drawer — the desktop CTA lives in .lp-header-side instead. */
.lp-nav > .lp-btn { display: none; }

.lp-header-side {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex: 0 0 auto;
}

/* Language toggle ---------------------------------------------------------- */

.lp-lang {
  display: inline-flex;
  border: var(--sq-bw) solid var(--sq-line);
  border-radius: var(--sq-r-pill);
  overflow: hidden;
  flex: 0 0 auto;
}
.lp-lang a {
  padding: 0.3125rem 0.6875rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sq-ink-faint);
  transition: background-color 0.16s var(--sq-ease), color 0.16s var(--sq-ease);
}
.lp-lang a:hover { color: var(--sq-orange-text); }
.lp-lang a.is-on {
  background: var(--sq-orange);
  color: #fff;
}

.lp-header .lp-btn { padding: 0.6875rem 1.25rem; font-size: 0.9375rem; }

/* Burger ------------------------------------------------------------------- */

.lp-burger {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: var(--sq-bw) solid var(--sq-line);
  border-radius: var(--sq-r);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
}
.lp-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--sq-ink);
  border-radius: 2px;
  transition: transform 0.2s var(--sq-ease), opacity 0.2s var(--sq-ease);
}
.lp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

.lp-hero {
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

/* Soft tilted rounded-square sitting behind the phone — the logo's mark
   blown up and used as a backdrop. Filled rather than outlined: an outline
   at this scale just reads as a stray diagonal stripe. */
.lp-hero::before {
  content: "";
  position: absolute;
  top: -6rem;
  right: -9rem;
  width: 34rem;
  height: 34rem;
  background: var(--sq-orange-wash);
  border-radius: 7rem;
  transform: rotate(14deg);
  pointer-events: none;
  z-index: 0;
}

.lp-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.lp-hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.lp-hero h1 em {
  font-style: normal;
  color: var(--sq-orange-ink);
}

.lp-hero .lp-lead { max-width: 34rem; }

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

.lp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--sq-line);
}
.lp-trust li {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sq-ink-soft);
}
.lp-trust li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--sq-orange);
  flex: 0 0 auto;
}

/* Phone mock --------------------------------------------------------------- */

.lp-phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lp-phone {
  position: relative;
  /* Deliberately `width` + `max-width` rather than `width: min(320px, 100%)`.
     sassc-rails installs the Sass CSS compressor, and libsass resolves the
     CSS `min()` with its own built-in, which aborts the production
     precompile with "Incompatible units: '%' and 'px'". */
  width: 100%;
  max-width: 320px;
  aspect-ratio: 320 / 650;
  background: var(--sq-ink);
  border: 0.625rem solid var(--sq-ink);
  border-radius: var(--sq-r-xl);
  overflow: hidden;
  flex: 0 0 auto;
}

/* notch */
.lp-phone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 1.125rem;
  background: var(--sq-ink);
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  z-index: 3;
  pointer-events: none;
}

.lp-phone-screen {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: calc(var(--sq-r-xl) - 0.625rem);
  overflow: hidden;
}

.lp-phone iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

/* Static capture shown on mobile instead of the iframe */
.lp-phone-capture {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
}
.lp-phone-capture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Skeleton shown until the iframe reports load. Hidden by default and only
   enabled once JS is present, because without JS the embed is never given a
   src and the spinner would simply spin forever. */
.lp-phone-skeleton {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  background: var(--sq-orange-wash);
  color: var(--sq-orange-text);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: opacity 0.4s var(--sq-ease);
}
.lp-js .lp-phone-skeleton { display: flex; }
.lp-phone.is-loaded .lp-phone-skeleton { opacity: 0; pointer-events: none; }

.lp-spinner {
  width: 1.75rem;
  height: 1.75rem;
  border: 3px solid var(--sq-orange-line);
  border-top-color: var(--sq-orange);
  border-radius: 50%;
  animation: lp-spin 0.9s linear infinite;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* Static fallback for when the embed is blocked, times out, or JS is off.
   It is the default state so a no-JS visitor still gets a real call to
   action instead of a blank phone; JS hides it and only brings it back if
   the embed actually fails. */
.lp-phone-fallback {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--sq-white);
}
.lp-js .lp-phone-fallback { display: none; }
.lp-js .lp-phone.is-failed .lp-phone-fallback { display: flex; }
.lp-phone.is-failed .lp-phone-skeleton { display: none; }
.lp-phone-fallback img { width: 7rem; margin: 0 auto 0.5rem; }
.lp-phone-fallback h3 { font-size: 1rem; font-weight: 700; }
.lp-phone-fallback p { font-size: 0.875rem; color: var(--sq-ink-soft); }

.lp-phone-caption {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sq-ink-faint);
  text-align: center;
  max-width: 20rem;
}

/* --------------------------------------------------------------------------
   6. Slogan band  (reuses the existing bilingual slogan artwork)
   -------------------------------------------------------------------------- */

.lp-slogan { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(0.5rem, 1vw, 1rem); }
.lp-slogan img {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   7. The loop  (3 steps + reset)
   -------------------------------------------------------------------------- */

.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.lp-step {
  background: rgba(255, 255, 255, 0.12);
  border: var(--sq-bw) solid rgba(255, 255, 255, 0.28);
  border-radius: var(--sq-r-lg);
  padding: 1.75rem 1.625rem 1.875rem;
  position: relative;
}

.lp-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--sq-r);
  background: #fff;
  color: var(--sq-orange-text);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 1.125rem;
}

.lp-step h3 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.lp-step p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.6;
  color: #fff;
}

/* the "and back around" reset panel */
.lp-loopback {
  margin-top: 1.25rem;
  background: #fff;
  color: var(--sq-ink);
  border-radius: var(--sq-r-lg);
  padding: 2rem clamp(1.625rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.lp-loopback-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--sq-r);
  background: var(--sq-orange-wash);
  color: var(--sq-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.lp-loopback-icon .material-icons {
  font-size: 2.25rem;
  animation: lp-rotate 6s linear infinite;
}
@keyframes lp-rotate { to { transform: rotate(-360deg); } }

.lp-loopback-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sq-orange-text);
  margin-bottom: 0.375rem;
}
.lp-loopback h3 {
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}
.lp-loopback p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--sq-ink-soft);
  max-width: 44rem;
}

/* --------------------------------------------------------------------------
   8. Reuse cycle  (same sticker, new job)
   -------------------------------------------------------------------------- */

.lp-stage {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas:
    "s1 qr s3"
    "s2 qr s4";
  gap: 1rem clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
}

.lp-state {
  background: var(--sq-white);
  border: var(--sq-bw) solid var(--sq-line);
  border-radius: var(--sq-r-lg);
  padding: 1.375rem 1.5rem;
  transition: border-color 0.35s var(--sq-ease), background-color 0.35s var(--sq-ease);
}
.lp-state:nth-child(1) { grid-area: s1; }
.lp-state:nth-child(2) { grid-area: s2; }
.lp-state:nth-child(3) { grid-area: s3; }
.lp-state:nth-child(4) { grid-area: s4; }

.lp-state-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sq-ink-faint);
  margin-bottom: 0.375rem;
  transition: color 0.35s var(--sq-ease);
}
.lp-state h3 {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.lp-state p {
  font-size: 0.9062rem;
  font-weight: 300;
  color: var(--sq-ink-soft);
  line-height: 1.55;
}

.lp-state.is-on {
  border-color: var(--sq-orange);
  background: var(--sq-orange-wash);
}
.lp-state.is-on .lp-state-tag { color: var(--sq-orange-text); }

/* the unchanging code in the middle */
.lp-qr {
  grid-area: qr;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem;
  border: 3px dashed var(--sq-orange-line);
  border-radius: var(--sq-r-xl);
  background: var(--sq-white);
}
.lp-qr-mark {
  width: clamp(6rem, 11vw, 8.5rem);
  height: auto;
  color: var(--sq-orange);
}
.lp-qr-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sq-ink);
  line-height: 1.4;
}
.lp-qr-label span {
  display: block;
  color: var(--sq-orange-text);
  letter-spacing: 0.06em;
}

.lp-stage-note {
  margin-top: 2rem;
  text-align: center;
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  font-weight: 300;
  color: var(--sq-ink-soft);
}
.lp-stage-note strong {
  font-weight: 800;
  color: var(--sq-ink);
}

/* --------------------------------------------------------------------------
   9. Toolkit
   -------------------------------------------------------------------------- */

.lp-group { margin-top: 3rem; }
.lp-group + .lp-group { margin-top: 2.5rem; }

.lp-group-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.125rem;
}
.lp-group-head h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sq-ink);
  flex: 0 0 auto;
}
.lp-group-head::before {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 3px;
  background: var(--sq-orange);
  flex: 0 0 auto;
}
.lp-group-rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--sq-line);
}
.lp-group-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sq-ink-faint);
  flex: 0 0 auto;
}

.lp-cells {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
}

.lp-cell {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.125rem 1rem;
  background: var(--sq-white);
  border: var(--sq-bw) solid var(--sq-line);
  border-radius: var(--sq-r);
  transition: border-color 0.16s var(--sq-ease),
              transform 0.16s var(--sq-ease),
              background-color 0.16s var(--sq-ease);
}
.lp-cell:hover {
  border-color: var(--sq-orange);
  background: var(--sq-orange-wash);
  transform: translateY(-3px);
}
.lp-cell .material-icons {
  font-size: 1.5rem;
  color: var(--sq-orange);
}
.lp-cell span {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sq-ink);
}

.lp-footnote {
  margin-top: 2.25rem;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--sq-ink-faint);
  max-width: 42rem;
}

/* --------------------------------------------------------------------------
   10. Scenarios
   -------------------------------------------------------------------------- */

.lp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 2.5rem;
}

.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.125rem;
  border: var(--sq-bw) solid var(--sq-line);
  border-radius: var(--sq-r-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--sq-white);
  transition: border-color 0.16s var(--sq-ease),
              color 0.16s var(--sq-ease),
              transform 0.16s var(--sq-ease);
}
.lp-pill .material-icons { font-size: 1.125rem; color: var(--sq-orange); }
.lp-pill:hover {
  border-color: var(--sq-orange);
  color: var(--sq-orange-text);
  transform: translateY(-2px);
}

.lp-pills-note {
  margin-top: 1.75rem;
  font-size: 1rem;
  font-weight: 300;
  color: var(--sq-ink-soft);
}

/* --------------------------------------------------------------------------
   11. Stories
   -------------------------------------------------------------------------- */

.lp-stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3.25rem;
}

.lp-story {
  display: flex;
  flex-direction: column;
  background: var(--sq-white);
  border: var(--sq-bw) solid var(--sq-orange-line);
  border-radius: var(--sq-r-lg);
  overflow: hidden;
}

.lp-story-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--sq-orange-wash);
  overflow: hidden;
}
.lp-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder used until real photography is dropped in ------------------- */
.lp-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--sq-orange);
  background: var(--sq-orange-wash);
}
.lp-ph::before,
.lp-ph::after {
  content: "";
  position: absolute;
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--sq-orange-line);
  border-radius: 0.5rem;
}
.lp-ph::before { top: 1rem; left: 1rem; border-right: 0; border-bottom: 0; }
.lp-ph::after { bottom: 1rem; right: 1rem; border-left: 0; border-top: 0; }
.lp-ph .material-icons { font-size: 2rem; opacity: 0.55; }
.lp-ph code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--sq-orange-text);
  opacity: 0.9;
  padding: 0 1rem;
  text-align: center;
  word-break: break-all;
}

.lp-story-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.625rem 1.625rem 1.75rem;
}

.lp-story h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.lp-story h3 small {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sq-orange-text);
  letter-spacing: 0;
  margin-top: 0.125rem;
}

.lp-story-problem {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--sq-ink-soft);
}

.lp-story-outcome {
  margin-top: 1rem;
  padding: 1rem 1.125rem;
  border-left: 3px solid var(--sq-orange);
  background: var(--sq-orange-wash);
  border-radius: 0 var(--sq-r) var(--sq-r) 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--sq-ink);
}

.lp-story-cells {
  margin-top: auto;
  padding-top: 1.25rem;
}
.lp-story-cells dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sq-ink-faint);
  margin-bottom: 0.375rem;
}
.lp-story-cells dd {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--sq-orange-text);
}

/* --------------------------------------------------------------------------
   12. Surfaces  (dark band)
   -------------------------------------------------------------------------- */

.lp-surfaces {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem;
  margin-top: 3rem;
}

.lp-surface {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 1.25rem;
  border: var(--sq-bw) solid rgba(255, 255, 255, 0.16);
  border-radius: var(--sq-r);
  transition: border-color 0.16s var(--sq-ease), background-color 0.16s var(--sq-ease);
}
.lp-surface:hover {
  border-color: var(--sq-orange);
  background: rgba(247, 127, 0, 0.12);
}
.lp-surface .material-icons { font-size: 1.375rem; color: var(--sq-orange); flex: 0 0 auto; }
.lp-surface span { font-size: 0.875rem; font-weight: 600; line-height: 1.3; }

/* --------------------------------------------------------------------------
   13. Pricing
   -------------------------------------------------------------------------- */

.lp-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3.25rem;
  max-width: 58rem;
  margin-inline: auto;
}

.lp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem 2rem;
  background: var(--sq-white);
  border: var(--sq-bw) solid var(--sq-line);
  border-radius: var(--sq-r-lg);
}
.lp-plan.is-feature { border-color: var(--sq-orange); }

.lp-plan-flag {
  position: absolute;
  top: -0.8125rem;
  left: 2rem;
  padding: 0.25rem 0.75rem;
  background: var(--sq-orange-text);
  color: #fff;
  border-radius: var(--sq-r-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lp-plan h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.lp-plan-tagline {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--sq-ink-soft);
}

.lp-plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1.375rem 0 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--sq-line);
}
.lp-plan-price b {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sq-orange-ink);
}
.lp-plan-price span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sq-ink-faint);
}

.lp-plan-list { display: grid; gap: 0.625rem; margin-bottom: 2rem; }
.lp-plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
}
.lp-plan-list .material-icons {
  font-size: 1.125rem;
  color: var(--sq-orange);
  flex: 0 0 auto;
  margin-top: 0.125rem;
}

.lp-plan .lp-btn { margin-top: auto; }

.lp-plan-note {
  max-width: 44rem;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--sq-ink-faint);
}
.lp-plan-note strong { font-weight: 700; color: var(--sq-ink); }

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */

.lp-faq {
  max-width: 50rem;
  margin: 3rem auto 0;
  display: grid;
  gap: 0.75rem;
}

.lp-q {
  background: var(--sq-white);
  border: var(--sq-bw) solid var(--sq-line);
  border-radius: var(--sq-r-lg);
  overflow: hidden;
  transition: border-color 0.18s var(--sq-ease);
}
.lp-q[open] { border-color: var(--sq-orange); }

.lp-q summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary::marker { content: ""; }

.lp-q summary::after {
  content: "add";
  font-family: 'Material Icons';
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  color: var(--sq-orange);
  margin-left: auto;
  flex: 0 0 auto;
  transition: transform 0.2s var(--sq-ease);
}
.lp-q[open] summary::after {
  content: "remove";
  transform: rotate(180deg);
}

.lp-q-body {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.9688rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--sq-ink-soft);
}

/* --------------------------------------------------------------------------
   15. Closing CTA
   -------------------------------------------------------------------------- */

.lp-cta { text-align: center; }
.lp-cta .lp-h2 { max-width: 34rem; margin-inline: auto; }
.lp-cta .lp-lead { max-width: 34rem; margin-inline: auto; }
.lp-cta .lp-btn { margin-top: 2.25rem; }
.lp-cta-aside {
  margin-top: 1.125rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.lp-footer { padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }

.lp-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.lp-footer-brand img { height: 2rem; width: auto; margin-bottom: 1rem; }
.lp-footer-brand p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  max-width: 22rem;
}

.lp-footer h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1rem;
}

.lp-footer-links { display: grid; gap: 0.625rem; }
.lp-footer-links a {
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.16s var(--sq-ease);
}
.lp-footer-links a:hover { color: var(--sq-orange-lift); }

.lp-footer-lang { display: flex; gap: 0.5rem; }
.lp-footer-lang a {
  padding: 0.375rem 0.875rem;
  border: var(--sq-bw) solid rgba(255, 255, 255, 0.22);
  border-radius: var(--sq-r-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
  transition: border-color 0.16s var(--sq-ease), background-color 0.16s var(--sq-ease), color 0.16s var(--sq-ease);
}
.lp-footer-lang a:hover { border-color: var(--sq-orange); color: #fff; }
.lp-footer-lang a.is-on {
  background: var(--sq-orange);
  border-color: var(--sq-orange);
  color: #fff;
}

.lp-footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
}
.lp-footer-base a { transition: color 0.16s var(--sq-ease); }
.lp-footer-base a:hover { color: #fff; }
.lp-footer-by {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.lp-footer-by img { height: 1.125rem; width: auto; filter: brightness(0) invert(1); opacity: 0.7; }
.lp-footer-tls { color: var(--sq-accent); margin-left: auto; font-weight: 500; }

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .lp-nav a:not(.lp-btn) { padding: 0.5rem 0.625rem; font-size: 0.875rem; }
}

@media (max-width: 960px) {
  /* Header collapses into the drawer */
  .lp-burger { display: flex; }

  .lp-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem var(--sq-gut) 1.5rem;
    background: var(--sq-white);
    border-bottom: 1px solid var(--sq-line);
  }
  .lp-nav.is-open { display: flex; }
  .lp-nav a:not(.lp-btn) { padding: 0.8125rem 0.75rem; font-size: 1rem; }

  .lp-header-side .lp-btn { display: none; }
  .lp-nav .lp-btn {
    display: inline-flex;
    margin-top: 0.75rem;
  }

  /* Hero stacks, phone first-class but centred */
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .lp-hero::before { display: none; }
  .lp-hero .lp-lead { max-width: none; }

  /* Loop */
  .lp-steps { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

  /* Reuse cycle: code on top, then the four states */
  .lp-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "qr qr"
      "s1 s2"
      "s3 s4";
  }
  .lp-qr { padding: 1.5rem; }

  /* Stories */
  .lp-stories { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }

  /* Footer */
  .lp-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --sq-gut: 1.25rem; }

  .lp-steps { grid-template-columns: minmax(0, 1fr); }

  /* Mobile: show the static capture instead of the live embed */
  .lp-phone-capture { display: block; }
  .lp-phone iframe { display: none; }
  .lp-phone-skeleton { display: none !important; }

  .lp-loopback {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.125rem;
    padding: 1.75rem 1.5rem;
  }

  .lp-stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "qr" "s1" "s2" "s3" "s4";
  }

  .lp-stories { grid-template-columns: minmax(0, 1fr); }

  .lp-plans { grid-template-columns: minmax(0, 1fr); }
  .lp-plan { padding: 2rem 1.5rem 1.75rem; }

  .lp-cells { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
  .lp-cell { padding: 1rem 0.875rem; }

  .lp-surfaces { grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }

  .lp-q summary { padding: 1.0625rem 1.125rem; font-size: 1rem; }
  .lp-q-body { padding: 0 1.125rem 1.25rem; }

  .lp-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .lp-footer-tls { margin-left: 0; }

  .lp-hero-actions .lp-btn { flex: 1 1 100%; }
}

@media (max-width: 400px) {
  .lp-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-surfaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   18. Motion & print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp *,
  .lp *::before,
  .lp *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .lp-js .lp-reveal { opacity: 1; transform: none; }
  .lp-btn:hover,
  .lp-cell:hover,
  .lp-pill:hover { transform: none; }
}

@media print {
  .lp-header,
  .lp-phone,
  .lp-burger,
  .lp-skip { display: none !important; }
  .lp-section { padding: 1.5rem 0; }
  .lp-bg-orange,
  .lp-bg-ink { background: #fff !important; color: #000 !important; }
  .lp-js .lp-reveal { opacity: 1 !important; transform: none !important; }
}
