/* Xyncema One — parent showcase (product catalogue). Tokens: [data-theme="one"] */

.o-wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.o-h1, .o-h2, .o-h3 { font-family: var(--font-heading); font-weight: 500; letter-spacing: -0.035em; }
.o-h1 { font-size: clamp(2.8rem, 6.4vw, 5.8rem); line-height: .98; }
.o-h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; }
.o-h3 { font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.02em; }
.o-lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 42rem; }
.o-kicker { font-family: var(--font-heading); font-size: .85rem; font-weight: 500; color: var(--primary-ink); }
.o-muted { color: var(--muted); }
.o-section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.o-dark { background: var(--surface-2); color: var(--on-surface-2); }
.o-dark .o-lede, .o-dark .o-muted { color: #A9AEB9; }
.o-dark .o-kicker { color: var(--primary-on-dark); }

.o-btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .7rem 1.3rem; border-radius: var(--radius-btn); background: var(--primary); color: #fff; border: 1px solid var(--primary); font-weight: 700; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.o-btn:hover { background: #4A38D6; border-color: #4A38D6; }
.o-btn svg { width: 18px; height: 18px; }
.o-btn--line { background: transparent; color: var(--text); border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.o-btn--line:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.o-dark .o-btn--line { color: #fff; border-color: rgba(255,255,255,.35); }
.o-dark .o-btn--line:hover { background: #fff; color: var(--text); }
.o-btn--sm { min-height: 40px; padding: .45rem .9rem; font-size: .9rem; }
.o-link { color: var(--primary-ink); font-weight: 600; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.o-link svg { width: 16px; height: 16px; }
.o-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.o-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface-2) 94%, transparent); color: #fff; backdrop-filter: blur(10px); border-bottom: 1px solid #23252B; }
.o-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 66px; }
.o-logo { text-decoration: none; display: inline-flex; align-items: baseline; gap: .6rem; }
.o-logo b { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; }
.o-logo small { font-size: .78rem; color: #A9AEB9; }
.o-nav { display: flex; align-items: center; gap: .25rem; }
.o-nav a { text-decoration: none; color: #C9CDD6; padding: .5rem .8rem; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.o-nav a:hover, .o-nav a[aria-current="page"] { color: #fff; background: #1D1F25; }
.o-header :focus-visible { outline-color: var(--primary-on-dark); }
.o-toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid #33363E; background: transparent; color: #fff; place-items: center; }
.o-toggle svg { width: 22px; height: 22px; }
.o-mobile { display: none; }
@media (max-width: 860px) {
  .o-nav a:not(.o-btn) { display: none; }
  .o-toggle { display: inline-grid; }
  .is-nav-open .o-mobile { display: grid; padding-block: .25rem 1rem; }
  .o-mobile a { color: #fff; text-decoration: none; padding: .8rem 0; border-top: 1px solid #23252B; font-size: 1.1rem; }
}
@media (max-width: 440px) { .o-nav .o-btn { display: none; } }

/* Hero */
.o-hero { padding-block: clamp(4rem, 9vw, 7rem) 0; overflow: hidden; }
.o-hero__text { display: grid; gap: 1.5rem; max-width: 980px; }
.o-hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.o-hero__status { display: flex; gap: .5rem 1.25rem; flex-wrap: wrap; font-size: .92rem; color: #A9AEB9; }
.o-hero__status b { color: #fff; font-weight: 600; }
.o-shots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.6rem, 1.4vw, 1.1rem); margin-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.o-shot { text-decoration: none; display: grid; gap: .7rem; }
.o-shot:nth-child(even) { transform: translateY(clamp(1rem, 3vw, 2.5rem)); }
.o-frame { border-radius: 12px; overflow: hidden; background: #1D1F25; border: 1px solid #2A2D35; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.o-frame__bar { height: 22px; display: flex; gap: 5px; align-items: center; padding-inline: 9px; background: #23252B; }
.o-frame__bar i { width: 7px; height: 7px; border-radius: 50%; background: #3C3F48; }
.o-frame img { width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }
.o-shot span { font-size: .85rem; color: #C9CDD6; }
.o-shot span b { color: #fff; font-weight: 600; display: block; }
.o-shot:hover .o-frame { border-color: var(--primary-on-dark); }
@media (max-width: 960px) { .o-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); } .o-shot:nth-child(n+4) { display: none; } }
@media (max-width: 560px) { .o-shots { grid-template-columns: 1fr 1fr; } .o-shot:nth-child(n+3) { display: none; } .o-shot:nth-child(even) { transform: none; } }

/* Principles */
.o-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.o-principle { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .75rem; align-content: start; }
.o-principle b { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 500; color: var(--primary-ink); line-height: 1; }
.o-principle p { color: var(--muted); }
@media (max-width: 960px) { .o-principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .o-principles { grid-template-columns: 1fr; } }

/* Demo cards */
.o-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1000px) { .o-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .o-cards { grid-template-columns: 1fr; } }
.o-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: box-shadow .2s, border-color .2s; }
.o-card:hover { border-color: #BFC3CC; box-shadow: 0 20px 44px -28px rgba(16,17,20,.45); }
.o-card__preview { position: relative; aspect-ratio: 1440 / 900; background: #E9EBEF; overflow: hidden; border-bottom: 1px solid var(--border); }
.o-card__preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.o-card__body { padding: 1.1rem 1.2rem 1.25rem; display: grid; gap: .7rem; align-content: start; }
.o-card__top { display: flex; justify-content: space-between; gap: .75rem; align-items: center; }
.o-card__id { font-family: var(--font-heading); font-size: .85rem; color: var(--muted); }
.o-card__meta { font-size: .88rem; color: var(--muted); }
.o-card__actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .3rem; }
.o-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.o-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.o-badge[data-s="verified"] { background: #DDF5EA; color: #0B6B45; }
.o-badge[data-s="ready"] { background: #E3ECFF; color: #1D4ACB; }
.o-badge[data-s="in-progress"] { background: #FFF1D6; color: #7A4B00; }
.o-badge[data-s="planned"] { background: #ECEEF2; color: #4D535E; }
/* Planned: honest specimen instead of a fake screenshot */
.o-spec { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; padding: 1rem; background: var(--sbg); color: var(--stext); }
.o-spec__type { display: grid; align-content: center; gap: .25rem; }
.o-spec__type b { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1; font-weight: 500; }
.o-spec__type span { font-size: .8rem; opacity: .75; }
.o-spec__sw { display: flex; gap: .35rem; align-items: center; }
.o-spec__sw i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.o-spec__sw small { margin-left: auto; font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.75); color: #33363E; padding: .15rem .5rem; border-radius: 999px; }

/* Comparison table */
.o-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.o-table { width: 100%; min-width: 820px; }
.o-table th, .o-table td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--border); font-size: .92rem; vertical-align: top; }
.o-table thead th { font-family: var(--font-heading); font-weight: 500; font-size: .85rem; color: var(--muted); }
.o-table tbody th { font-weight: 600; }
.o-table tr:last-child th, .o-table tr:last-child td { border-bottom: 0; }
.o-dots { display: flex; gap: .3rem; }
.o-dots i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }

/* Scope + customise */
.o-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.5rem; }
.o-scope > div { border-radius: 14px; padding: 1.5rem; border: 1px solid var(--border); background: var(--surface); }
.o-scope > div.is-out { background: transparent; border-style: dashed; }
.o-scope ul { display: grid; gap: .6rem; margin-top: 1rem; }
.o-scope li { display: flex; gap: .6rem; }
.o-scope li svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; color: #0B6B45; }
.o-scope .is-out li svg { color: #8A8F99; }
@media (max-width: 760px) { .o-scope { grid-template-columns: 1fr; } }
.o-custom { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.o-code { background: #0C0D10; color: #DDE0E6; border-radius: 14px; padding: 1.25rem 1.4rem; font: 500 .88rem/1.7 ui-monospace, "SFMono-Regular", Menlo, monospace; overflow-x: auto; border: 1px solid #23252B; }
.o-code .k { color: #A59CF7; } .o-code .v { color: #8FE3B7; } .o-code .c { color: #767C88; }
.o-steps { counter-reset: s; display: grid; gap: 1rem; margin-top: 1.5rem; }
.o-steps li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; }
.o-steps li::before { content: counter(s); width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
@media (max-width: 860px) { .o-custom { grid-template-columns: 1fr; } }

/* FAQ */
.o-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 4rem); }
.o-faq details { border-bottom: 1px solid var(--border); }
.o-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-weight: 600; font-size: 1.05rem; }
.o-faq summary::-webkit-details-marker { display: none; }
.o-faq summary::after { content: "+"; font-family: var(--font-heading); font-size: 1.4rem; line-height: 1; color: var(--primary-ink); transition: transform .2s; }
.o-faq details[open] summary::after { transform: rotate(45deg); }
.o-faq details p { padding-bottom: 1.2rem; color: var(--muted); max-width: 64ch; }
@media (max-width: 860px) { .o-faq { grid-template-columns: 1fr; } }

/* Gallery page */
.o-pagehead { padding-block: clamp(3rem, 7vw, 5rem) 2rem; display: grid; gap: 1rem; }
.o-toolbar { display: grid; gap: 1rem; padding-block: 1.25rem; border-block: 1px solid var(--border); margin-bottom: 1.75rem; }
.o-search { position: relative; max-width: 520px; }
.o-search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.o-search input { width: 100%; min-height: 50px; padding: .7rem 1rem .7rem 2.6rem; border: 1px solid color-mix(in srgb, var(--text) 25%, var(--border)); border-radius: 999px; background: var(--surface); font-size: 1rem; }
.o-filterrow { display: flex; gap: .75rem 1.5rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.o-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.o-chip { min-height: 40px; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: .88rem; display: inline-flex; gap: .4rem; align-items: center; }
.o-chip small { color: var(--muted); font-weight: 600; }
.o-chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.o-chip[aria-pressed="true"] small { color: #B9BDC6; }
.o-chip:hover:not([aria-pressed="true"]) { border-color: #A9AEB9; }
.o-count { font-size: .92rem; color: var(--muted); }
.o-empty { grid-column: 1 / -1; padding: 3rem 1.5rem; text-align: center; border: 1px dashed var(--border); border-radius: 14px; display: grid; gap: .9rem; justify-items: center; }
.o-sep { display: inline-block; width: 1px; height: 22px; background: var(--border); }

/* Design system page */
.ds-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-bottom: clamp(4rem, 8vw, 6rem); }
.ds-side { position: sticky; top: 90px; display: grid; gap: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; }
.ds-side select { width: 100%; min-height: 46px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--text) 25%, var(--border)); padding: .5rem .7rem; background: #fff; }
.ds-side nav { display: grid; gap: .1rem; }
.ds-side nav a { text-decoration: none; padding: .45rem .6rem; border-radius: 8px; color: var(--muted); font-size: .92rem; }
.ds-side nav a:hover { background: #EEF0F4; color: var(--text); }
@media (max-width: 960px) { .ds-layout { grid-template-columns: 1fr; } .ds-side { position: static; } .ds-side nav { display: none; } }
.ds-stage { border-radius: 18px; border: 1px solid var(--border); overflow: hidden; }
.ds-preview { background: var(--bg); color: var(--text); font-family: var(--font-body); padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: clamp(2rem, 4vw, 3rem); }
.ds-sec { display: grid; gap: 1rem; scroll-margin-top: 90px; }
.ds-sec > h2 { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.ds-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: end; }
.ds-head h3 { font-family: var(--font-heading); font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.05; }
.ds-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.ds-color { border: 1px solid var(--border); border-radius: min(var(--radius), 12px); overflow: hidden; background: var(--surface); font-size: .82rem; }
.ds-color i { display: block; height: 64px; border-bottom: 1px solid var(--border); }
.ds-color div { padding: .6rem .7rem; display: grid; gap: .15rem; }
.ds-color b { font-weight: 700; }
.ds-color code { font-size: .78rem; color: var(--muted); }
.ds-pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.ds-pair { border-radius: min(var(--radius), 12px); padding: .9rem 1rem; display: grid; gap: .3rem; border: 1px solid var(--border); }
.ds-pair b { font-size: 1.05rem; }
.ds-pair span { font-size: .8rem; }
.ds-pass { display: inline-flex; gap: .3rem; align-items: center; font-weight: 700; font-size: .76rem; padding: .1rem .45rem; border-radius: 999px; background: #fff; color: #0B6B45; width: max-content; }
.ds-pass.is-fail { color: #A1261B; }
.ds-type { display: grid; gap: .8rem; }
.ds-type .t1 { font-family: var(--font-heading); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; }
.ds-type .t2 { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; }
.ds-type .t3 { font-family: var(--font-heading); font-size: 1.3rem; }
.ds-type .t4 { max-width: 62ch; }
.ds-type small { color: var(--muted); font-size: .8rem; }
.ds-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.ds-btn { display: inline-flex; align-items: center; min-height: 46px; padding: .6rem 1.2rem; border-radius: var(--radius-btn); background: var(--primary); color: var(--on-primary); border: 1px solid var(--primary); font-weight: 700; font-family: var(--font-body); }
.ds-btn--2 { background: transparent; color: var(--text); border-color: var(--text); }
.ds-btn--3 { background: var(--secondary); color: var(--on-secondary); border-color: var(--secondary); }
.ds-btn[disabled] { opacity: .45; cursor: not-allowed; }
.ds-btn.is-focus { outline: 2px solid var(--focus); outline-offset: 3px; }
.ds-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 720px; }
@media (max-width: 640px) { .ds-form { grid-template-columns: 1fr; } }
.ds-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: min(var(--radius), 12px); flex-wrap: wrap; }
.ds-nav b { font-family: var(--font-heading); font-size: 1.3rem; }
.ds-nav ul { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.ds-nav li:first-child { color: var(--primary-ink); text-decoration: underline; text-underline-offset: 4px; }
.ds-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.ds-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ds-card i { display: block; aspect-ratio: 4 / 3; background: var(--secondary); }
.ds-card:nth-child(2) i { background: var(--primary); }
.ds-card:nth-child(3) i { background: var(--surface-2); }
.ds-card div { padding: .9rem 1rem; display: grid; gap: .25rem; }
.ds-card b { font-family: var(--font-heading); font-size: 1.2rem; }
.ds-card span { color: var(--muted); font-size: .9rem; }
.ds-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.ds-tabs [role="tablist"] { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); }
.ds-tabs [role="tab"] { background: none; border: 0; border-bottom: 2px solid transparent; padding: .6rem .9rem; font-weight: 600; color: var(--muted); min-height: 44px; font-family: var(--font-body); }
.ds-tabs [role="tab"][aria-selected="true"] { color: var(--text); border-color: var(--primary); }
.ds-tabs [role="tabpanel"] { padding: 1rem 0; color: var(--muted); }
.ds-acc details { border-bottom: 1px solid var(--border); }
.ds-acc summary { cursor: pointer; padding: .8rem 0; font-weight: 600; }
.ds-acc p { padding-bottom: .8rem; color: var(--muted); }
.ds-radius { display: flex; gap: 1rem; flex-wrap: wrap; }
.ds-radius div { width: 110px; height: 80px; border: 2px solid var(--primary); border-radius: var(--radius); display: grid; place-items: center; font-size: .8rem; color: var(--muted); }
.ds-radius div:last-child { border-radius: var(--radius-btn); }
.ds-note { font-size: .9rem; color: var(--muted); }

/* Footer */
.o-footer { background: var(--surface-2); color: var(--on-surface-2); padding-block: 3.5rem 2rem; }
.o-footer__grid { display: grid; grid-template-columns: minmax(0, 6fr) repeat(2, minmax(0, 3fr)); gap: 2rem; }
.o-footer h3 { font-size: .82rem; font-weight: 600; color: #A9AEB9; margin-bottom: .9rem; }
.o-footer ul { display: grid; gap: .45rem; }
.o-footer a { color: #E4E6EB; text-decoration: none; }
.o-footer a:hover { color: #fff; text-decoration: underline; }
.o-footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #23252B; color: #A9AEB9; font-size: .88rem; display: grid; gap: .3rem; }
@media (max-width: 700px) { .o-footer__grid { grid-template-columns: 1fr 1fr; } .o-footer__grid > :first-child { grid-column: 1 / -1; } }
