/* Design tokens */
:root {
  --bg: #fdfbf7;
  --ink: #1a1a1a;
  --muted: #8a8a8a;
  --green: #55a665;
  --green-dark: #489156;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --font-sans: "Fustat", system-ui, -apple-system, sans-serif;
  --font-script: "October Wish", "Segoe Script", cursive;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}

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

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

.page {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

@media (min-width: 480px) {
  .page {
    max-width: 26rem;
    padding-top: 2rem;
  }
}

@media (min-width: 768px) {
  .page {
    max-width: 32rem;
    padding-bottom: 3.5rem;
  }
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.logo {
  margin: 3rem 0 1.25rem;
  text-align: center;
  font-size: clamp(2.95rem, 9vw, 2.85rem);
  line-height: 1.05;
}

.logo--footer {
  margin-bottom: 1rem;
}

.hero-visual {
  margin: 0 -1.25rem 1.5rem;
}

@media (min-width: 480px) {
  .hero-visual {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-image-wrap {
  position: relative;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-xl);
}

.hero-logo-overlay {
  display: none;
}

.hero-bubble {
  display: none;
}

.speech-bubble {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-18%);
  max-width: 11.5rem;
  padding: 0.55rem 0.65rem 0.6rem;
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: 0 4px 18px rgb(0 0 0 / 8%);
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 28%;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fff;
}

.speech-bubble__label {
  display: block;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  font-family: var(--font-sans);
}

.speech-bubble__text {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
}

@media (min-width: 380px) {
  .speech-bubble {
    max-width: 12.5rem;
    padding: 0.65rem 0.75rem 0.7rem;
  }

  .speech-bubble__text {
    font-size: 0.75rem;
  }
}

body[data-variant="B"] .page {
  padding-top: 0;
}

body[data-variant="B"] .hero-visual {
  margin-bottom: 0.25rem;
}

body[data-variant="B"] .hero-image-wrap--b {
  overflow: hidden;
}

body[data-variant="B"] .hero-image--b {
  border-radius: 0;
}

body[data-variant="B"] .hero-logo-overlay {
  display: block;
  position: absolute;
  top: clamp(1.2rem, 5vw, 2rem);
  left: 50%;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: clamp(3.8rem, 17vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0.015em;
  text-align: center;
  text-shadow: 0 5px 18px rgb(0 0 0 / 12%);
  transform: translateX(-50%);
}

body[data-variant="B"] .hero-bubble {
  position: absolute;
  top: 18%;
  right: clamp(0.85rem, 3vw, 1.4rem);
  z-index: 2;
  display: block;
  width: min(42vw, 15.25rem);
}

body[data-variant="B"] .hero-bubble__label {
  display: block;
  margin: 0 0 0.28rem 0.8rem;
  color: #fff;
  font-size: clamp(0.8rem, 2.6vw, 0.95rem);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 3px 12px rgb(0 0 0 / 18%);
}

body[data-variant="B"] .speech-bubble--b {
  position: relative;
  top: auto;
  left: auto;
  max-width: none;
  padding: 0.95rem 1rem 1rem;
  background: rgb(255 253 248 / 96%);
  border-radius: 1.35rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 10%);
  transform: none;
}

body[data-variant="B"] .speech-bubble--b::after {
  display: none;
}

body[data-variant="B"] .speech-bubble__text--b {
  font-size: clamp(0.9rem, 4.1vw, 1.25rem);
  font-weight: 500;
  line-height: 1.38;
  color: #485044;
  letter-spacing: -0.01em;
}

@media (min-width: 480px) {
  body[data-variant="B"] .hero-bubble {
    top: 19%;
    right: 1rem;
    width: min(39vw, 15rem);
  }
}

.hero-headline {
  margin: 0;
  text-align: center;
  font-size: clamp(1.825rem, 4.2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.4;
  padding: 0 1.7rem;
}

.hero-headline__emph {
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--ink);
}

/* Edge-to-edge carousel */
.app-showcase {
  margin-top: 5.25rem;
}

body[data-variant="B"] .app-showcase {
  margin-top: 40px;
}

.carousel-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-bottom: 0.25rem;
  overflow: hidden;
}

.app-swiper {
  overflow: visible;
  padding-bottom: 1.75rem;
}

.app-swiper .swiper-slide {
  width: min(76vw, 17.5rem);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: auto;
}



.phone-frame {
  width: 100%;
  border-radius: 55px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgb(0 0 0 / 12%);
  background: #111;
}

.phone-frame img {
  width: 100%;
  height: auto;
  vertical-align: top;
}

.tagline {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 1.125rem);
  font-weight: 600;
  color: var(--ink);
}

.tagline__sans {
  font-family: var(--font-sans);
}

.tagline__script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.15em;
}

.tagline__sep {
  margin: 0 0.35rem;
  font-weight: 500;
  color: var(--muted);
}

/* Footer CTA */
.cta {
  margin-top: 80px;
  text-align: center;
}

.cta__launch {
  margin: 70px 0 0.35rem;
  font-size: 1.7rem;
}

.cta__sub {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}

.signup {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 100%;
}

.signup__input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid #d6d6d6;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
}

.signup__input::placeholder {
  color: #a8a8a8;
}

.signup__input:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-color: transparent;
}

.signup__input:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  background: #f5f3ee;
}

.signup__submit {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 15px;
  background: var(--green);
  cursor: pointer;
  transition: background 0.15s ease;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 500;
}

.signup__submit:hover {
  background: var(--green-dark);
}

.signup__submit:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.signup__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.signup__feedback {
  margin: -0.15rem 0 0;
  font-size: 0.9375rem;
  text-align: center;
}

.signup__feedback--ok {
  color: #2f6f3f;
}

.signup__feedback--err {
  color: #b42318;
}

.signup__feedback[hidden] {
  display: none;
}

/* Bottom bar */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 20px 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.site-footer__email {
  color: inherit;
  text-decoration: none;
  word-break: break-all;
  text-align: right;
}

.site-footer__email:hover {
  text-decoration: underline;
}

@media (max-width: 360px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .site-footer__email {
    text-align: left;
  }
}

@media (min-width: 480px) {
  .app-swiper .swiper-slide {
    width: min(72vw, 18rem);
  }
}

@media (min-width: 900px) {
  .carousel-bleed {
    width: auto;
    margin-left: 0;
    margin-right: 0;
    overflow: visible;
  }

  .app-swiper {
    overflow: visible;
    padding-bottom: 0.75rem;
  }

  .app-swiper .swiper-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(1.25rem, 2vw, 2rem);
    transform: none !important;
  }

  .app-swiper .swiper-slide {
    width: min(26vw, 13rem);
    flex: 0 0 min(26vw, 20rem);
  }
  body[data-variant="B"] .hero-image--b {
    border-radius: 2rem;
  }
  body[data-variant="B"] .hero-image-wrap {
    overflow: visible;
    padding:20px;
  }
}