/* CARAPACE launch page: additions to the "Signal" design. Loaded after assets/site/site.css.
   The same ink, the same one teal, system fonts only, nothing from another host. */

/* ── the app icon in the hero lockup (the nav and footer mark is in site.css) ──── */
.lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.lockup img {
  flex: none; width: 60px; height: 60px; border-radius: 23%;
  box-shadow: 0 0 0 1px var(--line-2), 0 22px 44px -18px rgba(0, 0, 0, .95), 0 14px 40px -14px rgba(24, 220, 205, .28);
}
.lockup-t { display: grid; gap: 8px; min-width: 0; }
.lockup-t b { font-weight: 800; font-size: 1.02rem; letter-spacing: .2em; line-height: 1; }
.hero .lockup .eyebrow { margin: 0; font-size: .74rem; line-height: 1.4; }
.lockup .eyebrow::before { display: none; }
/* On a phone the nav right above already shows the icon and the name: the lockup keeps its one line only. */
@media (max-width: 699px) {
  .lockup img, .lockup-t b { display: none; }
  .lockup { margin-bottom: 18px; }
}
@media (max-width: 359px) { .hero .lockup .eyebrow { letter-spacing: .06em; } }

/* ── hero: the hook and "tap, then talk" ──────────────────── */
.launch-hero h1 { font-size: clamp(2.7rem, 12.6vw, 6rem); line-height: .92; }
.taps {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 24px;
  font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2);
}
.taps li { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.taps li + li::before { content: ""; flex: none; width: 16px; height: 2px; border-radius: 2px; background: var(--signal); }
.taps li:first-child { color: var(--signal-2); }
.launch-hero .hero-media figcaption { justify-self: center; max-width: 32em; }
@media (min-width: 1000px) {
  .launch-hero { padding-top: 48px; }
  .launch-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 478px); gap: 48px; }
  .launch-hero h1 { font-size: clamp(3.5rem, 6.2vw, 6.1rem); }
}

/* ── shot slots: one app capture, or two side by side ─────── */
.duo {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 236px));
  gap: 18px; justify-content: center; align-items: start;
}
.solo { position: relative; z-index: 1; display: grid; justify-items: center; }
.shot { display: grid; gap: 14px; justify-items: center; min-width: 0; }
.duo .shot + .shot { margin-top: 44px; }
.duo .shot .phone { width: 100%; margin: 0; }
.solo .shot .phone { width: 250px; }
.shot-label {
  font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-3); text-align: center;
}
.feat-media figcaption { margin-top: 22px; font-size: .82rem; color: var(--fg-3); text-align: center; max-width: 30em; }
.feat-wave { position: absolute; left: 0; right: 0; top: 46%; height: 170px; transform: translateY(-50%); z-index: 0; opacity: .5; }
/* On a phone the two screens stay full size in a row that scrolls sideways inside its own box; the second one shows at the edge. */
@media (max-width: 699px) {
  .duo {
    display: flex; justify-content: flex-start; gap: 14px; justify-self: stretch;
    margin: 0 calc(-1 * var(--gutter)) -20px; padding: 6px var(--gutter) 44px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .duo::-webkit-scrollbar { display: none; }
  .duo .shot { flex: none; width: 236px; scroll-snap-align: center; }
  .duo .shot + .shot { margin-top: 0; }
  .solo .shot .phone { width: 236px; }
}
@media (max-width: 339px) { .duo .shot { width: 220px; } }
@media (min-width: 900px) { .solo .shot .phone { width: 280px; } }

/* A capture that is a crop (launch.js sets .as-slice): the site's rounded slice, no phone frame. */
.phone.as-slice {
  aspect-ratio: auto; border-radius: 26px; overflow: hidden; background: #000; border: 1px solid var(--line-2);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .035), 0 50px 90px -30px rgba(0, 0, 0, .95), 0 30px 80px -20px rgba(24, 220, 205, .2);
}
.phone.as-slice::before, .phone.as-slice .frame { display: none; }
.phone.as-slice .screen { position: static; display: block; width: 100%; height: auto; border-radius: 0; }
.phone.as-slice video.screen { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.solo .shot .phone.as-slice { width: min(340px, 100%); }
/* A capture that did not load (launch.js sets .is-missing): a blank screen in the frame, never a broken picture and never words. */
.phone.is-missing .screen { visibility: hidden; }
.phone.is-missing::after {
  content: ""; position: absolute; left: 5.1%; top: 2.2%; width: 89.8%; height: 95.6%; border-radius: 14.4% / 6.63%; z-index: 1;
  background: var(--ink-3);
}
/* No pause button over a still whose clip could not be loaded (site.js removes the video). */
.media:not(:has(video)) > .vt { display: none; }

/* ── in the car: its own block after the four features, with no number and no plan tag ─ */
.car { display: grid; gap: 20px; padding-top: 52px; border-top: 1px solid var(--line); }
.car h3 { font-size: clamp(1.9rem, 7.4vw, 3rem); line-height: .96; letter-spacing: -.045em; }
.car-lines { display: grid; gap: 14px; }
.car p { font-size: 1.1rem; color: var(--fg-2); max-width: 26em; }
.car .tag { margin-left: 4px; position: relative; top: -1px; }
@media (min-width: 900px) {
  .car { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; margin-top: 80px; padding-top: 80px; }
  .car-lines { gap: 18px; padding-left: 24px; }
  .car p { font-size: 1.22rem; }
}

/* ── the app's pearl in the picture column ────────────────── */
/* Hero: the pearl with its microphone, in front of the hero waveform. */
.hero-art { padding-bottom: 44px; }
.hero-pearl { position: relative; z-index: 1; width: min(62vw, 250px); height: auto; }
.hero-art .hero-wave { top: 46%; }
@media (min-width: 700px) { .hero-pearl { width: 300px; } }
@media (min-width: 1000px) {
  .launch-hero:has(.hero-art) { padding-bottom: 76px; }
  .launch-hero .hero-grid:has(.hero-art) { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
  .launch-hero:has(.hero-art) .lede { max-width: 26em; }
  .hero-art { padding-bottom: 0; }
  .hero-pearl { width: 380px; }
  /* The wave starts to the right of the headline and the lede, never under them. */
  .hero-art .hero-wave { left: -24%; top: 50%; }
  .hero-art .hero-wave .wave { -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 26%, #000 86%, transparent); }
}
/* Features 01, 02 and 04: one pose each, on the site's rings. */
.feat-art .pose { position: relative; z-index: 1; width: min(54vw, 210px); height: auto; }
@media (min-width: 900px) { .feat-art .pose { width: 300px; } }

/* ── feature 03: the four runtimes, each as the app draws its pearl and clam ─ */
.clams { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 132px)); gap: 26px 22px; justify-content: center; }
.clams li { display: grid; justify-items: center; align-content: start; gap: 10px; min-width: 0; text-align: center; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.2; }
.clams img { width: 112px; height: 112px; }
.clams small {
  display: block; margin-top: 5px; font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fg-3);
}
@media (min-width: 420px) { .clams { grid-template-columns: repeat(2, 150px); gap: 30px 34px; } .clams img { width: 132px; height: 132px; } }
@media (min-width: 900px) { .clams { grid-template-columns: repeat(2, 190px); gap: 40px 44px; } .clams img { width: 164px; height: 164px; } .clams li { font-size: 1.15rem; gap: 14px; } }

/* ── clips: 9:16 slots for screen recordings of the app ───── */
.clip-row { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: 24px; justify-content: center; }
.clip-slot {
  position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; display: grid; place-items: center;
  background: var(--ink); border: 1.5px dashed var(--fg-3);
}
.clip-slot::before {
  content: "0" attr(data-clip-slot); position: absolute; left: 18px; top: 16px; z-index: 2;
  font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .14em; color: var(--signal-2);
}
.clip-slot figcaption {
  display: grid; gap: 8px; padding: 0 16px; text-align: center; font-family: var(--mono); font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; line-height: 1.5; text-transform: uppercase; color: var(--fg-3);
}
.clip-slot figcaption b { margin-bottom: 4px; font-size: .95rem; font-weight: 700; letter-spacing: .18em; color: var(--fg-2); }
/* A recording is shown whole: one that is taller than 9:16 keeps its status bar and tab bar and gets black at the sides. */
.clip-slot .screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.clip-slot:has(.screen) { border: 1px solid var(--line-2); background: #000; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .95), 0 30px 80px -20px rgba(24, 220, 205, .2); }
.clip-slot:has(.screen)::before { display: none; }
@media (max-width: 699px) {
  .clip-row {
    display: flex; justify-content: flex-start; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .clip-row::-webkit-scrollbar { display: none; }
  .clip-slot { flex: none; width: min(62vw, 250px); scroll-snap-align: center; border-radius: 24px; }
}

/* ── closing: the talking pearl on the waveform ───────────── */
.close-wave { position: relative; opacity: 1; }
.close-wave .wave { opacity: .7; }
.close-pearl { position: absolute; left: 50%; top: 50%; width: 104px; height: auto; transform: translate(-50%, -50%); }
@media (min-width: 900px) { .close-pearl { width: 140px; } }
.close .sec-sub { max-width: 31em; }

/* ── FAQ after the closing section ────────────────────────── */
.faq-sec .more-link { margin-top: 26px; }
