/* ===========================================
   Brooklyn Online — Page Styles
   Depends on: brooklyn-local (critical.css)
   =========================================== */

/* ── Jasper Overview ────────────────────────── */

/* Mobile - 360px */
@media only screen and (min-width: 0px) {
  #jasper-overview {
    padding: var(--sectionPadding);
    background: var(--white);
  }

  #jasper-overview .cs-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
  }

  #jasper-overview .cs-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Image column */
  #jasper-overview .cs-image-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    order: 2;
  }

  #jasper-overview .cs-image {
    position: relative;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    height: 15rem;
  }

  #jasper-overview .cs-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  #jasper-overview .cs-image-overlay {
    display: none;
  }

  /* Overlay checklist — hidden on mobile */
  #jasper-overview .cs-checks--overlay {
    display: none;
  }

  /* Below-image checklist — shown on mobile */
  #jasper-overview .cs-checks--below {
    display: block;
  }

  #jasper-overview .cs-checks-grid-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  /* Shared check card */
  #jasper-overview .cs-check-card {
    background: var(--white);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.625rem;
    padding: 0.625rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.18s ease;
  }

  #jasper-overview .cs-check-card:hover {
    border-color: rgba(15, 47, 91, 0.2);
  }

  #jasper-overview .cs-check-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  #jasper-overview .cs-check-icon svg {
    width: 0.6875rem;
    height: 0.6875rem;
  }

  #jasper-overview .cs-check-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
    margin: 0;
  }

  /* Text column */
  #jasper-overview .cs-text-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    order: 1;
  }

  #jasper-overview .cs-title-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    padding-bottom: 1rem;
  }

  /* Jasper badge pill */
  #jasper-overview .cs-jasper-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(15, 47, 91, 0.18);
    border-radius: 100px;
    padding: 0.3125rem 0.875rem 0.3125rem 0.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  #jasper-overview .cs-jasper-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--signingGold);
    flex-shrink: 0;
  }

  #jasper-overview .cs-jasper-sub {
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: 0.04em;
    margin: 0;
  }

  #jasper-overview .cs-title em {
    font-style: normal;
    color: var(--signingGold);
  }
}

/* Mobile only — max 480px */
@media only screen and (max-width: 30rem) {
  #jasper-overview .cs-container {
    padding: 0 1rem;
  }

  #jasper-overview .cs-image {
    height: 12.5rem;
  }

  #jasper-overview .cs-check-text {
    font-size: 0.6875rem;
  }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #jasper-overview .cs-container {
    padding: 0 2.5rem;
  }

  #jasper-overview .cs-content {
    flex-direction: row;
    gap: 2.5rem;
    align-items: center;
  }

  #jasper-overview .cs-image-col {
    flex: 1;
    min-width: 0;
    order: 0;
  }

  #jasper-overview .cs-image {
    height: 25rem;
  }

  #jasper-overview .cs-text-col {
    flex: 1;
    min-width: 0;
    order: 0;
  }
}

/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #jasper-overview {
    padding: 2rem clamp(2rem, 4vw, 3.5rem) clamp(3rem, 5vw, 4.5rem);
  }

  #jasper-overview .cs-container {
    max-width: 100%;
  }

  #jasper-overview .cs-content {
    gap: 3rem;
    align-items: center;
  }

  #jasper-overview .cs-image {
    height: 32.5rem;
  }

  #jasper-overview .cs-image-overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(10, 22, 40, 0.96) 0%,
      rgba(10, 22, 40, 0.55) 45%,
      transparent 75%
    );
    z-index: 1;
    pointer-events: none;
  }

  /* Show overlay checklist on desktop */
  #jasper-overview .cs-checks--overlay {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    z-index: 2;
  }

  #jasper-overview .cs-checks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.375rem;
  }

  /* Overlay card overrides */
  #jasper-overview .cs-checks--overlay .cs-check-card {
    background: rgba(255, 255, 255, 0.07);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    padding: 0.5rem 0.625rem;
    gap: 0.4375rem;
  }

  #jasper-overview .cs-checks--overlay .cs-check-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
  }

  #jasper-overview .cs-checks--overlay .cs-check-icon {
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 0.3125rem;
  }

  #jasper-overview .cs-checks--overlay .cs-check-icon svg {
    width: 0.6875rem;
    height: 0.6875rem;
  }

  #jasper-overview .cs-checks--overlay .cs-check-text {
    font-size: 0.6875rem;
    color: var(--white);
  }

  /* Hide below checklist on desktop */
  #jasper-overview .cs-checks--below {
    display: none;
  }

  #jasper-overview .cs-button-solid {
    align-self: flex-start;
  }

  #jasper-overview .cs-text {
    max-width: 38.75rem;
  }
}


/* ── Online Features ────────────────────────── */

/* Mobile - 360px */
@media only screen and (min-width: 0px) {
  #online-features {
    padding: var(--sectionPadding);
    background: #f7f7f6;
  }

  #online-features .cs-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
  }

  #online-features .cs-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  #online-features .cs-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
  }

  #online-features .cs-title em {
    font-style: normal;
    color: var(--signingGold);
  }

  /* Card group */
  #online-features .cs-card-group {
    width: 100%;
    background: var(--white);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #online-features .cs-card {
    padding: 1.375rem 1.25rem;
    border-right: 0.5px solid rgba(0, 0, 0, 0.07);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
  }

  #online-features .cs-card:nth-child(even) {
    border-right: none;
  }

  #online-features .cs-card:nth-last-child(-n+2) {
    border-bottom: none;
  }

  #online-features .cs-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    background: rgba(15, 47, 91, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  #online-features .cs-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  #online-features .cs-card-title {
    font-size: 1rem;
    font-family: var(--headerFont);
    color: var(--navy);
    line-height: 1.2;
    margin: 0;
  }

  #online-features .cs-card-text {
    font-size: 0.9rem;
    color: var(--silver);
    line-height: 1.6;
    margin: 0;
  }
}

/* Mobile only — max 480px */
@media only screen and (max-width: 30rem) {
  #online-features .cs-container {
    padding: 0 1rem;
  }

  #online-features .cs-card {
    padding: 1.125rem 1rem;
  }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #online-features .cs-container {
    padding: 0 2.5rem;
  }

  #online-features .cs-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.5rem;
  }

  #online-features .cs-header .cs-text {
    text-align: right;
    padding-bottom: 0.25rem;
    max-width: 20rem;
  }

  #online-features .cs-card-group {
    grid-template-columns: repeat(4, 1fr);
  }

  #online-features .cs-card {
    border-bottom: none;
  }

  #online-features .cs-card:nth-child(even) {
    border-right: 0.5px solid rgba(0, 0, 0, 0.07);
  }

  #online-features .cs-card:last-child {
    border-right: none;
  }
}

/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #online-features .cs-container {
    padding: 0 6vw;
  }

  #online-features .cs-card {
    padding: 1.75rem 1.5rem;
  }
}


/* ── Online URL ────────────────────────── */

/* Mobile - 360px */
@media only screen and (min-width: 0px) {
  #online-url {
    padding: var(--sectionPadding);
    background: #0D1B35;
  }

  #online-url .cs-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  /* Text column */
  #online-url .cs-text-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  #online-url .cs-topper {
    color: var(--signingGold);
  }

  #online-url .cs-title {
    color: var(--white);
  }

  #online-url .cs-title em {
    font-style: normal;
    color: var(--signingGold);
  }

  #online-url .cs-text {
    color: rgba(255, 255, 255, 0.65);
  }

  #online-url .cs-button-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
  }

  /* Card column */
  #online-url .cs-card-col {
    display: flex;
    flex-direction: column;
  }

  #online-url .cs-url-card {
    background: rgba(255, 255, 255, 0.05);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  /* Browser bar */
  #online-url .cs-browser-bar {
    background: rgba(255, 255, 255, 0.07);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
  }

  #online-url .cs-dots {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  #online-url .cs-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: block;
  }

  #online-url .cs-lock-icon {
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
  }

  #online-url .cs-url-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    font-family: monospace;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #online-url .cs-url-domain {
    color: var(--signingGold);
  }

  /* Site identity */
  #online-url .cs-site-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  #online-url .cs-site-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 0.625rem;
    background: var(--signingGold);
    color: #0D1B35;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  #online-url .cs-site-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
  }

  #online-url .cs-site-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    margin: 0;
  }

  #online-url .cs-site-domain {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    font-family: monospace;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Divider */
  #online-url .cs-divider {
    border: none;
    border-top: 0.5px solid rgba(255, 255, 255, 0.08);
    margin: 0;
  }

  /* Checklist */
  #online-url .cs-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  #online-url .cs-check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
  }

  #online-url .cs-check-icon {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 0.25rem;
    background: rgba(212, 168, 67, 0.15);
    border: 0.5px solid rgba(212, 168, 67, 0.3);
    color: var(--signingGold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
}

/* Mobile only — max 480px */
@media only screen and (max-width: 30rem) {
  #online-url .cs-container {
    padding: 0 1rem;
  }

  #online-url .cs-url-card {
    padding: 1.25rem;
  }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #online-url .cs-container {
    padding: 0 2.5rem;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  #online-url .cs-text-col {
    flex: 1;
    min-width: 0;
  }

  #online-url .cs-card-col {
    flex: 1;
    min-width: 0;
  }
}

/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #online-url .cs-container {
    padding: 0 6vw;
    gap: 5rem;
  }

  #online-url .cs-url-card {
    padding: 1.75rem;
  }

  #online-url .cs-text {
    max-width: 30rem;
  }
}