/* SHIPHOOD — home page (Letronna-style structure, Robinhood palette). */
.head { margin-bottom: clamp(36px, 6vh, 72px); }
.head .eyebrow { margin-bottom: 22px; }

/* ---------- 1 hero ---------- */
.hero { position: relative; min-height: 100svh; padding: var(--bar) 0 clamp(20px, 3vh, 40px); display: flex; flex-direction: column; overflow: hidden; }
.ink { position: absolute; z-index: 1; top: 0; right: 0; width: 57%; height: 100%; pointer-events: none; }
.hero__grid { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 54%) minmax(0, 1fr); align-items: center; }
.hero__col { padding-block: clamp(24px, 4vh, 56px); }
.hero__t { margin-bottom: clamp(20px, 3vh, 32px); }
.hero__t .sl { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__t .sl > span { display: block; animation: slUp 1s cubic-bezier(.2, .7, .1, 1) both; }
.hero__t .sl:nth-child(2) > span { animation-delay: .08s; color: var(--neon); }
@keyframes slUp { from { transform: translateY(105%); } to { transform: none; } }
.hero__sub { max-width: 400px; color: var(--mute); }
.hero__form { margin-top: clamp(26px, 4vh, 38px); max-width: 520px; }
.hero__in { display: block; width: 100%; height: 50px; padding: 0 16px; background: transparent; border: 1px solid var(--hair-2); font: 300 16px/1 var(--sans); color: var(--fg); transition: border-color .2s, background .2s; }
.hero__in::placeholder { color: var(--mute); }
.hero__in:focus { outline: none; border-color: var(--fg); background: var(--field); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hero__term { margin-top: 22px; color: var(--mute); }
.hero__ca { display: none; margin-top: 22px; max-width: 520px; }
.hero__pons { margin-top: 16px; }
.hero .fade-in { animation: fadeUp .8s .2s both; }
.hero__sub, .hero__form, .hero__term, .hero__ca, .hero__pons { animation: fadeUp .8s .25s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- 3 see it work ---------- */
.see { position: relative; overflow: hidden; padding: clamp(80px, 13vh, 150px) 0 clamp(70px, 10vh, 120px); }
.see__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%); }
.see__in { position: relative; z-index: 1; }
.see__head { max-width: 760px; margin-bottom: clamp(36px, 6vh, 64px); }
.see__head .eyebrow { margin-bottom: 22px; }
.see__head .lead { margin-top: 26px; }
.app { background: #0a0b0a; border: 1px solid rgba(244, 247, 240, .16); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .7); }
.app__bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 14px; border-bottom: 1px solid rgba(244, 247, 240, .12); }
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(244, 247, 240, .22); }
.app__dots i:first-child { background: var(--green); }
.app__title { font: 400 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.app__cred { margin-left: auto; min-width: 0; overflow: hidden; }
.app__cred .cl { font-size: 10px; }
.app__body { padding: clamp(16px, 2.4vw, 32px); min-height: 280px; }
.app__body .tool__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app__body .tool .cl { display: none; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 7vh, 72px); border-bottom: 1px solid var(--hair); }
.step { position: relative; display: grid; justify-items: start; gap: 8px; padding: 0 0 18px; text-align: left; color: var(--mute); transition: color .25s; }
.step b { font: 200 clamp(48px, 5.6vw, 86px)/.85 var(--cond); }
.step span { font: 400 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.step::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 30%; background: var(--neon); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.step[aria-selected=true] { color: var(--fg); }
.step[aria-selected=true]::after { transform: scaleX(1); }
.step:hover { color: var(--fg); }
.steps__cap { margin-top: 22px; max-width: 70ch; min-height: 3.2em; font-size: 16px; color: var(--fg); }
.see__facts { margin-top: 18px; color: var(--mute); }

/* ---------- 4 capabilities ---------- */
.caps-sec { padding: clamp(80px, 13vh, 150px) 0; }
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.cap { position: relative; padding: 30px clamp(18px, 2.2vw, 40px) 40px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); min-width: 0; }
.cap:nth-child(3n) { border-right: 0; padding-right: 0; }
.cap:nth-child(3n+1) { padding-left: 0; }
.cap:nth-last-child(-n+3) { border-bottom: 0; }
.cap__art { height: clamp(200px, 19vw, 280px); overflow: hidden; margin-bottom: 26px; background: var(--paper); }
.cap__art :is(img, video) { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; filter: contrast(1.05); transition: transform 1.2s var(--ease); }
.cap:hover .cap__art :is(img, video) { transform: scale(1.03); }
.cap .tag { margin-bottom: 14px; }
.cap h3 { margin-bottom: 12px; }
.cap p { max-width: 36ch; font-size: 15.5px; color: var(--mute); }

/* ---------- 5 close the tab ---------- */
.stay { padding: clamp(80px, 13vh, 150px) 0; }
.stay__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.stay__list { list-style: none; margin: 0; padding: 0; }
.stay__list li { padding: 26px 0; border-top: 1px solid var(--hair); }
.stay__list li:last-child { border-bottom: 1px solid var(--hair); }
.stay__list .eyebrow { margin-bottom: 12px; }
.stay__list h3 { margin-bottom: 10px; }
.stay__list p:last-child { color: var(--mute); max-width: 46ch; font-size: 15.5px; }
.chat { padding: 26px 26px 22px; background: var(--panel); border: 1px solid var(--hair); display: grid; gap: 18px; }
.chat__ex { color: var(--mute); }
.say { display: grid; gap: 6px; font-size: 15.5px; }
.say .micro { color: var(--acc); }
.say + .say { padding-top: 16px; border-top: 1px solid var(--hair); }
.say code { color: var(--neon); font-size: 13.5px; }
.say.status { display: flex; align-items: center; gap: 9px; padding-top: 14px; border-top: 1px solid var(--hair); font: 400 11.5px/1 var(--mono); letter-spacing: .06em; color: var(--fg); }
.say.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 3px rgba(204, 255, 0, .2); }
.stay__cta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 44px; }

/* ---------- 6 every screen ---------- */
.screens { padding: clamp(80px, 13vh, 150px) 0; }
.scr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.scr { min-width: 0; display: grid; gap: 14px; }
.scr__art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--deep); }
.scr__art :is(img, video) { width: 100%; height: 100%; object-fit: cover; opacity: .42; transition: transform 1.2s var(--ease), opacity .4s; }
.scr:hover .scr__art :is(img, video) { opacity: .55; }
.scr:hover .scr__art :is(img, video) { transform: scale(1.03); }
.scr__art span { position: absolute; inset: 0; display: grid; place-items: center; font: 200 clamp(42px, 4.4vw, 66px)/1 var(--cond); text-transform: uppercase; color: var(--paper); text-shadow: 0 0 30px rgba(10, 11, 10, .9), 0 0 2px rgba(10, 11, 10, .8); }
.scr__meta { text-align: center; font-size: 14px; color: var(--mute); }
.scr__btn { justify-content: space-between; }
.scr__btn .mut { color: inherit; opacity: .7; }

/* ---------- 7 faq ---------- */
.faq-sec { padding: clamp(80px, 13vh, 150px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.faq-grid .head { margin-bottom: 0; }
.faq__more { margin-top: 28px; }
.faq { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font: 300 clamp(22px, 2vw, 30px)/1.05 var(--cond); text-transform: uppercase; letter-spacing: -.005em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 14px; height: 14px; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 6.5px; height: 1px; background: currentColor; transition: transform .25s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { padding: 0 0 22px; max-width: 64ch; font-size: 15.5px; color: var(--mute); }

/* ---------- 8 credits ---------- */
.plans-sec { padding: clamp(80px, 13vh, 150px) 0 clamp(60px, 9vh, 110px); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.plan { display: flex; flex-direction: column; min-width: 0; }
.plan__tags { display: flex; justify-content: space-between; gap: 8px; min-height: 22px; }
.plan__n { display: flex; align-items: baseline; gap: 14px; margin-top: 22px; }
.plan__n b { font: 200 clamp(64px, 6vw, 92px)/.85 var(--cond); }
.plan__n span { font: 400 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.plan__line { margin-top: 16px; font-size: 15.5px; }
.plan__art { margin-top: 22px; aspect-ratio: 5 / 2; overflow: hidden; }
.plan__art :is(img, video) { width: 100%; height: 100%; object-fit: cover; }
.plan__list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; flex: 1; }
.plan__list li { position: relative; padding-left: 18px; font-size: 15px; }
.plan__list li::before { content: '–'; position: absolute; left: 0; }
.plan__list code { font-size: 12.5px; }
.plan__btn { margin-top: 28px; }
.plans__note { margin-top: 30px; color: var(--mute); }

/* ---------- responsive ---------- */
@media (max-width: 1099px) {
  .hero__ca { display: block; }
}
@media (max-width: 980px) {
  .hero { min-height: auto; padding-bottom: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .ink { position: relative; width: 100%; height: 540px; margin-top: -20px; order: 2; }
  .caps { grid-template-columns: 1fr 1fr; }
  .cap:nth-child(3n) { border-right: 1px solid var(--hair); padding-right: clamp(18px, 2.2vw, 40px); }
  .cap:nth-child(3n+1) { padding-left: clamp(18px, 2.2vw, 40px); }
  .cap:nth-child(2n) { border-right: 0; padding-right: 0; }
  .cap:nth-child(2n+1) { padding-left: 0; }
  .cap:nth-last-child(-n+3) { border-bottom: 1px solid var(--hair); }
  .cap:nth-last-child(-n+2) { border-bottom: 0; }
  .stay__grid, .faq-grid { grid-template-columns: 1fr; }
  .scr-grid, .plans { grid-template-columns: 1fr 1fr; }
  .plans .plan:last-child, .scr-grid .scr:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero__col { padding-top: 34px; padding-bottom: 8px; }
  .hero__t { font-size: clamp(54px, 17.5vw, 80px); }
  .hero__cta .btn { flex: 1; }
  .app__cred { display: none; }
  .app__body .tool .cl { display: inline-flex; }
  .ink { height: 500px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step b { font-size: 44px; }
  .step span { font-size: 9.5px; letter-spacing: .12em; }
  .caps { grid-template-columns: 1fr; }
  .cap, .cap:nth-child(n) { padding: 26px 0 32px; border-right: 0; border-bottom: 1px solid var(--hair); }
  .cap:last-child { border-bottom: 0; }
  .scr-grid, .plans { grid-template-columns: 1fr; gap: 40px; }
  .chat { padding: 20px 18px; }
  .stay__cta { justify-content: stretch; }
  .stay__cta .btn { flex: 1; }
  .faq summary { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__t .sl > span { animation: none; }
}

/* living engravings: the loops are rendered on the exact section colour, so no blend/filter is needed (cheaper to composite) */
.cap__art video { mix-blend-mode: normal; filter: none; }
video[data-live] { display: block; background: transparent; }
