/* ===============================================================
   oorbi, v2 visual (2026-11-08). Loaded after oorbi.css, as
   memberships-v2.css is for N26 Memberships: the site's library
   (components.css) on this case's scenes.
   - every text on the site's type roles (--cs-*), one weight per title,
     the title motion on every section title
   - numbers plain and light, labels in GT America Mono
   - every box on --radius
   - the hero framed under the white nav
   - oorbi's own colour (its card on the home page) where the N26 cases
     use green: the results band, the dark cards; white accents on dark
   - tabs instead of the bar indexes, icons instead of the stack numbers
   - the end: More cases with the two N26 cases
   Selectors start with html:root:root body to win over oorbi.css's
   .is-scenes rules.
   =============================================================== */

:root { --oorbi: #350234; --red: var(--oorbi); --case-title: var(--text); }
/* the big word in grey on the dark recording; the same window sizes as the scenes (oorbi.js), so nothing waits for a script to flip it */
@media (min-width: 900px) and (min-height: 560px) { :root { --case-title: var(--grey); } }

/* ---------- surfaces ---------- */
html:root:root body :is(.card, .hero__card, .doc, .box, .site, .one__veil) { border-radius: var(--radius); }

/* ---------- hero, framed as the home header ---------- */

/* ---------- the summary strip (as both N26 cases) ---------- */
html:root:root body .meta-rule { display: none; }
html.is-scenes:root body .meta { left: calc(var(--u) * 16px); right: calc(var(--u) * 16px); width: auto; }
html:root:root body .meta { border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); align-items: stretch; background: var(--white); }
html:root:root body .meta__intro { gap: 0; color: var(--text); }
html:root:root body .meta__head { font-family: "GT America"; font-size: var(--cs-title-sm); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
html:root:root body .meta__sub { font-family: "GT America"; font-size: var(--cs-body); font-weight: 300; line-height: 1.4; letter-spacing: -0.01em; color: var(--text-soft); }
html.is-scenes:root body .meta__facts { width: calc(var(--u) * 520px); display: grid; grid-template-columns: 1fr 0.85fr 0.85fr; gap: 0; padding: 0; background: none; color: var(--text); align-items: center; }
html.is-scenes:root body .meta__fact { flex-direction: column; gap: calc(var(--u) * 6px); align-self: stretch; justify-content: center; padding: 0 calc(var(--u) * 20px); box-shadow: inset 1px 0 0 var(--line); }
html:root:root body .meta__fact dt { width: auto; min-width: 0; padding: 0; text-align: left; line-height: 1; font-family: "GT America Mono"; font-size: var(--cs-label); font-weight: 400; letter-spacing: 0.01em; color: var(--text-faint); }
html:root:root body .meta__fact dd { margin: 0; font-family: "GT America"; font-size: var(--cs-body-sm); font-weight: 300; line-height: 1.35; letter-spacing: -0.005em; color: var(--text); }
html:root:root body .meta__fact dd a { color: inherit; }

/* ---------- type roles ---------- */
html:root:root body .ctitle {
  font-family: "GT America"; font-style: normal; font-weight: 300;
  font-size: var(--cs-title-lg); line-height: 1.04; letter-spacing: -0.03em; color: var(--text);
}
html:root:root body .ctitle :is(b, i) { font: inherit; letter-spacing: inherit; }
html:root:root body .ctitle--card { color: var(--on-dark); }
html.is-scenes:root body .ctitle { top: calc(var(--u) * var(--stage-title-top)); }
html:root:root body .ctitle[data-shrink] { --shrink-origin: 50% 0; }
html:root:root body :is(.facts__title, .one__title, .doc__title) { font-family: "GT America"; font-style: normal; font-weight: 300; font-size: var(--cs-title-md); line-height: 1.15; letter-spacing: -0.02em; }
html:root:root body :is(.move__title, .box__title) { font-family: "GT America"; font-weight: 400; font-size: var(--cs-title-sm); line-height: 1.3; letter-spacing: -0.01em; }
html:root:root body :is(.one__text, .claude__copy p, .open__copy p, .store__sub, .ai__intro, .vibe) { font-family: "GT America"; font-weight: 300; font-size: var(--cs-body); line-height: 1.4; letter-spacing: -0.01em; }
html:root:root body :is(.xmetric__label, .facts__head, .stack__sub, .move__text, .doc__desc, .box__text, .funnel, .commits__marks li, .reason) {
  font-family: "GT America"; font-weight: 300; font-size: var(--cs-body-sm); line-height: 1.4; letter-spacing: -0.005em;
}
html:root:root body :is(.tag, .source, .commits__cap, .commits__day, .move__tools li, .chip, .match) {
  font-family: "GT America Mono"; font-weight: 400; font-style: normal; font-size: var(--cs-label); line-height: 1.4; letter-spacing: 0.01em; text-transform: none;
}
html:root:root body :is(.xmetric__num, .box__num) {
  font-family: "GT America"; font-weight: 300; letter-spacing: -0.04em; line-height: 1;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; filter: none;
}
html:root:root body .xmetric__label { width: auto; }

/* ---------- In numbers: the band on oorbi's colour, everything white ---------- */
html:root:root body .facts__card { background: var(--oorbi-card); }
html:root:root body .facts__title { color: var(--on-dark); }
html:root:root body .facts__head { color: var(--on-dark-soft); }
html:root:root body .facts .xmetric__num { font-size: var(--cs-num-lg); color: var(--on-dark); }
html:root:root body .facts .xmetric__label { color: var(--on-dark-soft); margin-top: calc(var(--u) * 8px); }

/* ---------- An audience of one ---------- */
html:root:root body .one__title { color: var(--text); }
html:root:root body .one__text { color: var(--text-soft); }

/* ---------- The stack: icons, white accents, tools as mono tags ---------- */
html:root:root body .stack__sub { color: var(--on-dark-soft); }
html.is-scenes:root body .stack__sub { top: calc(var(--u) * 118px); }
html:root:root body .move__num { height: calc(var(--u) * 44px); display: flex; align-items: flex-end; margin-bottom: calc(var(--u) * 12px); color: var(--on-dark); }
html:root:root body .move__num i { display: none; }
html:root:root body .move__icon { display: block; width: calc(var(--u) * 36px); height: calc(var(--u) * 36px); }
html:root:root body .move__digit { clip-path: inset(-10% -10% 0 -10%); }
html:root:root body .stack .move__title { color: var(--on-dark); }
html:root:root body .stack .move__text { color: var(--on-dark-soft); }
html:root:root body .moves__line, html:root:root body .moves__track i { background: var(--on-dark); }
html:root:root body .stack .move__tools li { border-radius: 999px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-on-dark); color: var(--on-dark-soft); }
html.is-scenes:root body .stack .move__tools li { padding: calc(var(--u) * 3px) calc(var(--u) * 10px); }

/* ---------- Working with AI: the copy left, the tab bar and a document right ---------- */
html:root:root body .claude__copy p { color: var(--text-soft); }
html.is-scenes:root body .work .work-tabs { top: 0; left: 0; right: auto; }
html.is-scenes:root body .work .steps { top: calc(var(--u) * 68px); }
/* the tab names the document: its own title is for screen readers */
html.is-scenes:root body .work .doc__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html:root:root body .doc__desc { color: var(--text-soft); }
html:root:root body .work .doc { background: var(--white); box-shadow: var(--shadow-frame); border: 0; }
html:not(.is-scenes) .work-tabs { display: none; }

/* ---------- The AI inside: title on top, the tabs, phone left, step right ---------- */
html.is-scenes:root body .ai .ai__title { top: calc(var(--u) * 48px); left: 50%; right: auto; translate: -50% 0; font-size: var(--cs-title-lg); }
html.is-scenes:root body .ai .ai__intro { top: calc(var(--u) * 118px); left: 50%; right: auto; translate: -50% 0; width: calc(var(--u) * 640px); text-align: center; color: var(--on-dark-soft); }
html.is-scenes:root body .ai.is-in .ai__title, html.is-scenes:root body .ai.is-in .ai__intro { translate: -50% 0; }
html.is-scenes:root body .ai-tabs { top: calc(var(--u) * 196px); left: 50%; translate: -50% 0; }
html.is-scenes:root body .ai__phone { top: calc(var(--u) * 262px); left: calc(var(--u) * 240px); width: calc(var(--u) * 220px); }
html.is-scenes:root body .ai__copy { top: 0; left: calc(var(--u) * 600px); width: calc(var(--u) * 520px); }
html.is-scenes:root body .ai .steps { top: calc(var(--u) * 262px); }
html:root:root body .ai .box { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-on-dark); border: 0; color: var(--on-dark-soft); }
html:root:root body .ai .box__title { color: var(--on-dark); }
html:root:root body .ai .box__text { color: var(--on-dark-soft); }
html:root:root body .ai .box__num { font-size: var(--cs-num-lg); color: var(--on-dark); }
html:root:root body .ai .tag { border-radius: 999px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-on-dark); color: var(--on-dark-soft); }
html:root:root body .ai .vibe { color: var(--on-dark); }
html:root:root body .ai .reason { color: var(--on-dark); }
html:not(.is-scenes) .ai-tabs { display: none; }

/* ---------- Opening it up: the chart in ink, milestones in oorbi's colour ---------- */
html:root:root body .open__copy p { color: var(--text-soft); }
html:root:root body .commits__bar { background: rgba(28, 3, 3, 0.18); }
html:root:root body .commits__bar.is-mark { background: var(--oorbi); }
html:root:root body .commits__marks li { color: var(--text); }
html:root:root body .commits__day, html:root:root body .commits__cap { color: var(--text-faint); }
html:root:root body .commits__marks li::before { background: var(--oorbi); }

/* ---------- The storefront ---------- */
html:root:root body .store__sub { color: var(--on-dark-soft); }
html:root:root body .store__sub a { color: var(--on-dark); }
html.is-scenes:root body .store .card { bottom: calc(var(--u) * 84px); }
html.is-scenes:root body .store__sub { top: calc(var(--u) * 118px); }
html.is-scenes:root body .site { top: calc(var(--u) * 192px); height: calc(var(--u) * 432px); }
html:root:root body .store__badges {
  --b: var(--bs, 1);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: calc(var(--b) * 12px);
}
html.is-scenes:root body .store__badges {
  bottom: calc(var(--u) * 20px); left: 50%; translate: -50% 0;
}
html:root:root body .store-badge {
  --b: var(--bs, 1);
  display: inline-flex; align-items: center; gap: calc(var(--b) * 10px);
  height: calc(var(--b) * 44px); padding: 0 calc(var(--b) * 14px) 0 calc(var(--b) * 12px);
  border-radius: calc(var(--b) * 8px);
  background: #000; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-xs), box-shadow var(--dur-xs);
}
html:root:root body .store-badge:is(:hover, :focus-visible) {
  background: #1d1d1f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}
html:root:root body .store-badge__icon {
  width: calc(var(--b) * 20px); height: calc(var(--b) * 22px); flex: none;
}
html:root:root body .store-badge__txt {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: calc(var(--b) * 2px); line-height: 1;
}
html:root:root body .store-badge__kicker {
  font-family: "GT America"; font-weight: 400;
  font-size: calc(var(--b) * 9px); letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.88);
}
html:root:root body .store-badge__kicker--caps {
  font-size: calc(var(--b) * 8.5px); letter-spacing: 0.05em;
}
html:root:root body .store-badge__name {
  font-family: "GT America"; font-weight: 500;
  font-size: calc(var(--b) * 16px); letter-spacing: -0.02em;
  color: #fff;
}

/* ---------- The end: More cases, the two N26 cases ---------- */
html:root:root body .outro__next {
  font-family: "GT America"; font-style: normal; font-weight: 300; font-size: var(--cs-title-lg);
  line-height: 1.04; letter-spacing: -0.03em; color: var(--text);
}
html.is-scenes:root body .outro .next-pair {
  top: 0; left: 0; width: calc(var(--u) * 1200px); height: calc(var(--u) * 500px);
  display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 16px); overflow: visible;
}
html.is-scenes:root body .outro .next-pair > * { position: relative; }
html.is-scenes:root body .outro .next-pair .cx--cover { overflow: hidden; }
html.is-scenes:root body .outro .next-pair :is(.cx__phone, .cx__lock) { position: absolute; }
/* phones: the two cards one under the other, at the home's phone sizes */
html:not(.is-scenes) .outro__next { font-size: var(--title-lg); text-align: center; }
html:not(.is-scenes):root body .outro .next-pair { position: static; top: auto; width: auto; height: auto; display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
html:not(.is-scenes):root body .outro .next-pair .cx--cover { height: 560px; padding: 28px 24px; }
html:not(.is-scenes):root body .outro .next-pair .cx__title { font-size: 34px; }
html:not(.is-scenes):root body .outro .next-pair .cx__big { font-size: 44px; white-space: normal; }
html:not(.is-scenes):root body .outro .next-pair .cx__phone { width: 150px; right: 20px; bottom: -170px; }
html:not(.is-scenes):root body .outro .next-pair .cx__top { padding-right: 44px; }
html:not(.is-scenes):root body .outro .next-pair .cx--cover .cx__res { max-width: 55%; }
html:not(.is-scenes):root body .outro .next-pair .cx__lock { top: 26px; right: 22px; width: 34px; height: 34px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
html:not(.is-scenes):root body .case-title { font-size: 16vw; }
/* phones: the title sits under the hero on white, so the big word is black there */


/* Summary facts: each label and value from the top of its cell, so the
   three line up whatever their length (Breno, 2026-11-08) */
html.is-scenes:root body .meta__fact { justify-content: flex-start; padding-top: calc(var(--u) * 22px); }

/* the icon rolls up out of its slot: the slot clips it, so none of it
   shows before it arrives (Breno, 2026-11-08) */
html:root:root body .move__num { overflow: hidden; }
html:root:root body .move__digit { clip-path: none; }

/* The AI inside, v2.1 (Breno, 2026-11-08): the step column starts under
   the tab bar (it used to cover it, so some tabs could not be clicked);
   the intro on one line, the tabs closer, the phone with air around it */
html.is-scenes:root body .ai .ai__intro { width: calc(var(--u) * 960px); }
html.is-scenes:root body .ai-tabs { top: calc(var(--u) * 172px); z-index: 2; }
html.is-scenes:root body .ai__copy { top: calc(var(--u) * 256px); height: calc(var(--u) * 420px); }
html.is-scenes:root body .ai .steps { top: 0; }
html.is-scenes:root body .ai__phone { top: calc(var(--u) * 256px); left: calc(var(--u) * 300px); width: calc(var(--u) * 200px); }

/* Opening it up: the milestones in the site green (Breno, 2026-11-08) */
html:root:root body .commits__bar.is-mark, html:root:root body .commits__marks li::before { background: var(--green); }
html:root:root body .move__digit, html:root:root body .move__digit > span { display: block; line-height: 0; }

/* ===============================================================
   Mobile & tablet stacked layout (html:not(.is-scenes), < 900px)
   =============================================================== */
html.hero-framed:not(.is-scenes):root body .story { padding: 96px 16px 40px; }
html:not(.is-scenes):root body .hero { padding-bottom: 32px; }
html:not(.is-scenes):root body .case-title {
  white-space: normal;
  font-size: clamp(56px, 14vw, 96px);
  line-height: 0.94;
  gap: 8px;
}
html:not(.is-scenes):root body .case-title__sub {
  font-size: clamp(24px, 5vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
html:not(.is-scenes):root body .meta__intro { padding: 20px; gap: 6px; }
html:not(.is-scenes):root body .meta__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  background: none;
  color: var(--text);
  border-top: 1px solid var(--line);
}
html:not(.is-scenes):root body .meta__fact {
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
}
html:not(.is-scenes):root body .meta__fact + .meta__fact {
  box-shadow: inset 1px 0 0 var(--line);
}
html:not(.is-scenes):root body .facts__list {
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
}
html:not(.is-scenes):root body .one__strip {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
html:not(.is-scenes):root body .one__strip::-webkit-scrollbar { display: none; }
html:not(.is-scenes):root body .stack .move__tools li { padding: 4px 10px; }
html:not(.is-scenes):root body .card--line { padding: 24px 20px; border-color: var(--line); }
html:not(.is-scenes):root body .ai .ai__title {
  font-family: "GT America";
  font-weight: 300;
  font-size: var(--cs-title-lg);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--on-dark);
}
html:not(.is-scenes):root body .outro .next-pair {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 767px) {
  html.hero-framed:not(.is-scenes):root body .story { padding: 72px 12px 32px; }
  html:not(.is-scenes):root body .on-grey,
  html:not(.is-scenes):root body .one { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  html:not(.is-scenes):root body .card { padding: 20px 16px; gap: 20px; }
  html:not(.is-scenes):root body .card--line { padding: 20px 16px; }
  html:not(.is-scenes):root body .meta__intro { padding: 16px; }
  html:not(.is-scenes):root body .meta__facts { grid-template-columns: 1fr; }
  html:not(.is-scenes):root body .meta__fact { padding: 12px 16px; }
  html:not(.is-scenes):root body .meta__fact + .meta__fact { box-shadow: inset 0 1px 0 var(--line); }
  html:not(.is-scenes):root body .facts__list { gap: 24px 12px; }
  html:not(.is-scenes):root body .one__strip img { height: 240px; }
  html:not(.is-scenes):root body .stack .moves { grid-template-columns: 1fr; gap: 24px; }
  html:not(.is-scenes):root body .doc { padding: 16px; }
  html:not(.is-scenes):root body .ai .box { padding: 18px 16px; }
  html:not(.is-scenes):root body .commits__marks { grid-template-columns: 1fr; gap: 10px; }
  html:not(.is-scenes):root body .site { height: auto; aspect-ratio: 16 / 10; max-height: 360px; }
  html:not(.is-scenes):root body .outro .next-pair { grid-template-columns: 1fr; gap: 8px; }
}
