/* TALVIOH product page. Shared by every <slug>.html page. */
/* ---------- top ---------- */
.pd { padding-top: clamp(32px, 4vw, 56px); }
.crumbs { display: flex; gap: 10px; font: 400 13.5px/1 var(--px); color: var(--text-3); }
.crumbs a:hover { color: var(--text); }
.pd__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "main info" "extra info"; gap: 14px clamp(32px, 5vw, 80px); margin-top: 24px; align-items: start; }
.pd__grid > .stage { grid-area: main; }
.stage { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); padding: 12%; }
.stage > * { width: 100%; }
.stage .tcover { width: 58%; }
.stage .shot--square { width: 76%; }
.extra { grid-area: extra; display: grid; gap: 14px; }
.extra .stage { aspect-ratio: auto; padding: 8%; }
.extra .stage .shot--tall { width: 56%; }
@media (max-width: 600px) { .extra .stage .shot--tall { width: 40%; } .extra .stage { padding: 7%; } .info h1 { font-size: 44px; } }
.info { grid-area: info; position: sticky; top: calc(var(--hdr) + 24px); }
.info__id { display: flex; align-items: center; gap: 14px; font: 400 13.5px/1 var(--px); color: var(--text-3); }
.info__id .pxicon { width: 56px; }
.info h1 { margin-top: 20px; font-size: clamp(48px, 5.4vw, 80px); line-height: .95; letter-spacing: -.06em; }
.info__line { margin-top: 14px; font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; letter-spacing: -.03em; line-height: 1.3; }
.info__sum { margin-top: 12px; color: var(--text-2); }
.buybox { margin-top: 28px; padding: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); --s: 4px; }
.buybox__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.buybox__price { font: 400 30px/1 var(--px); }
.buybox__price small { display: block; margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.buy-pair { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-pair .btn { justify-content: center; padding-inline: 14px; }
/* the Homebrew copy button: name and Recommended on top, the command under it */
.brew { flex: 1 1 100%; height: auto; flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 18px 15px; text-align: left; }
.brew__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brew__tag { flex: none; padding: 5px 8px; font: 400 11px/1 var(--px); letter-spacing: .02em; background: var(--btn-text); color: var(--btn); }
.brew code { font: 400 12.5px/1.45 var(--px); opacity: .72; overflow-wrap: anywhere; }
.buy-pair--soft .btn:not(.btn--soft) { background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text); }
.buy-pair--soft .btn:not(.btn--soft):hover { background: color-mix(in srgb, var(--text) 15%, transparent); }
.buy-options { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-options .btn { justify-content: center; padding-inline: 14px; }
@media (max-width: 420px) { .buy-options, .buy-pair { grid-template-columns: 1fr; } }
.facts { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 12px; font-size: 14.5px; }
.facts li > span:first-child { color: var(--text-3); }
.facts li > :last-child { font-weight: 500; text-align: right; }
.facts .kind .pxui, .facts .with-icon .pxui { height: 11px; }
.with-icon { display: inline-flex; align-items: center; gap: 8px; }
.info__ai { display: inline-flex; margin-top: 16px; }
.bundle-note { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; background: var(--bg-2); font-size: 14px; color: var(--text-2); --s: 3px; transition: background .2s ease; }
.bundle-note:hover { background: var(--card); color: var(--text); }
.bundle-note b { color: var(--text); font-weight: 600; }
.bundle-note__icons { display: flex; flex: none; }
.bundle-note__icons .pxicon { width: 22px; }
.bundle-note__icons .pxicon + .pxicon { margin-left: -5px; }
.bundle-note > .pxui { height: 9px; flex: none; margin-left: auto; }

/* ---------- sections ---------- */
.block { padding-top: clamp(64px, 9vw, 132px); }
.block .head { margin-bottom: clamp(24px, 3vw, 36px); }

/* inside: screenshots */
.inside .frame { width: 100%; }

/* inside: a guide preview made from the guide's own words */
.doc-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.doc { background: #fff; color: #1d1d1f; padding: clamp(28px, 4vw, 52px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); --s: 5px; }
:root[data-theme="dark"] .doc { background: #f5f5f4; }
.doc h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; line-height: 1.1; }
.doc__sub { margin-top: 8px; color: #6b6468; }
.doc h4 { margin: 26px 0 0; font-size: 17px; letter-spacing: -.02em; }
.doc ul { margin: 12px 0 0; padding-left: 18px; color: #3b3538; }
.doc li { margin-top: 6px; font-size: 15px; }
.doc__foot { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 14px; border-top: 1px solid #e6dfe2; font: 400 12.5px/1 var(--px); color: #6b6560; }
.parts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.parts li { display: grid; grid-template-columns: 74px 1fr; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.parts .px { font-size: 13px; font-weight: 400; color: var(--hl); }
.parts__note { margin-top: 16px; color: var(--text-2); font-size: 14.5px; }

/* features */
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 80px); border-top: 1px solid var(--line); }
.feats li { display: grid; grid-template-columns: 18px 1fr; gap: 4px 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feats .pxui { height: 9px; margin-top: 8px; color: var(--hl); }
.feats b { font-size: 18px; letter-spacing: -.03em; font-weight: 600; }
.feats p { grid-column: 2; color: var(--text-2); font-size: 15px; }

/* install: four numbered steps with a small picture each, then the facts */
.ist__eyebrow { margin-bottom: 14px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--hl); }
.ist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ist__step { display: flex; flex-direction: column; padding: 24px 22px 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); --s: 5px; }
.ist__n { display: grid; place-items: center; width: 36px; height: 36px; background: var(--hl); color: var(--bg); font-size: 15px; --s: 3px; }
.ist__step h3 { margin-top: 20px; font-size: 21px; letter-spacing: -.03em; line-height: 1.2; }
.ist__tag { display: inline-block; vertical-align: 3px; margin-left: 4px; padding: 4px 7px; font-size: 10.5px; line-height: 1; background: var(--hl); color: var(--bg); }
.ist__step > p { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.ist__step > p b { color: var(--text); font-weight: 600; }
.ist__pic { margin-top: auto; padding-top: 22px; }
.ist__dl { display: inline-flex; margin-top: 14px; font-size: 14px; }
/* a dashed ring round the thing to click, like a tutorial callout */
.ist__ring { outline: 1.5px dashed #8b5cf6; outline-offset: 3px; }
/* step 1: a small Terminal */
.ist__term { background: #0c0a09; color: #f5f5f4; font: 400 12px/1.55 var(--px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); border-radius: 6px; overflow: hidden; }
.ist__bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: rgba(245, 245, 244, .55); }
.ist__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.ist__bar span { margin-left: 6px; }
.ist__copy { margin-left: auto; height: 24px; padding: 0 10px; border: 0; cursor: pointer; background: #f5f5f4; color: #0c0a09; font: inherit; transition: background .2s ease, transform .12s ease; }
.ist__copy span { margin: 0; }
.ist__copy:hover { background: #fff; }
.ist__copy:active { transform: scale(.96); }
.ist__term p { padding: 10px 12px 0; overflow-wrap: anywhere; }
.ist__term p + p { padding-bottom: 12px; }
.ist__dim { color: rgba(245, 245, 244, .45); }
.ist__ok { color: #a7f3d0; }
/* step 2: the Privacy & Security row */
.ist__mac { padding: 14px 14px 16px; background: #f5f4f6; color: #1d1d1f; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); font-size: 13px; line-height: 1.45; }
:root[data-theme="dark"] .ist__mac { background: #2a2730; color: #f5f4f6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ist__mac-h { margin-bottom: 6px; font-weight: 600; font-size: 13.5px; }
.ist__mac-b { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 6px; background: #fff; color: #1d1d1f; font-size: 12.5px; font-weight: 500; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 1px 1px rgba(0, 0, 0, .08); }
:root[data-theme="dark"] .ist__mac-b { background: #55515c; color: #fff; box-shadow: none; }
/* step 3: the notch saying hi */
.ist__notch { display: flex; justify-content: center; padding: 0 0 18px; border-radius: 6px; background: linear-gradient(160deg, #3b1d5e, #180821 70%); overflow: hidden; }
.ist__pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px 10px; background: #000; color: #f5f5f4; border-radius: 0 0 16px 16px; font-size: 13.5px; font-weight: 500; }
.ist__wave { display: inline-block; transform-origin: 70% 80%; animation: istWave 2.4s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes istWave { 0%, 55%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }
/* step 4: the menu bar with the capsule icon */
.ist__mbar { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 9px 14px; border-radius: 6px; background: #1c1917; color: #f5f5f4; font-size: 12.5px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ist__cap { display: grid; place-items: center; width: 28px; height: 20px; border-radius: 5px; }
.ist__cap i { width: 18px; height: 9px; border: 1.6px solid #f5f2ee; border-radius: 6px; }
/* the facts strip */
.ist__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 14px 0 0; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); --s: 5px; }
.ist__facts > div { padding: 20px 22px; background: var(--card); }
.ist__facts dt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--hl); }
.ist__facts dd { margin: 8px 0 0; font-size: 15.5px; line-height: 1.45; }
.ist__note { margin-top: 12px; font-size: 13px; color: var(--text-3); }
@media (max-width: 1100px) {
  .ist, .ist__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ist, .ist__facts { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .ist__wave { animation: none; } }

/* setup with AI */
.setup { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.setup .lede { margin-top: 18px; }
.setup__time { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; font: 400 14px/1 var(--px); color: var(--text-2); }
.setup__time .pxui { height: 14px; color: var(--hl); }
.term pre { max-height: 440px; overflow: auto; }

/* what's new */
.releases { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.releases > li { display: grid; grid-template-columns: 220px 1fr; gap: 8px 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.rel__meta { font: 400 14px/1.5 var(--px); color: var(--text-3); }
.rel__meta b { display: block; font-weight: 400; font-size: 20px; color: var(--hl); }
.releases h3 { font-size: 21px; letter-spacing: -.03em; }
.releases ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.releases ul li { display: flex; gap: 12px; color: var(--text-2); }
.releases ul li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; flex: none; background: var(--hl); }

/* needs and notes */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.two h2 { font-size: clamp(30px, 3vw, 44px); letter-spacing: -.05em; line-height: 1; }
.plain { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.plain li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.plain li .pxui { height: 14px; margin-top: 4px; color: var(--hl); flex: none; width: 18px; }
.plain--notes li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; flex: none; background: var(--hl); }


.more { padding-block: clamp(64px, 9vw, 132px); }

/* sticky buy bar on phones */
.buybar { display: none; }
@media (max-width: 600px) {
  .pd__grid > .stage { aspect-ratio: 4 / 3; padding: 8%; }
  .pd__grid > .stage .tcover { width: 42%; }
}
@media (max-width: 960px) {
  .pd__grid { grid-template-columns: 1fr; grid-template-areas: "main" "info" "extra"; row-gap: 32px; }
  .info { position: static; }
  .feats, .two, .setup, .doc-wrap { grid-template-columns: minmax(0, 1fr); }
  .releases > li { grid-template-columns: 1fr; }
  .buybar {
    display: block; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    background: var(--nav); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding-bottom: max(12px, env(safe-area-inset-bottom));
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .buybar.show { transform: none; }
  .buybar__in { display: flex; align-items: center; gap: 12px; min-height: 62px; padding-inline: var(--gut); }
  .buybar__in .pxicon { width: 32px; flex: none; }
  .buybar__name { font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
  .buybar__name .price { display: block; margin-top: 2px; font-size: 13.5px; color: var(--text-2); }
  .buybar .btn { margin-left: auto; height: 44px; padding: 0 18px; font-size: 14.5px; flex: none; }
  body.has-buybar .footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
