/* Claro's own fonts, self-hosted (Latin subset, covers German ä ö ü ß). Only this page loads them. */
@font-face { font-family: 'Figtree'; src: url('../assets/fonts/figtree-var.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../assets/fonts/montserrat-var.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
/* Claro design system explorer. Everything here is scoped to .cds and uses Claro's own tokens
   (the work speaking), not the portfolio's. Fonts: Montserrat (page headlines only) and Figtree. */
.cds {
  --purple: #7D53C6; --purple-hover: #5E3C98; --purple-press: #3D244D;
  --lilac: #F3EFFA; --ink: #211735; --plum: #4B3556; --border: #D3CBE0;
  --section-blob: #CFAEE5; --section-ink: #302C33; --blob-opacity: .55;
  --blob: 48% 52% 41% 59% / 55% 43% 57% 45%;
  --shadow-float: 0 2px 12px rgba(33,23,53,.10); --shadow-overlay: 0 8px 32px rgba(33,23,53,.16);
  font-family: 'Figtree', system-ui, sans-serif; color: var(--ink); background: var(--lilac);
  margin: 0 var(--margin-page); border-radius: 20px; overflow: hidden; position: relative; font-size: 18px; line-height: 1.5;
}
.cds * { box-sizing: border-box; }
.cds h1, .cds h2 { font-family: 'Montserrat', sans-serif; font-weight: 700; margin: 0; }
.cds button { font: inherit; color: inherit; cursor: pointer; }
.cds__bar { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding: 20px 28px; border-bottom: 1px solid var(--border); background: #fff; position: relative; z-index: 3; }
.cds__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cds__tab, .cds__chip { border: 1px solid var(--border); background: #fff; border-radius: 9999px; padding: 8px 18px; font-size: 16px; font-weight: 500; transition: background .12s, border-color .12s, color .12s; }
.cds__tab[aria-selected="true"], .cds__chip[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: var(--lilac); }
.cds__tab:hover:not([aria-selected="true"]), .cds__chip:hover:not([aria-pressed="true"]) { border-color: var(--purple); }
.cds__ctl { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--plum); }
.cds__ctl .cds__chip { padding: 5px 14px; font-size: 14px; }
.cds__ctl-group { display: flex; gap: 6px; flex-wrap: wrap; }
.cds__panel { padding: 40px 28px 56px; position: relative; z-index: 1; min-height: 520px; }
.cds__panel[hidden] { display: none; }
.cds__h { font-size: clamp(30px, 24px + 1.6vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 8px; }
.cds__lede { max-width: 66ch; color: var(--plum); margin: 0 0 32px; }
.cds__sub { font-size: 25px; font-weight: 600; line-height: 1.2; margin: 44px 0 16px; }
.cds__note { font-size: 14px; line-height: 1.45; color: var(--plum); max-width: 66ch; }
.cds .grid { display: grid; gap: 12px; }
.cds .swatches { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.cds .sw { border: 1px solid var(--border); background: #fff; border-radius: 20px; overflow: hidden; text-align: left; padding: 0; transition: box-shadow .2s, transform .2s; }
.cds .sw:hover { box-shadow: var(--shadow-float); transform: translateY(-2px); }
.cds .sw__chip { height: 92px; display: flex; align-items: flex-end; padding: 10px 14px; font-weight: 600; font-size: 16px; border-bottom: 1px solid rgba(33,23,53,.08); }
.cds .sw__meta { padding: 10px 14px 12px; font-size: 14px; line-height: 1.45; }
.cds .sw__meta b { font-weight: 600; display: block; }
.cds .badge { display: inline-block; border-radius: 9999px; padding: 1px 9px; font-size: 12px; font-weight: 600; background: #E5F0E5; color: #2D352D; }
.cds .badge.is-fail { background: #F6DDDD; color: #6B2222; }
.cds .ramp { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cds .ramp .sw__chip { height: 120px; font-size: 22px; font-weight: 700; }
.cds .copied { position: fixed; z-index: 50; bottom: 70px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--lilac); padding: 10px 18px; border-radius: 9999px; font-size: 14px; box-shadow: var(--shadow-overlay); }
.cds table { border-collapse: collapse; width: 100%; font-size: 14px; }
.cds th, .cds td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border); vertical-align: baseline; }
.cds th { font-weight: 600; color: var(--plum); font-size: 13px; }
.cds .type-row td:last-child { color: var(--plum); }
.cds .type-sample { margin: 0; white-space: normal; }
.cds .box { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.cds .two { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cds .two { grid-template-columns: 1fr 1fr; } }
.cds .radii { display: flex; flex-wrap: wrap; gap: 20px; }
.cds .radii div { width: 120px; height: 90px; background: var(--section-blob); color: var(--section-ink); display: flex; align-items: flex-end; padding: 10px; font-size: 14px; font-weight: 600; border: 1px solid rgba(33,23,53,.15); }
.cds .space { display: grid; grid-template-columns: 40px 60px 1fr; gap: 6px 12px; align-items: center; font-size: 14px; }
.cds .space i { display: block; height: 14px; background: var(--purple); border-radius: 4px; }
.cds .shadow-demo { display: flex; flex-wrap: wrap; gap: 24px; }
.cds .shadow-demo div { width: 170px; height: 100px; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 14px; font-size: 14px; transition: box-shadow .2s cubic-bezier(.2,0,.2,1); }
.cds .shadow-demo .s-float:hover { box-shadow: var(--shadow-float); }
.cds .shadow-demo .s-over { border-color: transparent; box-shadow: var(--shadow-overlay); }
.cds .motion { position: relative; height: 56px; background: #fff; border: 1px solid var(--border); border-radius: 9999px; margin: 10px 0 14px; }
.cds .motion i { position: absolute; left: 8px; top: 8px; width: 38px; height: 38px; background: var(--section-blob); border: 1px solid rgba(33,23,53,.2); border-radius: var(--blob); }
.cds .motion.go i { left: calc(100% - 46px); }
.cds .btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; padding: 12px 22px; font-size: 16px; font-weight: 500; line-height: 1.15; border: 1px solid transparent; transition: background-color .12s, border-color .12s, color .12s; }
.cds .btn--default { background: var(--purple); color: var(--lilac); }
.cds .btn--default:hover { background: var(--purple-hover); }
.cds .btn--default:active { background: var(--purple-press); }
.cds .btn--soft { background: var(--section-blob); color: var(--section-ink); border-color: color-mix(in srgb, var(--section-ink) 30%, transparent); }
.cds .btn--soft:hover { border-color: color-mix(in srgb, var(--section-ink) 60%, transparent); }
.cds .btn--outline { background: #fff; border-color: var(--border); }
.cds .btn--outline:hover { border-color: var(--purple); }
.cds .btn--ghost { background: transparent; color: var(--purple); }
.cds .btn--ghost:hover { text-decoration: underline; }
.cds .btn:focus-visible, .cds input:focus-visible, .cds select:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.cds .btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cds .tag { display: inline-flex; border-radius: 9999px; padding: 3px 12px; font-size: 14px; font-weight: 500; }
.cds .price { display: inline-flex; border-radius: 9999px; padding: 3px 12px; font-size: 14px; font-weight: 600; background: #fff; border: 1px solid var(--border); }
.cds .listing { background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: box-shadow .2s cubic-bezier(.2,0,.2,1), transform .2s; max-width: 340px; }
.cds .listing:hover { box-shadow: var(--shadow-float); transform: translateY(-2px); }
.cds .listing__block { height: 120px; transition: background-color .2s; }
.cds .listing__body { padding: 20px 24px 24px; }
.cds .listing__title { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 10px 0 6px; }
.cds .listing__meta { font-size: 14px; color: var(--plum); line-height: 1.45; }
.cds .field { display: grid; gap: 6px; max-width: 360px; margin-bottom: 14px; }
.cds label { font-size: 16px; font-weight: 500; line-height: 1.4; }
.cds input[type=text], .cds select { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--ink); }
.cds input[type=text]:focus { border-color: var(--purple); }
.cds .check { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.cds .check input { accent-color: var(--purple); width: 18px; height: 18px; }
.cds .card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px; }
.cds .card h3 { font-size: 25px; font-weight: 600; line-height: 1.2; margin: 0 0 16px; }
/* the blob */
.cds .stage { position: relative; overflow: hidden; background: var(--lilac); border: 1px solid var(--border); border-radius: 20px; height: 440px; }
.cds .claro-blob { position: absolute; top: -160px; right: -220px; width: min(700px, 90%); aspect-ratio: 1; border-radius: var(--blob); background-color: var(--section-blob); background-image: url('../assets/img/claro/grain-wash.webp'); background-size: 512px 512px; background-blend-mode: overlay; opacity: var(--blob-opacity); pointer-events: none; transition: border-radius .8s cubic-bezier(.2,0,.2,1), opacity .2s; }
.cds .stage.no-grain .claro-blob { background-image: none; }
.cds .stage.is-circle .claro-blob { border-radius: 50%; }
.cds .stage__content { position: relative; z-index: 1; padding: 32px 28px; max-width: 520px; }
.cds .stage__content h2 { font-size: 40px; letter-spacing: -.02em; line-height: 1.15; }
.cds .range { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--plum); }
.cds input[type=range] { accent-color: var(--purple); }
.cds .rules { display: grid; gap: 12px; max-width: 760px; padding: 0; margin: 0; list-style: none; }
.cds .rules li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; font-size: 16px; }
.cds .rules b { font-weight: 700; }
.cds .logo-line { display: flex; align-items: center; gap: 14px; padding: 16px 28px; border-bottom: 1px solid var(--border); background: #fff; }
.cds .logo-line img { height: 34px; width: auto; }
.cds .logo-line span { font-size: 14px; color: var(--plum); }
@media (prefers-reduced-motion: reduce) { .cds * { transition: none !important; } }
/* keep the portfolio's global heading styles (caps, tracking) out of the tool */
.cds h1, .cds h2, .cds h3 { text-transform: none; }
.cds h2.cds__h { letter-spacing: -.02em; font-size: clamp(30px, 24px + 1.6vw, 40px); }
.cds h3 { font-family: 'Figtree', sans-serif; letter-spacing: 0; }
.cds .label { text-transform: none; letter-spacing: 0; }
.cds p { max-width: none; }
.cds .cds__lede, .cds .cds__note { max-width: 66ch; }

/* background blobs: section color, grain, lowered opacity; always behind the content */
.cds__panel { position: relative; overflow: hidden; }
.cds__panel::before, .cds__panel::after { content: ""; position: absolute; z-index: 0; pointer-events: none; background-color: var(--section-blob); background-image: url('../assets/img/claro/grain-wash.webp'); background-size: 512px 512px; background-blend-mode: overlay; transition: background-color .3s; }
.cds__panel::before { top: -120px; right: -160px; width: min(560px, 75%); aspect-ratio: 1; border-radius: var(--blob); opacity: .32; }
.cds__panel::after { bottom: -140px; left: -200px; width: min(520px, 70%); aspect-ratio: 1.15; border-radius: 58% 42% 52% 48% / 44% 56% 44% 56%; opacity: .24; }
.cds__panel > * { position: relative; z-index: 1; }
