/* /invest-v2/ (25 October 2026): the tabbed plan section, the use of funds, and the folded sections.
   Uses the page's own theme variables (--ip-ink, --ip-muted, --ip-blue, --ip-line), so it follows the light and dark themes. */
.cc-v2 { --cc-green: #2f9e6e; --cc-orange: #d9822b; }
.cc-v2 .cc-v2-note { margin: 18px 0 0; color: var(--ip-muted); font-size: 12.5px; line-height: 1.6; max-width: 62em; }

/* ---- tabs ---- */
.cc-v2 .cc-tabs { display: flex; gap: 8px; margin: 22px 0 6px; flex-wrap: wrap; }
.cc-v2 .cc-tabs button { font: inherit; font-size: 14px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--ip-line); background: transparent; color: var(--ip-muted); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.cc-v2 .cc-tabs button:hover { color: var(--ip-ink); }
.cc-v2 .cc-tabs button[aria-selected="true"] { color: var(--ip-ink); border-color: var(--ip-blue); background: color-mix(in srgb, var(--ip-blue) 12%, transparent); }
.cc-v2 .cc-tabs button:focus-visible { outline: 2px solid var(--ip-blue); outline-offset: 3px; }
.cc-v2 .cc-panel[hidden] { display: none; }
.cc-v2 .cc-why { margin-top: 26px; }

/* ---- timelines ---- */
.cc-v2 .cc-tl-axis { margin-top: 28px; }
.cc-v2 .cc-tl { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cc-v2 .cc-tl-axis, .cc-v2 .cc-tl li { display: grid; grid-template-columns: minmax(150px, 280px) minmax(0, 1fr); gap: 18px; align-items: center; }
.cc-v2 .cc-tl-axis { color: var(--ip-muted); font-size: 12px; letter-spacing: .08em; }
.cc-v2 .cc-tl-track { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.cc-v2 .cc-tl-ticks { display: flex; justify-content: space-between; }
.cc-v2 .cc-tl-name { color: var(--ip-ink); font-size: 14.5px; line-height: 1.3; }
.cc-v2 .cc-tl-name small { display: block; color: var(--ip-muted); font-size: 12px; margin-top: 2px; }
.cc-v2 .cc-tl-track { position: relative; min-height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--ip-line) 45%, transparent); align-items: center; }
.cc-v2 .cc-tl-bar { grid-row: 1; height: 26px; border-radius: 9px; padding: 0 12px; display: flex; align-items: center; font-size: 12.5px; white-space: nowrap; color: #fff; background: #2f7fd0; overflow: hidden; }
.cc-v2 .cc-tl-bar.today { background: var(--cc-green); color: #07281a; }
.cc-v2 .cc-tl-bar.before { background: var(--cc-orange); color: #2b1604; }
.cc-v2 .cc-tl-bar.build { background: #1a5a96; color: #fff; }
.cc-v2 .cc-tl-call { grid-row: 1; padding-left: 12px; font-size: 12.5px; color: var(--ip-muted); white-space: nowrap; align-self: center; }
.cc-v2 .cc-legend { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12.5px; color: var(--ip-muted); }
.cc-v2 .cc-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 4px; margin-right: 7px; vertical-align: -1px; background: #2f7fd0; }
.cc-v2 .cc-legend i.today { background: var(--cc-green); }
.cc-v2 .cc-legend i.before { background: var(--cc-orange); }

/* ---- columns of text ---- */
.cc-v2 .cc-cols { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--ip-line); display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 26px; }
.cc-v2 .cc-cols h3 { margin: 0 0 8px; font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ip-blue); }
.cc-v2 .cc-cols p { margin: 0; color: var(--ip-ink); font-size: 14.5px; line-height: 1.65; }
.cc-v2 .cc-cols p + p { margin-top: 8px; color: var(--ip-muted); font-size: 13px; }

/* ---- toggles (also used for the folded sections) ---- */
.cc-more { margin-top: 18px; border-top: 1px solid var(--ip-line); padding-top: 12px; }
.cc-more > summary { cursor: pointer; font-size: 14px; color: var(--ip-ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.cc-more > summary::-webkit-details-marker { display: none; }
.cc-more[open] > summary span { transform: rotate(45deg); display: inline-block; }
.cc-v2 .cc-more .cc-cols { border-top: 0; margin-top: 14px; padding-top: 0; }

/* ---- use of funds ---- */
.cc-v2-funds { margin: 14px 0 0; padding: 0; list-style: none; max-width: 40em; }
.cc-v2-funds li { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; border-bottom: 1px solid var(--ip-line); font-size: 14px; line-height: 1.4; color: var(--ip-ink); }
.cc-v2-funds li b { font-weight: 400; white-space: nowrap; color: var(--ip-blue); }
.cc-v2-funds + p { margin-top: 12px; }

/* ---- the page is shorter: three sections are folded into other places, the market section is more compact ---- */
#root .i6-showcase .i6-ask { display: none; }
#root .i6-showcase { grid-template-columns: minmax(0, 1fr) !important; }
#root .i6-showcase .i6-app { margin-inline: auto; max-width: min(100%, 980px); }
#root #why-now, #root #why-us { display: none; }
#root #round > .cc-cat { margin: 24px 28px 0; }
#root #vision .i8-card-source { display: none; }
#root #vision .cc-mkt-folded > .i7-figure-note, #root #vision .cc-mkt-folded > .i5-upside { display: none; }
#root #vision .cc-mkt { margin-top: 22px; }

/* ---- the same glass artwork as the other sections (the live version is drawn on top of this by live-art-v2.js) ---- */
html[data-investor-design="v10"] .investor-v9[data-theme="light"] #cc-v2-plan { background-image: url("/v25/glass-v25b-aurora-light.svg"); background-size: 100% 100%; background-repeat: no-repeat; background-position: center; }
html[data-investor-design="v10"] .investor-v9[data-theme="dark"] #cc-v2-plan { background-image: url("/v25/glass-v25b-aurora-dark.svg"); background-size: 100% 100%; background-repeat: no-repeat; background-position: center; }

/* ---- the same motion as the other sections ---- */
.cc-v2 .v7-marker:before, .cc-v2 .v7-marker:after { transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
.cc-v2.cc-ready .cc-rv, .cc-v2.cc-ready .cc-pi { opacity: 0; transform: translateY(18px); filter: blur(6px); }
.cc-v2.cc-in .cc-rv { opacity: 1; transform: none; filter: none; transition: opacity .8s ease calc(var(--k, 0) * 70ms), transform .9s cubic-bezier(.22, 1, .36, 1) calc(var(--k, 0) * 70ms), filter .8s ease calc(var(--k, 0) * 70ms); }
.cc-v2 .cc-panel.cc-go .cc-pi { opacity: 1; transform: none; filter: none; transition: opacity .8s ease calc(var(--k, 0) * 70ms), transform .9s cubic-bezier(.22, 1, .36, 1) calc(var(--k, 0) * 70ms), filter .8s ease calc(var(--k, 0) * 70ms); }
.cc-v2.cc-ready .cc-tl-bar { transform: scaleX(0); transform-origin: 0 50%; }
.cc-v2 .cc-panel.cc-go .cc-tl-bar { transform: scaleX(1); transition: transform 1.1s cubic-bezier(.22, 1, .36, 1) calc(var(--r, 0) * 120ms + 350ms); }
.cc-v2.cc-ready .cc-tl-call { opacity: 0; }
.cc-v2 .cc-panel.cc-go .cc-tl-call { opacity: 1; transition: opacity .8s ease calc(var(--r, 0) * 120ms + 1100ms); }
@media (prefers-reduced-motion: reduce) {
  .cc-v2.cc-ready .cc-rv, .cc-v2.cc-ready .cc-pi, .cc-v2.cc-ready .cc-tl-bar, .cc-v2.cc-ready .cc-tl-call { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 760px) {
  /* everything on the desktop layout stays on a phone: the month scale sits above the bars and the notes move under their bar */
  .cc-v2 .cc-tl-axis { grid-template-columns: 1fr; margin-top: 22px; }
  .cc-v2 .cc-tl-axis > span:first-child { display: none; }
  .cc-v2 .cc-tl li { grid-template-columns: 1fr; gap: 5px; align-items: stretch; }
  .cc-v2 .cc-tl { gap: 14px; }
  .cc-v2 .cc-tl-call { grid-column: 1 / -1 !important; grid-row: 2; padding: 6px 0 0; white-space: normal; font-size: 12px; line-height: 1.45; }
  .cc-v2 .cc-tl-track { background: none; min-height: 0; align-items: start; }
  .cc-v2 .cc-tl-bar { font-size: 11.5px; padding: 0 8px; min-width: 0; }
  .cc-v2 .cc-cols { grid-template-columns: 1fr; gap: 20px; }
  #root #round > .cc-cat { margin: 20px 18px 0; }
}

/* the pitch deck button */
#root .cc-deck-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--ip-ink); border: 1px solid var(--ip-blue); text-decoration: none; cursor: pointer; }
#root .cc-deck-btn:hover { background: color-mix(in srgb, var(--ip-blue) 14%, transparent); }
#root .cc-deck-btn:focus-visible { outline: 2px solid var(--ip-blue); outline-offset: 3px; }
#root .cc-deck-line { margin: 14px 0 0; }

/* the pitch deck button on phones: same width, height and left edge as the main button, text left and arrow right */
@media (max-width: 760px) {
  #root .i5-hero .button-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: stretch; justify-items: stretch; }
  #root .i5-hero .button-row > .button { width: 100%; box-sizing: border-box; justify-content: space-between; min-height: 48px; margin: 0; }
  #root .i5-hero .button-row > .text-link { justify-self: start; margin: 4px 0 0; }
  #root .cc-deck-line { margin-top: 14px; }
  #root .cc-deck-line .cc-deck-btn { width: 100%; box-sizing: border-box; justify-content: space-between; min-height: 48px; }
}

#root .i5-hero .button-row > .cc-deck-hero { justify-content: space-between; box-sizing: border-box; }
#root .cc-deck-line { margin: 14px 0 22px; }
@media (max-width: 760px) { #root .cc-deck-line { margin: 14px 0 22px; } }

/* the deck button eases in instead of popping in */
@keyframes ccDeckIn { from { opacity: 0; } to { opacity: 1; } }
#root .cc-deck-btn { animation: ccDeckIn .45s ease both; }
@media (prefers-reduced-motion: reduce) { #root .cc-deck-btn { animation: none; } }
