@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;700;900&family=Space+Grotesk:wght@300;700&display=swap');

:root {
  --brand-primary: #0066FF;
  --brand-accent: #003B8E;
  --color-brand-dark: #0a0f1e;
}

[data-theme='dry'] {
  --brand-primary: #FF6321;
  --brand-accent: #FF9E66;
}

body {
  background-color: var(--color-brand-dark);
  color: white;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Benefit cards: make description text fully white (all resolutions) */
#benefits .benefit-slide p {
  color: #ffffff !important;
}

.benefit-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  border: 1px solid #0a0f1e;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.benefit-dot:hover {
  transform: scale(1.08);
  border-color: #0a0f1e;
}

.benefit-dot.is-active {
  background: #0a0f1e;
  border-color: #0a0f1e;
}

.benefits-carousel-track {
  transition: transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
}

/* App feature section (desktop): pull side cards closer to the mockup */
@media (min-width: 1024px) {
  .app-features-grid {
    column-gap: 0.5rem !important; /* tighten from Tailwind lg:gap-8 */
  }

  .app-features-grid > ul {
    max-width: 22rem;
  }

  .app-features-grid > ul:first-child {
    justify-self: end;
  }

  .app-features-grid > ul:last-child {
    justify-self: start;
  }
}

/* Comparison heading: tighter top spacing on laptop + large desktop (Tailwind py-16 = 4rem top) */
@media (min-width: 1024px) {
  .comparison-heading-wrap {
    padding-top: 0.5rem;
  }
}

@media (min-width: 1280px) {
  .comparison-heading-wrap {
    padding-top: 0;
  }
}

/* Section titles (laptop/desktop): 72px + centered */
@media (min-width: 1024px) {
  /* App section title */
  section.hidden.lg\:block h2.font-display,
  /* Services section title ("WHAT ALL YOU CAN DO WITH WASHTYM") */
  .services-section h2.font-display,
  /* How / Partnership / Benefits / FAQ / Contact / Comparison titles */
  #how h2.font-display,
  #partnership h2.font-display,
  #benefits h2.font-display,
  #faq h2.font-display,
  #contact h2.font-display,
  .comparison-heading-wrap h2.font-display {
    font-size: 72px !important;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Terms page hero title (laptop/desktop): 72px + Anton */
@media (min-width: 1024px) {
  .terms-page .hero-title {
    font-size: 72px !important;
    font-family: 'Anton', sans-serif;
  }
}

/* Terms page hero title line colors (all resolutions) */
.terms-page .hero-title .terms-hero-line-1 {
  color: #000000 !important;
}

.terms-page .hero-title .terms-hero-line-2 {
  color: var(--brand-primary) !important;
}

/* Terms page navbar: dark oval background + white menu links (all resolutions) */
.terms-page nav .max-w-7xl.mx-auto {
  background-color: rgb(10 15 30) !important;
}

.terms-page nav .hidden.lg\:flex,
.terms-page nav .hidden.lg\:flex a,
.terms-page nav .hidden.lg\:flex a:hover {
  color: #ffffff !important;
}

/* Terms page content: make side headings slightly bolder */
.terms-page section .max-w-5xl h2,
.terms-page section .max-w-5xl h3 {
  font-weight: 800 !important;
}

/* Terms page typography (mobile + tablet): title 47px, headings 19px, body 17px */
@media (max-width: 1023px) {
  .terms-page .hero-title {
    font-size: 47px !important;
    line-height: 0.8 !important;
  }

  .terms-page section .max-w-5xl h2,
  .terms-page section .max-w-5xl h3 {
    font-size: 19px !important;
  }

  .terms-page section .max-w-5xl p,
  .terms-page section .max-w-5xl li {
    font-size: 17px !important;
    line-height: 1.75 !important;
  }
}

/* Services title block: center in laptop/desktop */
@media (min-width: 1024px) {
  .services-section .grid.lg\:grid-cols-12 > .lg\:col-span-8 {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
  }
}

.text-stroke {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  color: transparent;
}

.text-stroke-primary {
  -webkit-text-stroke: 2px var(--brand-primary);
  color: transparent;
}

.text-stroke-accent {
  -webkit-text-stroke: 1px var(--brand-accent);
  color: transparent;
}

.text-stroke-black {
  -webkit-text-stroke: 2px #000000;
  color: transparent;
}

.theme-transition {
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease, stroke 0.5s ease;
}

.bg-grid {
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Hero badge: full-width on tiny screens, shrink-wrap from 350px+ */
#hero-reveal .hero-badge {
  display: block;
  width: 100%;
  max-width: calc(100vw - 3rem);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 300px) {
  #hero-reveal .hero-badge {
    display: inline-flex;
    width: max-content;
    max-width: calc(100vw - 3rem);
    white-space: nowrap;
  }
}

/* Navbar: add gap between logo and contact button on 300px–350px */
@media (min-width: 300px) and (max-width: 375px) {
  nav .max-w-7xl {
    gap: 1rem !important;
  }
}

/* Navbar: reduce contact button size on 300px–375px */
@media (min-width: 300px) and (max-width: 375px) {
  nav a[href="#contact"] {
    padding: 0.9rem 1.5rem !important;
    font-size: 10px !important;
  }
}

/* Hero badge: scale text a bit between 350px–415px to avoid overflow */
@media (min-width: 300px) and (max-width: 415px) {
  #hero-reveal .hero-badge {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  #hero-reveal .hero-badge > span {
    font-size: clamp(8px, 2.25vw, 10px);
    letter-spacing: clamp(0.22em, 0.9vw, 0.4em);
  }
}

/* Hero: wash mode — vertical gradient (deep navy top → midnight blue) + grid; dry mode — warm orange tint */
#hero.bg-grid {
  background-color: #030712;
  background-image:
    linear-gradient(180deg, #0c182e 0%, #0a1528 28%, #050a18 62%, #030712 100%),
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
}

/* Dry hero: reference gradient — dark brownish-orange top → near-black bottom */
[data-theme='dry'] #hero.bg-grid {
  background-color: #000000;
  background-image:
    linear-gradient(
      180deg,
      #4b2c21 0%,
      #342019 24%,
      #1f1410 44%,
      #0f0a08 62%,
      #050302 78%,
      #000000 100%
    ),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
}

.brutal-border {
  border: 2px solid white;
}

.brutal-shadow {
  box-shadow: 8px 8px 0px var(--brand-primary);
}

.brutal-shadow-accent {
  box-shadow: 8px 8px 0px var(--brand-accent);
}

.skew-up {
  transform: skewY(-3deg);
}

.skew-down {
  transform: skewY(3deg);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.animate-marquee {
  animation: marquee 20s linear infinite;
}

.animate-marquee-slow {
  animation: marquee 40s linear infinite;
}

.animate-marquee-reverse {
  animation: marquee-reverse 25s linear infinite;
}

.glass-dark {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.neon-shadow {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.hero-title {
  font-size: clamp(5rem, 18vw, 15rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  font-family: 'Anton', sans-serif;
  --hero-scroll: 0;
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(5.5rem, 22vw, 15rem);
  }
}


@media (min-width: 300px) and (max-width: 375px) {
  .hero-title {
    margin-top: 10px !important;
    font-size: 110px !important;
  }
}

/* Hero title: boost size for 350px–767px screens */
@media (min-width: 375px) and (max-width: 767px) {
  .hero-title {
    margin-top: -5px !important;
    font-size:115px !important;
  }
}

/* Hero subline: slightly smaller for 350px–767px */
@media (min-width: 300px) and (max-width: 767px) {
  #hero .hero-subline-wrap p {
    font-size: clamp(1rem, 2.6vw, 1.15rem);
    line-height: 1.65;
  }
}

/* Hero theme toggle (Switch Mode): slightly narrower for 300px–767px
   Wash/default is tighter; dry overrides below. */
@media (min-width: 300px) and (max-width: 767px) {
  /* Wash (default) */
  #theme-toggle {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
    gap: 0.625rem;
  }
  #theme-toggle #theme-icon-container {
    width: 2.75rem;
    height: 2.625rem;
    min-width: 2.75rem;
    min-height: 2.625rem;
  }
  #theme-toggle #theme-icon-container svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  #theme-toggle #theme-toggle-text {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  /* Dry */
  [data-theme='dry'] #theme-toggle {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
    gap: 0.625rem;
  }
  [data-theme='dry'] #theme-toggle #theme-icon-container {
    width: 2.5rem;
    height: 2.625rem;
    min-width: 2.5rem;
    min-height: 2.625rem;
  }
  [data-theme='dry'] #theme-toggle #theme-icon-container svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  [data-theme='dry'] #theme-toggle #theme-toggle-text {
    font-size: 1.05rem;
    line-height: 1.25;
  }
}

/* Hero primary CTA (Start Washing): slightly smaller on mobile, wash theme only */
@media (min-width: 300px) and (max-width: 767px) {
  html:not([data-theme='dry']) #hero-start-cta {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    font-size: 1.125rem;
  }
}

/* Intro bubble line: exactly two lines (incl. emoji), 16px, between 350px–767px */
@media (min-width: 300px) and (max-width: 767px) {
  #introduction .intro-two-line {
    font-size: 19px;
    line-height: 1.35;
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

/* Introduction section: reduce top spacing for 350px–767px */
@media (min-width: 300px) and (max-width: 767px) {
  #introduction {
    padding-top: 2.5rem; /* default is pt-24 (6rem) */
  }
}

/* Introduction section: reduce internal vertical gaps for 350px–767px */
@media (min-width: 300px) and (max-width: 767px) {
  /* Tailwind's `space-y-20` adds 5rem between direct children */
  #introduction .space-y-20 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 3.5rem;
  }
}

/* Introduction: slightly tighter top padding on laptop + large desktop (Tailwind pt-24 = 6rem) */
@media (min-width: 1024px) {
  #introduction {
    padding-top: 5rem;
  }
}

@media (min-width: 1280px) {
  #introduction {
    padding-top: 4.5rem;
  }
}

/* Work hubs: control specific label wrapping on laptop/desktop */
@media (min-width: 1024px) {
  #work-hubs .wh-break-desktop {
    display: block;
  }

  #work-hubs .wh-nowrap-desktop {
    white-space: nowrap;
  }
}

/* Services section: reduce top spacing for 350px–767px */
@media (min-width: 350px) and (max-width: 767px) {
  .services-section {
    padding-top: 3.5rem !important; /* default pt-28 (7rem) */
  }

  /* Reduce gap below services section heading */
  .services-section > .max-w-7xl > .grid.lg\:grid-cols-12 {
    margin-bottom: 3rem !important; /* reduce from mb-24 (6rem) */
  }
}

@media (min-width: 300px) and (max-width: 350px) {
  .services-section {
    padding-top: 3rem !important; /* default pt-28 (7rem) */
  }

  /* Reduce gap below services section heading */
  .services-section > .max-w-7xl > .grid.lg\:grid-cols-12 {
    margin-bottom: 3rem !important; /* reduce from mb-24 (6rem) */
  }
}

/* Services section: reduce top spacing for laptop/desktop */
@media (min-width: 1024px) {
  .services-section {
    padding-top: 5.5rem !important; /* default pt-28 (~7rem) */
    /* Pull desktop app block up: no dead space before "THE NEXT-GEN LAUNDRY" */
    padding-bottom: 0 !important;
  }

  /* Title → cards: remove large Tailwind mb-24 gap on laptop / large desktop */
  .services-section > .max-w-7xl > .grid.lg\:grid-cols-12 {
    margin-bottom: 5.3rem !important;
  }

  /* Desktop-only app section (hidden lg:block): drop vertical padding-top from py-10 / md:py-12 */
  section.hidden.lg\:block {
    padding-top: 5.5rem !important;
  }
}

/* Benefits + Comparison headings: reduce top spacing for 350px–767px */
@media (min-width: 300px) and (max-width: 767px) {
  #benefits {
    padding-top: 2.5rem; /* default pt-24 (6rem) */
  }

  #benefits .mb-24 {
    margin-bottom: 3rem; /* tighten heading-to-content gap */
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  #benefits h2.font-display {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Comparison heading wrapper uses py-16 */
  .comparison-heading-wrap {
    padding-top: 2.5rem !important;
    padding-bottom: 2rem;
  }
}

/* Benefits: adjust spacing for 300px-350px */
@media (min-width: 300px) and (max-width: 767px) {
  #benefits {
    padding-top: 3.5rem !important;
  }

  #benefits .mb-24 {
    margin-bottom: 2rem !important;
  }
}

/* Comparison heading: reduce spacing for 300px-350px */
@media (min-width: 375px) and (max-width: 767px) {
  .comparison-heading-wrap {
    
    padding-bottom: 3rem !important;
  }
}

/* Comparison heading: reduce spacing for 375px-767px */
@media (min-width: 375px) and (max-width: 767px) {
  .comparison-heading-wrap {
    padding-top: 2.5rem !important;
  }
}

/* Comparison heading: force two lines for 350px-375px */
@media (min-width: 340px) and (max-width: 375px) {
  .comparison-heading-wrap h2 {
    display: block !important;
  }

  .comparison-heading-wrap h2 span.whitespace-nowrap {
    display: block !important;
    white-space: normal !important;
  }
}

/* Benefits section: breathing room above heading on laptop + large desktop */
@media (min-width: 1024px) {
  #benefits {
    padding-top: 0px;
  }
  
  #benefits .mb-24 {
    margin-bottom:3rem;
  }
}

@media (min-width: 1280px) {
  #benefits {
    padding-top: 5px;
  }
}

/* Work hubs: slightly tighter top padding on laptop + large desktop (Tailwind py-24 = 6rem) */
@media (min-width: 1024px) {
  #work-hubs {
    padding-top: 5rem;
  }
}

@media (min-width: 1280px) {
  #work-hubs {
    padding-top: 4.5rem;
  }
}

/* Work hubs: slightly tighter top padding on small screens (Tailwind py-24 = 6rem) */
@media (min-width: 300px) and (max-width: 767px) {
  #work-hubs {
    padding-top: 3.75rem;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* Work hubs for 300px-350px: ensure items are fully visible */
@media (min-width: 300px) and (max-width: 767px) {
  #work-hubs {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-bottom: 3rem !important;
  }

  #work-hubs .max-w-5xl {
    max-width: 100% !important;
    padding-left: 0;
    padding-right: 0;
  }

  #work-hubs h2 {
    font-size: 90px !important;
  }

  #work-hubs .grid {
    gap: 0.5rem !important;
  }

  #work-hubs .workhub-item {
    padding: 0.75rem !important;
    gap: 0.5rem !important;
  }

  #work-hubs .workhub-label,
  #work-hubs .workhub-label__inner {
    font-size: 14px !important;
    white-space: normal !important;
  }

  #work-hubs .wh-txt {
    font-size: 16px !important;
  }

  #work-hubs .wh-sub {
    font-size: 16px !important;
  }
}

/* Work hubs feature rows: keep labels single-line without clipping on 350px–767px */
@media (min-width: 300px) and (max-width: 767px) {
  #work-hubs .workhub-item {
    padding: 1rem; /* was p-6 */
    gap: 0.75rem; /* slightly tighter than gap-4 */
  }

  #work-hubs .workhub-item > div.w-10.h-10 {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
  }

  #work-hubs .workhub-item img.w-10.h-10 {
    width: 2.25rem;
    height: 2.25rem;
  }

  #work-hubs .workhub-label,
  #work-hubs .workhub-label__inner {
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.15;
  }
}

/* App section (mobile view): reduce top padding a bit on 350px–767px */
@media (min-width: 300px) and (max-width: 767px) {
  section.lg\:hidden {
    padding-top: 1rem; /* Tailwind py-10 = 2.5rem */
  }
}

/* App section (mobile view): further reduce top padding for 300px-350px */
@media (min-width: 300px) and (max-width: 350px) {
  section.lg\:hidden {
    padding-top: 0.5rem !important;
  }
}

/* How-it-works: reduce the big top gap on 350px–767px */
@media (min-width: 350px) and (max-width: 767px) {
  #how {
    padding-top: 5rem; /* Tailwind pt-24 = 6rem */
  }

  #how .mb-32 {
    margin-bottom: 6rem; /* Tailwind mb-32 = 8rem */
  }
}

/* How-it-works: reduce bottom padding on laptop + large desktop */
@media (min-width: 1024px) {
  #how {
    padding-bottom: 3rem; /* reduce from pb-16 (4rem) */
  }
}

@media (min-width: 1280px) {
  #how {
    padding-top: 5.5rem !important;
    padding-bottom: 1.5rem; /* further reduce for large desktop */
  }
}

/* How-it-works: reduce bottom gap for 300px-350px */
@media (min-width: 300px) and (max-width: 767px) {
  #how {
    padding-bottom: 1rem !important; /* reduce from pb-16 (4rem) */
    padding-top: 3.5rem !important;
  }

  #how .mb-32 {
    margin-bottom: 7rem !important;
  }
}

/* Partnership section: reduce bottom spacing for 350px–767px */
 @media (min-width: 300px) and (max-width: 767px) {
  #partnership {
    padding-bottom: 2.5rem; /* default pb-24 (6rem) */
  }
} 

/* Partnership section: increase gap around title for 300px-350px */
@media (min-width: 300px) and (max-width: 767px) {
  #partnership {
    padding-top: 3.5rem !important;
    padding-bottom: 1rem !important;
  }

  #partnership .text-center.mb-14 {
    margin-bottom: 5.5rem !important;
  }
}

/* Contact section: reduce top spacing for 350px–767px */
@media (min-width: 350px) and (max-width: 767px) {
  #contact {
    padding-top: 1rem; /* default is py-32 (8rem) */
    padding-bottom: 3.5rem; /* reduce extra space below the form/button */
  }

  #contact h2.mb-16 {
    margin-top: -1.25rem;
    margin-bottom: 3rem;
  }
}

/* Contact section: add proper padding for 300px-350px  */
 @media (min-width: 300px) and (max-width: 375px) {
  #contact {
    padding-left: 1rem !important;
    padding-right: 1.5rem !important;
    padding-top: 1rem !important;
    padding-bottom: 3rem !important;
  }

  #contact .max-w-5xl {
    max-width: 100% !important;
    padding-left: 0;
    padding-right: 0;
  }

  #contact h2 {
    font-size: 28px !important;
    margin-bottom: 3rem !important;
  }

  #contact .grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  #contact h3 {
    font-size: 28px !important;
  }

  #contact input,
  #contact textarea,
  #contact button {
    font-size: 20px !important;
  }
}

/* Contact section: reduce top spacing for laptop/desktop */
@media (min-width: 1024px) {
  #contact {
    padding-top: 4rem !important; /* default is py-32 (8rem) */
    padding-bottom: 4rem; /* reduce gap before the image section */
  }

  #contact h2.cnt-head {
    margin-top: 0;
  }
}

@media (min-width: 1200px) {
  #contact {
    padding-top: 5.5rem !important; /* default is py-32 (8rem) */
    padding-bottom: 4rem; /* reduce gap before the image section */
  }
}

/* FAQ answers: force white text on 350px–767px */
@media (min-width: 350px) and (max-width: 767px) {
  #faq .faq-content,
  #faq .faq-content * {
    color: #ffffff !important;
  }
}

/* FAQ answers: force white text on laptop/desktop */
@media (min-width: 1024px) {
  #faq .faq-content,
  #faq .faq-content * {
    color: #ffffff !important;
  }
}

/* FAQ section: reduce top spacing for 350px–767px */
@media (min-width: 350px) and (max-width: 767px) {
  #faq {
    padding-top: 3rem; /* default is py-24 (6rem) */
  }

  /* Tighten spacing under the FAQ title */
  #faq .mb-20 {
    margin-bottom: 2.5rem;
  }
}

/* FAQ section: reduce spacing above and below title for 300px-350px */
@media (min-width: 300px) and (max-width: 767px) {
  #faq {
    padding-top: 3rem !important;
    padding-bottom: 1rem !important;
  }

  /* Tighten spacing under the FAQ title */
  #faq .mb-20 {
    margin-bottom: 3rem !important;
  }
}

/* FAQ section: reduce bottom padding for 300px-375px */
@media (min-width: 300px) and (max-width: 375px) {
  #faq {
    padding-bottom: 2.5rem !important;
  }
}

/* FAQ section: reduce top spacing for laptop/desktop */
@media (min-width: 1024px) {
  #faq {
    padding-top: 4rem; /* default is py-24 (6rem) */
  }
  
  #faq .mb-20 {
    margin-bottom: 4rem;
  }
}

/* How-it-works cards: keep description black, but turn white on hover (all resolutions) */
#how .group p.text-black\/70 {
  color: #000000 !important;
}

#how .group:hover p.text-black\/70 {
  color: #ffffff !important;
}


/* Section titles: unify tighter line-height on 350px–767px
   (exclude hero, introduction, and work hubs sections) */
@media (min-width: 300px) and (max-width: 375px) {
  section:not(#hero):not(#introduction):not(#work-hubs) h2.font-display {
    font-size: 40px !important;
    line-height: 0.8 !important;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

@media (min-width: 376px) and (max-width: 767px) {
  section:not(#hero):not(#introduction):not(#work-hubs) h2.font-display {
    line-height: 0.8 !important;
  }
}

/* Section titles: unify line-height on laptop/desktop
   (exclude hero, introduction, and work hubs sections) */
@media (min-width: 1024px) {
  section:not(#hero):not(#introduction):not(#work-hubs) h2.font-display {
    line-height: 0.8 !important;
  }
}

@keyframes hero-line-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title .hero-title-row > span {
  opacity: 0;
  animation: hero-line-in 0.7s ease-out forwards;
}

.hero-title .hero-title-row:nth-child(1) > span {
  animation-delay: 0.1s;
}

.hero-title .hero-title-row:nth-child(2) > span {
  animation-delay: 0.3s;
}

.hero-title .hero-title-row:nth-child(3) > span {
  animation-delay: 0.5s;
}

/* Scroll-linked transforms are applied in script.js (inline) for broad browser support */
.hero-title-row.hero-title-wash,
.hero-title-row.hero-title-done {
  will-change: transform;
}

/* Wash mode: WASH = primary outline; DRY / DONE = solid white */
.hero-title-wash > span {
  -webkit-text-stroke: 2px var(--brand-primary);
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-title-dry > span,
.hero-title-done > span {
  color: #ffffff;
  -webkit-text-stroke: 0 transparent;
  -webkit-text-fill-color: #ffffff;
}

/* Dry mode: DRY = bright orange outline (matches theme primary); WASH / DONE = solid white */
[data-theme='dry'] .hero-title-wash > span,
[data-theme='dry'] .hero-title-done > span {
  color: #ffffff;
  -webkit-text-stroke: 0 transparent;
  -webkit-text-fill-color: #ffffff;
}

[data-theme='dry'] .hero-title-dry > span {
  -webkit-text-stroke: 2px var(--brand-primary);
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Services cards: when theme is dry — white + peach wash card, orange dry card; watermarks match icon box color */
[data-theme='dry'] .service-card-wash {
  --service-wash-icon-bg: #ffe8dc;
  background-color: #ffffff;
  color: #000000;
}

/* Beat Tailwind `text-white` on the card + `text-white/80` on the body, and `.service-card-body { color: #fff !important }` */
[data-theme='dry'] .service-card-wash .service-card-heading {
  color: #000000 !important;
}

[data-theme='dry'] .service-card-wash .service-card-body {
  color: #000000 !important;
}

[data-theme='dry'] .service-card-wash .service-card-icon-wash {
  background-color: var(--service-wash-icon-bg) !important;
  color: var(--brand-primary);
}

/* Service card watermarks on hover: wash theme vs dry (white/orange cards) */
.service-card-wash .service-card-watermark-wash {
  color: rgba(255, 255, 255, 0.35);
}

/* Services (wash card): force body text pure white */
.service-card-wash .service-card-body {
  color: #ffffff !important;
}

[data-theme='dry'] .service-card-wash .service-card-watermark-wash {
  color: rgba(0, 0, 0, 0.22);
}

.service-card-dry .service-card-watermark-dry {
  color: rgba(0, 0, 0, 0.14);
}

[data-theme='dry'] .service-card-dry .service-card-watermark-dry {
  color: rgba(255, 255, 255, 0.42);
}

/* Slightly bolder watermark icon strokes */
.service-card-watermark svg {
  stroke-width: 2.6;
}

.service-card-watermark-dry svg {
  stroke-width: 3;
}

[data-theme='dry'] .service-card-dry {
  --service-dry-icon-bg: color-mix(in srgb, white 28%, var(--brand-primary));
  background-color: var(--brand-primary);
  color: #ffffff;
}

[data-theme='dry'] .service-card-dry .service-card-heading {
  color: #ffffff;
}

[data-theme='dry'] .service-card-dry .service-card-body {
  color: rgba(255, 255, 255, 0.92);
}

[data-theme='dry'] .service-card-dry .service-card-icon-dry {
  background-color: var(--service-dry-icon-bg) !important;
  color: #ffffff;
}

/* Narrow phones / small tablets: wash + dry card titles stay one line */
@media (min-width: 300px) and (max-width: 350px) {
  .service-card-wash .service-card-heading,
  .service-card-dry .service-card-heading {
    font-size: 22px;
    line-height: 1;
    white-space: nowrap;
  }
}


@media (min-width: 350px) and (max-width: 767px) {
  .service-card-wash .service-card-heading,
  .service-card-dry .service-card-heading {
    font-size: 25px;
    line-height: 1;
    white-space: nowrap;
  }
}

/* Comparison table: alternating rows — light orange in dry theme */
[data-theme='dry'] .comparison-row-alt td {
  background-color: color-mix(in srgb, var(--brand-primary) 18%, #ffffff) !important;
}

/* Comparison table: on mobile, keep both sides' first line aligned */
@media (min-width: 300px) and (max-width: 767px) {
  .comparison-table td {
    vertical-align: top;
  }
}

/* Comparison: dhobi “wear” row — on large screens, avoid extra space above shorter cell text */
@media (min-width: 1024px) {
  tr.comparison-row-valign-top-lg > td {
    vertical-align: top;
  }

  tr.comparison-row-valign-top-lg > td:last-child {
    padding-top: 1.55rem;
  }
}

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom Tailwind-like utilities for the theme colors */
.bg-primary { background-color: var(--brand-primary); }
.text-primary { color: var(--brand-primary); }
.border-primary { border-color: var(--brand-primary); }
.bg-accent { background-color: var(--brand-accent); }
.text-accent { color: var(--brand-accent); }
.border-accent { border-color: var(--brand-accent); }
.bg-brand-dark { background-color: var(--color-brand-dark); }

.font-display { font-family: 'Anton', sans-serif; }
.font-accent { font-family: 'Space Grotesk', sans-serif; }

/* Animation classes for Intersection Observer */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Benefits carousel: one slide fills the scrollport (no peek of next card) for mid-width phones */
#benefits-viewport,
.benefits-carousel-viewport {
  container-type: inline-size;
  container-name: benefits-carousel;
  /* Vertical scroll for the page; horizontal swipes handled in JS for the carousel */
  touch-action: pan-y;
}

#benefits-viewport img,
.benefits-carousel-viewport img {
  -webkit-user-drag: none;
  user-select: none;
}

@media (min-width: 300px) and (max-width: 695px) {
  #benefits-viewport #benefits-track {
    gap: 20px;
  }

  #benefits-viewport .benefit-slide {
    flex: 0 0 100cqw !important;
    width: 100cqw !important;
    max-width: 100cqw !important;
  }
}

/* Two slides visible: pair shares viewport width minus one track gap (matches gap-6) */
@media (min-width: 696px) and (max-width: 1200px) {
  #benefits-viewport #benefits-track {
    gap: 1.5rem;
  }

  #benefits-viewport .benefit-slide {
    flex: 0 0 calc((100cqw - 1.5rem) / 2) !important;
    width: calc((100cqw - 1.5rem) / 2) !important;
    max-width: calc((100cqw - 1.5rem) / 2) !important;
  }
}

/* Three slides visible: three columns minus two track gaps (matches gap-6) */
@media (min-width: 1201px) and (max-width: 2500px) {
  #benefits-viewport #benefits-track {
    gap: 1.5rem;
  }

  #benefits-viewport .benefit-slide {
    flex: 0 0 calc((100cqw - 3rem) / 3) !important;
    width: calc((100cqw - 3rem) / 3) !important;
    max-width: calc((100cqw - 3rem) / 3) !important;
  }
}

/* Benefits strip: off-screen slides are clipped; IO often never adds .active. */
#benefits-viewport .benefit-slide.reveal {
  opacity: 1;
  transform: none;
}

/* Introduction: heading first, bubble after heading finishes (single .reveal on wrapper) */
.reveal.intro-heading-bubble-stack {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.intro-heading-bubble-stack:not(.active) .intro-heading-lead,
.reveal.intro-heading-bubble-stack:not(.active) .intro-bubble-wrap {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

.intro-heading-bubble-stack .intro-heading-lead {
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro-heading-bubble-stack .intro-bubble-wrap {
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--intro-after-heading, 0.8s),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--intro-after-heading, 0.8s);
  will-change: transform, filter;
}

.reveal.intro-heading-bubble-stack.active .intro-heading-lead,
.reveal.intro-heading-bubble-stack.active .intro-bubble-wrap {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.intro-bubble-inner {
  position: relative;
  display: inline-block;
  max-width: min(100%, 42rem);
  padding: 1.25rem 1.75rem;
  border-radius: 1.75rem;
  background: linear-gradient(165deg, #f8fafc 0%, #ffffff 55%, #f1f5f9 100%);
  border: 1px solid rgba(0, 59, 142, 0.12);
  box-shadow:
    0 4px 6px -1px rgba(0, 59, 142, 0.06),
    0 20px 40px -12px rgba(0, 59, 142, 0.12);
  transform-origin: center center;
}

/* Animate the container (wrap) instead of inner */
.reveal.intro-heading-bubble-stack:not(.active) .intro-bubble-wrap {
  filter: blur(10px);
}

.intro-bubble-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.65) 35%,
    rgba(255, 255, 255, 0) 65%
  );
  transform: translateX(-35%);
  mix-blend-mode: screen;
}

.intro-bubble-inner::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-right: 1px solid rgba(0, 59, 142, 0.1);
  border-bottom: 1px solid rgba(0, 59, 142, 0.1);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 0 0 3px 0;
}

@keyframes intro-bubble-trend-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.86);
    filter: blur(10px);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, -1px, 0) scale(1.03);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0px);
  }
}

@keyframes intro-bubble-breathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -6px, 0) scale(1.01);
  }
}

@keyframes intro-bubble-sheen {
  0% {
    opacity: 0;
    transform: translateX(-35%);
  }
  15% {
    opacity: 0.55;
  }
  60% {
    opacity: 0.05;
    transform: translateX(35%);
  }
  100% {
    opacity: 0;
    transform: translateX(35%);
  }
}

/* Trending: blur-pop in + gentle breathe (on the CONTAINER) */
.reveal.intro-heading-bubble-stack.active .intro-bubble-wrap {
  animation:
    intro-bubble-trend-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both,
    intro-bubble-breathe 5s ease-in-out 1.25s infinite;
}

.reveal.intro-heading-bubble-stack.active .intro-bubble-inner::before {
  animation: intro-bubble-sheen 1.2s ease 0.45s 1;
}

@media (prefers-reduced-motion: reduce) {
  .intro-heading-bubble-stack .intro-heading-lead,
  .intro-heading-bubble-stack .intro-bubble-wrap {
    transition: none;
  }

  .reveal.intro-heading-bubble-stack.active .intro-bubble-wrap {
    /* Keep a single, quick entrance even with reduced motion */
    animation: intro-bubble-trend-in 0.45s ease-out 0s both;
  }
}

/* Contact hero: scale driven by scroll direction (see script.js) */
.contact-bg-zoom {
  min-height: 100%;
  min-width: 100%;
  transform: scale(1.075);
  will-change: transform;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-bg-zoom-mini {
  transform: scale(1);
  will-change: transform;
}

/* Contact image: swap to mobile asset on phones only (inline bg-image exists in HTML) */
@media (max-width: 767px) {
  #contact-bg-zoom-mini {
    background-image: url('../images/Contact_mbl.png') !important;
  }
}

@keyframes wave-float {
  0%   { transform: rotate(-6deg) scale(0.97) translateY(0px);   }
  25%  { transform: rotate(0deg)  scale(1)    translateY(-10px); }
  50%  { transform: rotate(6deg)  scale(1.03) translateY(0px);   }
  75%  { transform: rotate(0deg)  scale(1)    translateY(-10px); }
  100% { transform: rotate(-6deg) scale(0.97) translateY(0px);   }
}
.box-wave {
  animation: wave-float 6s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
}

@media (max-width: 640px) {
  .intro-head-h2 {
    font-size: 47px;
    text-align: center;
    line-height: 0.8;
  }
}


@media (min-width: 300px) and (max-width: 767px) {
    .wh-txt {
        font-size: 16px !important;
}
}

@media (min-width: 300px) and (max-width: 767px) {
    .wh-sub {
        font-size: 16px;
        
        font-family: Space Grotesk;
}
}

/* Work hubs intro paragraphs (#work-hubs): 20px from laptop up (beats Tailwind text-2xl) */
@media (min-width: 1024px) {
  .wh-txt {
    font-size: 20px !important;
  }
}


@media (min-width: 300px) and (max-width: 767px) {
  .cnt-head {
  margin-top: 40px !important;
  }
}

@media (min-width: 300px) and (max-width: 767px) {
  .cnt-imeg {
  margin-top: -50px !important;
  }
}

/* Partnership section: match reference mock exactly */
#partnership.partnership-section {
  background:
    radial-gradient(520px 340px at 18% 56%, rgba(0, 102, 255, 0.16), rgba(0, 102, 255, 0) 60%),
    radial-gradient(560px 380px at 82% 62%, rgba(0, 102, 255, 0.16), rgba(0, 102, 255, 0) 62%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 55%, #ffffff 100%);
}

#partnership .partnership-grid {
  align-items: stretch;
}

#partnership .partnership-card {
  position: relative;
  height: 100%;
  border-radius: 28px;
  border-style: solid;
  border-color: var(--brand-primary);
  /* Thicker top border only; other sides stay thin */
  border-width: 10px 2px 2px 2px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 102, 255, 0.12);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

#partnership .partnership-card:hover {
  transform: translateY(-2px);
}

#partnership .partnership-card__inner {
  padding: 20px 22px 22px;
}

#partnership .partnership-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-top: 4px;
  padding-bottom: 10px;
}

#partnership .partnership-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: 0 10px 22px rgba(0, 102, 255, 0.22);
}

#partnership .partnership-card__icon-svg {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

#partnership .partnership-card__title {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 14px;
  line-height: 1.2;
  color: #0a0f1e;
  margin: 0;
}

#partnership .partnership-card__subtitle {
  font-family: "Space Grotesk", sans-serif;
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
  color: #0a0f1e;
  margin: 4px 0 0 0;
}

#partnership .partnership-list {
  list-style: none;
  padding: 12px 0 0 0;
  margin: 0;
  border-top: 1px solid rgba(10, 15, 30, 0.08);
}

#partnership .partnership-list__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: #0a0f1e;
}

#partnership .partnership-list__check {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: var(--brand-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 1px;
}

#partnership .partnership-list__check-svg {
  width: 12px;
  height: 12px;
}

/* Responsive sizing to match mock across screens */
@media (min-width: 480px) {
  #partnership .partnership-card__inner {
    padding: 22px 24px 24px;
  }
  #partnership .partnership-card__title {
    font-size: 15px;
  }
  #partnership .partnership-list__item {
    font-size: 13px;
  }
}

/* Medium screens: 300px to 1199px - increased font sizes */
@media (min-width: 300px) and (max-width: 1023px) {
  #partnership .partnership-card__title {
    font-size: 19px;
  }
  #partnership .partnership-card__subtitle {
    font-size: 15px;
  }
  #partnership .partnership-list__item {
    font-size: 15px;
  }
}

/* Small screens: 300px-352px - reduce font sizes */
@media (min-width: 300px) and (max-width: 352px) {
  #partnership .partnership-card__title {
    font-size: 17px !important;
  }
  #partnership .partnership-card__subtitle {
    font-size: 14px !important;
  }
  #partnership .partnership-list__item {
    font-size: 14px !important;
  }
  #partnership .partnership-card__inner {
    padding: 12px 14px 14px !important;
  }
  #partnership .partnership-card__head {
    gap: 10px !important;
    padding-bottom: 8px !important;
  }
  #partnership .partnership-list {
    padding-top: 8px !important;
  }
}

@media (min-width: 768px) {
  #partnership .partnership-card {
    border-width: 12px 3px 3px 3px;
  }
  #partnership .partnership-card__inner {
    padding: 24px 26px 26px;
  }
  #partnership .partnership-card__icon {
    width: 46px;
    height: 46px;
  }
  #partnership .partnership-card__title {
    font-size: 15px;
  }
  #partnership .partnership-card__subtitle {
    font-size: 12px;
  }
  #partnership .partnership-list {
    padding-top: 14px;
  }
  #partnership .partnership-list__item {
    padding: 12px 0;
  }
}

@media (min-width: 1024px) {
  #partnership.partnership-section {
    padding-top: 5.5rem;
    padding-bottom: 5rem !important;
  }
  #partnership .partnership-card {
    border-width: 17px 5px 5px 5px;
    border-radius: 40px;
  }
  #partnership .partnership-card__inner {
    padding: 26px 28px 28px;
  }
  #partnership .partnership-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  #partnership .partnership-card__title {
    font-size: 21px;
  }
  #partnership .partnership-card__subtitle {
    font-size: 17px;
  }
  #partnership .partnership-list__item {
    font-size: 17px;
  }
}

/* Two-line titles: first line black, second line blue */
.title-two-line-split span:first-child {
  color: #000000;
  display: block;
}

.title-two-line-split span:last-child {
  color: var(--brand-primary);
  display: block;
}

/* Services section two-line title */
.services-two-line {
  color: #000000 !important;
}

.services-two-line span:first-child {
  color: #000000 !important;
}

.services-two-line span:last-child {
  color: var(--brand-primary) !important;
}

.services-two-line span.text-black {
  color: #000000 !important;
}

.services-section h2.services-two-line {
  color: #000000 !important;
}

/* How-it-works section title */
#how h2.font-display span:first-child {
  color: #000000;
}

#how h2.font-display span:last-child {
  color: var(--brand-primary);
}

/* How-it-works: add left gap to first card for 1100px-1500px */
@media (min-width: 1100px) and (max-width: 1500px) {
  #how .grid.lg\:grid-cols-3 > div:first-child {
    margin-left: 0.5rem;
  }
}

/* Dry theme adjustments */
[data-theme='dry'] .title-two-line-split span:first-child {
  color: #000000;
}

[data-theme='dry'] .title-two-line-split span:last-child {
  color: var(--brand-primary);
}

[data-theme='dry'] .services-two-line span:first-child {
  color: #000000 !important;
}

[data-theme='dry'] .services-two-line span:last-child {
  color: var(--brand-primary) !important;
}

/* FAQ answers: reduce font size, icon size, and width for 300px-350px */
@media (min-width: 300px) and (max-width: 375px) {
  /* Reduce FAQ container width with equal left/right gap */
  #faq .space-y-4 > div {
    margin-left: auto;
    margin-right: auto;
    max-width: 85%;
  }

  /* Reduce FAQ button padding and font size */
  #faq .faq-btn {
    padding: 0.75rem 1rem !important;
    font-size: 20px !important;
  }

  /* Reduce FAQ answer content font size and padding, make text white */
  #faq .faq-content {
    font-size: 16px !important;
    line-height: 1.4;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    color: #ffffff !important;
  }

  /* Make all FAQ answer text white */
  #faq .faq-content * {
    color: #ffffff !important;
  }

  /* Reduce chevron icon size */
  #faq .chevron-icon {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
  }

  /* Reduce inner content padding */
  #faq .faq-content > div {
    padding-bottom: 0.75rem !important;
  }

  /* Make all text in FAQ section white */
  #faq {
    color: #ffffff !important;
  }

  #faq * {
    color: #ffffff !important;
  }
}

/* FAQ chevron icon: keep consistent size for 300px-767px */
@media (min-width: 300px) and (max-width: 767px) {
  #faq .chevron-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
  }
}

