/* Mesh Labz – Clonr product page and docs. Builds on home.css, work.css and sections.css. */

.clonr-page { padding-top: 120px; }
@media (max-width: 860px) { .clonr-page { padding-top: 150px; } }
@media (max-width: 520px) { .clonr-page { padding-top: 180px; } }

/* ---------- Hero ---------- */
.c-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.c-hero .tag { border-radius: 999px; padding: .6em 1.1em; color: #cfe6f7; border-color: rgba(26, 155, 230, .45); background: rgba(26, 155, 230, .08); }
.c-hero h1 { margin: 1.2rem 0 .6rem; font: 700 clamp(4rem, 10vw, 8.6rem)/.9 var(--f-head); letter-spacing: -0.05em; }
.c-hero h1 em { font-style: normal; color: var(--bright); }
/* Radial-array logo standing in for the "C" (sized to Poppins' cap height) */
.c-hero h1 .c-mark { display: inline-block; width: .76em; height: .76em; margin-right: .04em; vertical-align: -0.02em; }
.c-hero .lede { font-size: 1.15rem; margin: 1rem 0 1.6rem; max-width: 30ch; }
.c-hero .row { display: flex; gap: 10px; flex-wrap: wrap; }
.c-hero .row .btn { min-width: 190px; gap: .5rem; }
.shape-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.6rem; list-style: none; padding: 0; }
.shape-tags li { padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); color: #cfd9e2; font-size: .85rem; }
.c-hero-art { position: relative; }
.c-hero-art img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.c-hero-art::before { content: ""; position: absolute; inset: -12% -8%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(26,155,230,.28), rgba(0,0,0,0) 70%); }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.05rem; border-radius: 999px;
  background: rgba(14, 22, 32, .7); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); color: #dbe6ef; font-size: .9rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.float-chip b { color: #fff; font: 700 1rem/1 var(--f-head); }
.float-chip.one { left: -6%; bottom: 14%; }
.float-chip.two { right: -4%; top: 10%; }
@media (max-width: 860px) {
  .c-hero { grid-template-columns: 1fr; }
  .float-chip.one { left: 4%; } .float-chip.two { right: 4%; }
}

/* ---------- In-page section links ---------- */
.subnav { position: sticky; top: 78px; z-index: 5; margin-top: clamp(40px, 6vw, 64px); display: flex; gap: 6px; overflow-x: auto; padding: 8px; border-radius: 999px;
  background: rgba(10, 13, 17, .78); border: 1px solid var(--line); backdrop-filter: blur(12px); scrollbar-width: none; }
.subnav a { flex: none; padding: .55rem .95rem; border-radius: 999px; color: var(--muted); font-size: .9rem; transition: background .2s, color .2s; }
.subnav a:hover { color: var(--text); background: var(--field); }
@media (max-width: 860px) { .subnav { top: 8px; } }

.c-section { padding-top: clamp(72px, 10vw, 120px); scroll-margin-top: 150px; }
.c-section > .eyebrow, .c-head .eyebrow { display: block; color: var(--bright); margin-bottom: .8rem; }
.c-head { margin-bottom: clamp(24px, 3.5vw, 40px); max-width: 720px; }
.c-head h2 { margin: 0 0 .7rem; font: 700 clamp(2rem, 4.2vw, 3.2rem)/1.05 var(--f-head); letter-spacing: -0.03em; }
.c-head p { margin: 0; color: #c3ced9; font-size: 1.05rem; }

/* ---------- YouTube tutorial (loads YouTube only when clicked) ---------- */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #05070a; border: 1px solid var(--line); cursor: pointer; padding: 0; color: var(--text); }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.9); transition: transform 1s cubic-bezier(.22,1,.36,1), filter .4s; }
.yt:hover img { transform: scale(1.03); filter: brightness(.65); }
.yt .yt-play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; display: grid; place-items: center; background: var(--bright); box-shadow: 0 0 0 10px rgba(26,155,230,.18); transition: transform .3s; }
.yt:hover .yt-play { transform: scale(1.06); }
.yt .yt-play svg { width: 34px; height: 34px; margin-left: 5px; color: #fff; }
.yt .yt-label { position: absolute; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 28px); text-align: left; }
.yt .yt-label b { display: block; font: 700 clamp(1.3rem, 2.6vw, 2rem)/1.1 var(--f-head); letter-spacing: -0.02em; margin-top: .4rem; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Why Clonr: four pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pillar { padding: 1.5rem; border-radius: var(--r-md); background: linear-gradient(180deg, rgba(26,155,230,.07), rgba(26,155,230,0) 60%), var(--field); border: 1px solid var(--line); }
.pillar .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(26,155,230,.14); color: var(--bright); margin-bottom: 1rem; }
.pillar .ico svg { width: 22px; height: 22px; }
.pillar h3 { margin: 0 0 .4rem; font: 700 1.2rem/1.2 var(--f-head); }
.pillar p { margin: 0; color: #c3ced9; font-size: .97rem; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Shapes: image cards ---------- */
.shapes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.shape { position: relative; overflow: hidden; border-radius: var(--r-md); background: #0a0d11; border: 1px solid var(--line); min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.shape img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s cubic-bezier(.22,1,.36,1); }
.shape::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72) 55%, rgba(0,0,0,.94) 100%); }   /* the Maya screenshots are light grey */
.shape:hover img { transform: scale(1.04); }
.shape .txt { padding: 1.3rem; }
.shape .mono { color: var(--bright); }
.shape h3 { margin: .35rem 0 .35rem; font: 700 1.45rem/1.1 var(--f-head); letter-spacing: -0.02em; }
.shape p { margin: 0; color: #d0dae3; font-size: .95rem; }
.shape:nth-child(1) { grid-column: span 3; } .shape:nth-child(2) { grid-column: span 3; }
.shape:nth-child(3) { grid-column: span 2; } .shape:nth-child(4) { grid-column: span 2; } .shape:nth-child(5) { grid-column: span 2; }
.shape-surface { background: radial-gradient(80% 70% at 50% 100%, #10304c 0%, #05080c 70%); }
.shape-surface svg { position: absolute; inset: 0; width: 100%; height: 70%; z-index: -2; opacity: .9; }
@media (max-width: 860px) { .shapes { grid-template-columns: 1fr; } .shape:nth-child(n) { grid-column: auto; } }

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px); }
.feature { position: relative; padding-top: 1.1rem; }
.feature::before { content: ""; position: absolute; top: 0; left: 0; width: 32px; height: 2px; background: var(--bright); border-radius: 2px; }
.feature h3 { margin: 0 0 .45rem; font: 700 1.15rem/1.2 var(--f-head); }
.feature p { margin: 0; color: #c3ced9; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* ---------- Getting started: numbered steps (a real sequence) ---------- */
.steps-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps-flow li { counter-increment: s; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.3rem 1.4rem; border-radius: var(--r-md); background: var(--field); border: 1px solid var(--line); }
.steps-flow li::before { content: counter(s); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 700 1.2rem/1 var(--f-head); color: #fff; background: rgba(26,155,230,.18); border: 1px solid rgba(26,155,230,.45); }
.steps-flow h3 { margin: .2rem 0 .35rem; font: 700 1.15rem/1.2 var(--f-head); }
.steps-flow p { margin: 0; color: #c3ced9; }
.kbd { display: inline-block; padding: .1em .5em; border-radius: 6px; background: #1f2731; border: 1px solid var(--line); font: 600 .85em/1.4 var(--f-label); color: #e8eef4; overflow-wrap: anywhere; }

/* ---------- Settings reference and FAQ: open/close panels ---------- */
.ref { display: grid; gap: 10px; }
.ref details { border-radius: var(--r-md); background: var(--field); border: 1px solid var(--line); overflow: hidden; }
.ref summary { list-style: none; cursor: pointer; padding: 1.15rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font: 700 1.1rem/1.2 var(--f-head); }
.ref summary::-webkit-details-marker { display: none; }
.ref summary .hint { font: 400 .92rem/1.3 var(--f-body); color: var(--muted); margin-left: auto; text-align: right; }
.ref summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #1f2731; color: var(--bright); font: 400 1.2rem/1 var(--f-body); transition: transform .3s; }
.ref details[open] summary::after { transform: rotate(45deg); }
.ref .body { padding: 0 1.4rem 1.3rem; color: #c3ced9; }
.ref dl { margin: 0; display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: .65rem 1.4rem; }
.ref dt { color: var(--text); font-weight: 600; }
.ref dd { margin: 0; }
.ref .body p { margin: 0 0 .8rem; }
@media (max-width: 560px) { .ref dl { grid-template-columns: 1fr; gap: .2rem; } .ref dd { margin-bottom: .6rem; } .ref summary .hint { display: none; } }

/* ---------- Good to know ---------- */
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.note { display: flex; gap: 1rem; padding: 1.2rem 1.3rem; border-radius: var(--r-md); border: 1px dashed rgba(26,155,230,.35); background: rgba(26,155,230,.04); color: #c3ced9; }
.note b { color: var(--text); display: block; margin-bottom: .2rem; }
.note .i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(26,155,230,.16); color: var(--bright); font: 700 .9rem/1 var(--f-head); }
@media (max-width: 760px) { .notes { grid-template-columns: 1fr; } }

/* ---------- Licences ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plan { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--field); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem; }
.plan.main { background: radial-gradient(90% 80% at 20% 0%, rgba(26,155,230,.22), rgba(26,155,230,0) 60%), #0d141c; border-color: rgba(26,155,230,.5); }
.plan .badge { align-self: flex-start; padding: .35rem .7rem; border-radius: 999px; background: var(--bright); color: #00131f; font: 700 .7rem/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; }
.plan .badge-soft { background: #1f2731; color: #cfd9e2; }
.plan h3 { margin: 0; font: 700 1.6rem/1.1 var(--f-head); }
.plan .price { font: 700 clamp(2.4rem, 5vw, 3.4rem)/1 var(--f-head); letter-spacing: -0.03em; }
.plan .price small { font: 400 1rem/1 var(--f-body); color: var(--muted); letter-spacing: 0; margin-left: .3rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; color: #c3ced9; }
.plan li { padding-left: 1.6rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--bright); border-bottom: 2px solid var(--bright); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.plan .btn:not(.btn-primary) { border-color: rgba(232,238,244,.28); }
.plan .btn:not(.btn-primary):hover { border-color: var(--text); }
.buy-note { margin-top: 1rem; color: var(--muted); font-size: .92rem; text-align: center; }
.buy-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* Links to the Clonr Docs page */
.start-more { margin: 1.2rem 0 0; color: #c3ced9; }
.start-more a, .c-head p a, .plan li a, .ref .body a { color: var(--bright); text-decoration: underline; text-underline-offset: 3px; }
.docs-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 1.4rem clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 44px);
  border-radius: var(--r-lg); background: radial-gradient(70% 120% at 0% 0%, rgba(26,155,230,.14), rgba(0,0,0,0) 60%), var(--field); border: 1px solid var(--line); }
.docs-band .eyebrow { display: block; color: var(--bright); margin-bottom: .8rem; }
.docs-band h2 { margin: 0 0 .6rem; font: 700 clamp(1.8rem, 3.6vw, 2.6rem)/1.05 var(--f-head); letter-spacing: -0.03em; }
.docs-band p { margin: 0; color: #c3ced9; max-width: 52ch; }
.docs-band-search { display: flex; gap: 8px; }
.docs-band-search input { flex: 1; min-width: 0; padding: .85rem 1rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: #0b0f13; color: var(--text); font: 500 1rem/1.2 var(--f-body); }
.docs-band-search input:focus { outline: 0; border-color: rgba(26,155,230,.7); }
.docs-band-link { grid-column: 2; justify-self: start; }
@media (max-width: 860px) { .docs-band { grid-template-columns: 1fr; } .docs-band-link { grid-column: auto; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
