/* CloudFold product styles. CloudFold's own colours and typefaces (Sora, IBM Plex Sans; SIL Open Font License,
   texts beside the font files). Every rule is scoped under .p-cloudfold so it only affects the product's area
   of the page and never the DevStorm header or footer. Dark colours follow the site theme. */
@font-face { font-family: "Sora"; src: url("/assets/products/cloudfold/fonts/Sora.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/products/cloudfold/fonts/IBMPlexSans.ttf") format("truetype"); font-weight: 100 700; font-display: swap; }
.p-cloudfold {
  --paper: #F4F5F1; --surface: #FFFFFF; --ink: #141A16; --muted: #586158; --line: #D7DBD2;
  --green: #0E6B4A; --green-deep: #0A4F37; --mint: #DCEFE5; --link: #0E6B4A;
  --on-green: #FFFFFF; --on-green-soft: #CDE8DA;
  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --text: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 34rem; --gutter: clamp(1rem, 4vw, 2.5rem); --page: calc(75rem + 2 * var(--gutter));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .p-cloudfold { --paper: #0F1411; --surface: #18201B; --ink: #E8EEE9; --muted: #9DAAA0; --line: #2A352E; --mint: #143827; --link: #6BD6A4; }
}
:root[data-theme="dark"] .p-cloudfold { --paper: #0F1411; --surface: #18201B; --ink: #E8EEE9; --muted: #9DAAA0; --line: #2A352E; --mint: #143827; --link: #6BD6A4; }

.p-cloudfold * { box-sizing: border-box; }
.p-cloudfold { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); }
.p-cloudfold img,
.p-cloudfold svg { display: block; max-width: 100%; }
.p-cloudfold a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
.p-cloudfold a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.p-cloudfold p { margin: 0 0 1em; }
.p-cloudfold h1,
.p-cloudfold h2,
.p-cloudfold h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
.p-cloudfold .wrap { max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }
/* ---- the green top of every page: who this is, and where to go ---- */
.p-cloudfold .masthead { background: var(--green); color: var(--on-green); }
.p-cloudfold .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.25rem; }
.p-cloudfold .brand { display: inline-flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; font: 600 1.125rem/1 var(--display); letter-spacing: -0.01em; }
.p-cloudfold .brand svg,
.p-cloudfold .brand img { width: 1.9rem; height: 1.9rem; }
.p-cloudfold .bar nav { display: flex; gap: 1.75rem; font-size: 0.975rem; }
.p-cloudfold .bar nav a { color: var(--on-green-soft); text-decoration: none; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.p-cloudfold .bar nav a:hover { color: var(--on-green); }
.p-cloudfold .bar nav a[aria-current="page"] { color: var(--on-green); border-bottom-color: currentColor; }
/* ---- the opening: the mark, drawn large, with its three parts named ---- */
.p-cloudfold .opening { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6.5rem); }
.p-cloudfold .opening h1 { font-weight: 600; font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; }
.p-cloudfold .opening .lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; color: var(--on-green-soft); max-width: 30rem; margin: 1.5rem 0 0; }
.p-cloudfold .opening .status { margin: 2rem 0 0; font-size: 0.975rem; color: var(--on-green); border-left: 3px solid var(--on-green-soft); padding-left: 0.9rem; max-width: 28rem; }
.p-cloudfold .fold { width: 100%; max-width: 27rem; justify-self: center; overflow: visible; }
.p-cloudfold .fold .sq { fill: none; stroke: #FFFFFF; stroke-width: 9; }
.p-cloudfold .fold .core { fill: #FFFFFF; transform-origin: 200px 200px; }
.p-cloudfold .fold text { font: 500 15px var(--text); fill: #FFFFFF; }
.p-cloudfold .fold .tick { stroke: var(--on-green-soft); stroke-width: 1.5; fill: none; }
/* ---- what it does: words on one side, the real screen on the other ---- */
.p-cloudfold .sections { padding-block: clamp(3rem, 8vw, 6rem) 0; }
.p-cloudfold .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); align-items: center; gap: clamp(2rem, 7vw, 6rem); padding-block: clamp(2rem, 5vw, 3.5rem); }
.p-cloudfold .pair:nth-of-type(even) { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
.p-cloudfold .pair:nth-of-type(even) .words { order: 2; }
.p-cloudfold .pair h2 { font-weight: 600; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; max-width: 18ch; }
.p-cloudfold .pair .words > p { max-width: var(--measure); color: var(--muted); font-size: 1.125rem; margin-top: 1rem; }
.p-cloudfold .pair ul { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: var(--measure); border-top: 1px solid var(--line); }
.p-cloudfold .pair li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.p-cloudfold .phone { margin: 0; justify-self: center; width: min(100%, 18.5rem); border-radius: 2.4rem; padding: 0.55rem; background: #0A0E0B; box-shadow: 0 1.5rem 3rem -1.5rem rgba(10, 61, 43, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.p-cloudfold .phone img { border-radius: 1.9rem; width: 100%; height: auto; aspect-ratio: 1 / 2; }
/* ---- the four promises: the reason to trust it with files ---- */
.p-cloudfold .promises { margin-top: clamp(3rem, 8vw, 6rem); background: var(--mint); }
.p-cloudfold .promises .wrap { padding-block: clamp(3rem, 8vw, 6rem); }
.p-cloudfold .promises h2 { font-weight: 600; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; max-width: 20ch; }
.p-cloudfold .promises ol { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 6vw, 5rem); }
.p-cloudfold .promises li { border-top: 2px solid var(--ink); padding: 1.1rem 0 2rem; }
.p-cloudfold .promises li strong { display: block; font: 600 1.3125rem/1.25 var(--display); letter-spacing: -0.015em; }
.p-cloudfold .promises li span { display: block; margin-top: 0.5rem; color: var(--muted); max-width: 30rem; }
/* ---- private, and what you need ---- */
.p-cloudfold .facts .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 7vw, 6rem); padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 3rem); }
.p-cloudfold .facts h2 { font-weight: 600; font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.025em; }
.p-cloudfold .facts ul { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.p-cloudfold .facts li { padding-left: 1.5rem; position: relative; margin-bottom: 0.8rem; max-width: var(--measure); }
.p-cloudfold .facts li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.6rem; height: 0.6rem; border-radius: 0.2rem; background: var(--link); }
.p-cloudfold .facts p.more { margin-top: 1.25rem; }
.p-cloudfold .fine { color: var(--muted); font-size: 0.9375rem; max-width: 44rem; border-top: 1px solid var(--line); padding-block: 1.5rem clamp(2.5rem, 6vw, 4rem); margin: 0; }
/* ---- the start page ---- */
.p-cloudfold .studio { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 8vw, 6rem); }
.p-cloudfold .studio h1 { font-weight: 600; font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 14ch; }
.p-cloudfold .studio .lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--on-green-soft); max-width: 32rem; margin: 1.5rem 0 0; }
.p-cloudfold .product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 16rem); gap: clamp(2rem, 7vw, 6rem); align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
.p-cloudfold .product h2 { font-weight: 600; font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.1; }
.p-cloudfold .product p { color: var(--muted); font-size: 1.125rem; max-width: var(--measure); margin-top: 1rem; }
.p-cloudfold .go { display: inline-block; margin-top: 1rem; background: var(--green); color: #FFFFFF; text-decoration: none; font: 600 1rem/1 var(--display); padding: 0.95rem 1.4rem; border-radius: 0.8rem; }
.p-cloudfold .go:hover { background: var(--green-deep); }
.p-cloudfold .quiet { margin-left: 1.25rem; }
/* ---- reading pages: the policy, the missing page ---- */
.p-cloudfold .title { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.25rem, 6vw, 4rem); }
.p-cloudfold .title h1 { font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; max-width: 16ch; }
.p-cloudfold .title p { color: var(--on-green-soft); margin: 1rem 0 0; }
.p-cloudfold .reading { max-width: 46rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) clamp(3rem, 8vw, 5rem); }
.p-cloudfold .reading h2 { font-weight: 600; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; margin: 2.75rem 0 0.75rem; }
.p-cloudfold .reading > p,
.p-cloudfold .reading li { max-width: 40rem; }
.p-cloudfold .reading .summary { font-size: 1.25rem; line-height: 1.5; padding: 1.25rem 1.5rem; background: var(--mint); border-radius: 1rem; margin: 0 0 0.5rem; max-width: none; }
.p-cloudfold .reading ul { padding-left: 1.25rem; margin: 0 0 1em; }
.p-cloudfold .reading li { margin-bottom: 0.5rem; }
.p-cloudfold .reading dl { margin: 0; border-top: 1px solid var(--line); }
.p-cloudfold .reading dl > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 0.25rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.p-cloudfold .reading dt { font-weight: 600; }
.p-cloudfold .reading dd { margin: 0; color: var(--muted); }
.p-cloudfold footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.p-cloudfold footer .wrap { display: flex; justify-content: space-between; gap: 0.5rem 2rem; flex-wrap: wrap; padding-block: 1.75rem 2.5rem; }
.p-cloudfold footer a { color: inherit; }
@media (max-width: 46rem) {
.p-cloudfold .opening,
.p-cloudfold .pair,
.p-cloudfold .pair:nth-of-type(even),
.p-cloudfold .product,
.p-cloudfold .facts .cols { grid-template-columns: minmax(0, 1fr); }
.p-cloudfold .pair:nth-of-type(even) .words { order: 0; }
.p-cloudfold .fold { max-width: 19rem; justify-self: start; }
.p-cloudfold .promises ol { grid-template-columns: minmax(0, 1fr); }
.p-cloudfold .phone { justify-self: start; }
.p-cloudfold .reading dl > div { grid-template-columns: minmax(0, 1fr); }
.p-cloudfold .quiet { margin-left: 0; display: block; margin-top: 1rem; }
}

/* ---- hero: device pills, and the diagram with its labels ---- */
.p-cloudfold .opening { align-items: center; }
.p-cloudfold .devices { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.p-cloudfold .devices li { padding: 0.45rem 0.9rem; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; font-size: 0.9375rem; line-height: 1.2; color: var(--on-green); }
.p-cloudfold .fold-wrap { position: relative; width: 100%; max-width: 27rem; justify-self: center; }
.p-cloudfold .fold { max-width: none; }
.p-cloudfold .fold .sq,
.p-cloudfold .fold .core { transform-box: fill-box; transform-origin: 50% 50%; }
.p-cloudfold .fold__label { position: absolute; margin: 0; font: 500 0.9375rem/1.2 var(--text); color: #FFFFFF; white-space: nowrap; }
.p-cloudfold .fold__label--a { left: 15%; top: 6%; }
.p-cloudfold .fold__label--same { left: 73%; top: 22%; }
.p-cloudfold .fold__label--b { right: 15%; bottom: 6%; }
.p-cloudfold .dc__code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.p-cloudfold .masthead { --dc-code: #8FF0C0; }

/* ---- story: the words scroll past while one phone stays put and changes its screen ---- */
.p-cloudfold .story { padding-block: clamp(3rem, 8vw, 6rem) 0; }
.p-cloudfold .story__step { padding-block: clamp(2rem, 5vw, 3.5rem); }
.p-cloudfold .story__step h2 { font-weight: 600; font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; max-width: 18ch; }
.p-cloudfold .story__step > p { max-width: var(--measure); color: var(--muted); font-size: 1.125rem; margin-top: 1rem; }
.p-cloudfold .story__step ul { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: var(--measure); border-top: 1px solid var(--line); }
.p-cloudfold .story__step li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.p-cloudfold .story__inline { margin-top: 2rem; justify-self: start; }
.p-cloudfold .story__stage { display: none; }
.p-cloudfold .story__img + .story__img { display: none; }
@media (min-width: 56rem) {
  .motion .p-cloudfold .story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: clamp(2rem, 7vw, 6rem); align-items: start; }
  .motion .p-cloudfold .story__inline { display: none; }
  .motion .p-cloudfold .story__step { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 0.6s ease; }
  .motion .p-cloudfold .story__step.is-active { opacity: 1; }
  .motion .p-cloudfold .story__stage { display: flex; align-items: center; justify-content: center; gap: 1.5rem; position: sticky; top: 4.5rem; height: calc(100vh - 4.5rem - 2.75rem); }
  .motion .p-cloudfold .story__stage .phone { position: relative; width: min(100%, 18.5rem); max-height: 100%; aspect-ratio: 300 / 582; }
  .motion .p-cloudfold .story__img { position: absolute; inset: 0.55rem; width: calc(100% - 1.1rem); height: calc(100% - 1.1rem); object-fit: cover; aspect-ratio: auto; display: block; }
  .motion .p-cloudfold .story__progress { width: 3px; height: 12rem; border-radius: 3px; background: var(--line); overflow: hidden; }
  .motion .p-cloudfold .story__progress span { display: block; width: 100%; height: 100%; background: var(--link); transform-origin: 50% 0; transform: scaleY(0); }
}

/* ---- every device: one line of device names that drifts with the scroll ---- */
.p-cloudfold .everywhere { padding-block: clamp(3rem, 8vw, 6rem) 0; overflow: clip; }
.p-cloudfold .everywhere h2 { font-weight: 600; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; }
.p-cloudfold .everywhere p { color: var(--muted); font-size: 1.125rem; margin-top: 1rem; }
.p-cloudfold .cf-marquee { margin-top: clamp(2rem, 5vw, 3.5rem); padding-block: clamp(1.25rem, 3vw, 2rem); border-block: 1px solid var(--line); overflow: clip; }
.p-cloudfold .cf-marquee__track { display: flex; width: max-content; will-change: transform; }
.p-cloudfold .cf-marquee__item { flex: none; display: inline-flex; align-items: center; }
.p-cloudfold .cf-marquee__item > span { display: inline-flex; align-items: center; gap: 0.5em; padding-right: 0.5em; font: 600 clamp(2.5rem, 8vw, 6rem)/1.1 var(--display); letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; }
.p-cloudfold .cf-marquee__item > span::after { content: ""; width: 0.26em; height: 0.26em; border-radius: 28%; border: 0.05em solid var(--link); }
.p-cloudfold .cf-marquee__item > span:nth-child(even) { color: var(--link); }

/* ---- rules: numbered, and each title resolves from code ---- */
.p-cloudfold .promises ol { counter-reset: rule; }
.p-cloudfold .promises li { counter-increment: rule; position: relative; }
.p-cloudfold .promises li::before { content: "0" counter(rule); display: block; font: 600 0.9375rem/1 var(--display); color: var(--link); margin-bottom: 0.6rem; }
.p-cloudfold .promises { --dc-code: var(--link); }

/* ---- platform logos ---- */
.p-cloudfold .pi { display: inline-block; width: 1.05em; height: 1.05em; flex: none; }
.p-cloudfold .devices li { display: inline-flex; align-items: center; gap: 0.45em; }
.p-cloudfold .cf-marquee__item .pi { width: 0.62em; height: 0.62em; margin-right: -0.12em; }
.p-cloudfold .platforms { display: flex; gap: 0.9rem; margin-top: 0.75rem; color: var(--link); }
.p-cloudfold .platforms .pi { width: 1.5rem; height: 1.5rem; }

/* Compatibility with the DevStorm base styles */
.p-cloudfold :where(ul, ol) { list-style: revert; margin: revert; padding: revert; }
.p-cloudfold p { max-width: none; }
.p-cloudfold { scroll-margin-top: 5rem; }
