/* =========================================================
   Niles Library — same system as iv-sophia.site (base.css), library parts below.
   No grids-as-decoration, no cages: glass, light and the sites themselves.
   ========================================================= */
.nav__cta { margin-left: 6px; }
.hide-sm { }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav__cta { display: none; }
  .hide-sm { display: none; }
}

/* Hero */
.hero__title { max-width: 12ch; }
.hero__inner { min-height: calc(100svh - 156px); }
.hero__stats { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-2); margin: 0; }
.hero__stats b { color: var(--text); font-weight: 600; }
.hero__ctas a { pointer-events: auto; }
@media (max-width: 860px) {
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__ctas { grid-template-columns: 1fr; }
}

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chipbtn { border: 0; cursor: pointer; padding: 10px 16px; border-radius: 999px; font: 500 .88rem/1 var(--sans); color: var(--text-2);
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .2s, background .2s, box-shadow .2s; }
.chipbtn:hover { color: var(--text); }
.chipbtn[aria-pressed="true"] { color: var(--text); background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 1px rgba(255, 255, 255, .18); }
.search { flex: 1 1 220px; min-width: 0; max-width: 340px; margin-left: auto; padding: 10px 18px; border: 0; border-radius: 999px; font: 400 .92rem var(--sans);
  color: var(--text); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); }
.search::placeholder { color: var(--text-3); }

/* Catalog */
.lib { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lib__item { padding: 10px; border-radius: 26px; text-decoration: none; display: flex; flex-direction: column; transition: transform .5s var(--ease); }
.lib__item:hover { transform: translateY(-4px); }
.lib__item[hidden] { display: none; }
.lib__media { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: #0b0b0b; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.lib__media img, .lib__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.lib__media video { opacity: 0; transition: opacity .4s; }
.lib__item:hover .lib__media video.is-ready { opacity: 1; }
.lib__lock { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 6px 10px; border-radius: 999px; color: var(--text);
  background: rgba(5, 6, 10, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.lib__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 8px 6px; }
.lib__cap b { font-weight: 600; font-size: 1.06rem; letter-spacing: -.02em; }
.lib__cap .mono { color: var(--text-3); font-size: .62rem; text-align: right; }
.lib__dots { display: flex; gap: 4px; padding: 0 8px 6px; }
.lib__dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.lib__empty { color: var(--text-2); padding: 40px 0; }
@media (max-width: 1000px) { .lib { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lib { grid-template-columns: 1fr; } .search { max-width: none; margin-left: 0; } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { border-radius: 28px; padding: 28px; }
.step .mono { color: var(--accent); }
.step h3 { font-size: 1.35rem; letter-spacing: -.03em; margin: 14px 0 10px; }
.step p { color: var(--text-2); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin-inline: auto; }
.plan { padding: clamp(26px, 3.2vw, 40px); border-radius: 34px; display: flex; flex-direction: column; gap: 14px; }
.plan--main { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 40px 90px -40px rgba(122, 82, 255, .55); }
.plan h3 { font-size: 1.5rem; letter-spacing: -.03em; }
.plan__price { font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; margin: 6px 0 0; }
.plan__price small { font-size: 1rem; font-weight: 500; letter-spacing: -.01em; color: var(--text-2); margin-left: 6px; }
.plan ul { display: grid; gap: 10px; margin: 8px 0 10px; }
.plan li { padding-left: 22px; position: relative; color: var(--text-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.plan .btn { margin-top: auto; }
.plan__note { color: var(--text-3); margin: 0; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border-radius: 22px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 600; font-size: 1.08rem; letter-spacing: -.02em; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-2); margin: 0 0 22px; }

/* Bridge to the product site */
.bridge { border-radius: 34px; padding: clamp(28px, 4vw, 52px); display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.bridge h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -.04em; line-height: 1.05; max-width: 22ch; }
.bridge p { color: var(--text-2); margin: 12px 0 0; max-width: 52ch; }
@media (max-width: 760px) { .bridge { flex-direction: column; align-items: stretch; } }

.foot { padding: 48px 0 60px; color: var(--text-3); }
.foot .frame { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot a { color: var(--text-2); }

/* =========================================================
   Site page
   ========================================================= */
.sp { padding: 120px 0 40px; }
.sp__back { display: inline-flex; gap: 8px; color: var(--text-2); text-decoration: none; margin-bottom: 26px; }
.sp__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.sp__title { font-size: clamp(2.6rem, 7vw, 6.4rem); font-weight: 700; letter-spacing: -.05em; line-height: .9; text-transform: uppercase; }
.sp__niche { color: var(--text-2); margin: 14px 0 0; }
.sp__view { border-radius: 30px; padding: 10px; }
.sp__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #0b0b0b; }
.sp__screen iframe, .sp__screen img, .sp__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.sp__tabs { display: flex; gap: 8px; padding: 10px 4px 2px; flex-wrap: wrap; }
.sp__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.sp__box { border-radius: 28px; padding: clamp(22px, 3vw, 34px); }
.sp__box h2 { font-size: 1.3rem; letter-spacing: -.03em; margin-bottom: 16px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.swatch { border: 0; cursor: pointer; text-align: left; padding: 0; background: none; color: var(--text); }
.swatch i { display: block; height: 64px; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.swatch b { display: block; font-weight: 500; font-size: .9rem; margin-top: 8px; }
.swatch .mono { color: var(--text-3); font-size: .64rem; }
.fonts { display: grid; gap: 8px; margin-top: 18px; color: var(--text-2); }
.fonts b { color: var(--text); font-weight: 500; }
.prompt { position: relative; border-radius: 18px; padding: 20px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.prompt__open { font: 400 .86rem/1.65 var(--mono); color: var(--text); margin: 0; white-space: pre-wrap; }
.prompt__veil { display: grid; gap: 9px; margin-top: 12px; filter: blur(5px); opacity: .6; user-select: none; }
.prompt__veil i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(232, 222, 255, .5), rgba(232, 222, 255, .12)); }
.prompt__lock { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 20px 20px; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 10, .92) 55%); }
.prompt__lock p { margin: 0 0 12px; color: var(--text-2); }
.prompt__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-3); margin: 14px 0 0; }
.buy { display: grid; gap: 10px; margin-top: 18px; }
.buy .btn { width: 100%; }
.incl { display: grid; gap: 8px; margin: 0 0 18px; }
.incl li { padding-left: 22px; position: relative; color: var(--text-2); }
.incl li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.more { margin-top: clamp(64px, 8vw, 110px); }
@media (max-width: 900px) { .sp__grid { grid-template-columns: 1fr; } .sp__screen { aspect-ratio: 4 / 5; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 60; padding: 12px 18px; border-radius: 999px;
  background: rgba(16, 19, 26, .92); box-shadow: inset 0 0 0 1px var(--line-2); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .lib__item, .lib__media video { transition: none; }
}

/* Review fixes 16 Nov */
.lib__cap { flex-direction: column; align-items: flex-start; gap: 4px; }
.lib__cap .mono { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sp__grid { align-items: start; }
@media (max-width: 600px) {
  .hero__price { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 10px; }
  .hero__price .sep { display: none; }
}

/* =========================================================
   Niles Library identity — kin to iv-sophia.site, not a copy:
   lilac chrome instead of cobalt, editorial serif italics, squarer "book" corners,
   and a cloud of sites instead of a single sculpture.
   ========================================================= */
:root { --bg: #07060C; --r-card: 16px; --r-box: 20px; }
body { background: var(--bg); }
.nav__capsule { border-radius: 18px; }
.nav__mark { width: 26px; height: 26px; }
.nav__word { font-weight: 600; letter-spacing: -.02em; }
.nav__links a, .mnav a { border-radius: 10px; }
.btn { border-radius: 14px; }
.btn--sm { border-radius: 11px; }
.chipbtn, .search { border-radius: 10px; }
.mnav { border-radius: 18px; }

/* Headlines: sentence case, serif italic second voice */
.h-xxl, .h-xl, .sp__title { text-transform: none; font-weight: 600; letter-spacing: -.045em; line-height: .95; }
.sp__title { font-size: clamp(2.6rem, 6.4vw, 5.8rem); }
.label::before { width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--accent); }

/* Squarer, bookish corners */
.lib__item { border-radius: var(--r-card); padding: 8px; }
.lib__media { border-radius: 10px; }
.lib__lock { border-radius: 8px; }
.step, .faq details { border-radius: var(--r-box); }
.plan, .bridge { border-radius: 24px; }
.sp__view, .sp__box { border-radius: var(--r-box); }
.sp__screen { border-radius: 12px; }
.prompt { border-radius: 12px; }
.swatch i { border-radius: 10px; }
.lib__dots i { border-radius: 4px; width: 16px; height: 10px; }

/* ---------- The cloud (first screen) ---------- */
.cloud { position: relative; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 60% at 60% 45%, rgba(122, 82, 255, .16), transparent 70%), radial-gradient(40% 40% at 20% 90%, rgba(183, 156, 255, .08), transparent 70%), var(--bg); }
.cloud__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; z-index: 0; }
.cloud__ui { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: 112px; padding-bottom: 28px; pointer-events: none; }
.cloud__ui a, .cloud__ui button { pointer-events: auto; }
.cloud__intro { max-width: 560px; }
.cloud__intro .hero__meta { margin-bottom: 18px; }
.cloud__title { font-size: clamp(2.2rem, 4.4vw, 4.2rem); font-weight: 600; letter-spacing: -.045em; line-height: .98; margin: 0; text-shadow: 0 2px 30px rgba(7, 6, 12, .8); }
.cloud__title em { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em;
  background: linear-gradient(100deg, #F4F2FA, #E8DEFF 40%, #B79CFF); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.cloud__lead { color: var(--text-2); max-width: 40ch; margin: 18px 0 0; text-shadow: 0 1px 18px rgba(7, 6, 12, .9); }
.cloud__foot { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.cloud__nav { display: flex; gap: 8px; margin-bottom: 12px; }
.cloud__zoom { width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer; font-size: 1.3rem; color: var(--text); }
.cloud__hint { color: var(--text-2); margin: 0; }
.cloud__hint-m { display: none; }
.cloud__buy { border-radius: 20px; padding: 18px; display: grid; gap: 14px; width: min(460px, 100%); }
.cloud__tip { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; padding: 12px 14px; border-radius: 14px; display: grid; gap: 3px; max-width: 250px; }
.cloud__tip span { color: var(--text-2); font-size: .6rem; }
.cloud__tip i { font-style: normal; color: var(--ice); font-size: .6rem; }
.cloud--flat .cloud__canvas { display: none; }
.cloud__flat { position: absolute; left: 0; right: 0; top: 46%; z-index: 1; display: flex; gap: 12px; overflow-x: auto; padding: 0 var(--gutter); scroll-snap-type: x mandatory; }
.cloud__flat a { flex: 0 0 240px; scroll-snap-align: start; text-decoration: none; }
.cloud__flat img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; }
@media (max-width: 760px) {
  .cloud__ui { padding-top: 96px; padding-bottom: 18px; }
  .cloud__lead { display: none; }
  .cloud__foot { flex-direction: column; align-items: stretch; }
  .cloud__nav { display: none; }
  .cloud__hint-d { display: none; } .cloud__hint-m { display: inline; }
  .cloud__hint { text-align: center; }
  .nav__cta { display: inline-flex; margin-left: auto; }
  .nav__cta + .nav__toggle { margin-left: 8px; }
}
@media (max-width: 600px) { .cloud__buy .hero__ctas { grid-template-columns: 1fr 1fr; } }
.cloud__tip[hidden] { display: none; }
.cloud__ui::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: -20vw; top: 0; width: 70vw; height: 75%;
  background: radial-gradient(closest-side, rgba(7, 6, 12, .82), rgba(7, 6, 12, .45) 60%, transparent); }
@media (max-width: 760px) { .cloud__ui::before { width: 140vw; height: 55%; left: -20vw; } }
.cloud__title { text-wrap: balance; }
@media (max-width: 760px) { .cloud__hint { align-self: center; padding: 8px 14px; border-radius: 10px; background: rgba(7, 6, 12, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } }

/* ---------- Account ---------- */
.acc { padding: 130px 0 60px; min-height: 80vh; }
.acc__auth { max-width: 560px; }
.acc__step { margin: 18px 0 0; color: var(--ice); }
.acc__panel { margin-top: 28px; padding: 26px; border-radius: 20px; }
.acc__panel form { display: grid; gap: 14px; }
.acc__panel label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
.acc__panel input { padding: 14px 16px; border: 0; border-radius: 12px; font: 400 1rem var(--sans); color: var(--text); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); }
.acc__panel input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px rgba(183, 156, 255, .15); }
.acc__err { margin: 0; color: #FFB4C0; }
.acc__fine { margin: 16px 0 0; }
.acc__top { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; }
.acc__top .label { margin-bottom: 18px; }
.acc__flash { padding: 16px 20px; border-radius: 14px; margin: 24px 0 0; }
.acc__plan { margin: 28px 0 0; padding: 26px; border-radius: 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.acc__plan h2 { font-size: 1.5rem; letter-spacing: -.03em; margin: 8px 0; }
.acc__plan p { margin: 0; }
.acc__h { font-size: 1.6rem; letter-spacing: -.035em; margin: 48px 0 18px; }
.plist { display: grid; gap: 10px; }
.plist details, .owned { border-radius: 14px; padding: 0 20px; }
.owned { padding: 0; margin-bottom: 12px; }
.plist summary, .owned summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.prompt__full { white-space: pre-wrap; font: 400 .84rem/1.65 var(--mono); background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 12px; padding: 18px; max-height: 420px; overflow: auto; margin: 0 0 12px; }
.plist details .btn, .owned .btn { margin-bottom: 18px; }
@media (max-width: 860px) { .nav__cta { display: inline-flex; margin-left: auto; } .nav__cta + .nav__toggle { margin-left: 8px; } }

/* ---------- Wordmark (typographic, no icon) ---------- */
.wm { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.wm__l { font: 500 .6rem/1 var(--sans); letter-spacing: .36em; text-transform: uppercase; color: var(--text-2);
  padding-left: 11px; border-left: 1px solid rgba(255, 255, 255, .22); height: 14px; display: inline-flex; align-items: center; }

/* ---------- Home: one screen, Cloud / Library ---------- */
html.is-cloud, html.is-cloud body { overflow: hidden; height: 100%; overscroll-behavior: none; }
html.is-cloud .foot { display: none; }
.home .cloud { height: 100svh; min-height: 0; }
.home .cloud__canvas { touch-action: none; }
.viewswitch { position: fixed; z-index: 45; top: 94px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 12px; }
.viewswitch__b { border: 0; cursor: pointer; padding: 9px 18px; border-radius: 9px; font: 500 .86rem/1 var(--sans); color: var(--text-2); background: transparent; transition: color .2s, background .2s; }
.viewswitch__b[aria-pressed="true"] { color: var(--text); background: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.home .cloud__ui { padding-top: 150px; }
.cloud__left { display: grid; gap: 4px; }
.libview { padding: 160px 0 60px; min-height: 100vh; }
.libview__head { margin-bottom: 26px; }
.libview__head .h-xl { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.pricing-page { padding-top: 60px; }
/* Subscribers: the bare cloud */
.home.is-member .cloud__intro, .home.is-member .cloud__buy, .home.is-member .cloud__hint, .home.is-member .cloud__ui::before { display: none; }
@media (max-width: 760px) {
  .viewswitch { top: 88px; }
  .home .cloud__ui { padding-top: 142px; }
  .cloud__title { font-size: 1.9rem; }
  .libview { padding-top: 150px; }
}

/* ---------- Site page: locked live view ---------- */
.sp__screen video, .sp__screen img { pointer-events: none; -webkit-user-select: none; user-select: none; }
.sp__locked { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 8px 12px; border-radius: 9px; color: var(--text);
  background: rgba(7, 6, 12, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.prompt { -webkit-user-select: none; user-select: none; }
.sp__vid { opacity: 0; transition: opacity .5s; }
.sp__vid.is-on { opacity: 1; }
.home.is-member .cloud__ui { justify-content: flex-end; }
html.is-member .nav__cta { display: none !important; }
html.is-member .nav__toggle { margin-left: auto; }
.viewswitch { background: rgba(12, 10, 20, .78); }

/* ---------- Logo in the Niles Studio style ---------- */
.nlogo { display: inline-flex; align-items: center; gap: 9px; line-height: 1; text-decoration: none; color: var(--text); }
.nlogo__text { display: inline-flex; flex-direction: column; align-items: flex-start; }
.nlogo__word { font-weight: 700; font-size: 22px; letter-spacing: -.055em; }
.nlogo__sub { font-size: 8.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: 3px; padding-left: 1px; }
.nlogo__badge { flex: none; transition: transform .6s var(--ease); }
.nlogo:hover .nlogo__badge { transform: rotate(-8deg) scale(1.05); }

/* ---------- Expensive headline + readable price plate ---------- */
.cloud__kicker { color: var(--text-2); margin: 0 0 18px; letter-spacing: .22em; font-size: .64rem; }
.cloud__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.9rem, 5.4vw, 5.6rem); line-height: .94; letter-spacing: -.025em; color: #F6F3EE; }
.cloud__intro { max-width: 640px; }
.cloud__lead { font-size: 1.02rem; color: #C9C5D6; }
.cloud__buy { background: rgba(11, 9, 18, .9); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.cloud__buy .hero__price strong { font-size: 2rem; color: #fff; }
.cloud__buy .hero__price .dim { color: #CFCBDA; font-size: .98rem; }
.cloud__buy .hero__price .sep { background: rgba(255, 255, 255, .25); }
.cloud__buy .btn--primary { background: #F2EEFF; color: #0B0912; box-shadow: 0 10px 30px -12px rgba(183, 156, 255, .7); }
.cloud__buy .btn--primary:hover { background: #fff; }
.cloud__hint { color: #C9C5D6; }
.cloud__nav { flex-wrap: wrap; max-width: 420px; }
@media (max-width: 760px) { .cloud__title { font-size: 2.5rem; } .cloud__kicker { display: none; } }

/* ---------- No script/italic serif anywhere (Sophia, 16 Nov). One display serif, upright: Bodoni Moda, headline only ---------- */
:root { --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif; }
.thin, .h-xl .thin { font-family: var(--sans); font-style: normal; font-weight: 300; letter-spacing: -.045em; color: var(--text-2); }
.lib__cap b, .cloud__tip b { font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 1.06rem; letter-spacing: -.025em; }
.cloud__tip b { font-size: 1.1rem; }
.cloud__title { font-family: var(--serif); font-style: normal; font-weight: 500; font-variation-settings: "opsz" 96; letter-spacing: -.03em; line-height: .98; }
.cloud__title em { font-style: normal; font-weight: 500;
  background: linear-gradient(100deg, #FFFFFF, #E8DEFF 45%, #B79CFF); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Builder ---------- */
.bld { padding: 130px 0 60px; }
.bld__head { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.bld__head .label { margin-bottom: 16px; }
.bld__grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
.bld__form { padding: 22px; border-radius: 20px; display: grid; gap: 14px; }
.bld__form label, .bld__rev label { display: grid; gap: 6px; font-weight: 500; font-size: .9rem; }
.bld__form input, .bld__form textarea, .bld__form select, .bld__rev textarea { padding: 12px 14px; border: 0; border-radius: 12px; font: 400 .95rem var(--sans); color: var(--text);
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); resize: vertical; }
.bld__form select option { background: #14121c; }
.bld__form input:focus, .bld__form textarea:focus, .bld__form select:focus, .bld__rev textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px rgba(183, 156, 255, .15); }
.bld__two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bld__drop input { padding: 18px 14px; border: 1px dashed var(--line-2); box-shadow: none; }
.bld__thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.bld__thumbs figure { margin: 0; position: relative; display: grid; gap: 6px; }
.bld__thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.bld__thumbs input { padding: 8px 10px; font-size: .8rem; }
.bld__thumbs button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 8px; background: rgba(7, 6, 12, .75); color: #fff; cursor: pointer; }
.bld__preview { padding: 8px; border-radius: 20px; }
.bld__screen { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #0b0a10; display: grid; place-items: center; }
.bld__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.bld__empty { padding: 24px; text-align: center; }
.bld__wait { display: grid; justify-items: center; gap: 14px; padding: 24px; text-align: center; color: var(--text-2); max-width: 420px; }
.bld__spin { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bld__tools { margin-top: 12px; padding: 16px; border-radius: 16px; display: grid; gap: 14px; }
.bld__row { display: flex; gap: 10px; flex-wrap: wrap; }
.bld__rev { display: grid; gap: 10px; }
.bld__list { display: grid; gap: 8px; }
.bld__item { border: 0; cursor: pointer; text-align: left; padding: 14px 16px; border-radius: 14px; display: flex; justify-content: space-between; gap: 12px; color: var(--text); font: inherit; }
@media (max-width: 900px) { .bld__grid { grid-template-columns: 1fr; } .bld__screen { aspect-ratio: 4 / 5; } }
.bld__form > *, .bld__form input, .bld__form textarea, .bld__form select { min-width: 0; width: 100%; box-sizing: border-box; }
.bld__two > label { min-width: 0; }

/* ---------- Display type: Clash Display (Sophia's pick, 16 Nov) ---------- */
:root { --display: "Clash Display", "Inter Tight", system-ui, sans-serif; }
.cloud__title, .h-xl, .h-xxl, .sp__title, .acc__h, .plan h3, .bridge h2 { font-family: var(--display); }
.cloud__title { font-weight: 500; font-variation-settings: normal; letter-spacing: -.02em; line-height: 1; font-size: clamp(2.6rem, 4.8vw, 4.9rem); color: #fff; }
.cloud__title em { font-weight: 500; }
.h-xl, .h-xxl, .sp__title { font-weight: 600; letter-spacing: -.025em; }
.h-xl .thin { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; color: var(--text-2); }
@media (max-width: 760px) { .cloud__title { font-size: 2.3rem; } }
.cloud__title em { font-family: var(--display); letter-spacing: -.02em; }
.h-xl, .h-xxl, .sp__title { letter-spacing: -.012em; }
.plan h3, .acc__h, .bridge h2 { letter-spacing: 0; font-weight: 600; }

/* ---------- UI/UX fixes (16 Nov) ---------- */
/* View switch: floating at the bottom centre, away from the cloud's top cards */
.viewswitch { top: auto; bottom: 26px; }
.home .cloud__ui { padding-top: 112px; padding-bottom: 28px; }
.home .cloud__foot { position: relative; }
/* Touch: picked site sheet */
.cloud__sheet { position: absolute; z-index: 4; left: 50%; bottom: 96px; transform: translateX(-50%); width: min(420px, calc(100% - 32px));
  padding: 14px 14px 14px 18px; border-radius: 16px; display: flex; align-items: center; gap: 12px; background: rgba(11, 9, 18, .92); }
.cloud__sheet[hidden] { display: none; }
.cloud__sheet > div { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cloud__sheet b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.cloud__sheet span { color: var(--text-2); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cloud__sheet-x { border: 0; background: none; color: var(--text-2); font-size: 1.4rem; cursor: pointer; padding: 0 4px; }
/* Readable small text: nothing under 12px */
.lib__cap .mono, .swatch .mono, .cloud__tip span, .cloud__tip i, .cloud__hint, .prompt__meta, .label, .hero__meta, .sp__locked, .mono.small, .cloud__kicker { font-size: .75rem; }
.nlogo__sub { font-size: 9.5px; }
/* Price once above the list */
.libview__price { color: var(--text-2); margin: 14px 0 0; }
.libview__price b { color: var(--text); font-weight: 600; }
.libview__price a { color: var(--ice); margin-left: 10px; text-decoration: none; }
/* Sticky buy bar: phones only */
.buybar { display: none; }
@media (max-width: 760px) {
  .viewswitch { top: 88px; bottom: auto; }
  .home .cloud__ui { padding-top: 142px; }
  .cloud__sheet { bottom: auto; top: 140px; }
  .sp { padding-bottom: 110px; }
  .buybar { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px;
    padding: 12px 12px 12px 16px; border-radius: 16px; background: rgba(11, 9, 18, .94); }
  .buybar > div { display: grid; line-height: 1.1; }
  .buybar b { font-family: var(--display); font-size: 1.4rem; }
  .buybar span { color: var(--text-2); font-size: .75rem; }
  .buybar .btn { justify-self: end; }
  .buybar__alt { grid-column: 1 / -1; text-align: center; color: var(--text-2); font-size: .8rem; text-decoration: none; }
}
.buybar { transition: opacity .3s, transform .3s var(--ease); }
.buybar.is-off { opacity: 0; transform: translateY(20px); pointer-events: none; }

/* Mobile library (16 Nov): cards fit the screen, short chips, switch at the thumb */
.lib { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lib__item { min-width: 0; }
@media (max-width: 1000px) { .lib { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .lib { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .libview { padding: 104px 0 110px; }
  .libview__head { margin-bottom: 18px; }
  .libview__head .h-xl { font-size: 2.1rem; }
  .libview__price { font-size: .92rem; line-height: 1.5; }
  .libview__price a { display: inline-block; margin: 6px 0 0; }
  .filters { gap: 6px; margin-bottom: 18px; }
  .chipbtn { padding: 9px 13px; font-size: .84rem; }
  .filters .search { flex: 1 1 100%; }
  .home[data-view="library"] .viewswitch { top: auto; bottom: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
  .lib__item { padding: 6px; }
  .lib__cap { padding: 12px 6px 4px; }
}
