/* Birkly product page.
 *
 * The page is one argument, not a feature list: what it is, who opens it,
 * how you build, how it ships, how AI joins you, what it becomes. The flow
 * is carried by the copy and by each section handing off to the next — the
 * parts are deliberately NOT numbered on screen.
 *
 * Images are gradient placeholders (.pr-ph). Each one is a real element with
 * an aspect ratio and a caption, so dropping an <img> in later changes
 * nothing about the layout — no reflow, no CLS.
 */

/* ---------- shared ---------- */
.pr-sec { padding: clamp(88px, 9vw, 175px) 0; box-sizing: border-box; }
.pr-sec--paper { background: var(--bk-paper); }
.pr-sec--white { background: #FFFFFF; border-top: 1px solid var(--bk-line); border-bottom: 1px solid var(--bk-line); }
.pr-sec--ink { background: var(--bk-ink); color: #E7EAE4; position: relative; overflow: hidden; }
.pr-sec--mint { background: #E9FAF9; border-top: 1px solid #D6F5F3; border-bottom: 1px solid #D6F5F3; }
.pr-sec--cont { padding-top: clamp(48px, 5vw, 90px); }

.pr-lede { font-size: clamp(16px, 1vw, 22px); color: #4A4F5E; margin: 18px 0 0; max-width: 56ch; text-wrap: pretty; }
.pr-sec--ink .pr-lede { color: #B4B9C6; }

/* ---------- links out to the docs ---------- */
.pr-docs { margin: 26px 0 0; font-size: clamp(13.5px, .8vw, 16px); color: var(--bk-muted); }
.pr-docs a {
  color: var(--bk-ink); font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--bk-mint); padding-bottom: 2px;
}
.pr-docs a:hover { border-bottom-color: var(--bk-mint-deep); }
.pr-sec--ink .pr-docs { color: #8E94A3; }
.pr-sec--ink .pr-docs a { color: #F8F9F7; }

/* ---------- forward link: hands the reader to the next section ---------- */
.pr-bridge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(14px, .82vw, 17px); font-weight: 600; color: var(--bk-ink);
  text-decoration: none; border-bottom: 2px solid var(--bk-mint);
  padding-bottom: 3px; margin-top: 22px;
}
.pr-sec--ink .pr-bridge { color: #F8F9F7; }

/* ---------- gradient placeholders / screenshot frames ----------
   Aspect ratio matches the real product screenshots (≈5:3, native
   4002x2394 and 3998x2402) so object-fit: cover never has to crop
   meaningful UI out of frame. */
.pr-ph {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--bk-line);
  background: linear-gradient(150deg, #EFF1E9 0%, #E4EDE9 48%, #D9EFEB 100%);
  aspect-ratio: 5 / 3;
  box-shadow: 0 22px 54px rgba(30,31,42,.07);
}
.pr-ph::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 88% 92%, rgba(124,227,222,.34), transparent 58%),
    radial-gradient(90% 70% at 8% 10%, rgba(30,31,42,.10), transparent 62%);
  pointer-events: none;
}
.pr-ph--ink { background: linear-gradient(150deg, #262836 0%, #1E1F2A 55%, #22303A 100%); border-color: #343648; }
.pr-ph--ink::after { background: radial-gradient(120% 85% at 85% 90%, rgba(124,227,222,.20), transparent 60%); }
.pr-ph--mint { background: linear-gradient(150deg, #DCF7F4 0%, #C9F0EC 52%, #E9FAF9 100%); border-color: #D6F5F3; }
.pr-ph--wide { aspect-ratio: 5 / 3; }
.pr-ph--tall { aspect-ratio: 3 / 4; }
.pr-ph--square { aspect-ratio: 1 / 1; }
.pr-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pr-ph-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  font-family: var(--bk-mono); font-size: 11.5px; color: var(--bk-muted);
  padding: 11px 16px; background: rgba(255,255,255,.72); backdrop-filter: blur(4px);
  border-top: 1px solid rgba(30,31,42,.06);
}
.pr-ph--ink .pr-ph-cap { color: #9AA0B0; background: rgba(21,22,30,.66); border-top-color: #2C2E3D; }

/* ---------- asymmetric split ---------- */
.pr-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.pr-split--flip > *:first-child { order: 2; }
.pr-split--top { align-items: start; }
.pr-model-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.pr-chip {
  font-family: var(--bk-mono); font-size: 13px; padding: 9px 14px; border-radius: 10px;
  background: #FFFFFF; border: 1px solid var(--bk-line); color: var(--bk-ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.pr-chip::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--bk-mint); }
.pr-sec--ink .pr-chip { background: #21222E; border-color: #2C2E3D; color: #E7EAE4; }

/* ---------- role rows ---------- */
.pr-roles { display: flex; flex-direction: column; border-top: 1px solid var(--bk-line-soft, #DDE1DA); }
.pr-role {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(18px, 3vw, 48px);
  align-items: start;
  padding: clamp(30px, 3.5vw, 54px) 6px;
  border-bottom: 1px solid var(--bk-line-soft, #DDE1DA);
  transition: background .35s ease, padding-left .35s ease;
}
.pr-role:hover { background: #FFFFFF; padding-left: 20px; }
.pr-role--ahead { background: #FBFCFA; }
.pr-role-mark {
  font-family: var(--bk-serif); font-size: clamp(30px, 3vw, 54px); font-weight: 500;
  line-height: 1; color: var(--bk-mint-deep); letter-spacing: -.03em;
}
.pr-role-h { font-family: var(--bk-serif); font-weight: 500; font-size: clamp(22px, 2.2vw, 40px); line-height: 1.14; letter-spacing: -.018em; margin: 0 0 8px; }
.pr-role-who { font-family: var(--bk-mono); font-size: 12px; color: var(--bk-muted-soft); margin: 0 0 14px; letter-spacing: .04em; }
.pr-role-p { font-size: clamp(14.5px, .86vw, 18px); color: var(--bk-muted); margin: 0; text-wrap: pretty; }
.pr-role-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pr-role-list li { font-size: clamp(14px, .82vw, 17px); color: #4A4F5E; display: flex; gap: 11px; align-items: baseline; }
.pr-role-list li::before { content: "→"; color: var(--bk-mint-deep); flex-shrink: 0; }
@media (max-width: 860px) {
  .pr-role { grid-template-columns: 1fr; gap: 14px; }
  .pr-role:hover { padding-left: 6px; }
}

/* ---------- full-bleed band ---------- */
.pr-band-notes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(20px, 3vw, 48px); margin-top: clamp(32px, 4vw, 60px);
}
.pr-note-h { font-family: var(--bk-serif); font-weight: 500; font-size: clamp(18px, 1.4vw, 26px); margin: 0 0 8px; }
.pr-note-p { font-size: clamp(14px, .82vw, 17px); color: var(--bk-muted); margin: 0; text-wrap: pretty; }

/* ---------- dark tool list ---------- */
.pr-tools { display: flex; flex-direction: column; gap: 2px; border-radius: 16px; overflow: hidden; border: 1px solid #2C2E3D; background: #15161E; }
.pr-tool {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 15px 20px; border-bottom: 1px solid #23242F;
}
.pr-tool:last-child { border-bottom: none; }
.pr-tool code { font-family: var(--bk-mono); font-size: clamp(12.5px, .8vw, 14.5px); color: var(--bk-mint); background: none; padding: 0; }
.pr-tool span { font-size: 13.5px; color: #8E94A3; }

/* ---------- AI: identity rail ---------- */
.pr-identity { display: flex; flex-direction: column; gap: 2px; border-radius: 16px; overflow: hidden; border: 1px solid #2C2E3D; background: #15161E; }
.pr-ident { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid #23242F; }
.pr-ident:last-child { border-bottom: none; }
.pr-ident-who { font-family: var(--bk-mono); font-size: clamp(12px,.78vw,14px); color: #E7EAE4; margin: 0; }
.pr-ident-role { font-family: var(--bk-mono); font-size: 11px; color: var(--bk-mint); border: 1px solid #2C4A48; background: rgba(124,227,222,.08); border-radius: 99px; padding: 5px 11px; white-space: nowrap; }

/* ---------- AI: three ways to connect ---------- */
.pr-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(285px, 100%), 1fr)); gap: 18px; }
.pr-way {
  background: #FFFFFF; border: 1px solid var(--bk-line); border-radius: 20px;
  padding: 30px 28px; display: flex; flex-direction: column; gap: 13px;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.pr-way:hover { border-color: var(--bk-mint); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(30,31,42,.06); }
.pr-way-k { font-family: var(--bk-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--bk-muted-soft); margin: 0; }
.pr-way-h { font-family: var(--bk-serif); font-weight: 500; font-size: clamp(20px, 1.6vw, 30px); line-height: 1.14; margin: 0; letter-spacing: -.015em; }
.pr-way-p { font-size: clamp(14px, .82vw, 17px); color: var(--bk-muted); margin: 0; text-wrap: pretty; }
.pr-way-role {
  align-self: flex-start; font-family: var(--bk-mono); font-size: 11.5px;
  padding: 6px 12px; border-radius: 99px;
  background: #E9FAF9; color: var(--bk-mint-deep); border: 1px solid #D6F5F3;
}
.pr-way-list { list-style: none; margin: auto 0 0; padding: 15px 0 0; border-top: 1px solid var(--bk-line); display: flex; flex-direction: column; gap: 9px; }
.pr-way-list li { font-size: 13.5px; color: #4A4F5E; display: flex; gap: 10px; align-items: baseline; }
.pr-way-list li::before { content: "→"; color: var(--bk-mint-deep); flex-shrink: 0; }

/* ---------- AI: approval flow ---------- */
.pr-flow {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr));
  gap: 14px; margin-top: clamp(30px, 4vw, 54px); counter-reset: prflow;
}
.pr-flow-step { background: #FFFFFF; border: 1px solid var(--bk-line); border-radius: 16px; padding: 24px 22px; }
.pr-flow-step::before {
  counter-increment: prflow; content: "0" counter(prflow);
  font-family: var(--bk-mono); font-size: 11px; color: var(--bk-mint-deep);
  display: block; margin-bottom: 13px; letter-spacing: .06em;
}
.pr-flow-h { font-family: var(--bk-serif); font-weight: 500; font-size: clamp(17px, 1.2vw, 24px); line-height: 1.16; margin: 0 0 7px; }
.pr-flow-p { font-size: 13.5px; color: var(--bk-muted); margin: 0; text-wrap: pretty; }

/* ---------- AI: Agent Guide ---------- */
.pr-guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 76px); align-items: start; }
.pr-layers { display: flex; flex-direction: column; gap: 2px; border-radius: 16px; overflow: hidden; border: 1px solid #2C2E3D; background: #15161E; }
.pr-layer { padding: 16px 20px; border-bottom: 1px solid #23242F; }
.pr-layer:last-child { border-bottom: none; }
.pr-layer-k { font-family: var(--bk-mono); font-size: 12.5px; color: var(--bk-mint); margin: 0 0 5px; }
.pr-layer-p { font-size: 13.5px; color: #8E94A3; margin: 0; text-wrap: pretty; }
.pr-endpoint {
  font-family: var(--bk-mono); font-size: clamp(12px, .8vw, 14px); color: var(--bk-mint);
  background: #15161E; border: 1px solid #2C2E3D; border-radius: 12px;
  padding: 13px 17px; display: inline-block; margin-top: 24px; word-break: break-all;
}
.pr-guide-note { font-family: var(--bk-mono); font-size: 12px; color: #9AA0B0; margin: 14px 0 0; }
@media (max-width: 900px) { .pr-guide { grid-template-columns: 1fr; } }

/* ---------- spec sheet ---------- */
.pr-specs { display: flex; flex-direction: column; border-top: 1px solid var(--bk-line); }
.pr-spec {
  display: grid; grid-template-columns: minmax(140px, .5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 44px); align-items: baseline;
  padding: clamp(22px, 2.4vw, 34px) 4px; border-bottom: 1px solid var(--bk-line);
}
.pr-spec-k { font-family: var(--bk-mono); font-size: 12.5px; color: var(--bk-mint-deep); letter-spacing: .04em; }
.pr-spec-h { font-family: var(--bk-serif); font-weight: 500; font-size: clamp(19px, 1.6vw, 30px); line-height: 1.16; margin: 0; }
.pr-spec-p { font-size: clamp(14px, .82vw, 17px); color: var(--bk-muted); margin: 0; text-wrap: pretty; }
@media (max-width: 800px) { .pr-spec { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- closing coda: compact shapes ----------
   Deliberately NOT the front page's switcher. That component sells the idea
   to someone meeting it for the first time; by this point in the product page
   the reader already understands the model, so this is proof, not a pitch. */
.pr-shapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr)); gap: 14px; }
.pr-shape {
  background: #FFFFFF; border: 1px solid var(--bk-line); border-radius: 16px;
  padding: 24px 22px; display: flex; flex-direction: column; gap: 9px;
  transition: border-color .3s ease;
}
.pr-shape:hover { border-color: var(--bk-mint); }
.pr-shape-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pr-shape-h { font-family: var(--bk-serif); font-weight: 500; font-size: clamp(18px, 1.3vw, 25px); margin: 0; letter-spacing: -.012em; }
.pr-shape-plugin {
  flex-shrink: 0; font-family: var(--bk-mono); font-size: 10.5px; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 99px; white-space: nowrap;
  background: #E9FAF9; color: #1F857F; border: 1px solid #D6F5F3;
}
.pr-shape-p { font-size: 13.5px; color: var(--bk-muted); margin: 0; text-wrap: pretty; }
.pr-shape-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-shape-chip {
  font-family: var(--bk-mono); font-size: 11px; padding: 5px 10px; border-radius: 8px;
  background: var(--bk-paper); border: 1px solid var(--bk-line); color: var(--bk-muted);
}
.pr-shape-meta {
  font-family: var(--bk-mono); font-size: 11px; color: var(--bk-mint-deep);
  margin: auto 0 0; padding-top: 15px; border-top: 1px solid var(--bk-line);
}
.pr-shape-meta span { color: var(--bk-muted-soft); }

@media (max-width: 900px) {
  .pr-split { grid-template-columns: 1fr; }
  .pr-split--flip > *:first-child { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pr-role, .pr-way, .pr-shape { transition: none; }
  .pr-role:hover, .pr-way:hover { transform: none; }
}
