/* Untie Rope — strand nav, strand cards, clothesline gallery, sky gouache */

:root {
  --sky: #e6f3ff;
  --sky-deep: #c5dff5;
  --cloud: #ffffff;
  --ink: #2a2342;
  --muted: #5c5678;
  --grape: #6b4eaa;
  --grape-dark: #523a88;
  --coral: #ff8a5c;
  --mint: #00c9a7;
  --sun: #ffd166;
  --lavender: #b8a9ff;
  --shadow: 0 18px 40px rgba(82, 58, 136, 0.12);
  --radius: 1.25rem;
  --font-display: "Rubik", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sky);
  overflow-x: hidden;
}

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

a {
  color: var(--grape-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--grape);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--cloud);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Soft sky background */
.sky-wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(184, 169, 255, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 10%, rgba(126, 200, 242, 0.5), transparent 50%),
    linear-gradient(180deg, var(--sky) 0%, #f4f8ff 45%, var(--sky-deep) 100%);
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn svg,
.btn i {
  width: 1.25rem;
  height: 1.25rem;
}

.btn--grape {
  background: linear-gradient(145deg, var(--grape) 0%, var(--grape-dark) 100%);
  color: var(--cloud);
  box-shadow: 0 8px 22px rgba(107, 78, 170, 0.35);
}

.btn--grape:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(107, 78, 170, 0.42);
}

.btn--cloud {
  background: var(--cloud);
  color: var(--grape-dark);
  box-shadow: 0 6px 18px rgba(42, 35, 66, 0.08);
  border: 2px solid rgba(107, 78, 170, 0.15);
}

.btn--cloud:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 78, 170, 0.35);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn--xl {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

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

/* Strand navigation */
.strand-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: 0.35rem;
  background: rgba(230, 243, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 78, 170, 0.08);
  transition: box-shadow 0.25s ease;
}

.strand-nav.is-scrolled {
  box-shadow: var(--shadow);
}

.strand-nav__thread {
  display: block;
  width: 100%;
  height: 12px;
  margin-bottom: -4px;
  opacity: 0.85;
}

.strand-nav__bar {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.65rem 1.25rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.strand-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.strand-nav__brand img {
  border-radius: 0.85rem;
  box-shadow: 0 4px 12px rgba(107, 78, 170, 0.2);
}

.strand-nav__brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.strand-nav__links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
  margin-right: 1rem;
}

.strand-nav__links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
}

.strand-nav__links a:hover {
  color: var(--grape);
}

.strand-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.strand-nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 0.75rem;
  background: var(--cloud);
  box-shadow: 0 4px 12px rgba(42, 35, 66, 0.08);
  cursor: pointer;
}

.strand-nav__burger span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0 auto;
  background: var(--grape);
  border-radius: 2px;
}

.nav-sheet {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}

.nav-sheet[hidden] {
  display: none !important;
}

.nav-sheet a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(107, 78, 170, 0.1);
}

/* Hero */
.hero__banner {
  max-width: 68rem;
  margin: 1.25rem auto 0;
  padding: 0 1.25rem;
}

.hero__banner img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__split {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__kicker {
  font-weight: 600;
  color: var(--grape);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--coral), var(--grape));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero__phone {
  position: relative;
  margin: 0;
  max-width: 17rem;
  margin-inline: auto;
}

.hero__phone img {
  width: 100%;
  border-radius: 1.75rem;
  box-shadow: 0 28px 50px rgba(82, 58, 136, 0.22);
  object-fit: contain;
}

.hero__halo {
  position: absolute;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  filter: blur(2px);
  z-index: -1;
}

.hero__halo--left {
  top: 15%;
  left: -12%;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.55), transparent 70%);
}

.hero__halo--right {
  bottom: 10%;
  right: -10%;
  background: radial-gradient(circle, rgba(255, 138, 92, 0.5), transparent 70%);
}

/* Section head */
.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

.eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--grape);
  margin: 0 0 0.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  margin: 0;
  font-weight: 800;
}

.section-head h2 span {
  color: var(--grape);
}

.section-head__lead {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

/* Strand feature cards */
.strand-features {
  padding: 3rem 0 4rem;
}

.strand-features__wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 1.25rem;
}

.strand-card {
  position: relative;
  background: var(--cloud);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 1.35rem;
  box-shadow: 0 10px 30px rgba(42, 35, 66, 0.06);
  overflow: hidden;
}

.strand-card__rope {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.strand-card--coral .strand-card__rope {
  background: linear-gradient(90deg, var(--coral), #ffb088);
}

.strand-card--grape .strand-card__rope {
  background: linear-gradient(90deg, var(--grape), var(--lavender));
}

.strand-card--mint .strand-card__rope {
  background: linear-gradient(90deg, var(--mint), #5eead4);
}

.strand-card--sun .strand-card__rope {
  background: linear-gradient(90deg, var(--sun), #ffe08a);
}

.strand-card__peg {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  background: var(--sky);
  color: var(--grape-dark);
  box-shadow: inset 0 0 0 3px rgba(107, 78, 170, 0.12);
}

.strand-card__peg svg {
  width: 1.35rem;
  height: 1.35rem;
}

.strand-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.strand-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Clothesline gallery */
.clothesline {
  padding: 2rem 0 4.5rem;
}

.clothesline__stage {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  position: relative;
}

.clothesline__cord {
  display: none;
  width: 100%;
  height: 48px;
  margin-bottom: -28px;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.clothesline__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 1rem 1.25rem;
  padding-top: 0.5rem;
}

.clip-shot {
  margin: 0;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clip-shot__clip {
  width: 1.25rem;
  height: 1.75rem;
  background: linear-gradient(180deg, #888 0%, #555 100%);
  border-radius: 0 0 4px 4px;
  margin-bottom: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 3;
}

.clip-shot__clip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 8px;
  border: 3px solid #666;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.clip-shot__frame {
  width: min(11.5rem, 42vw);
  aspect-ratio: 1080 / 1920;
  background: var(--cloud);
  border-radius: 1.25rem;
  padding: 0.35rem;
  box-shadow: var(--shadow);
}

.clip-shot__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 1rem;
}

.clip-shot--lift {
  transform: translateY(-8px);
}

/* Download */
.download {
  padding: 2rem 1.25rem 4rem;
}

.download__blob {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.75rem;
  background: linear-gradient(160deg, var(--cloud) 0%, #f0eaff 100%);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  border: 2px solid rgba(107, 78, 170, 0.1);
}

.download__icon {
  margin: 0 auto 1rem;
  border-radius: 1.25rem;
  box-shadow: 0 8px 20px rgba(107, 78, 170, 0.2);
}

.download h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.75rem;
}

.download__lead {
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.download p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.download__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

/* Footer */
.footer {
  padding: 2rem 1.25rem;
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(107, 78, 170, 0.1);
}

.footer__inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer__brand img {
  border-radius: 0.5rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.footer__links a {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Modal */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 35, 66, 0.45);
}

.modal__panel {
  position: relative;
  max-width: 22rem;
  width: 100%;
  padding: 2rem 1.75rem;
  background: var(--cloud);
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(42, 35, 66, 0.25);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: var(--sky);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grape);
}

.modal__knot {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: conic-gradient(from 45deg, var(--coral), var(--grape), var(--mint), var(--sun), var(--coral));
  opacity: 0.85;
}

.modal__panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
}

.modal__panel p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
}

/* Responsive */
@media (min-width: 640px) {
  .strand-features__wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  .download__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .download__actions .btn {
    flex: 0 1 auto;
  }
}

@media (min-width: 768px) {
  .strand-nav__links {
    display: flex;
  }

  .strand-nav__actions {
    margin-left: 0;
  }

  .strand-nav__burger {
    display: none;
  }

  .nav-sheet {
    display: none !important;
  }

  .hero__split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .hero__phone {
    margin-inline: 0;
    justify-self: end;
  }

  .clothesline__cord {
    display: block;
  }

  .clothesline__row {
    gap: 1.5rem;
  }

  .clip-shot__frame {
    width: 12.5rem;
  }
}

@media (min-width: 1024px) {
  .strand-features__wrap {
    grid-template-columns: repeat(4, 1fr);
  }

  .clip-shot__frame {
    width: 13.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }
}
