/**
 * Coastline DC — Mobile-first prototype pages
 */

.proto-page {
  padding-top: var(--site-header-offset, 4.5rem);
}

.proto-hero {
  padding: var(--space-12) 0 var(--space-10);
  background: linear-gradient(180deg, var(--color-bg-secondary), var(--color-bg-primary));
  border-bottom: 1px solid var(--color-border-subtle);
}

.proto-hero--compact {
  padding-block: var(--space-10);
}

.proto-hero__lead {
  margin-top: var(--space-4);
  max-width: 36rem;
  font-size: var(--font-size-mobile-lead, 1.1875rem);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

.proto-label {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-2);
  font-size: 0.625rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  background: var(--color-bg-elevated);
  border: 1px dashed var(--color-border-default);
  border-radius: var(--radius-sm);
}

/* Division cards — services */

.proto-divisions {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 48rem) {
  .proto-divisions {
    grid-template-columns: repeat(3, 1fr);
  }
}

.proto-division {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
}

.proto-division__title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
}

.proto-division__text {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  flex: 1;
}

.proto-division__link {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-accent);
}

/* Service list */

.proto-service-list {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 48rem) {
  .proto-service-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.proto-service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--touch-target-min, 3rem);
  padding: var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  color: var(--color-text-primary);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
}

/* Projects grid */

.proto-projects {
  display: grid;
  gap: var(--space-4);
}

@media (max-width: 47.99rem) {
  .proto-projects--swipe {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-4);
    margin-inline: calc(var(--space-4) * -1);
    padding-inline: var(--space-4);
    -webkit-overflow-scrolling: touch;
  }

  .proto-projects--swipe .proto-project {
    flex: 0 0 min(85vw, 18rem);
    scroll-snap-align: start;
  }
}

@media (min-width: 48rem) {
  .proto-projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .proto-projects {
    grid-template-columns: repeat(3, 1fr);
  }
}

.proto-project {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  text-decoration: none;
  color: inherit;
}

.proto-project__media {
  aspect-ratio: 4 / 3;
}

.proto-project__body {
  padding: var(--space-5);
}

.proto-project__meta {
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-2);
}

.proto-project__title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
}

/* Proof cards */

.proto-proof-grid {
  display: grid;
  gap: var(--space-4);
}

.proto-proof-card {
  padding: var(--space-6);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
}

.proto-proof-card__badge {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-accent-warm);
  margin-bottom: var(--space-3);
}

.proto-proof-card__text {
  font-size: var(--font-size-mobile-body, 1.0625rem);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

.proto-sync-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.proto-sync-pill {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
}

/* Vision session mock */

.proto-wizard-mock {
  max-width: 40rem;
  margin-inline: auto;
  padding: var(--space-6);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
}

.proto-wizard-mock__progress {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.proto-wizard-mock__bar {
  height: 3px;
  background: var(--color-border-subtle);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
  overflow: hidden;
}

.proto-wizard-mock__bar span {
  display: block;
  height: 100%;
  width: 35%;
  background: var(--primitive-ocean-700);
}

.proto-field-mock {
  height: 3rem;
  margin-bottom: var(--space-4);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
}

.proto-field-mock--short {
  width: 60%;
}

/* CTA band */

.proto-cta {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  background: var(--color-bg-inverse);
  color: var(--color-text-inverse);
}

.proto-cta__title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-4);
}

.proto-cta__text {
  max-width: 28rem;
  margin: 0 auto var(--space-8);
  color: rgb(255 255 255 / 0.75);
  line-height: var(--line-height-relaxed);
}

/* Contact funnel */

.proto-funnel {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 48rem) {
  .proto-funnel {
    grid-template-columns: repeat(2, 1fr);
  }
}

.proto-funnel__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
}

.proto-funnel__card .btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 47.99rem) {
  .proto-funnel__card .btn {
    align-self: stretch;
    width: 100%;
  }
}
