/* The coming-soon page (static/coming-soon/index.html). The .scs rules below
   the base block are flossr-non-lovable's StoreComingSoonHero.css unchanged;
   the base block replaces the Tailwind reset and Google Fonts it relied on,
   and the dialog block replaces the Radix dialog's Tailwind classes. */

@font-face { font-family: "Poppins"; src: url("/fonts/Poppins-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/Poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/Poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/Poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/Poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}
/* Form controls do not inherit the font on their own. */
button, input { font: inherit; }
img, video, svg { display: block; }
h1, h2, h3, p { margin: 0; }

.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;
}

/* ── Signup popup: native <dialog> in place of the Radix one ── */
.scs-dialog {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  width: calc(100% - 2rem);
  max-width: 440px;
  padding: 1.75rem;
  border: 0;
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgb(0 0 0 / 25%);
}

.scs-dialog[open] {
  display: flex;
}

.scs-dialog::backdrop {
  background: rgb(0 0 0 / 80%);
}

.scs-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #555;
  cursor: pointer;
}

.scs-dialog-close:hover,
.scs-dialog-close:focus-visible {
  background: #f1f1f1;
}

.scs-dialog-close svg,
.scs-done svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scs-done svg {
  flex-shrink: 0;
}

.scs-error {
  margin: 0;
  color: #b42318;
  font-size: 14px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

.scs {
  --scs-green: #15803d;
  --scs-gradient: linear-gradient(#0164e6, #4495ff);
  --scs-ink: #1a1a1a;
  --scs-bar-h: 40px;

  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--scs-ink);
}

/* ── Kickstarter bar ── */
.scs-bar {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  height: var(--scs-bar-h);
  padding: 0 1rem;
  background: var(--scs-green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.scs-bar-pwl {
  display: none;
}

.scs-bar-sep {
  margin: 0 0.25rem;
}

/* The shared logo.svg is white: as-is over the phone video, black on desktop. */
.scs-logo {
  position: absolute;
  z-index: 2;
  top: calc(var(--scs-bar-h) + 1.1rem);
  left: 1.25rem;
  height: 22px;
  width: auto;
}

/* ── Hero, phones: full-bleed video, copy + CTA on a bottom scrim ── */
.scs-hero {
  position: relative;
  /* Phones: bar + hero make up the first screen. */
  height: calc(100dvh - var(--scs-bar-h));
  min-height: 480px;
}

.scs-media {
  position: absolute;
  inset: 0;
  background: url("/videos/hero/mobile-hero-v2.jpg") center / cover no-repeat;
  overflow: hidden;
}

.scs-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scs-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: clamp(64px, 18vw, 96px);
  height: auto;
}

.scs-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 5rem 1.25rem 2rem;
  background: linear-gradient(to bottom, transparent, rgb(0 0 0 / 65%) 45%);
  color: #fff;
}

.scs-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.scs-dot {
  flex-shrink: 0;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: #5fcf7a;
}

.scs-title {
  margin: 0;
  font-size: clamp(34px, 10vw, 46px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.scs-lede {
  margin: 0 0 0.5rem;
  font-size: 15px;
  line-height: 1.4;
}

.scs-lede strong {
  font-weight: 700;
}

/* Desktop splits the copy into a top and a bottom group; phones ignore them. */
.scs-group {
  display: contents;
}

.scs-features,
.scs-sub,
.scs-mascot {
  display: none;
}

.scs-flag {
  width: 1.2em;
  height: 0.75em;
  margin-right: 0.5rem;
}

/* ── Phones: second screen ── */
.scs-more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 5dvh, 3rem);
  min-height: 100dvh; /* a full second screen, content centred in it */
  padding: 3rem 1.25rem;
}

.scs-more-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.scs-more-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3.5dvh, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.scs-more-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.scs-more-list img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.scs-more-list h3 {
  margin: 0 0 0.15rem;
  font-size: 17px;
  font-weight: 600;
}

.scs-more-list p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #555;
}

.scs-more-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

/* ── CTA button (also the popup's submit) ── */
.scs-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: min(485px, 100%);
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--scs-gradient);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s ease;
}

.scs-cta:disabled {
  opacity: 0.75;
  cursor: default;
}

/* Shine sweep: plays on hover and, idle, every few seconds. */
.scs-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgb(255 255 255 / 38%) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
  animation: scs-idle-sweep 4.5s ease-in-out 1.5s infinite;
  pointer-events: none;
}

.scs-cta .arrow {
  width: 24px;
  height: auto;
  filter: brightness(0) invert(1); /* black asset, white on the blue button */
  transition: transform 0.25s ease;
}

.scs-cta:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgb(1 100 230 / 40%);
}

.scs-cta:not(:disabled):hover::before {
  animation: none;
  transform: translateX(130%);
}

.scs-cta:not(:disabled):hover .arrow {
  transform: translateX(4px);
}

.scs-cta:not(:disabled):active {
  transform: translateY(0) scale(0.98);
}

.scs-cta:disabled::before {
  animation: none;
}

@keyframes scs-idle-sweep {
  0% {
    transform: translateX(-130%);
  }
  22%,
  100% {
    transform: translateX(130%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scs-cta,
  .scs-cta .arrow {
    transition: none;
  }
  .scs-cta::before {
    display: none;
  }
  .scs-cta:hover,
  .scs-cta:hover .arrow {
    transform: none;
  }
}

/* ── Signup popup (rendered in a portal, outside .scs) ── */
.scs-dialog {
  --scs-green: #15803d;
  --scs-gradient: linear-gradient(#0164e6, #4495ff);
  --scs-ink: #1a1a1a;
  color: var(--scs-ink);
}

.scs-dialog .scs-eyebrow {
  font-size: 13px;
  color: var(--scs-green);
}

.scs-dialog-title {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.scs-dialog-text {
  margin: 0 0 0.5rem;
  font-size: 15px;
  line-height: 1.45;
  color: #555;
}

.scs-dialog-fine {
  margin: 0;
  font-size: 12px;
  color: #6b6b6b; /* #888 failed WCAG AA contrast on white */
  text-align: center;
}

.scs-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.scs-form input {
  height: 56px;
  padding: 0 1.5rem;
  border: 1.5px solid #dedede;
  border-radius: 999px;
  background: #fff;
  color: var(--scs-ink);
  font-size: 16px; /* 16px stops iOS zooming on focus */
  outline: none;
  transition: border-color 0.2s ease;
}

.scs-form input:focus {
  border-color: #0164e6;
}

.scs-form .scs-cta {
  width: 100%;
}

.scs-done {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 20px;
  background: rgb(21 128 61 / 10%);
  font-weight: 500;
}

.scs-done p {
  margin: 0;
}

.scs-done svg {
  color: var(--scs-green);
}

/* ── Desktop: media card left, copy right, all in one screen ── */
@media (min-width: 860px) {
  .scs {
    height: 100dvh;
    overflow: hidden;
  }

  .scs-bar {
    font-size: 14px;
  }

  .scs-bar-pwl {
    display: inline;
  }

  .scs-logo {
    top: calc(var(--scs-bar-h) + 24px);
    left: 55px;
    height: 30px;
    filter: brightness(0);
  }

  .scs-hero {
    flex: 1;
    min-height: 0;
    height: auto;
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(2rem, 4vw, 5rem);
    width: 100%;
    max-width: 1920px;
    margin-inline: auto;
    padding: 80px 55px 32px; /* top clears the logo */
  }

  .scs-media {
    position: relative;
    width: 100%;
    max-width: 1040px;
    height: 100%;
    justify-self: start;
    border-radius: 20px;
    background-image: url("/videos/hero/desktop-hero-v2.jpg");
    background-position: center top;
  }

  .scs-media video {
    object-position: center top;
  }

  .scs-badge {
    top: clamp(12px, 1.6vw, 24px);
    right: clamp(12px, 1.6vw, 24px);
    width: clamp(80px, 7vw, 120px);
  }

  /* Copy spans the card's full height: headline block on top, CTA block at the bottom. */
  .scs-content {
    position: static;
    justify-content: space-between;
    gap: 1rem;
    max-width: 640px;
    padding: clamp(0.25rem, 1.5vh, 1.5rem) 0;
    background: none;
    color: var(--scs-ink);
  }

  .scs-group {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 3.4vh, 2.75rem);
  }

  .scs-eyebrow {
    font-size: clamp(16px, 1.2vw, 21.59px);
  }

  .scs-title {
    max-width: none; /* the <br> sets the two lines */
    /* Scales with height too, so tall screens fill the column instead of leaving a gap. */
    font-size: clamp(36px, min(4.8vw, 7.2vh), 84px);
  }

  .scs-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.5rem, 2vh, 1.35rem);
    margin: clamp(0.25rem, 1.5vh, 1rem) 0 0; /* extra air under the headline */
    padding: 0;
    list-style: none;
    font-size: clamp(15px, min(1.4vw, 2.3vh), 22px);
    font-weight: 500;
  }

  .scs-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  /* Brand-blue bullet. */
  .scs-features li::before {
    content: "";
    flex-shrink: 0;
    width: 0.45em;
    height: 0.45em;
    border-radius: 50%;
    background: #0164e6;
  }

  .scs-lede {
    margin: 0;
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.35;
    color: #444;
  }

  .scs-lede strong {
    color: var(--scs-ink);
  }

  .scs-content .scs-cta {
    height: 62px;
    font-size: clamp(16px, 1.3vw, 20px);
  }

  .scs-sub {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: clamp(15px, 1.1vw, 18.6px);
    font-weight: 500;
  }

  .scs-more {
    display: none;
  }

  /* Hannes, bottom-right, pointing back at the CTA. */
  .scs-mascot {
    display: block;
    position: absolute;
    right: clamp(16px, 3vw, 64px);
    bottom: clamp(8px, 2vh, 32px);
    width: clamp(130px, 12vw, 220px);
    height: auto;
    transform: rotate(-5.93deg);
    filter: drop-shadow(0 3px 2px rgb(0 0 0 / 55%));
    pointer-events: none;
  }
}

/* Tall enough for Hannes: lift the CTA block so he points at it from below. */
@media (min-width: 860px) and (min-height: 821px) {
  .scs-content {
    padding-bottom: clamp(70px, 6vw, 120px);
  }
}

/* Short laptop screens: no room for Hannes under the CTA. */
@media (min-width: 860px) and (max-height: 820px) {
  .scs-mascot {
    display: none;
  }
}

/* Very short screens: drop the Sweden line so the CTA block stays inside the card. */
@media (min-width: 860px) and (max-height: 720px) {
  .scs-sub {
    display: none;
  }
}

/* Very short screens (e.g. 1280×600): tighter rhythm so the copy stays inside the card. */
@media (min-width: 860px) and (max-height: 640px) {
  .scs-group {
    gap: 0.6rem;
  }

  .scs-features {
    gap: 0.3rem;
  }
}
