/* Crewt, placeholder marketing page
   Motif: the camera iris (aperture blades), the shape that decides who's
   in frame becomes the shape that decides who's on the crew. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ground: #F7F6FC;
  --ground-deep: #EFEBFB;
  --ink: #1A1733;
  --ink-soft: #5B5775;
  --accent: #6C47FF;
  --accent-ink: #2E1B8C;
  --white: #FFFFFF;
  --line: #E3E0EF;
  --radius: 16px;
  --margin: clamp(20px, 5vw, 64px);
  --gap-section: clamp(96px, 14vw, 200px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--margin);
  padding-right: var(--margin);
}

/* ---------- Iris motif (shared SVG defs) ---------- */
.iris-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.iris {
  display: block;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ground);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.wordmark {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.wordmark .iris { width: 26px; height: 26px; fill: var(--ink); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.nav-actions { display: flex; align-items: center; gap: 28px; }
@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(24px, 6vh, 64px);
  padding-bottom: clamp(64px, 10vh, 120px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-ink);
}
.hero p.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }

.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-iris-big { width: 100%; height: 100%; fill: var(--accent); }
.hero-tag {
  position: absolute;
  background: var(--white);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  white-space: nowrap;
  max-width: calc(100% - 8px);
}
.hero-tag.t1 { top: 6%; left: -4%; }
.hero-tag.t2 { bottom: 8%; right: 2%; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { aspect-ratio: 16/11; max-width: 420px; margin: 0 auto; }
  .hero-tag.t1 { left: 0; }
  .hero-tag.t2 { right: 0; }
}

/* ---------- Section shell ---------- */
section { padding-top: var(--gap-section); }
.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 0;
}
.section-head p {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 44ch;
}
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- How it works ---------- */
.flow {
  display: grid;
  gap: 56px;
}
.flow-step {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  align-items: start;
}
.flow-step:nth-child(2) { margin-left: clamp(0px, 8vw, 96px); }
.flow-step:nth-child(3) { margin-left: clamp(0px, 16vw, 192px); }
.flow-step h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}
.flow-step .iris { width: 28px; height: 28px; flex-shrink: 0; fill: var(--accent); }
.flow-step p { color: var(--ink); margin: 8px 0 0; font-size: 16px; max-width: 46ch; }
@media (max-width: 760px) {
  .flow-step { grid-template-columns: 1fr; gap: 10px; }
  .flow-step:nth-child(2), .flow-step:nth-child(3) { margin-left: 0; }
  .flow-step:nth-child(1) h3 { font-size: 30px; }
  .flow-step:nth-child(1) .iris { width: 34px; height: 34px; }
  .flow-step:nth-child(2) { padding-left: 18vw; }
  .flow-step:nth-child(2) h3 { font-size: 22px; }
  .flow-step:nth-child(2) .iris { display: none; }
  .flow-step:nth-child(3) { padding-left: 32vw; }
  .flow-step:nth-child(3) h3 { font-size: 20px; }
  .flow-step:nth-child(3) .iris { display: none; }
}

/* ---------- Who it's for (toggle) ---------- */
.audience {
  background: var(--white);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line);
}
.audience-toggle {
  display: inline-flex;
  background: var(--ground-deep);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 36px;
}
.audience-toggle button {
  border: none;
  background: transparent;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
}
.audience-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--white);
}
.audience-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.audience-panel h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.audience-panel .sub { color: var(--ink-soft); margin: 0 0 0; max-width: 42ch; }
.audience-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.audience-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
}
.audience-list .iris { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; fill: var(--accent); }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .audience-panel { grid-template-columns: 1fr; }
}

/* ---------- Features (mosaic, uneven blocks) ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}
.feature.big { grid-column: span 3; min-height: 260px; }
.feature.wide { grid-column: span 4; }
.feature.narrow { grid-column: span 2; }
.week-strip {
  display: flex;
  gap: 6px;
  margin-top: 18px;
}
.week-strip span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ground-deep);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.week-strip span.busy {
  background: var(--accent);
  color: var(--white);
}
.feature h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  max-width: 26ch;
}
.feature p { margin: 0; color: var(--ink); font-size: 16px; max-width: 32ch; }
.feature .num {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--accent-ink);
  line-height: 1;
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature.big, .feature.wide, .feature.narrow { grid-column: span 2; }
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 28px; }
.faq-item:nth-child(2) { margin-left: clamp(0px, 4vw, 48px); }
.faq-item:nth-child(3) { margin-left: clamp(0px, 8vw, 96px); }
.faq-item:nth-child(4) { margin-left: clamp(0px, 12vw, 144px); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}
.faq-q .mark { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s ease; fill: var(--accent); }
.faq-item[data-open="true"] .faq-q .mark { transform: rotate(45deg); }
.faq-a {
  padding: 14px 0 0 36px;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  max-width: 62ch;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--ink);
  border-radius: 28px;
  padding: clamp(48px, 8vw, 96px);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.cta h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 18px;
}
.cta p { color: #C9C3EC; max-width: 42ch; margin: 0 0 32px; font-size: 17px; }
.cta .btn-primary { background: var(--white); color: var(--accent-ink); }
.cta-iris { position: absolute; right: -8%; top: 50%; transform: translateY(-50%); width: 52%; opacity: 0.9; }
.cta-iris { fill: #2E2766; }
@media (max-width: 900px) {
  .cta-grid { grid-template-columns: 1fr; }
  .cta-iris { display: none; }
}

/* ---------- Footer ---------- */
footer.wrap { margin-top: var(--gap-section); padding-bottom: 64px; }
.footer-mark {
  display: flex;
  align-items: baseline;
  gap: clamp(2px, 1vw, 6px);
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 6vw, 56px);
}
.footer-mark span {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(3.4rem, 11vw, 9.5rem);
  line-height: 0.85;
  color: var(--ink);
  background: var(--ground-deep);
  padding: 0 14px;
  border-radius: 10px;
}
.footer-mark .iris { width: clamp(42px, 9vw, 110px); height: clamp(42px, 9vw, 110px); align-self: center; fill: var(--accent); }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.footer-col h3 { font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 15px; color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .copy { font-size: 14px; color: var(--ink-soft); }
.footer-bottom .btn { padding: 11px 20px; font-size: 14px; }
@media (max-width: 760px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 350ms; }

.hero-iris-big { animation: spin-in 1.1s cubic-bezier(.16,1,.3,1) both; }
@keyframes spin-in {
  from { opacity: 0; transform: scale(.82) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.btn { transition: transform .15s ease, opacity .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.nav-cta:hover { opacity: .92; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > *, .hero-iris-big, .btn {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

:focus-visible {
  outline: 2.5px solid var(--accent-ink);
  outline-offset: 2px;
}
